From d70ad96e8136ecd4c5564bd38d9280a954398206 Mon Sep 17 00:00:00 2001 From: platyscript <244315239+platyscript@users.noreply.github.com> Date: Mon, 1 Dec 2025 10:56:35 +0530 Subject: [PATCH 1/2] New changes --- Directory.Build.props | 1 + Directory.Packages.props | 8 +- EntityFrameworkCore.Generator | 2 +- README.md | 10 +- .../Data/AdventureWorksContext.cs | 995 ------------------ .../Data/Entities/Address.cs | 141 --- .../Data/Entities/AddressType.cs | 78 -- .../Data/Entities/BillOfMaterials.cs | 137 --- .../Data/Entities/BusinessEntity.cs | 105 -- .../Data/Entities/BusinessEntityAddress.cs | 101 -- .../Data/Entities/BusinessEntityContact.cs | 101 -- .../Data/Entities/ContactType.cs | 69 -- .../Data/Entities/CountryRegion.cs | 85 -- .../Data/Entities/CountryRegionCurrency.cs | 73 -- .../Data/Entities/CreditCard.cs | 105 -- .../Data/Entities/Culture.cs | 67 -- .../Data/Entities/Currency.cs | 85 -- .../Data/Entities/CurrencyRate.cs | 123 --- .../Data/Entities/Customer.cs | 133 --- .../Data/Entities/Department.cs | 78 -- .../Data/Entities/EmailAddress.cs | 84 -- .../Data/Entities/Employee.cs | 221 ---- .../Entities/EmployeeDepartmentHistory.cs | 111 -- .../Data/Entities/EmployeePayHistory.cs | 82 -- .../Data/Entities/Illustration.cs | 69 -- .../Data/Entities/JobCandidate.cs | 74 -- .../Data/Entities/Location.cs | 96 -- .../Data/Entities/Password.cs | 81 -- .../Data/Entities/Person.cs | 220 ---- .../Data/Entities/PersonCreditCard.cs | 73 -- .../Data/Entities/PersonPhone.cs | 83 -- .../Data/Entities/PhoneNumberType.cs | 69 -- .../Data/Entities/Product.cs | 420 -------- .../Data/Entities/ProductCategory.cs | 78 -- .../Data/Entities/ProductCostHistory.cs | 82 -- .../Data/Entities/ProductDescription.cs | 78 -- .../Data/Entities/ProductDocument.cs | 54 - .../Data/Entities/ProductInventory.cs | 109 -- .../Data/Entities/ProductListPriceHistory.cs | 82 -- .../Data/Entities/ProductModel.cs | 114 -- .../Data/Entities/ProductModelIllustration.cs | 73 -- .../ProductModelProductDescriptionCulture.cs | 92 -- .../Data/Entities/ProductPhoto.cs | 96 -- .../Data/Entities/ProductProductPhoto.cs | 82 -- .../Data/Entities/ProductReview.cs | 110 -- .../Data/Entities/ProductSubcategory.cs | 96 -- .../Data/Entities/ProductVendor.cs | 154 --- .../Data/Entities/PurchaseOrderDetail.cs | 149 --- .../Data/Entities/PurchaseOrderHeader.cs | 187 ---- .../Data/Entities/SalesOrderDetail.cs | 149 --- .../Data/Entities/SalesOrderHeader.cs | 359 ------- .../Entities/SalesOrderHeaderSalesReason.cs | 73 -- .../Data/Entities/SalesPerson.cs | 166 --- .../Data/Entities/SalesPersonQuotaHistory.cs | 82 -- .../Data/Entities/SalesReason.cs | 78 -- .../Data/Entities/SalesTaxRate.cs | 101 -- .../Data/Entities/SalesTerritory.cs | 177 ---- .../Data/Entities/SalesTerritoryHistory.cs | 101 -- .../Data/Entities/ScrapReason.cs | 69 -- .../Data/Entities/Shift.cs | 87 -- .../Data/Entities/ShipMethod.cs | 105 -- .../Data/Entities/ShoppingCartItem.cs | 92 -- .../Data/Entities/SpecialOffer.cs | 141 --- .../Data/Entities/SpecialOfferProduct.cs | 95 -- .../Data/Entities/StateProvince.cs | 141 --- .../Data/Entities/Store.cs | 112 -- .../Data/Entities/TransactionHistory.cs | 119 --- .../Entities/TransactionHistoryArchive.cs | 104 -- .../Data/Entities/UnitMeasure.cs | 94 -- .../Data/Entities/VAdditionalContactInfo.cs | 174 --- .../Data/Entities/VEmployee.cs | 183 ---- .../Data/Entities/VEmployeeDepartment.cs | 111 -- .../Entities/VEmployeeDepartmentHistory.cs | 120 --- .../Data/Entities/VIndividualCustomer.cs | 183 ---- .../Data/Entities/VJobCandidate.cs | 167 --- .../Data/Entities/VJobCandidateEducation.cs | 140 --- .../Data/Entities/VJobCandidateEmployment.cs | 122 --- .../Data/Entities/VPersonDemographics.cs | 138 --- .../Data/Entities/VProductAndDescription.cs | 66 -- .../VProductModelCatalogDescription.cs | 248 ----- .../Entities/VProductModelInstructions.cs | 122 --- .../Data/Entities/VSalesPerson.cs | 219 ---- .../VSalesPersonSalesByFiscalYears.cs | 84 -- .../Entities/VStateProvinceCountryRegion.cs | 84 -- .../Data/Entities/VStoreWithAddresses.cs | 102 -- .../Data/Entities/VStoreWithContacts.cs | 129 --- .../Data/Entities/VStoreWithDemographics.cs | 129 --- .../Data/Entities/VVendorWithAddresses.cs | 102 -- .../Data/Entities/VVendorWithContacts.cs | 129 --- .../Data/Entities/Vendor.cs | 130 --- .../Data/Entities/WorkOrder.cs | 151 --- .../Data/Entities/WorkOrderRouting.cs | 155 --- .../AddressConfiguration.cs | 143 --- .../AddressTypeConfiguration.cs | 97 -- .../BillOfMaterialsConfiguration.cs | 167 --- .../BusinessEntityAddressConfiguration.cs | 124 --- .../BusinessEntityConfiguration.cs | 87 -- .../BusinessEntityContactConfiguration.cs | 124 --- .../ContactTypeConfiguration.cs | 85 -- .../CountryRegionConfiguration.cs | 87 -- .../CountryRegionCurrencyConfiguration.cs | 98 -- .../CreditCardConfiguration.cs | 119 --- .../CultureConfiguration.cs | 82 -- .../CurrencyConfiguration.cs | 83 -- .../CurrencyRateConfiguration.cs | 140 --- .../CustomerConfiguration.cs | 140 --- .../DepartmentConfiguration.cs | 96 -- .../EmailAddressConfiguration.cs | 112 -- .../EmployeeConfiguration.cs | 227 ---- .../EmployeeDepartmentHistoryConfiguration.cs | 133 --- .../EmployeePayHistoryConfiguration.cs | 112 -- .../IllustrationConfiguration.cs | 84 -- .../JobCandidateConfiguration.cs | 98 -- .../LocationConfiguration.cs | 106 -- .../PasswordConfiguration.cs | 111 -- .../PersonConfiguration.cs | 196 ---- .../PersonCreditCardConfiguration.cs | 94 -- .../PersonPhoneConfiguration.cs | 105 -- .../PhoneNumberTypeConfiguration.cs | 87 -- .../ProductCategoryConfiguration.cs | 99 -- .../ProductConfiguration.cs | 336 ------ .../ProductCostHistoryConfiguration.cs | 111 -- .../ProductDescriptionConfiguration.cs | 100 -- .../ProductDocumentConfiguration.cs | 78 -- .../ProductInventoryConfiguration.cs | 141 --- .../ProductListPriceHistoryConfiguration.cs | 112 -- .../ProductModelConfiguration.cs | 118 --- .../ProductModelIllustrationConfiguration.cs | 96 -- ...lProductDescriptionCultureConfiguration.cs | 114 -- .../ProductPhotoConfiguration.cs | 116 -- .../ProductProductPhotoConfiguration.cs | 108 -- .../ProductReviewConfiguration.cs | 148 --- .../ProductSubcategoryConfiguration.cs | 115 -- .../ProductVendorConfiguration.cs | 185 ---- .../PurchaseOrderDetailConfiguration.cs | 187 ---- .../PurchaseOrderHeaderConfiguration.cs | 218 ---- .../SalesOrderDetailConfiguration.cs | 186 ---- .../SalesOrderHeaderConfiguration.cs | 384 ------- ...alesOrderHeaderSalesReasonConfiguration.cs | 97 -- .../SalesPersonConfiguration.cs | 162 --- .../SalesPersonQuotaHistoryConfiguration.cs | 114 -- .../SalesReasonConfiguration.cs | 97 -- .../SalesTaxRateConfiguration.cs | 136 --- .../SalesTerritoryConfiguration.cs | 175 --- .../SalesTerritoryHistoryConfiguration.cs | 129 --- .../ScrapReasonConfiguration.cs | 85 -- .../EntityConfiguration/ShiftConfiguration.cs | 102 -- .../ShipMethodConfiguration.cs | 120 --- .../ShoppingCartItemConfiguration.cs | 126 --- .../SpecialOfferConfiguration.cs | 178 ---- .../SpecialOfferProductConfiguration.cs | 108 -- .../StateProvinceConfiguration.cs | 155 --- .../EntityConfiguration/StoreConfiguration.cs | 122 --- .../TransactionHistoryArchiveConfiguration.cs | 156 --- .../TransactionHistoryConfiguration.cs | 160 --- .../UnitMeasureConfiguration.cs | 86 -- .../VAdditionalContactInfoConfiguration.cs | 239 ----- .../VEmployeeConfiguration.cs | 253 ----- .../VEmployeeDepartmentConfiguration.cs | 168 --- ...VEmployeeDepartmentHistoryConfiguration.cs | 178 ---- .../VIndividualCustomerConfiguration.cs | 258 ----- .../VJobCandidateConfiguration.cs | 224 ---- .../VJobCandidateEducationConfiguration.cs | 194 ---- .../VJobCandidateEmploymentConfiguration.cs | 167 --- .../VPersonDemographicsConfiguration.cs | 189 ---- .../VProductAndDescriptionConfiguration.cs | 112 -- ...uctModelCatalogDescriptionConfiguration.cs | 328 ------ .../VProductModelInstructionsConfiguration.cs | 170 --- .../VSalesPersonConfiguration.cs | 300 ------ ...esPersonSalesByFiscalYearsConfiguration.cs | 129 --- ...StateProvinceCountryRegionConfiguration.cs | 135 --- .../VStoreWithAddressesConfiguration.cs | 159 --- .../VStoreWithContactsConfiguration.cs | 188 ---- .../VStoreWithDemographicsConfiguration.cs | 181 ---- .../VVendorWithAddressesConfiguration.cs | 159 --- .../VVendorWithContactsConfiguration.cs | 189 ---- .../VendorConfiguration.cs | 144 --- .../WorkOrderConfiguration.cs | 169 --- .../WorkOrderRoutingConfiguration.cs | 189 ---- .../Domain/Address/Mapping/AddressProfile.cs | 29 - .../Address/Models/AddressCreateModel.cs | 76 -- .../Domain/Address/Models/AddressReadModel.cs | 76 -- .../Address/Models/AddressUpdateModel.cs | 76 -- .../Validation/AddressCreateModelValidator.cs | 30 - .../Validation/AddressUpdateModelValidator.cs | 30 - .../AddressType/Mapping/AddressTypeProfile.cs | 29 - .../Models/AddressTypeCreateModel.cs | 44 - .../Models/AddressTypeReadModel.cs | 44 - .../Models/AddressTypeUpdateModel.cs | 44 - .../AddressTypeCreateModelValidator.cs | 25 - .../AddressTypeUpdateModelValidator.cs | 25 - .../Mapping/BillOfMaterialsProfile.cs | 29 - .../Models/BillOfMaterialsCreateModel.cs | 84 -- .../Models/BillOfMaterialsReadModel.cs | 84 -- .../Models/BillOfMaterialsUpdateModel.cs | 84 -- .../BillOfMaterialsCreateModelValidator.cs | 25 - .../BillOfMaterialsUpdateModelValidator.cs | 25 - .../Mapping/BusinessEntityProfile.cs | 29 - .../Models/BusinessEntityCreateModel.cs | 36 - .../Models/BusinessEntityReadModel.cs | 36 - .../Models/BusinessEntityUpdateModel.cs | 36 - .../BusinessEntityCreateModelValidator.cs | 19 - .../BusinessEntityUpdateModelValidator.cs | 19 - .../Mapping/BusinessEntityAddressProfile.cs | 29 - .../BusinessEntityAddressCreateModel.cs | 52 - .../Models/BusinessEntityAddressReadModel.cs | 52 - .../BusinessEntityAddressUpdateModel.cs | 52 - ...sinessEntityAddressCreateModelValidator.cs | 19 - ...sinessEntityAddressUpdateModelValidator.cs | 19 - .../Mapping/BusinessEntityContactProfile.cs | 29 - .../BusinessEntityContactCreateModel.cs | 52 - .../Models/BusinessEntityContactReadModel.cs | 52 - .../BusinessEntityContactUpdateModel.cs | 52 - ...sinessEntityContactCreateModelValidator.cs | 19 - ...sinessEntityContactUpdateModelValidator.cs | 19 - .../ContactType/Mapping/ContactTypeProfile.cs | 29 - .../Models/ContactTypeCreateModel.cs | 36 - .../Models/ContactTypeReadModel.cs | 36 - .../Models/ContactTypeUpdateModel.cs | 36 - .../ContactTypeCreateModelValidator.cs | 25 - .../ContactTypeUpdateModelValidator.cs | 25 - .../Mapping/CountryRegionProfile.cs | 29 - .../Models/CountryRegionCreateModel.cs | 36 - .../Models/CountryRegionReadModel.cs | 36 - .../Models/CountryRegionUpdateModel.cs | 36 - .../CountryRegionCreateModelValidator.cs | 27 - .../CountryRegionUpdateModelValidator.cs | 27 - .../Mapping/CountryRegionCurrencyProfile.cs | 29 - .../CountryRegionCurrencyCreateModel.cs | 36 - .../Models/CountryRegionCurrencyReadModel.cs | 36 - .../CountryRegionCurrencyUpdateModel.cs | 36 - ...untryRegionCurrencyCreateModelValidator.cs | 27 - ...untryRegionCurrencyUpdateModelValidator.cs | 27 - .../CreditCard/Mapping/CreditCardProfile.cs | 29 - .../Models/CreditCardCreateModel.cs | 60 -- .../CreditCard/Models/CreditCardReadModel.cs | 60 -- .../Models/CreditCardUpdateModel.cs | 60 -- .../CreditCardCreateModelValidator.cs | 27 - .../CreditCardUpdateModelValidator.cs | 27 - .../Domain/Culture/Mapping/CultureProfile.cs | 29 - .../Culture/Models/CultureCreateModel.cs | 36 - .../Domain/Culture/Models/CultureReadModel.cs | 36 - .../Culture/Models/CultureUpdateModel.cs | 36 - .../Validation/CultureCreateModelValidator.cs | 27 - .../Validation/CultureUpdateModelValidator.cs | 27 - .../Currency/Mapping/CurrencyProfile.cs | 29 - .../Currency/Models/CurrencyCreateModel.cs | 36 - .../Currency/Models/CurrencyReadModel.cs | 36 - .../Currency/Models/CurrencyUpdateModel.cs | 36 - .../CurrencyCreateModelValidator.cs | 27 - .../CurrencyUpdateModelValidator.cs | 27 - .../Mapping/CurrencyRateProfile.cs | 29 - .../Models/CurrencyRateCreateModel.cs | 68 -- .../Models/CurrencyRateReadModel.cs | 68 -- .../Models/CurrencyRateUpdateModel.cs | 68 -- .../CurrencyRateCreateModelValidator.cs | 27 - .../CurrencyRateUpdateModelValidator.cs | 27 - .../Customer/Mapping/CustomerProfile.cs | 29 - .../Customer/Models/CustomerCreateModel.cs | 68 -- .../Customer/Models/CustomerReadModel.cs | 68 -- .../Customer/Models/CustomerUpdateModel.cs | 68 -- .../CustomerCreateModelValidator.cs | 19 - .../CustomerUpdateModelValidator.cs | 19 - .../Department/Mapping/DepartmentProfile.cs | 29 - .../Models/DepartmentCreateModel.cs | 44 - .../Department/Models/DepartmentReadModel.cs | 44 - .../Models/DepartmentUpdateModel.cs | 44 - .../DepartmentCreateModelValidator.cs | 27 - .../DepartmentUpdateModelValidator.cs | 27 - .../Mapping/EmailAddressProfile.cs | 29 - .../Models/EmailAddressCreateModel.cs | 52 - .../Models/EmailAddressReadModel.cs | 52 - .../Models/EmailAddressUpdateModel.cs | 52 - .../EmailAddressCreateModelValidator.cs | 24 - .../EmailAddressUpdateModelValidator.cs | 24 - .../Employee/Mapping/EmployeeProfile.cs | 29 - .../Employee/Models/EmployeeCreateModel.cs | 132 --- .../Employee/Models/EmployeeReadModel.cs | 132 --- .../Employee/Models/EmployeeUpdateModel.cs | 132 --- .../EmployeeCreateModelValidator.cs | 33 - .../EmployeeUpdateModelValidator.cs | 33 - .../EmployeeDepartmentHistoryProfile.cs | 29 - .../EmployeeDepartmentHistoryCreateModel.cs | 60 -- .../EmployeeDepartmentHistoryReadModel.cs | 60 -- .../EmployeeDepartmentHistoryUpdateModel.cs | 60 -- ...eeDepartmentHistoryCreateModelValidator.cs | 19 - ...eeDepartmentHistoryUpdateModelValidator.cs | 19 - .../Mapping/EmployeePayHistoryProfile.cs | 29 - .../Models/EmployeePayHistoryCreateModel.cs | 52 - .../Models/EmployeePayHistoryReadModel.cs | 52 - .../Models/EmployeePayHistoryUpdateModel.cs | 52 - .../EmployeePayHistoryCreateModelValidator.cs | 19 - .../EmployeePayHistoryUpdateModelValidator.cs | 19 - .../Mapping/IllustrationProfile.cs | 29 - .../Models/IllustrationCreateModel.cs | 36 - .../Models/IllustrationReadModel.cs | 36 - .../Models/IllustrationUpdateModel.cs | 36 - .../IllustrationCreateModelValidator.cs | 19 - .../IllustrationUpdateModelValidator.cs | 19 - .../Mapping/JobCandidateProfile.cs | 29 - .../Models/JobCandidateCreateModel.cs | 44 - .../Models/JobCandidateReadModel.cs | 44 - .../Models/JobCandidateUpdateModel.cs | 44 - .../JobCandidateCreateModelValidator.cs | 19 - .../JobCandidateUpdateModelValidator.cs | 19 - .../Location/Mapping/LocationProfile.cs | 29 - .../Location/Models/LocationCreateModel.cs | 52 - .../Location/Models/LocationReadModel.cs | 52 - .../Location/Models/LocationUpdateModel.cs | 52 - .../LocationCreateModelValidator.cs | 25 - .../LocationUpdateModelValidator.cs | 25 - .../Password/Mapping/PasswordProfile.cs | 29 - .../Password/Models/PasswordCreateModel.cs | 52 - .../Password/Models/PasswordReadModel.cs | 52 - .../Password/Models/PasswordUpdateModel.cs | 52 - .../PasswordCreateModelValidator.cs | 27 - .../PasswordUpdateModelValidator.cs | 27 - .../Domain/Person/Mapping/PersonProfile.cs | 29 - .../Domain/Person/Models/PersonCreateModel.cs | 116 -- .../Domain/Person/Models/PersonReadModel.cs | 116 -- .../Domain/Person/Models/PersonUpdateModel.cs | 116 -- .../Validation/PersonCreateModelValidator.cs | 32 - .../Validation/PersonUpdateModelValidator.cs | 32 - .../Mapping/PersonCreditCardProfile.cs | 29 - .../Models/PersonCreditCardCreateModel.cs | 36 - .../Models/PersonCreditCardReadModel.cs | 36 - .../Models/PersonCreditCardUpdateModel.cs | 36 - .../PersonCreditCardCreateModelValidator.cs | 19 - .../PersonCreditCardUpdateModelValidator.cs | 19 - .../PersonPhone/Mapping/PersonPhoneProfile.cs | 29 - .../Models/PersonPhoneCreateModel.cs | 44 - .../Models/PersonPhoneReadModel.cs | 44 - .../Models/PersonPhoneUpdateModel.cs | 44 - .../PersonPhoneCreateModelValidator.cs | 25 - .../PersonPhoneUpdateModelValidator.cs | 25 - .../Mapping/PhoneNumberTypeProfile.cs | 29 - .../Models/PhoneNumberTypeCreateModel.cs | 36 - .../Models/PhoneNumberTypeReadModel.cs | 36 - .../Models/PhoneNumberTypeUpdateModel.cs | 36 - .../PhoneNumberTypeCreateModelValidator.cs | 25 - .../PhoneNumberTypeUpdateModelValidator.cs | 25 - .../Domain/Product/Mapping/ProductProfile.cs | 29 - .../Product/Models/ProductCreateModel.cs | 212 ---- .../Domain/Product/Models/ProductReadModel.cs | 212 ---- .../Product/Models/ProductUpdateModel.cs | 212 ---- .../Validation/ProductCreateModelValidator.cs | 34 - .../Validation/ProductUpdateModelValidator.cs | 34 - .../Mapping/ProductCategoryProfile.cs | 29 - .../Models/ProductCategoryCreateModel.cs | 44 - .../Models/ProductCategoryReadModel.cs | 44 - .../Models/ProductCategoryUpdateModel.cs | 44 - .../ProductCategoryCreateModelValidator.cs | 25 - .../ProductCategoryUpdateModelValidator.cs | 25 - .../Mapping/ProductCostHistoryProfile.cs | 29 - .../Models/ProductCostHistoryCreateModel.cs | 52 - .../Models/ProductCostHistoryReadModel.cs | 52 - .../Models/ProductCostHistoryUpdateModel.cs | 52 - .../ProductCostHistoryCreateModelValidator.cs | 19 - .../ProductCostHistoryUpdateModelValidator.cs | 19 - .../Mapping/ProductDescriptionProfile.cs | 29 - .../Models/ProductDescriptionCreateModel.cs | 44 - .../Models/ProductDescriptionReadModel.cs | 44 - .../Models/ProductDescriptionUpdateModel.cs | 44 - .../ProductDescriptionCreateModelValidator.cs | 25 - .../ProductDescriptionUpdateModelValidator.cs | 25 - .../Mapping/ProductDocumentProfile.cs | 29 - .../Models/ProductDocumentCreateModel.cs | 28 - .../Models/ProductDocumentReadModel.cs | 28 - .../Models/ProductDocumentUpdateModel.cs | 28 - .../ProductDocumentCreateModelValidator.cs | 19 - .../ProductDocumentUpdateModelValidator.cs | 19 - .../Mapping/ProductInventoryProfile.cs | 29 - .../Models/ProductInventoryCreateModel.cs | 68 -- .../Models/ProductInventoryReadModel.cs | 68 -- .../Models/ProductInventoryUpdateModel.cs | 68 -- .../ProductInventoryCreateModelValidator.cs | 25 - .../ProductInventoryUpdateModelValidator.cs | 25 - .../Mapping/ProductListPriceHistoryProfile.cs | 29 - .../ProductListPriceHistoryCreateModel.cs | 52 - .../ProductListPriceHistoryReadModel.cs | 52 - .../ProductListPriceHistoryUpdateModel.cs | 52 - ...uctListPriceHistoryCreateModelValidator.cs | 19 - ...uctListPriceHistoryUpdateModelValidator.cs | 19 - .../Mapping/ProductModelProfile.cs | 29 - .../Models/ProductModelCreateModel.cs | 60 -- .../Models/ProductModelReadModel.cs | 60 -- .../Models/ProductModelUpdateModel.cs | 60 -- .../ProductModelCreateModelValidator.cs | 25 - .../ProductModelUpdateModelValidator.cs | 25 - .../ProductModelIllustrationProfile.cs | 29 - .../ProductModelIllustrationCreateModel.cs | 36 - .../ProductModelIllustrationReadModel.cs | 36 - .../ProductModelIllustrationUpdateModel.cs | 36 - ...ctModelIllustrationCreateModelValidator.cs | 19 - ...ctModelIllustrationUpdateModelValidator.cs | 19 - ...ctModelProductDescriptionCultureProfile.cs | 29 - ...delProductDescriptionCultureCreateModel.cs | 44 - ...ModelProductDescriptionCultureReadModel.cs | 44 - ...delProductDescriptionCultureUpdateModel.cs | 44 - ...tDescriptionCultureCreateModelValidator.cs | 25 - ...tDescriptionCultureUpdateModelValidator.cs | 25 - .../Mapping/ProductPhotoProfile.cs | 29 - .../Models/ProductPhotoCreateModel.cs | 60 -- .../Models/ProductPhotoReadModel.cs | 60 -- .../Models/ProductPhotoUpdateModel.cs | 60 -- .../ProductPhotoCreateModelValidator.cs | 25 - .../ProductPhotoUpdateModelValidator.cs | 25 - .../Mapping/ProductProductPhotoProfile.cs | 29 - .../Models/ProductProductPhotoCreateModel.cs | 44 - .../Models/ProductProductPhotoReadModel.cs | 44 - .../Models/ProductProductPhotoUpdateModel.cs | 44 - ...ProductProductPhotoCreateModelValidator.cs | 19 - ...ProductProductPhotoUpdateModelValidator.cs | 19 - .../Mapping/ProductReviewProfile.cs | 29 - .../Models/ProductReviewCreateModel.cs | 76 -- .../Models/ProductReviewReadModel.cs | 76 -- .../Models/ProductReviewUpdateModel.cs | 76 -- .../ProductReviewCreateModelValidator.cs | 28 - .../ProductReviewUpdateModelValidator.cs | 28 - .../Mapping/ProductSubcategoryProfile.cs | 29 - .../Models/ProductSubcategoryCreateModel.cs | 52 - .../Models/ProductSubcategoryReadModel.cs | 52 - .../Models/ProductSubcategoryUpdateModel.cs | 52 - .../ProductSubcategoryCreateModelValidator.cs | 25 - .../ProductSubcategoryUpdateModelValidator.cs | 25 - .../Mapping/ProductVendorProfile.cs | 29 - .../Models/ProductVendorCreateModel.cs | 100 -- .../Models/ProductVendorReadModel.cs | 100 -- .../Models/ProductVendorUpdateModel.cs | 100 -- .../ProductVendorCreateModelValidator.cs | 25 - .../ProductVendorUpdateModelValidator.cs | 25 - .../Mapping/PurchaseOrderDetailProfile.cs | 29 - .../Models/PurchaseOrderDetailCreateModel.cs | 100 -- .../Models/PurchaseOrderDetailReadModel.cs | 100 -- .../Models/PurchaseOrderDetailUpdateModel.cs | 100 -- ...PurchaseOrderDetailCreateModelValidator.cs | 19 - ...PurchaseOrderDetailUpdateModelValidator.cs | 19 - .../Mapping/PurchaseOrderHeaderProfile.cs | 29 - .../Models/PurchaseOrderHeaderCreateModel.cs | 116 -- .../Models/PurchaseOrderHeaderReadModel.cs | 116 -- .../Models/PurchaseOrderHeaderUpdateModel.cs | 116 -- ...PurchaseOrderHeaderCreateModelValidator.cs | 19 - ...PurchaseOrderHeaderUpdateModelValidator.cs | 19 - .../Mapping/SalesOrderDetailProfile.cs | 29 - .../Models/SalesOrderDetailCreateModel.cs | 100 -- .../Models/SalesOrderDetailReadModel.cs | 100 -- .../Models/SalesOrderDetailUpdateModel.cs | 100 -- .../SalesOrderDetailCreateModelValidator.cs | 24 - .../SalesOrderDetailUpdateModelValidator.cs | 24 - .../Mapping/SalesOrderHeaderProfile.cs | 29 - .../Models/SalesOrderHeaderCreateModel.cs | 220 ---- .../Models/SalesOrderHeaderReadModel.cs | 220 ---- .../Models/SalesOrderHeaderUpdateModel.cs | 220 ---- .../SalesOrderHeaderCreateModelValidator.cs | 27 - .../SalesOrderHeaderUpdateModelValidator.cs | 27 - .../SalesOrderHeaderSalesReasonProfile.cs | 29 - .../SalesOrderHeaderSalesReasonCreateModel.cs | 36 - .../SalesOrderHeaderSalesReasonReadModel.cs | 36 - .../SalesOrderHeaderSalesReasonUpdateModel.cs | 36 - ...erHeaderSalesReasonCreateModelValidator.cs | 19 - ...erHeaderSalesReasonUpdateModelValidator.cs | 19 - .../SalesPerson/Mapping/SalesPersonProfile.cs | 29 - .../Models/SalesPersonCreateModel.cs | 84 -- .../Models/SalesPersonReadModel.cs | 84 -- .../Models/SalesPersonUpdateModel.cs | 84 -- .../SalesPersonCreateModelValidator.cs | 19 - .../SalesPersonUpdateModelValidator.cs | 19 - .../Mapping/SalesPersonQuotaHistoryProfile.cs | 29 - .../SalesPersonQuotaHistoryCreateModel.cs | 52 - .../SalesPersonQuotaHistoryReadModel.cs | 52 - .../SalesPersonQuotaHistoryUpdateModel.cs | 52 - ...sPersonQuotaHistoryCreateModelValidator.cs | 19 - ...sPersonQuotaHistoryUpdateModelValidator.cs | 19 - .../SalesReason/Mapping/SalesReasonProfile.cs | 29 - .../Models/SalesReasonCreateModel.cs | 44 - .../Models/SalesReasonReadModel.cs | 44 - .../Models/SalesReasonUpdateModel.cs | 44 - .../SalesReasonCreateModelValidator.cs | 27 - .../SalesReasonUpdateModelValidator.cs | 27 - .../Mapping/SalesTaxRateProfile.cs | 29 - .../Models/SalesTaxRateCreateModel.cs | 68 -- .../Models/SalesTaxRateReadModel.cs | 68 -- .../Models/SalesTaxRateUpdateModel.cs | 68 -- .../SalesTaxRateCreateModelValidator.cs | 25 - .../SalesTaxRateUpdateModelValidator.cs | 25 - .../Mapping/SalesTerritoryProfile.cs | 29 - .../Models/SalesTerritoryCreateModel.cs | 92 -- .../Models/SalesTerritoryReadModel.cs | 92 -- .../Models/SalesTerritoryUpdateModel.cs | 92 -- .../SalesTerritoryCreateModelValidator.cs | 29 - .../SalesTerritoryUpdateModelValidator.cs | 29 - .../Mapping/SalesTerritoryHistoryProfile.cs | 29 - .../SalesTerritoryHistoryCreateModel.cs | 60 -- .../Models/SalesTerritoryHistoryReadModel.cs | 60 -- .../SalesTerritoryHistoryUpdateModel.cs | 60 -- ...lesTerritoryHistoryCreateModelValidator.cs | 19 - ...lesTerritoryHistoryUpdateModelValidator.cs | 19 - .../ScrapReason/Mapping/ScrapReasonProfile.cs | 29 - .../Models/ScrapReasonCreateModel.cs | 36 - .../Models/ScrapReasonReadModel.cs | 36 - .../Models/ScrapReasonUpdateModel.cs | 36 - .../ScrapReasonCreateModelValidator.cs | 25 - .../ScrapReasonUpdateModelValidator.cs | 25 - .../Domain/Shift/Mapping/ShiftProfile.cs | 29 - .../Domain/Shift/Models/ShiftCreateModel.cs | 52 - .../Domain/Shift/Models/ShiftReadModel.cs | 52 - .../Domain/Shift/Models/ShiftUpdateModel.cs | 52 - .../Validation/ShiftCreateModelValidator.cs | 25 - .../Validation/ShiftUpdateModelValidator.cs | 25 - .../ShipMethod/Mapping/ShipMethodProfile.cs | 29 - .../Models/ShipMethodCreateModel.cs | 60 -- .../ShipMethod/Models/ShipMethodReadModel.cs | 60 -- .../Models/ShipMethodUpdateModel.cs | 60 -- .../ShipMethodCreateModelValidator.cs | 25 - .../ShipMethodUpdateModelValidator.cs | 25 - .../Mapping/ShoppingCartItemProfile.cs | 29 - .../Models/ShoppingCartItemCreateModel.cs | 60 -- .../Models/ShoppingCartItemReadModel.cs | 60 -- .../Models/ShoppingCartItemUpdateModel.cs | 60 -- .../ShoppingCartItemCreateModelValidator.cs | 25 - .../ShoppingCartItemUpdateModelValidator.cs | 25 - .../Mapping/SpecialOfferProfile.cs | 29 - .../Models/SpecialOfferCreateModel.cs | 100 -- .../Models/SpecialOfferReadModel.cs | 100 -- .../Models/SpecialOfferUpdateModel.cs | 100 -- .../SpecialOfferCreateModelValidator.cs | 29 - .../SpecialOfferUpdateModelValidator.cs | 29 - .../Mapping/SpecialOfferProductProfile.cs | 29 - .../Models/SpecialOfferProductCreateModel.cs | 44 - .../Models/SpecialOfferProductReadModel.cs | 44 - .../Models/SpecialOfferProductUpdateModel.cs | 44 - ...SpecialOfferProductCreateModelValidator.cs | 19 - ...SpecialOfferProductUpdateModelValidator.cs | 19 - .../Mapping/StateProvinceProfile.cs | 29 - .../Models/StateProvinceCreateModel.cs | 76 -- .../Models/StateProvinceReadModel.cs | 76 -- .../Models/StateProvinceUpdateModel.cs | 76 -- .../StateProvinceCreateModelValidator.cs | 29 - .../StateProvinceUpdateModelValidator.cs | 29 - .../Domain/Store/Mapping/StoreProfile.cs | 29 - .../Domain/Store/Models/StoreCreateModel.cs | 60 -- .../Domain/Store/Models/StoreReadModel.cs | 60 -- .../Domain/Store/Models/StoreUpdateModel.cs | 60 -- .../Validation/StoreCreateModelValidator.cs | 25 - .../Validation/StoreUpdateModelValidator.cs | 25 - .../Mapping/TransactionHistoryProfile.cs | 29 - .../Models/TransactionHistoryCreateModel.cs | 84 -- .../Models/TransactionHistoryReadModel.cs | 84 -- .../Models/TransactionHistoryUpdateModel.cs | 84 -- .../TransactionHistoryCreateModelValidator.cs | 25 - .../TransactionHistoryUpdateModelValidator.cs | 25 - .../TransactionHistoryArchiveProfile.cs | 29 - .../TransactionHistoryArchiveCreateModel.cs | 84 -- .../TransactionHistoryArchiveReadModel.cs | 84 -- .../TransactionHistoryArchiveUpdateModel.cs | 84 -- ...ctionHistoryArchiveCreateModelValidator.cs | 25 - ...ctionHistoryArchiveUpdateModelValidator.cs | 25 - .../UnitMeasure/Mapping/UnitMeasureProfile.cs | 29 - .../Models/UnitMeasureCreateModel.cs | 36 - .../Models/UnitMeasureReadModel.cs | 36 - .../Models/UnitMeasureUpdateModel.cs | 36 - .../UnitMeasureCreateModelValidator.cs | 27 - .../UnitMeasureUpdateModelValidator.cs | 27 - .../Mapping/VAdditionalContactInfoProfile.cs | 29 - .../VAdditionalContactInfoCreateModel.cs | 148 --- .../Models/VAdditionalContactInfoReadModel.cs | 148 --- .../VAdditionalContactInfoUpdateModel.cs | 148 --- ...ditionalContactInfoCreateModelValidator.cs | 36 - ...ditionalContactInfoUpdateModelValidator.cs | 36 - .../VEmployee/Mapping/VEmployeeProfile.cs | 29 - .../VEmployee/Models/VEmployeeCreateModel.cs | 156 --- .../VEmployee/Models/VEmployeeReadModel.cs | 156 --- .../VEmployee/Models/VEmployeeUpdateModel.cs | 156 --- .../VEmployeeCreateModelValidator.cs | 46 - .../VEmployeeUpdateModelValidator.cs | 46 - .../Mapping/VEmployeeDepartmentProfile.cs | 29 - .../Models/VEmployeeDepartmentCreateModel.cs | 92 -- .../Models/VEmployeeDepartmentReadModel.cs | 92 -- .../Models/VEmployeeDepartmentUpdateModel.cs | 92 -- ...VEmployeeDepartmentCreateModelValidator.cs | 36 - ...VEmployeeDepartmentUpdateModelValidator.cs | 36 - .../VEmployeeDepartmentHistoryProfile.cs | 29 - .../VEmployeeDepartmentHistoryCreateModel.cs | 100 -- .../VEmployeeDepartmentHistoryReadModel.cs | 100 -- .../VEmployeeDepartmentHistoryUpdateModel.cs | 100 -- ...eeDepartmentHistoryCreateModelValidator.cs | 36 - ...eeDepartmentHistoryUpdateModelValidator.cs | 36 - .../Mapping/VIndividualCustomerProfile.cs | 29 - .../Models/VIndividualCustomerCreateModel.cs | 156 --- .../Models/VIndividualCustomerReadModel.cs | 156 --- .../Models/VIndividualCustomerUpdateModel.cs | 156 --- ...VIndividualCustomerCreateModelValidator.cs | 46 - ...VIndividualCustomerUpdateModelValidator.cs | 46 - .../Mapping/VJobCandidateProfile.cs | 29 - .../Models/VJobCandidateCreateModel.cs | 140 --- .../Models/VJobCandidateReadModel.cs | 140 --- .../Models/VJobCandidateUpdateModel.cs | 140 --- .../VJobCandidateCreateModelValidator.cs | 33 - .../VJobCandidateUpdateModelValidator.cs | 33 - .../Mapping/VJobCandidateEducationProfile.cs | 29 - .../VJobCandidateEducationCreateModel.cs | 116 -- .../Models/VJobCandidateEducationReadModel.cs | 116 -- .../VJobCandidateEducationUpdateModel.cs | 116 -- ...bCandidateEducationCreateModelValidator.cs | 32 - ...bCandidateEducationUpdateModelValidator.cs | 32 - .../Mapping/VJobCandidateEmploymentProfile.cs | 29 - .../VJobCandidateEmploymentCreateModel.cs | 100 -- .../VJobCandidateEmploymentReadModel.cs | 100 -- .../VJobCandidateEmploymentUpdateModel.cs | 100 -- ...CandidateEmploymentCreateModelValidator.cs | 25 - ...CandidateEmploymentUpdateModelValidator.cs | 25 - .../Mapping/VPersonDemographicsProfile.cs | 29 - .../Models/VPersonDemographicsCreateModel.cs | 116 -- .../Models/VPersonDemographicsReadModel.cs | 116 -- .../Models/VPersonDemographicsUpdateModel.cs | 116 -- ...VPersonDemographicsCreateModelValidator.cs | 28 - ...VPersonDemographicsUpdateModelValidator.cs | 28 - .../Mapping/VProductAndDescriptionProfile.cs | 29 - .../VProductAndDescriptionCreateModel.cs | 52 - .../Models/VProductAndDescriptionReadModel.cs | 52 - .../VProductAndDescriptionUpdateModel.cs | 52 - ...oductAndDescriptionCreateModelValidator.cs | 31 - ...oductAndDescriptionUpdateModelValidator.cs | 31 - .../VProductModelCatalogDescriptionProfile.cs | 29 - ...oductModelCatalogDescriptionCreateModel.cs | 212 ---- ...ProductModelCatalogDescriptionReadModel.cs | 212 ---- ...oductModelCatalogDescriptionUpdateModel.cs | 212 ---- ...lCatalogDescriptionCreateModelValidator.cs | 43 - ...lCatalogDescriptionUpdateModelValidator.cs | 43 - .../VProductModelInstructionsProfile.cs | 29 - .../VProductModelInstructionsCreateModel.cs | 100 -- .../VProductModelInstructionsReadModel.cs | 100 -- .../VProductModelInstructionsUpdateModel.cs | 100 -- ...ctModelInstructionsCreateModelValidator.cs | 26 - ...ctModelInstructionsUpdateModelValidator.cs | 26 - .../Mapping/VSalesPersonProfile.cs | 29 - .../Models/VSalesPersonCreateModel.cs | 188 ---- .../Models/VSalesPersonReadModel.cs | 188 ---- .../Models/VSalesPersonUpdateModel.cs | 188 ---- .../VSalesPersonCreateModelValidator.cs | 48 - .../VSalesPersonUpdateModelValidator.cs | 48 - .../VSalesPersonSalesByFiscalYearsProfile.cs | 29 - ...alesPersonSalesByFiscalYearsCreateModel.cs | 68 -- ...VSalesPersonSalesByFiscalYearsReadModel.cs | 68 -- ...alesPersonSalesByFiscalYearsUpdateModel.cs | 68 -- ...nSalesByFiscalYearsCreateModelValidator.cs | 28 - ...nSalesByFiscalYearsUpdateModelValidator.cs | 28 - .../VStateProvinceCountryRegionProfile.cs | 29 - .../VStateProvinceCountryRegionCreateModel.cs | 68 -- .../VStateProvinceCountryRegionReadModel.cs | 68 -- .../VStateProvinceCountryRegionUpdateModel.cs | 68 -- ...ovinceCountryRegionCreateModelValidator.cs | 31 - ...ovinceCountryRegionUpdateModelValidator.cs | 31 - .../Mapping/VStoreWithAddressesProfile.cs | 29 - .../Models/VStoreWithAddressesCreateModel.cs | 84 -- .../Models/VStoreWithAddressesReadModel.cs | 84 -- .../Models/VStoreWithAddressesUpdateModel.cs | 84 -- ...VStoreWithAddressesCreateModelValidator.cs | 38 - ...VStoreWithAddressesUpdateModelValidator.cs | 38 - .../Mapping/VStoreWithContactsProfile.cs | 29 - .../Models/VStoreWithContactsCreateModel.cs | 108 -- .../Models/VStoreWithContactsReadModel.cs | 108 -- .../Models/VStoreWithContactsUpdateModel.cs | 108 -- .../VStoreWithContactsCreateModelValidator.cs | 37 - .../VStoreWithContactsUpdateModelValidator.cs | 37 - .../Mapping/VStoreWithDemographicsProfile.cs | 29 - .../VStoreWithDemographicsCreateModel.cs | 108 -- .../Models/VStoreWithDemographicsReadModel.cs | 108 -- .../VStoreWithDemographicsUpdateModel.cs | 108 -- ...oreWithDemographicsCreateModelValidator.cs | 30 - ...oreWithDemographicsUpdateModelValidator.cs | 30 - .../Mapping/VVendorWithAddressesProfile.cs | 29 - .../Models/VVendorWithAddressesCreateModel.cs | 84 -- .../Models/VVendorWithAddressesReadModel.cs | 84 -- .../Models/VVendorWithAddressesUpdateModel.cs | 84 -- ...VendorWithAddressesCreateModelValidator.cs | 38 - ...VendorWithAddressesUpdateModelValidator.cs | 38 - .../Mapping/VVendorWithContactsProfile.cs | 29 - .../Models/VVendorWithContactsCreateModel.cs | 108 -- .../Models/VVendorWithContactsReadModel.cs | 108 -- .../Models/VVendorWithContactsUpdateModel.cs | 108 -- ...VVendorWithContactsCreateModelValidator.cs | 37 - ...VVendorWithContactsUpdateModelValidator.cs | 37 - .../Domain/Vendor/Mapping/VendorProfile.cs | 29 - .../Domain/Vendor/Models/VendorCreateModel.cs | 76 -- .../Domain/Vendor/Models/VendorReadModel.cs | 76 -- .../Domain/Vendor/Models/VendorUpdateModel.cs | 76 -- .../Validation/VendorCreateModelValidator.cs | 28 - .../Validation/VendorUpdateModelValidator.cs | 28 - .../WorkOrder/Mapping/WorkOrderProfile.cs | 29 - .../WorkOrder/Models/WorkOrderCreateModel.cs | 92 -- .../WorkOrder/Models/WorkOrderReadModel.cs | 92 -- .../WorkOrder/Models/WorkOrderUpdateModel.cs | 92 -- .../WorkOrderCreateModelValidator.cs | 19 - .../WorkOrderUpdateModelValidator.cs | 19 - .../Mapping/WorkOrderRoutingProfile.cs | 29 - .../Models/WorkOrderRoutingCreateModel.cs | 108 -- .../Models/WorkOrderRoutingReadModel.cs | 108 -- .../Models/WorkOrderRoutingUpdateModel.cs | 108 -- .../WorkOrderRoutingCreateModelValidator.cs | 19 - .../WorkOrderRoutingUpdateModelValidator.cs | 19 - .../Events/Create/AddressCreatedEvent.cs | 11 - .../Events/Create/AddressTypeCreatedEvent.cs | 11 - .../Create/BillOfMaterialsCreatedEvent.cs | 11 - .../Create/BusinessEntityCreatedEvent.cs | 11 - .../Events/Create/ContactTypeCreatedEvent.cs | 11 - .../Events/Create/CreditCardCreatedEvent.cs | 11 - .../Events/Create/CurrencyRateCreatedEvent.cs | 11 - .../Events/Create/CustomerCreatedEvent.cs | 11 - .../Events/Create/DepartmentCreatedEvent.cs | 11 - .../Events/Create/EmailAddressCreatedEvent.cs | 11 - .../Events/Create/IllustrationCreatedEvent.cs | 11 - .../Events/Create/JobCandidateCreatedEvent.cs | 11 - .../Events/Create/LocationCreatedEvent.cs | 11 - .../Create/PhoneNumberTypeCreatedEvent.cs | 11 - .../Create/ProductCategoryCreatedEvent.cs | 11 - .../Events/Create/ProductCreatedEvent.cs | 11 - .../Create/ProductDescriptionCreatedEvent.cs | 11 - .../Events/Create/ProductModelCreatedEvent.cs | 11 - .../Events/Create/ProductPhotoCreatedEvent.cs | 11 - .../Create/ProductReviewCreatedEvent.cs | 11 - .../Create/ProductSubcategoryCreatedEvent.cs | 11 - .../Create/PurchaseOrderDetailCreatedEvent.cs | 11 - .../Create/PurchaseOrderHeaderCreatedEvent.cs | 11 - .../Create/SalesOrderDetailCreatedEvent.cs | 11 - .../Create/SalesOrderHeaderCreatedEvent.cs | 11 - .../Events/Create/SalesReasonCreatedEvent.cs | 11 - .../Events/Create/SalesTaxRateCreatedEvent.cs | 11 - .../Create/SalesTerritoryCreatedEvent.cs | 11 - .../Events/Create/ScrapReasonCreatedEvent.cs | 11 - .../Events/Create/ShiftCreatedEvent.cs | 11 - .../Events/Create/ShipMethodCreatedEvent.cs | 11 - .../Create/ShoppingCartItemCreatedEvent.cs | 11 - .../Events/Create/SpecialOfferCreatedEvent.cs | 11 - .../Create/StateProvinceCreatedEvent.cs | 11 - .../Create/TransactionHistoryCreatedEvent.cs | 11 - .../Create/VJobCandidateCreatedEvent.cs | 11 - .../VJobCandidateEducationCreatedEvent.cs | 11 - .../VJobCandidateEmploymentCreatedEvent.cs | 11 - ...ductModelCatalogDescriptionCreatedEvent.cs | 11 - .../VProductModelInstructionsCreatedEvent.cs | 11 - .../Events/Create/WorkOrderCreatedEvent.cs | 11 - .../Events/Delete/AddressDeletedEvent.cs | 11 - .../Events/Delete/AddressTypeDeletedEvent.cs | 11 - .../Delete/BillOfMaterialsDeletedEvent.cs | 11 - .../Delete/BusinessEntityDeletedEvent.cs | 11 - .../Events/Delete/ContactTypeDeletedEvent.cs | 11 - .../Events/Delete/CreditCardDeletedEvent.cs | 11 - .../Events/Delete/CurrencyRateDeletedEvent.cs | 11 - .../Events/Delete/CustomerDeletedEvent.cs | 11 - .../Events/Delete/DepartmentDeletedEvent.cs | 11 - .../Events/Delete/EmailAddressDeletedEvent.cs | 11 - .../Events/Delete/IllustrationDeletedEvent.cs | 11 - .../Events/Delete/JobCandidateDeletedEvent.cs | 11 - .../Events/Delete/LocationDeletedEvent.cs | 11 - .../Delete/PhoneNumberTypeDeletedEvent.cs | 11 - .../Delete/ProductCategoryDeletedEvent.cs | 11 - .../Events/Delete/ProductDeletedEvent.cs | 11 - .../Delete/ProductDescriptionDeletedEvent.cs | 11 - .../Events/Delete/ProductModelDeletedEvent.cs | 11 - .../Events/Delete/ProductPhotoDeletedEvent.cs | 11 - .../Delete/ProductReviewDeletedEvent.cs | 11 - .../Delete/ProductSubcategoryDeletedEvent.cs | 11 - .../Delete/PurchaseOrderDetailDeletedEvent.cs | 11 - .../Delete/PurchaseOrderHeaderDeletedEvent.cs | 11 - .../Delete/SalesOrderDetailDeletedEvent.cs | 11 - .../Delete/SalesOrderHeaderDeletedEvent.cs | 11 - .../Events/Delete/SalesReasonDeletedEvent.cs | 11 - .../Events/Delete/SalesTaxRateDeletedEvent.cs | 11 - .../Delete/SalesTerritoryDeletedEvent.cs | 11 - .../Events/Delete/ScrapReasonDeletedEvent.cs | 11 - .../Events/Delete/ShiftDeletedEvent.cs | 11 - .../Events/Delete/ShipMethodDeletedEvent.cs | 11 - .../Delete/ShoppingCartItemDeletedEvent.cs | 11 - .../Events/Delete/SpecialOfferDeletedEvent.cs | 11 - .../Delete/StateProvinceDeletedEvent.cs | 11 - .../Delete/TransactionHistoryDeletedEvent.cs | 11 - .../Delete/VJobCandidateDeletedEvent.cs | 11 - .../VJobCandidateEducationDeletedEvent.cs | 11 - .../VJobCandidateEmploymentDeletedEvent.cs | 11 - ...ductModelCatalogDescriptionDeletedEvent.cs | 11 - .../VProductModelInstructionsDeletedEvent.cs | 11 - .../Events/Delete/WorkOrderDeletedEvent.cs | 11 - .../Events/Update/AddressTypeUpdatedEvent.cs | 11 - .../Events/Update/AddressUpdatedEvent.cs | 11 - .../Update/BillOfMaterialsUpdatedEvent.cs | 11 - .../Update/BusinessEntityUpdatedEvent.cs | 11 - .../Events/Update/ContactTypeUpdatedEvent.cs | 11 - .../Events/Update/CreditCardUpdatedEvent.cs | 11 - .../Events/Update/CurrencyRateUpdatedEvent.cs | 11 - .../Events/Update/CustomerUpdatedEvent.cs | 11 - .../Events/Update/DepartmentUpdatedEvent.cs | 11 - .../Events/Update/EmailAddressUpdatedEvent.cs | 11 - .../Events/Update/IllustrationUpdatedEvent.cs | 11 - .../Events/Update/JobCandidateUpdatedEvent.cs | 11 - .../Events/Update/LocationUpdatedEvent.cs | 11 - .../Update/PhoneNumberTypeUpdatedEvent.cs | 11 - .../Update/ProductCategoryUpdatedEvent.cs | 11 - .../Update/ProductDescriptionUpdatedEvent.cs | 11 - .../Events/Update/ProductModelUpdatedEvent.cs | 11 - .../Events/Update/ProductPhotoUpdatedEvent.cs | 11 - .../Update/ProductReviewUpdatedEvent.cs | 11 - .../Update/ProductSubcategoryUpdatedEvent.cs | 11 - .../Events/Update/ProductUpdatedEvent.cs | 11 - .../Update/PurchaseOrderDetailUpdatedEvent.cs | 11 - .../Update/PurchaseOrderHeaderUpdatedEvent.cs | 11 - .../Update/SalesOrderDetailUpdatedEvent.cs | 11 - .../Update/SalesOrderHeaderUpdatedEvent.cs | 11 - .../Events/Update/SalesReasonUpdatedEvent.cs | 11 - .../Events/Update/SalesTaxRateUpdatedEvent.cs | 11 - .../Update/SalesTerritoryUpdatedEvent.cs | 11 - .../Events/Update/ScrapReasonUpdatedEvent.cs | 11 - .../Events/Update/ShiftUpdatedEvent.cs | 11 - .../Events/Update/ShipMethodUpdatedEvent.cs | 11 - .../Update/ShoppingCartItemUpdatedEvent.cs | 11 - .../Events/Update/SpecialOfferUpdatedEvent.cs | 11 - .../Update/StateProvinceUpdatedEvent.cs | 11 - .../Update/TransactionHistoryUpdatedEvent.cs | 11 - .../VJobCandidateEducationUpdatedEvent.cs | 11 - .../VJobCandidateEmploymentUpdatedEvent.cs | 11 - .../Update/VJobCandidateUpdatedEvent.cs | 11 - ...ductModelCatalogDescriptionUpdatedEvent.cs | 11 - .../VProductModelInstructionsUpdatedEvent.cs | 11 - .../Events/Update/WorkOrderUpdatedEvent.cs | 11 - .../Platy.AdventureWorks.Repository.csproj | 4 + .../Repository/AddressRepository.cs | 98 -- .../Repository/AddressTypeRepository.cs | 99 -- .../Repository/BillOfMaterialsRepository.cs | 99 -- .../Repository/BusinessEntityRepository.cs | 99 -- .../Repository/ContactTypeRepository.cs | 99 -- .../Repository/CreditCardRepository.cs | 99 -- .../Repository/CurrencyRateRepository.cs | 99 -- .../Repository/CustomerRepository.cs | 98 -- .../Repository/DepartmentRepository.cs | 99 -- .../Repository/EmailAddressRepository.cs | 99 -- .../Repository/IllustrationRepository.cs | 99 -- .../Repository/JobCandidateRepository.cs | 99 -- .../Repository/LocationRepository.cs | 98 -- .../Repository/PhoneNumberTypeRepository.cs | 99 -- .../Repository/ProductCategoryRepository.cs | 99 -- .../ProductDescriptionRepository.cs | 100 -- .../Repository/ProductModelRepository.cs | 99 -- .../Repository/ProductPhotoRepository.cs | 99 -- .../Repository/ProductRepository.cs | 98 -- .../Repository/ProductReviewRepository.cs | 99 -- .../ProductSubcategoryRepository.cs | 100 -- .../PurchaseOrderDetailRepository.cs | 100 -- .../PurchaseOrderHeaderRepository.cs | 100 -- .../Repository/SalesOrderDetailRepository.cs | 100 -- .../Repository/SalesOrderHeaderRepository.cs | 100 -- .../Repository/SalesReasonRepository.cs | 99 -- .../Repository/SalesTaxRateRepository.cs | 99 -- .../Repository/SalesTerritoryRepository.cs | 99 -- .../Repository/ScrapReasonRepository.cs | 99 -- .../Repository/ShiftRepository.cs | 98 -- .../Repository/ShipMethodRepository.cs | 99 -- .../Repository/ShoppingCartItemRepository.cs | 100 -- .../Repository/SpecialOfferRepository.cs | 99 -- .../Repository/StateProvinceRepository.cs | 99 -- .../TransactionHistoryRepository.cs | 100 -- .../VJobCandidateEducationRepository.cs | 100 -- .../VJobCandidateEmploymentRepository.cs | 100 -- .../Repository/VJobCandidateRepository.cs | 99 -- ...roductModelCatalogDescriptionRepository.cs | 101 -- .../VProductModelInstructionsRepository.cs | 100 -- .../Repository/WorkOrderRepository.cs | 99 -- .../Yaml/Entity/AddressScript.yml | 109 -- .../Yaml/Entity/AddressTypeScript.yml | 62 -- .../Yaml/Entity/BillOfMaterialsScript.yml | 118 --- .../Entity/BusinessEntityAddressScript.yml | 71 -- .../Entity/BusinessEntityContactScript.yml | 71 -- .../Yaml/Entity/BusinessEntityScript.yml | 50 - .../Yaml/Entity/ContactTypeScript.yml | 50 - .../Entity/CountryRegionCurrencyScript.yml | 50 - .../Yaml/Entity/CountryRegionScript.yml | 50 - .../Yaml/Entity/CreditCardScript.yml | 84 -- .../Yaml/Entity/CultureScript.yml | 50 - .../Yaml/Entity/CurrencyRateScript.yml | 95 -- .../Yaml/Entity/CurrencyScript.yml | 50 - .../Yaml/Entity/CustomerScript.yml | 96 -- .../Yaml/Entity/DepartmentScript.yml | 62 -- .../Yaml/Entity/DocumentScript.yml | 168 --- .../Yaml/Entity/EmailAddressScript.yml | 73 -- .../EmployeeDepartmentHistoryScript.yml | 81 -- .../Yaml/Entity/EmployeePayHistoryScript.yml | 70 -- .../Yaml/Entity/EmployeeScript.yml | 191 ---- .../Yaml/Entity/IllustrationScript.yml | 49 - .../Yaml/Entity/JobCandidateScript.yml | 60 -- .../Yaml/Entity/LocationScript.yml | 74 -- .../Yaml/Entity/PasswordScript.yml | 73 -- .../Yaml/Entity/PersonCreditCardScript.yml | 48 - .../Yaml/Entity/PersonPhoneScript.yml | 60 -- .../Yaml/Entity/PersonScript.yml | 167 --- .../Yaml/Entity/PhoneNumberTypeScript.yml | 50 - .../Yaml/Entity/ProductCategoryScript.yml | 62 -- .../Yaml/Entity/ProductCostHistoryScript.yml | 70 -- .../Yaml/Entity/ProductDescriptionScript.yml | 62 -- .../Yaml/Entity/ProductDocumentScript.yml | 37 - .../Yaml/Entity/ProductInventoryScript.yml | 95 -- .../Entity/ProductListPriceHistoryScript.yml | 70 -- .../Entity/ProductModelIllustrationScript.yml | 48 - ...ctModelProductDescriptionCultureScript.yml | 60 -- .../Yaml/Entity/ProductModelScript.yml | 84 -- .../Yaml/Entity/ProductPhotoScript.yml | 86 -- .../Yaml/Entity/ProductProductPhotoScript.yml | 60 -- .../Yaml/Entity/ProductReviewScript.yml | 108 -- .../Yaml/Entity/ProductScript.yml | 303 ------ .../Yaml/Entity/ProductSubcategoryScript.yml | 73 -- .../Yaml/Entity/ProductVendorScript.yml | 137 --- .../Yaml/Entity/PurchaseOrderDetailScript.yml | 139 --- .../Yaml/Entity/PurchaseOrderHeaderScript.yml | 166 --- .../Yaml/Entity/SalesOrderDetailScript.yml | 141 --- .../SalesOrderHeaderSalesReasonScript.yml | 48 - .../Yaml/Entity/SalesOrderHeaderScript.yml | 317 ------ .../Entity/SalesPersonQuotaHistoryScript.yml | 71 -- .../Yaml/Entity/SalesPersonScript.yml | 119 --- .../Yaml/Entity/SalesReasonScript.yml | 62 -- .../Yaml/Entity/SalesTaxRateScript.yml | 96 -- .../Entity/SalesTerritoryHistoryScript.yml | 82 -- .../Yaml/Entity/SalesTerritoryScript.yml | 134 --- .../Yaml/Entity/ScrapReasonScript.yml | 50 - .../Yaml/Entity/ShiftScript.yml | 72 -- .../Yaml/Entity/ShipMethodScript.yml | 86 -- .../Yaml/Entity/ShoppingCartItemScript.yml | 85 -- .../Yaml/Entity/SpecialOfferProductScript.yml | 60 -- .../Yaml/Entity/SpecialOfferScript.yml | 143 --- .../Yaml/Entity/StateProvinceScript.yml | 109 -- .../Yaml/Entity/StoreScript.yml | 83 -- .../TransactionHistoryArchiveScript.yml | 117 -- .../Yaml/Entity/TransactionHistoryScript.yml | 118 --- .../Yaml/Entity/UnitMeasureScript.yml | 50 - .../Entity/VAdditionalContactInfoScript.yml | 215 ---- .../VEmployeeDepartmentHistoryScript.yml | 143 --- .../Yaml/Entity/VEmployeeDepartmentScript.yml | 132 --- .../Yaml/Entity/VEmployeeScript.yml | 227 ---- .../Yaml/Entity/VIndividualCustomerScript.yml | 227 ---- .../Entity/VJobCandidateEducationScript.yml | 168 --- .../Entity/VJobCandidateEmploymentScript.yml | 144 --- .../Yaml/Entity/VJobCandidateScript.yml | 204 ---- .../Yaml/Entity/VPersonDemographicsScript.yml | 162 --- .../Entity/VProductAndDescriptionScript.yml | 73 -- .../VProductModelCatalogDescriptionScript.yml | 312 ------ .../VProductModelInstructionsScript.yml | 139 --- .../VSalesPersonSalesByFiscalYearsScript.yml | 94 -- .../Yaml/Entity/VSalesPersonScript.yml | 273 ----- .../VStateProvinceCountryRegionScript.yml | 95 -- .../Yaml/Entity/VStoreWithAddressesScript.yml | 121 --- .../Yaml/Entity/VStoreWithContactsScript.yml | 156 --- .../Entity/VStoreWithDemographicsScript.yml | 152 --- .../Entity/VVendorWithAddressesScript.yml | 121 --- .../Yaml/Entity/VVendorWithContactsScript.yml | 156 --- .../Yaml/Entity/VendorScript.yml | 108 -- .../Yaml/Entity/WorkOrderRoutingScript.yml | 147 --- .../Yaml/Entity/WorkOrderScript.yml | 127 --- .../entity-generation.yml | 14 +- .../DatabaseFixture.cs | 2 +- 956 files changed, 26 insertions(+), 66530 deletions(-) delete mode 100644 src/Platy.AdventureWorks.Repository/Data/AdventureWorksContext.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/Address.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/AddressType.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/BillOfMaterials.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/BusinessEntity.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/BusinessEntityAddress.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/BusinessEntityContact.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ContactType.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/CountryRegion.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/CountryRegionCurrency.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/CreditCard.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/Culture.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/Currency.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/CurrencyRate.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/Customer.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/Department.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/EmailAddress.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/Employee.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/EmployeeDepartmentHistory.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/EmployeePayHistory.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/Illustration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/JobCandidate.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/Location.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/Password.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/Person.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/PersonCreditCard.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/PersonPhone.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/PhoneNumberType.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/Product.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ProductCategory.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ProductCostHistory.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ProductDescription.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ProductDocument.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ProductInventory.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ProductListPriceHistory.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ProductModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ProductModelIllustration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ProductModelProductDescriptionCulture.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ProductPhoto.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ProductProductPhoto.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ProductReview.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ProductSubcategory.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ProductVendor.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/PurchaseOrderDetail.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/PurchaseOrderHeader.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/SalesOrderDetail.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/SalesOrderHeader.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/SalesOrderHeaderSalesReason.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/SalesPerson.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/SalesPersonQuotaHistory.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/SalesReason.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/SalesTaxRate.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/SalesTerritory.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/SalesTerritoryHistory.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ScrapReason.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/Shift.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ShipMethod.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ShoppingCartItem.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/SpecialOffer.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/SpecialOfferProduct.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/StateProvince.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/Store.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/TransactionHistory.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/TransactionHistoryArchive.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/UnitMeasure.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VAdditionalContactInfo.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VEmployee.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VEmployeeDepartment.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VEmployeeDepartmentHistory.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VIndividualCustomer.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VJobCandidate.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VJobCandidateEducation.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VJobCandidateEmployment.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VPersonDemographics.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VProductAndDescription.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VProductModelCatalogDescription.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VProductModelInstructions.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VSalesPerson.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VSalesPersonSalesByFiscalYears.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VStateProvinceCountryRegion.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithAddresses.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithContacts.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithDemographics.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VVendorWithAddresses.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VVendorWithContacts.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/Vendor.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/WorkOrder.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/WorkOrderRouting.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/AddressConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/AddressTypeConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BillOfMaterialsConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BusinessEntityAddressConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BusinessEntityConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BusinessEntityContactConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ContactTypeConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CountryRegionConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CountryRegionCurrencyConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CreditCardConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CultureConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CurrencyConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CurrencyRateConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CustomerConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/DepartmentConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmailAddressConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmployeeConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmployeeDepartmentHistoryConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmployeePayHistoryConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/IllustrationConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/JobCandidateConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/LocationConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PasswordConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PersonConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PersonCreditCardConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PersonPhoneConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PhoneNumberTypeConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductCategoryConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductCostHistoryConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductDescriptionConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductDocumentConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductInventoryConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductListPriceHistoryConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductModelConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductModelIllustrationConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductModelProductDescriptionCultureConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductPhotoConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductProductPhotoConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductReviewConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductSubcategoryConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductVendorConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PurchaseOrderDetailConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PurchaseOrderHeaderConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesOrderDetailConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesOrderHeaderConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesOrderHeaderSalesReasonConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesPersonConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesPersonQuotaHistoryConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesReasonConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesTaxRateConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesTerritoryConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesTerritoryHistoryConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ScrapReasonConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ShiftConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ShipMethodConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ShoppingCartItemConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SpecialOfferConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SpecialOfferProductConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/StateProvinceConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/StoreConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/TransactionHistoryArchiveConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/TransactionHistoryConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/UnitMeasureConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VAdditionalContactInfoConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VEmployeeConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VEmployeeDepartmentConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VEmployeeDepartmentHistoryConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VIndividualCustomerConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VJobCandidateConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VJobCandidateEducationConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VJobCandidateEmploymentConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VPersonDemographicsConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VProductAndDescriptionConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VProductModelCatalogDescriptionConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VProductModelInstructionsConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VSalesPersonConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VSalesPersonSalesByFiscalYearsConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStateProvinceCountryRegionConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStoreWithAddressesConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStoreWithContactsConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStoreWithDemographicsConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VVendorWithAddressesConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VVendorWithContactsConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VendorConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/WorkOrderConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/WorkOrderRoutingConfiguration.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Address/Mapping/AddressProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Address/Validation/AddressCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Address/Validation/AddressUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/AddressType/Mapping/AddressTypeProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/AddressType/Validation/AddressTypeCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/AddressType/Validation/AddressTypeUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Mapping/BillOfMaterialsProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Validation/BillOfMaterialsCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Validation/BillOfMaterialsUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Mapping/BusinessEntityProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Validation/BusinessEntityCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Validation/BusinessEntityUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Mapping/BusinessEntityAddressProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Models/BusinessEntityAddressCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Models/BusinessEntityAddressReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Models/BusinessEntityAddressUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Validation/BusinessEntityAddressCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Validation/BusinessEntityAddressUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Mapping/BusinessEntityContactProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Models/BusinessEntityContactCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Models/BusinessEntityContactReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Models/BusinessEntityContactUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Validation/BusinessEntityContactCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Validation/BusinessEntityContactUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ContactType/Mapping/ContactTypeProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ContactType/Validation/ContactTypeCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ContactType/Validation/ContactTypeUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Mapping/CountryRegionProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Validation/CountryRegionCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Validation/CountryRegionUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Mapping/CountryRegionCurrencyProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Validation/CountryRegionCurrencyCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Validation/CountryRegionCurrencyUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/CreditCard/Mapping/CreditCardProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/CreditCard/Models/CreditCardCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/CreditCard/Models/CreditCardReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/CreditCard/Models/CreditCardUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/CreditCard/Validation/CreditCardCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/CreditCard/Validation/CreditCardUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Culture/Mapping/CultureProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Culture/Validation/CultureCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Culture/Validation/CultureUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Currency/Mapping/CurrencyProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Currency/Validation/CurrencyCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Currency/Validation/CurrencyUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Mapping/CurrencyRateProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Validation/CurrencyRateCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Validation/CurrencyRateUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Customer/Mapping/CustomerProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Customer/Validation/CustomerCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Customer/Validation/CustomerUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Department/Mapping/DepartmentProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Department/Validation/DepartmentCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Department/Validation/DepartmentUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Mapping/EmailAddressProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Models/EmailAddressCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Models/EmailAddressReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Models/EmailAddressUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Validation/EmailAddressCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Validation/EmailAddressUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Employee/Mapping/EmployeeProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Employee/Models/EmployeeCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Employee/Models/EmployeeReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Employee/Models/EmployeeUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Employee/Validation/EmployeeCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Employee/Validation/EmployeeUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Mapping/EmployeeDepartmentHistoryProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Models/EmployeeDepartmentHistoryCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Models/EmployeeDepartmentHistoryReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Models/EmployeeDepartmentHistoryUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Validation/EmployeeDepartmentHistoryCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Validation/EmployeeDepartmentHistoryUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Mapping/EmployeePayHistoryProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Models/EmployeePayHistoryCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Models/EmployeePayHistoryReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Models/EmployeePayHistoryUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Validation/EmployeePayHistoryCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Validation/EmployeePayHistoryUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Illustration/Mapping/IllustrationProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Illustration/Validation/IllustrationCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Illustration/Validation/IllustrationUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Mapping/JobCandidateProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Validation/JobCandidateCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Validation/JobCandidateUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Location/Mapping/LocationProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Location/Models/LocationCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Location/Models/LocationReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Location/Models/LocationUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Location/Validation/LocationCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Location/Validation/LocationUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Password/Mapping/PasswordProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Password/Models/PasswordCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Password/Models/PasswordReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Password/Models/PasswordUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Password/Validation/PasswordCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Password/Validation/PasswordUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Person/Mapping/PersonProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Person/Models/PersonCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Person/Models/PersonReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Person/Models/PersonUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Person/Validation/PersonCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Person/Validation/PersonUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Mapping/PersonCreditCardProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Validation/PersonCreditCardCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Validation/PersonCreditCardUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Mapping/PersonPhoneProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Validation/PersonPhoneCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Validation/PersonPhoneUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Mapping/PhoneNumberTypeProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Validation/PhoneNumberTypeCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Validation/PhoneNumberTypeUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Product/Mapping/ProductProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Product/Models/ProductCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Product/Models/ProductReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Product/Models/ProductUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Product/Validation/ProductCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Product/Validation/ProductUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Mapping/ProductCategoryProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Validation/ProductCategoryCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Validation/ProductCategoryUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Mapping/ProductCostHistoryProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Models/ProductCostHistoryCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Models/ProductCostHistoryReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Models/ProductCostHistoryUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Validation/ProductCostHistoryCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Validation/ProductCostHistoryUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Mapping/ProductDescriptionProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Validation/ProductDescriptionCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Validation/ProductDescriptionUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Mapping/ProductDocumentProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Validation/ProductDocumentCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Validation/ProductDocumentUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Mapping/ProductInventoryProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Validation/ProductInventoryCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Validation/ProductInventoryUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Mapping/ProductListPriceHistoryProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Models/ProductListPriceHistoryCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Models/ProductListPriceHistoryReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Models/ProductListPriceHistoryUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Validation/ProductListPriceHistoryCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Validation/ProductListPriceHistoryUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModel/Mapping/ProductModelProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModel/Models/ProductModelCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModel/Models/ProductModelReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModel/Models/ProductModelUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModel/Validation/ProductModelCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModel/Validation/ProductModelUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Mapping/ProductModelIllustrationProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Validation/ProductModelIllustrationCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Validation/ProductModelIllustrationUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Mapping/ProductModelProductDescriptionCultureProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Validation/ProductModelProductDescriptionCultureCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Validation/ProductModelProductDescriptionCultureUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Mapping/ProductPhotoProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Models/ProductPhotoCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Models/ProductPhotoReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Models/ProductPhotoUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Validation/ProductPhotoCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Validation/ProductPhotoUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Mapping/ProductProductPhotoProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Validation/ProductProductPhotoCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Validation/ProductProductPhotoUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductReview/Mapping/ProductReviewProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductReview/Validation/ProductReviewCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductReview/Validation/ProductReviewUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Mapping/ProductSubcategoryProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Models/ProductSubcategoryCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Models/ProductSubcategoryReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Models/ProductSubcategoryUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Validation/ProductSubcategoryCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Validation/ProductSubcategoryUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Mapping/ProductVendorProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Validation/ProductVendorCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Validation/ProductVendorUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Mapping/PurchaseOrderDetailProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Validation/PurchaseOrderDetailCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Validation/PurchaseOrderDetailUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Mapping/PurchaseOrderHeaderProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Models/PurchaseOrderHeaderCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Models/PurchaseOrderHeaderReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Models/PurchaseOrderHeaderUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Validation/PurchaseOrderHeaderCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Validation/PurchaseOrderHeaderUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Mapping/SalesOrderDetailProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Validation/SalesOrderDetailCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Validation/SalesOrderDetailUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Mapping/SalesOrderHeaderProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Models/SalesOrderHeaderCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Models/SalesOrderHeaderReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Models/SalesOrderHeaderUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Validation/SalesOrderHeaderCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Validation/SalesOrderHeaderUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Mapping/SalesOrderHeaderSalesReasonProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Validation/SalesOrderHeaderSalesReasonCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Validation/SalesOrderHeaderSalesReasonUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Mapping/SalesPersonProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Validation/SalesPersonCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Validation/SalesPersonUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Mapping/SalesPersonQuotaHistoryProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Models/SalesPersonQuotaHistoryCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Models/SalesPersonQuotaHistoryReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Models/SalesPersonQuotaHistoryUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Validation/SalesPersonQuotaHistoryCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Validation/SalesPersonQuotaHistoryUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesReason/Mapping/SalesReasonProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesReason/Validation/SalesReasonCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesReason/Validation/SalesReasonUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Mapping/SalesTaxRateProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Validation/SalesTaxRateCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Validation/SalesTaxRateUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Mapping/SalesTerritoryProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Validation/SalesTerritoryCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Validation/SalesTerritoryUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Mapping/SalesTerritoryHistoryProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Models/SalesTerritoryHistoryCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Models/SalesTerritoryHistoryReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Models/SalesTerritoryHistoryUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Validation/SalesTerritoryHistoryCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Validation/SalesTerritoryHistoryUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Mapping/ScrapReasonProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Validation/ScrapReasonCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Validation/ScrapReasonUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Shift/Mapping/ShiftProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Shift/Models/ShiftCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Shift/Models/ShiftReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Shift/Models/ShiftUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Shift/Validation/ShiftCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Shift/Validation/ShiftUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Mapping/ShipMethodProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Models/ShipMethodCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Models/ShipMethodReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Models/ShipMethodUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Validation/ShipMethodCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Validation/ShipMethodUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Mapping/ShoppingCartItemProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Models/ShoppingCartItemCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Models/ShoppingCartItemReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Models/ShoppingCartItemUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Validation/ShoppingCartItemCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Validation/ShoppingCartItemUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Mapping/SpecialOfferProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Validation/SpecialOfferCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Validation/SpecialOfferUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Mapping/SpecialOfferProductProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Validation/SpecialOfferProductCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Validation/SpecialOfferProductUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/StateProvince/Mapping/StateProvinceProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/StateProvince/Validation/StateProvinceCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/StateProvince/Validation/StateProvinceUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Store/Mapping/StoreProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Store/Models/StoreCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Store/Models/StoreReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Store/Models/StoreUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Store/Validation/StoreCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Store/Validation/StoreUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Mapping/TransactionHistoryProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Validation/TransactionHistoryCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Validation/TransactionHistoryUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Mapping/TransactionHistoryArchiveProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Validation/TransactionHistoryArchiveCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Validation/TransactionHistoryArchiveUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Mapping/UnitMeasureProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Validation/UnitMeasureCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Validation/UnitMeasureUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Mapping/VAdditionalContactInfoProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Models/VAdditionalContactInfoCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Models/VAdditionalContactInfoReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Models/VAdditionalContactInfoUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Validation/VAdditionalContactInfoCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Validation/VAdditionalContactInfoUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployee/Mapping/VEmployeeProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployee/Models/VEmployeeCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployee/Models/VEmployeeReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployee/Models/VEmployeeUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployee/Validation/VEmployeeCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployee/Validation/VEmployeeUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Mapping/VEmployeeDepartmentProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Validation/VEmployeeDepartmentCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Validation/VEmployeeDepartmentUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Mapping/VEmployeeDepartmentHistoryProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Validation/VEmployeeDepartmentHistoryCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Validation/VEmployeeDepartmentHistoryUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Mapping/VIndividualCustomerProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Models/VIndividualCustomerCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Models/VIndividualCustomerReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Models/VIndividualCustomerUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Validation/VIndividualCustomerCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Validation/VIndividualCustomerUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Mapping/VJobCandidateProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Models/VJobCandidateCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Models/VJobCandidateReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Models/VJobCandidateUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Validation/VJobCandidateCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Validation/VJobCandidateUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Mapping/VJobCandidateEducationProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Models/VJobCandidateEducationCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Models/VJobCandidateEducationReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Models/VJobCandidateEducationUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Validation/VJobCandidateEducationCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Validation/VJobCandidateEducationUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Mapping/VJobCandidateEmploymentProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Validation/VJobCandidateEmploymentCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Validation/VJobCandidateEmploymentUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Mapping/VPersonDemographicsProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Models/VPersonDemographicsCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Models/VPersonDemographicsReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Models/VPersonDemographicsUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Validation/VPersonDemographicsCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Validation/VPersonDemographicsUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Mapping/VProductAndDescriptionProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Models/VProductAndDescriptionCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Models/VProductAndDescriptionReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Models/VProductAndDescriptionUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Validation/VProductAndDescriptionCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Validation/VProductAndDescriptionUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Mapping/VProductModelCatalogDescriptionProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Models/VProductModelCatalogDescriptionCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Models/VProductModelCatalogDescriptionReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Models/VProductModelCatalogDescriptionUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Validation/VProductModelCatalogDescriptionCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Validation/VProductModelCatalogDescriptionUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Mapping/VProductModelInstructionsProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Validation/VProductModelInstructionsCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Validation/VProductModelInstructionsUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Mapping/VSalesPersonProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Models/VSalesPersonCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Models/VSalesPersonReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Models/VSalesPersonUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Validation/VSalesPersonCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Validation/VSalesPersonUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Mapping/VSalesPersonSalesByFiscalYearsProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Validation/VSalesPersonSalesByFiscalYearsCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Validation/VSalesPersonSalesByFiscalYearsUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Mapping/VStateProvinceCountryRegionProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Validation/VStateProvinceCountryRegionCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Validation/VStateProvinceCountryRegionUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Mapping/VStoreWithAddressesProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Validation/VStoreWithAddressesCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Validation/VStoreWithAddressesUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Mapping/VStoreWithContactsProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Validation/VStoreWithContactsCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Validation/VStoreWithContactsUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Mapping/VStoreWithDemographicsProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Validation/VStoreWithDemographicsCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Validation/VStoreWithDemographicsUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Mapping/VVendorWithAddressesProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Validation/VVendorWithAddressesCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Validation/VVendorWithAddressesUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Mapping/VVendorWithContactsProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Validation/VVendorWithContactsCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Validation/VVendorWithContactsUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Vendor/Mapping/VendorProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Vendor/Validation/VendorCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/Vendor/Validation/VendorUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Mapping/WorkOrderProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Validation/WorkOrderCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Validation/WorkOrderUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Mapping/WorkOrderRoutingProfile.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingCreateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingReadModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingUpdateModel.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Validation/WorkOrderRoutingCreateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Validation/WorkOrderRoutingUpdateModelValidator.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/AddressCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/AddressTypeCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/BillOfMaterialsCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/BusinessEntityCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/ContactTypeCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/CreditCardCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/CurrencyRateCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/CustomerCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/DepartmentCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/EmailAddressCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/IllustrationCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/JobCandidateCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/LocationCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/PhoneNumberTypeCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/ProductCategoryCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/ProductCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/ProductDescriptionCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/ProductModelCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/ProductPhotoCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/ProductReviewCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/ProductSubcategoryCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/PurchaseOrderDetailCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/PurchaseOrderHeaderCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/SalesOrderDetailCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/SalesOrderHeaderCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/SalesReasonCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/SalesTaxRateCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/SalesTerritoryCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/ScrapReasonCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/ShiftCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/ShipMethodCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/ShoppingCartItemCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/SpecialOfferCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/StateProvinceCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/TransactionHistoryCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateEducationCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateEmploymentCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/VProductModelCatalogDescriptionCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/VProductModelInstructionsCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/WorkOrderCreatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/AddressDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/AddressTypeDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/BillOfMaterialsDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/BusinessEntityDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/ContactTypeDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/CreditCardDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/CurrencyRateDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/CustomerDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/DepartmentDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/EmailAddressDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/IllustrationDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/JobCandidateDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/LocationDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/PhoneNumberTypeDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/ProductCategoryDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/ProductDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/ProductDescriptionDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/ProductModelDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/ProductPhotoDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/ProductReviewDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/ProductSubcategoryDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/PurchaseOrderDetailDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/PurchaseOrderHeaderDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/SalesOrderDetailDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/SalesOrderHeaderDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/SalesReasonDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/SalesTaxRateDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/SalesTerritoryDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/ScrapReasonDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/ShiftDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/ShipMethodDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/ShoppingCartItemDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/SpecialOfferDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/StateProvinceDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/TransactionHistoryDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateEducationDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateEmploymentDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/VProductModelCatalogDescriptionDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/VProductModelInstructionsDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/WorkOrderDeletedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/AddressTypeUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/AddressUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/BillOfMaterialsUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/BusinessEntityUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/ContactTypeUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/CreditCardUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/CurrencyRateUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/CustomerUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/DepartmentUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/EmailAddressUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/IllustrationUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/JobCandidateUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/LocationUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/PhoneNumberTypeUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/ProductCategoryUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/ProductDescriptionUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/ProductModelUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/ProductPhotoUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/ProductReviewUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/ProductSubcategoryUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/ProductUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/PurchaseOrderDetailUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/PurchaseOrderHeaderUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/SalesOrderDetailUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/SalesOrderHeaderUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/SalesReasonUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/SalesTaxRateUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/SalesTerritoryUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/ScrapReasonUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/ShiftUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/ShipMethodUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/ShoppingCartItemUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/SpecialOfferUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/StateProvinceUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/TransactionHistoryUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateEducationUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateEmploymentUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/VProductModelCatalogDescriptionUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/VProductModelInstructionsUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/WorkOrderUpdatedEvent.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/AddressRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/AddressTypeRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/BillOfMaterialsRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/BusinessEntityRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/ContactTypeRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/CreditCardRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/CurrencyRateRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/CustomerRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/DepartmentRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/EmailAddressRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/IllustrationRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/JobCandidateRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/LocationRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/PhoneNumberTypeRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/ProductCategoryRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/ProductDescriptionRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/ProductModelRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/ProductPhotoRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/ProductRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/ProductReviewRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/ProductSubcategoryRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/PurchaseOrderDetailRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/PurchaseOrderHeaderRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/SalesOrderDetailRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/SalesOrderHeaderRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/SalesReasonRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/SalesTaxRateRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/SalesTerritoryRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/ScrapReasonRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/ShiftRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/ShipMethodRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/ShoppingCartItemRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/SpecialOfferRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/StateProvinceRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/TransactionHistoryRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/VJobCandidateEducationRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/VJobCandidateEmploymentRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/VJobCandidateRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/VProductModelCatalogDescriptionRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/VProductModelInstructionsRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Repository/WorkOrderRepository.cs delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/AddressScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/AddressTypeScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/BillOfMaterialsScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/BusinessEntityAddressScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/BusinessEntityContactScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/BusinessEntityScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ContactTypeScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/CountryRegionCurrencyScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/CountryRegionScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/CreditCardScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/CultureScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/CurrencyRateScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/CurrencyScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/CustomerScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/DepartmentScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/DocumentScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/EmailAddressScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/EmployeeDepartmentHistoryScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/EmployeePayHistoryScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/EmployeeScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/IllustrationScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/JobCandidateScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/LocationScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/PasswordScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/PersonCreditCardScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/PersonPhoneScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/PersonScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/PhoneNumberTypeScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductCategoryScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductCostHistoryScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductDescriptionScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductDocumentScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductInventoryScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductListPriceHistoryScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductModelIllustrationScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductModelProductDescriptionCultureScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductModelScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductPhotoScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductProductPhotoScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductReviewScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductSubcategoryScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductVendorScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/PurchaseOrderDetailScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/PurchaseOrderHeaderScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesOrderDetailScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesOrderHeaderSalesReasonScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesOrderHeaderScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesPersonQuotaHistoryScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesPersonScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesReasonScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesTaxRateScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesTerritoryHistoryScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesTerritoryScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ScrapReasonScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ShiftScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ShipMethodScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ShoppingCartItemScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/SpecialOfferProductScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/SpecialOfferScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/StateProvinceScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/StoreScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/TransactionHistoryArchiveScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/TransactionHistoryScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/UnitMeasureScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VAdditionalContactInfoScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VEmployeeDepartmentHistoryScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VEmployeeDepartmentScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VEmployeeScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VIndividualCustomerScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VJobCandidateEducationScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VJobCandidateEmploymentScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VJobCandidateScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VPersonDemographicsScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VProductAndDescriptionScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VProductModelCatalogDescriptionScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VProductModelInstructionsScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VSalesPersonSalesByFiscalYearsScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VSalesPersonScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VStateProvinceCountryRegionScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VStoreWithAddressesScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VStoreWithContactsScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VStoreWithDemographicsScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VVendorWithAddressesScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VVendorWithContactsScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VendorScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/WorkOrderRoutingScript.yml delete mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/WorkOrderScript.yml diff --git a/Directory.Build.props b/Directory.Build.props index d24b26a..88c52bb 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,7 @@  true + true false net9.0 diff --git a/Directory.Packages.props b/Directory.Packages.props index b62d6d3..a81deae 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -26,14 +26,14 @@ - + - - - + + + diff --git a/EntityFrameworkCore.Generator b/EntityFrameworkCore.Generator index f528283..dfafaa3 160000 --- a/EntityFrameworkCore.Generator +++ b/EntityFrameworkCore.Generator @@ -1 +1 @@ -Subproject commit f52828367c32edf1adedcfd8506685dc2c117449 +Subproject commit dfafaa3364144af995d747b278d70a5ee78ad433 diff --git a/README.md b/README.md index 707ac2a..99a11d3 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,12 @@ A project template that I use to quickly create a set of repository classes for # Build solution -First, initialize the submodule using `git submodule update --init`. +First, initialize the submodules using `git submodule update --init`. -Build the solution - `Platy.AdventureWorks.Repostory.sln` +Build the solution - `Platy.AdventureWorks.Repository.sln`. + +Open the solution - `EntityFrameworkCore.Generator/EntityFrameworkCore.Generator.sln` and build it. +This is one of the submodules downloaded. + +Execute the command `..\..\efg\EntityFrameworkCore.Generator.exe generate -f .\entity-generation.yml`. +This generates the domain files. Make sure adventure works database is available. diff --git a/src/Platy.AdventureWorks.Repository/Data/AdventureWorksContext.cs b/src/Platy.AdventureWorks.Repository/Data/AdventureWorksContext.cs deleted file mode 100644 index aa67d87..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/AdventureWorksContext.cs +++ /dev/null @@ -1,995 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -namespace Platy.AdventureWorks.Repository.Data; - -/// -/// A instance represents a session with the database and can be used to query and save -/// instances of entities. -/// -internal class AdventureWorksContext : DbContext -{ - /// - /// Initializes a new instance of the class. - /// - /// The GeneratorOptions to be used by this . - public AdventureWorksContext(DbContextOptions options) - : base(options) - { - } - - /// - /// Configure the model that was discovered from the entity types exposed in - /// properties on this context. - /// - /// The builder being used to construct the model for this context. - protected override void OnModelCreating(ModelBuilder modelBuilder) - { - #region Generated Configuration - - modelBuilder.ApplyConfiguration(new AddressConfiguration()); - modelBuilder.ApplyConfiguration(new AddressTypeConfiguration()); - modelBuilder.ApplyConfiguration(new BillOfMaterialsConfiguration()); - modelBuilder.ApplyConfiguration(new BusinessEntityAddressConfiguration()); - modelBuilder.ApplyConfiguration(new BusinessEntityConfiguration()); - modelBuilder.ApplyConfiguration(new BusinessEntityContactConfiguration()); - modelBuilder.ApplyConfiguration(new ContactTypeConfiguration()); - modelBuilder.ApplyConfiguration(new CountryRegionConfiguration()); - modelBuilder.ApplyConfiguration(new CountryRegionCurrencyConfiguration()); - modelBuilder.ApplyConfiguration(new CreditCardConfiguration()); - modelBuilder.ApplyConfiguration(new CultureConfiguration()); - modelBuilder.ApplyConfiguration(new CurrencyConfiguration()); - modelBuilder.ApplyConfiguration(new CurrencyRateConfiguration()); - modelBuilder.ApplyConfiguration(new CustomerConfiguration()); - modelBuilder.ApplyConfiguration(new DepartmentConfiguration()); - modelBuilder.ApplyConfiguration(new EmailAddressConfiguration()); - modelBuilder.ApplyConfiguration(new EmployeeConfiguration()); - modelBuilder.ApplyConfiguration(new EmployeeDepartmentHistoryConfiguration()); - modelBuilder.ApplyConfiguration(new EmployeePayHistoryConfiguration()); - modelBuilder.ApplyConfiguration(new IllustrationConfiguration()); - modelBuilder.ApplyConfiguration(new JobCandidateConfiguration()); - modelBuilder.ApplyConfiguration(new LocationConfiguration()); - modelBuilder.ApplyConfiguration(new PasswordConfiguration()); - modelBuilder.ApplyConfiguration(new PersonConfiguration()); - modelBuilder.ApplyConfiguration(new PersonCreditCardConfiguration()); - modelBuilder.ApplyConfiguration(new PersonPhoneConfiguration()); - modelBuilder.ApplyConfiguration(new PhoneNumberTypeConfiguration()); - modelBuilder.ApplyConfiguration(new ProductCategoryConfiguration()); - modelBuilder.ApplyConfiguration(new ProductConfiguration()); - modelBuilder.ApplyConfiguration(new ProductCostHistoryConfiguration()); - modelBuilder.ApplyConfiguration(new ProductDescriptionConfiguration()); - modelBuilder.ApplyConfiguration(new ProductDocumentConfiguration()); - modelBuilder.ApplyConfiguration(new ProductInventoryConfiguration()); - modelBuilder.ApplyConfiguration(new ProductListPriceHistoryConfiguration()); - modelBuilder.ApplyConfiguration(new ProductModelConfiguration()); - modelBuilder.ApplyConfiguration(new ProductModelIllustrationConfiguration()); - modelBuilder.ApplyConfiguration(new ProductModelProductDescriptionCultureConfiguration()); - modelBuilder.ApplyConfiguration(new ProductPhotoConfiguration()); - modelBuilder.ApplyConfiguration(new ProductProductPhotoConfiguration()); - modelBuilder.ApplyConfiguration(new ProductReviewConfiguration()); - modelBuilder.ApplyConfiguration(new ProductSubcategoryConfiguration()); - modelBuilder.ApplyConfiguration(new ProductVendorConfiguration()); - modelBuilder.ApplyConfiguration(new PurchaseOrderDetailConfiguration()); - modelBuilder.ApplyConfiguration(new PurchaseOrderHeaderConfiguration()); - modelBuilder.ApplyConfiguration(new SalesOrderDetailConfiguration()); - modelBuilder.ApplyConfiguration(new SalesOrderHeaderConfiguration()); - modelBuilder.ApplyConfiguration(new SalesOrderHeaderSalesReasonConfiguration()); - modelBuilder.ApplyConfiguration(new SalesPersonConfiguration()); - modelBuilder.ApplyConfiguration(new SalesPersonQuotaHistoryConfiguration()); - modelBuilder.ApplyConfiguration(new SalesReasonConfiguration()); - modelBuilder.ApplyConfiguration(new SalesTaxRateConfiguration()); - modelBuilder.ApplyConfiguration(new SalesTerritoryConfiguration()); - modelBuilder.ApplyConfiguration(new SalesTerritoryHistoryConfiguration()); - modelBuilder.ApplyConfiguration(new ScrapReasonConfiguration()); - modelBuilder.ApplyConfiguration(new ShiftConfiguration()); - modelBuilder.ApplyConfiguration(new ShipMethodConfiguration()); - modelBuilder.ApplyConfiguration(new ShoppingCartItemConfiguration()); - modelBuilder.ApplyConfiguration(new SpecialOfferConfiguration()); - modelBuilder.ApplyConfiguration(new SpecialOfferProductConfiguration()); - modelBuilder.ApplyConfiguration(new StateProvinceConfiguration()); - modelBuilder.ApplyConfiguration(new StoreConfiguration()); - modelBuilder.ApplyConfiguration(new TransactionHistoryArchiveConfiguration()); - modelBuilder.ApplyConfiguration(new TransactionHistoryConfiguration()); - modelBuilder.ApplyConfiguration(new UnitMeasureConfiguration()); - modelBuilder.ApplyConfiguration(new VAdditionalContactInfoConfiguration()); - modelBuilder.ApplyConfiguration(new VEmployeeConfiguration()); - modelBuilder.ApplyConfiguration(new VEmployeeDepartmentConfiguration()); - modelBuilder.ApplyConfiguration(new VEmployeeDepartmentHistoryConfiguration()); - modelBuilder.ApplyConfiguration(new VendorConfiguration()); - modelBuilder.ApplyConfiguration(new VIndividualCustomerConfiguration()); - modelBuilder.ApplyConfiguration(new VJobCandidateConfiguration()); - modelBuilder.ApplyConfiguration(new VJobCandidateEducationConfiguration()); - modelBuilder.ApplyConfiguration(new VJobCandidateEmploymentConfiguration()); - modelBuilder.ApplyConfiguration(new VPersonDemographicsConfiguration()); - modelBuilder.ApplyConfiguration(new VProductAndDescriptionConfiguration()); - modelBuilder.ApplyConfiguration(new VProductModelCatalogDescriptionConfiguration()); - modelBuilder.ApplyConfiguration(new VProductModelInstructionsConfiguration()); - modelBuilder.ApplyConfiguration(new VSalesPersonConfiguration()); - modelBuilder.ApplyConfiguration(new VSalesPersonSalesByFiscalYearsConfiguration()); - modelBuilder.ApplyConfiguration(new VStateProvinceCountryRegionConfiguration()); - modelBuilder.ApplyConfiguration(new VStoreWithAddressesConfiguration()); - modelBuilder.ApplyConfiguration(new VStoreWithContactsConfiguration()); - modelBuilder.ApplyConfiguration(new VStoreWithDemographicsConfiguration()); - modelBuilder.ApplyConfiguration(new VVendorWithAddressesConfiguration()); - modelBuilder.ApplyConfiguration(new VVendorWithContactsConfiguration()); - modelBuilder.ApplyConfiguration(new WorkOrderConfiguration()); - modelBuilder.ApplyConfiguration(new WorkOrderRoutingConfiguration()); - - #endregion - } - - #region Generated Properties - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet
Addresses { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet AddressTypes { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet BillOfMaterials { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet BusinessEntities { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet BusinessEntityAddresses { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet BusinessEntityContacts { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet ContactTypes { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet CountryRegionCurrencies { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet CountryRegions { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet CreditCards { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet Cultures { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet Currencies { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet CurrencyRates { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet Customers { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet Departments { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet EmailAddresses { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet EmployeeDepartmentHistories { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet EmployeePayHistories { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet Employees { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet Illustrations { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet JobCandidates { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet Locations { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet Passwords { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet People { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet PersonCreditCards { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet PersonPhones { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet PhoneNumberTypes { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet ProductCategories { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet ProductCostHistories { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet ProductDescriptions { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet ProductDocuments { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet ProductInventories { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet ProductListPriceHistories { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet ProductModelIllustrations { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet ProductModelProductDescriptionCultures { get; set; } = - null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet ProductModels { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet ProductPhotos { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet ProductProductPhotos { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet ProductReviews { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet Products { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet ProductSubcategories { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet ProductVendors { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet PurchaseOrderDetails { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet PurchaseOrderHeaders { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet SalesOrderDetails { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet SalesOrderHeaders { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet SalesOrderHeaderSalesReasons { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet SalesPeople { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet SalesPersonQuotaHistories { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet SalesReasons { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet SalesTaxRates { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet SalesTerritories { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet SalesTerritoryHistories { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet ScrapReasons { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet Shifts { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet ShipMethods { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet ShoppingCartItems { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet SpecialOfferProducts { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet SpecialOffers { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet StateProvinces { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet Stores { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet TransactionHistories { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet TransactionHistoryArchives { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet UnitMeasures { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet VAdditionalContactInfos { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet VEmployeeDepartmentHistories { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet VEmployeeDepartments { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet VEmployees { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet Vendors { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet VIndividualCustomers { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet VJobCandidateEducations { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet VJobCandidateEmployments { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet VJobCandidates { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet VPersonDemographics { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet VProductAndDescriptions { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet VProductModelCatalogDescriptions { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet VProductModelInstructions { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet VSalesPeople { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet VSalesPersonSalesByFiscalYears { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet VStateProvinceCountryRegions { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet VStoreWithAddresses { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet VStoreWithContacts { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet VStoreWithDemographics { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet VVendorWithAddresses { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet VVendorWithContacts { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet WorkOrderRoutings { get; set; } = null!; - - /// - /// Gets or sets the that can be used to query and save instances - /// of . - /// - /// - /// The that can be used to query and save instances of - /// . - /// - public virtual DbSet WorkOrders { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Address.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Address.cs deleted file mode 100644 index 52c327e..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/Address.cs +++ /dev/null @@ -1,141 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'Address'. -/// -[Table("Address", Schema = "Person")] -public class Address - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public Address() - { - #region Generated Constructor - - BillToSalesOrderHeaders = new HashSet(); - BusinessEntityAddresses = new HashSet(); - ShipToSalesOrderHeaders = new HashSet(); - - #endregion - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'AddressID'. - /// - /// - /// The property value representing column 'AddressID'. - /// - [Key] - [Column("AddressID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'AddressLine1'. - /// - /// - /// The property value representing column 'AddressLine1'. - /// - [Column("AddressLine1", TypeName = "nvarchar(60)")] - public string AddressLine1 { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'AddressLine2'. - /// - /// - /// The property value representing column 'AddressLine2'. - /// - [Column("AddressLine2", TypeName = "nvarchar(60)")] - public string? AddressLine2 { get; set; } - - /// - /// Gets or sets the property value representing column 'City'. - /// - /// - /// The property value representing column 'City'. - /// - /// Gets or sets the property value representing column 'StateProvinceID'. - /// - /// - /// The property value representing column 'StateProvinceID'. - /// - [Column("StateProvinceID", TypeName = "int")] - public int StateProvinceId { get; set; } - - /// - /// Gets or sets the property value representing column 'PostalCode'. - /// - /// - /// The property value representing column 'PostalCode'. - /// - [Column("PostalCode", TypeName = "nvarchar(15)")] - public string PostalCode { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection BillToSalesOrderHeaders { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection BusinessEntityAddresses { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection ShipToSalesOrderHeaders { get; set; } - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual StateProvince StateProvince { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/AddressType.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/AddressType.cs deleted file mode 100644 index 6d5f90b..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/AddressType.cs +++ /dev/null @@ -1,78 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'AddressType'. -/// -[Table("AddressType", Schema = "Person")] -public class AddressType - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public AddressType() - { - #region Generated Constructor - - BusinessEntityAddresses = new HashSet(); - - #endregion - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection BusinessEntityAddresses { get; set; } - - #endregion - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'AddressTypeID'. - /// - /// - /// The property value representing column 'AddressTypeID'. - /// - [Key] - [Column("AddressTypeID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'Name'. - /// - /// - /// The property value representing column 'Name'. - /// - [Column("Name", TypeName = "nvarchar(50)")] - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/BillOfMaterials.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/BillOfMaterials.cs deleted file mode 100644 index 46a59fa..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/BillOfMaterials.cs +++ /dev/null @@ -1,137 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'BillOfMaterials'. -/// -[Table("BillOfMaterials", Schema = "Production")] -public class BillOfMaterials - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public BillOfMaterials() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'BillOfMaterialsID'. - /// - /// - /// The property value representing column 'BillOfMaterialsID'. - /// - [Key] - [Column("BillOfMaterialsID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'ProductAssemblyID'. - /// - /// - /// The property value representing column 'ProductAssemblyID'. - /// - [Column("ProductAssemblyID", TypeName = "int")] - public int? ProductAssemblyId { get; set; } - - /// - /// Gets or sets the property value representing column 'ComponentID'. - /// - /// - /// The property value representing column 'ComponentID'. - /// - [Column("ComponentID", TypeName = "int")] - public int ComponentId { get; set; } - - /// - /// Gets or sets the property value representing column 'StartDate'. - /// - /// - /// The property value representing column 'StartDate'. - /// - [Column("StartDate", TypeName = "datetime")] - public DateTime StartDate { get; set; } - - /// - /// Gets or sets the property value representing column 'EndDate'. - /// - /// - /// The property value representing column 'EndDate'. - /// - [Column("EndDate", TypeName = "datetime")] - public DateTime? EndDate { get; set; } - - /// - /// Gets or sets the property value representing column 'UnitMeasureCode'. - /// - /// - /// The property value representing column 'UnitMeasureCode'. - /// - [Column("UnitMeasureCode", TypeName = "nchar(3)")] - public string UnitMeasureCode { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'BOMLevel'. - /// - /// - /// The property value representing column 'BOMLevel'. - /// - [Column("BOMLevel", TypeName = "smallint")] - public short BOMLevel { get; set; } - - /// - /// Gets or sets the property value representing column 'PerAssemblyQty'. - /// - /// - /// The property value representing column 'PerAssemblyQty'. - /// - [Column("PerAssemblyQty", TypeName = "decimal(8,2)")] - public decimal PerAssemblyQty { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Product? AssemblyProduct { get; set; } - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Product ComponentProduct { get; set; } = null!; - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual UnitMeasure UnitMeasure { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/BusinessEntity.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/BusinessEntity.cs deleted file mode 100644 index 3359043..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/BusinessEntity.cs +++ /dev/null @@ -1,105 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'BusinessEntity'. -/// -[Table("BusinessEntity", Schema = "Person")] -public class BusinessEntity - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public BusinessEntity() - { - #region Generated Constructor - - BusinessEntityAddresses = new HashSet(); - BusinessEntityContacts = new HashSet(); - - #endregion - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'BusinessEntityID'. - /// - /// - /// The property value representing column 'BusinessEntityID'. - /// - [Key] - [Column("BusinessEntityID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection BusinessEntityAddresses { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection BusinessEntityContacts { get; set; } - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Person Person { get; set; } = null!; - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Store Store { get; set; } = null!; - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Vendor Vendor { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/BusinessEntityAddress.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/BusinessEntityAddress.cs deleted file mode 100644 index 9d48419..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/BusinessEntityAddress.cs +++ /dev/null @@ -1,101 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'BusinessEntityAddress'. -/// -[Table("BusinessEntityAddress", Schema = "Person")] -public class BusinessEntityAddress -{ - /// - /// Initializes a new instance of the class. - /// - public BusinessEntityAddress() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'BusinessEntityID'. - /// - /// - /// The property value representing column 'BusinessEntityID'. - /// - [Key] - [Column("BusinessEntityID", TypeName = "int")] - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value representing column 'AddressID'. - /// - /// - /// The property value representing column 'AddressID'. - /// - [Key] - [Column("AddressID", TypeName = "int")] - public int AddressId { get; set; } - - /// - /// Gets or sets the property value representing column 'AddressTypeID'. - /// - /// - /// The property value representing column 'AddressTypeID'. - /// - [Key] - [Column("AddressTypeID", TypeName = "int")] - public int AddressTypeId { get; set; } - - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Address Address { get; set; } = null!; - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual AddressType AddressType { get; set; } = null!; - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual BusinessEntity BusinessEntity { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/BusinessEntityContact.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/BusinessEntityContact.cs deleted file mode 100644 index add3ac5..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/BusinessEntityContact.cs +++ /dev/null @@ -1,101 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'BusinessEntityContact'. -/// -[Table("BusinessEntityContact", Schema = "Person")] -public class BusinessEntityContact -{ - /// - /// Initializes a new instance of the class. - /// - public BusinessEntityContact() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'BusinessEntityID'. - /// - /// - /// The property value representing column 'BusinessEntityID'. - /// - [Key] - [Column("BusinessEntityID", TypeName = "int")] - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value representing column 'PersonID'. - /// - /// - /// The property value representing column 'PersonID'. - /// - [Key] - [Column("PersonID", TypeName = "int")] - public int PersonId { get; set; } - - /// - /// Gets or sets the property value representing column 'ContactTypeID'. - /// - /// - /// The property value representing column 'ContactTypeID'. - /// - [Key] - [Column("ContactTypeID", TypeName = "int")] - public int ContactTypeId { get; set; } - - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual BusinessEntity BusinessEntity { get; set; } = null!; - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual ContactType ContactType { get; set; } = null!; - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Person Person { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ContactType.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ContactType.cs deleted file mode 100644 index 7d3c81c..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ContactType.cs +++ /dev/null @@ -1,69 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'ContactType'. -/// -[Table("ContactType", Schema = "Person")] -public class ContactType - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public ContactType() - { - #region Generated Constructor - - BusinessEntityContacts = new HashSet(); - - #endregion - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection BusinessEntityContacts { get; set; } - - #endregion - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'ContactTypeID'. - /// - /// - /// The property value representing column 'ContactTypeID'. - /// - [Key] - [Column("ContactTypeID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'Name'. - /// - /// - /// The property value representing column 'Name'. - /// - [Column("Name", TypeName = "nvarchar(50)")] - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/CountryRegion.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/CountryRegion.cs deleted file mode 100644 index 0cf0ff6..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/CountryRegion.cs +++ /dev/null @@ -1,85 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'CountryRegion'. -/// -[Table("CountryRegion", Schema = "Person")] -public class CountryRegion -{ - /// - /// Initializes a new instance of the class. - /// - public CountryRegion() - { - #region Generated Constructor - - CountryRegionCurrencies = new HashSet(); - SalesTerritories = new HashSet(); - StateProvinces = new HashSet(); - - #endregion - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'CountryRegionCode'. - /// - /// - /// The property value representing column 'CountryRegionCode'. - /// - [Key] - [Column("CountryRegionCode", TypeName = "nvarchar(3)")] - public string CountryRegionCode { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'Name'. - /// - /// - /// The property value representing column 'Name'. - /// - [Column("Name", TypeName = "nvarchar(50)")] - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection CountryRegionCurrencies { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection SalesTerritories { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection StateProvinces { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/CountryRegionCurrency.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/CountryRegionCurrency.cs deleted file mode 100644 index 656bd3b..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/CountryRegionCurrency.cs +++ /dev/null @@ -1,73 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'CountryRegionCurrency'. -/// -[Table("CountryRegionCurrency", Schema = "Sales")] -public class CountryRegionCurrency -{ - /// - /// Initializes a new instance of the class. - /// - public CountryRegionCurrency() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'CountryRegionCode'. - /// - /// - /// The property value representing column 'CountryRegionCode'. - /// - [Key] - [Column("CountryRegionCode", TypeName = "nvarchar(3)")] - public string CountryRegionCode { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'CurrencyCode'. - /// - /// - /// The property value representing column 'CurrencyCode'. - /// - [Key] - [Column("CurrencyCode", TypeName = "nchar(3)")] - public string CurrencyCode { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual CountryRegion CountryRegion { get; set; } = null!; - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Currency Currency { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/CreditCard.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/CreditCard.cs deleted file mode 100644 index c422e73..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/CreditCard.cs +++ /dev/null @@ -1,105 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'CreditCard'. -/// -[Table("CreditCard", Schema = "Sales")] -public class CreditCard - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public CreditCard() - { - #region Generated Constructor - - PersonCreditCards = new HashSet(); - SalesOrderHeaders = new HashSet(); - - #endregion - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'CreditCardID'. - /// - /// - /// The property value representing column 'CreditCardID'. - /// - [Key] - [Column("CreditCardID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'CardType'. - /// - /// - /// The property value representing column 'CardType'. - /// - [Column("CardType", TypeName = "nvarchar(50)")] - public string CardType { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'CardNumber'. - /// - /// - /// The property value representing column 'CardNumber'. - /// - [Column("CardNumber", TypeName = "nvarchar(25)")] - public string CardNumber { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'ExpMonth'. - /// - /// - /// The property value representing column 'ExpMonth'. - /// - [Column("ExpMonth", TypeName = "tinyint")] - public byte ExpMonth { get; set; } - - /// - /// Gets or sets the property value representing column 'ExpYear'. - /// - /// - /// The property value representing column 'ExpYear'. - /// - [Column("ExpYear", TypeName = "smallint")] - public short ExpYear { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection PersonCreditCards { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection SalesOrderHeaders { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Culture.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Culture.cs deleted file mode 100644 index 946149e..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/Culture.cs +++ /dev/null @@ -1,67 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'Culture'. -/// -[Table("Culture", Schema = "Production")] -public class Culture -{ - /// - /// Initializes a new instance of the class. - /// - public Culture() - { - #region Generated Constructor - - ProductModelProductDescriptionCultures = new HashSet(); - - #endregion - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection ProductModelProductDescriptionCultures { get; set; } - - #endregion - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'CultureID'. - /// - /// - /// The property value representing column 'CultureID'. - /// - [Key] - [Column("CultureID", TypeName = "nchar(6)")] - public string Id { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'Name'. - /// - /// - /// The property value representing column 'Name'. - /// - [Column("Name", TypeName = "nvarchar(50)")] - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Currency.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Currency.cs deleted file mode 100644 index 590e008..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/Currency.cs +++ /dev/null @@ -1,85 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'Currency'. -/// -[Table("Currency", Schema = "Sales")] -public class Currency -{ - /// - /// Initializes a new instance of the class. - /// - public Currency() - { - #region Generated Constructor - - CountryRegionCurrencies = new HashSet(); - FromCurrencyRates = new HashSet(); - ToCurrencyRates = new HashSet(); - - #endregion - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'CurrencyCode'. - /// - /// - /// The property value representing column 'CurrencyCode'. - /// - [Key] - [Column("CurrencyCode", TypeName = "nchar(3)")] - public string CurrencyCode { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'Name'. - /// - /// - /// The property value representing column 'Name'. - /// - [Column("Name", TypeName = "nvarchar(50)")] - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection CountryRegionCurrencies { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection FromCurrencyRates { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection ToCurrencyRates { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/CurrencyRate.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/CurrencyRate.cs deleted file mode 100644 index 2e0c550..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/CurrencyRate.cs +++ /dev/null @@ -1,123 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'CurrencyRate'. -/// -[Table("CurrencyRate", Schema = "Sales")] -public class CurrencyRate - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public CurrencyRate() - { - #region Generated Constructor - - SalesOrderHeaders = new HashSet(); - - #endregion - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'CurrencyRateID'. - /// - /// - /// The property value representing column 'CurrencyRateID'. - /// - [Key] - [Column("CurrencyRateID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'CurrencyRateDate'. - /// - /// - /// The property value representing column 'CurrencyRateDate'. - /// - [Column("CurrencyRateDate", TypeName = "datetime")] - public DateTime CurrencyRateDate { get; set; } - - /// - /// Gets or sets the property value representing column 'FromCurrencyCode'. - /// - /// - /// The property value representing column 'FromCurrencyCode'. - /// - [Column("FromCurrencyCode", TypeName = "nchar(3)")] - public string FromCurrencyCode { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'ToCurrencyCode'. - /// - /// - /// The property value representing column 'ToCurrencyCode'. - /// - [Column("ToCurrencyCode", TypeName = "nchar(3)")] - public string ToCurrencyCode { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'AverageRate'. - /// - /// - /// The property value representing column 'AverageRate'. - /// - [Column("AverageRate", TypeName = "money")] - public decimal AverageRate { get; set; } - - /// - /// Gets or sets the property value representing column 'EndOfDayRate'. - /// - /// - /// The property value representing column 'EndOfDayRate'. - /// - [Column("EndOfDayRate", TypeName = "money")] - public decimal EndOfDayRate { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Currency FromCurrency { get; set; } = null!; - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection SalesOrderHeaders { get; set; } - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Currency ToCurrency { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Customer.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Customer.cs deleted file mode 100644 index de79123..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/Customer.cs +++ /dev/null @@ -1,133 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'Customer'. -/// -[Table("Customer", Schema = "Sales")] -public class Customer - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public Customer() - { - #region Generated Constructor - - SalesOrderHeaders = new HashSet(); - - #endregion - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'CustomerID'. - /// - /// - /// The property value representing column 'CustomerID'. - /// - [Key] - [Column("CustomerID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'PersonID'. - /// - /// - /// The property value representing column 'PersonID'. - /// - [Column("PersonID", TypeName = "int")] - public int? PersonId { get; set; } - - /// - /// Gets or sets the property value representing column 'StoreID'. - /// - /// - /// The property value representing column 'StoreID'. - /// - [Column("StoreID", TypeName = "int")] - public int? StoreId { get; set; } - - /// - /// Gets or sets the property value representing column 'TerritoryID'. - /// - /// - /// The property value representing column 'TerritoryID'. - /// - [Column("TerritoryID", TypeName = "int")] - public int? TerritoryId { get; set; } - - /// - /// Gets or sets the property value representing column 'AccountNumber'. - /// - /// - /// The property value representing column 'AccountNumber'. - /// - [Column("AccountNumber", TypeName = "varchar(10)")] - [DatabaseGenerated(DatabaseGeneratedOption.Computed)] - public string AccountNumber { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Person? Person { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection SalesOrderHeaders { get; set; } - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual SalesTerritory? SalesTerritory { get; set; } - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Store? Store { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Department.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Department.cs deleted file mode 100644 index ec5f61b..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/Department.cs +++ /dev/null @@ -1,78 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'Department'. -/// -[Table("Department", Schema = "HumanResources")] -public class Department - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public Department() - { - #region Generated Constructor - - EmployeeDepartmentHistories = new HashSet(); - - #endregion - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection EmployeeDepartmentHistories { get; set; } - - #endregion - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'DepartmentID'. - /// - /// - /// The property value representing column 'DepartmentID'. - /// - [Key] - [Column("DepartmentID", TypeName = "smallint")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public short Id { get; set; } - - /// - /// Gets or sets the property value representing column 'Name'. - /// - /// - /// The property value representing column 'Name'. - /// - [Column("Name", TypeName = "nvarchar(50)")] - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'GroupName'. - /// - /// - /// The property value representing column 'GroupName'. - /// - [Column("GroupName", TypeName = "nvarchar(50)")] - public string GroupName { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/EmailAddress.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/EmailAddress.cs deleted file mode 100644 index b305004..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/EmailAddress.cs +++ /dev/null @@ -1,84 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'EmailAddress'. -/// -[Table("EmailAddress", Schema = "Person")] -public class EmailAddress - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public EmailAddress() - { - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Person Person { get; set; } = null!; - - #endregion - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'BusinessEntityID'. - /// - /// - /// The property value representing column 'BusinessEntityID'. - /// - [Key] - [Column("BusinessEntityID", TypeName = "int")] - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value representing column 'EmailAddressID'. - /// - /// - /// The property value representing column 'EmailAddressID'. - /// - [Key] - [Column("EmailAddressID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'EmailAddress'. - /// - /// - /// The property value representing column 'EmailAddress'. - /// - [Column("EmailAddress", TypeName = "nvarchar(50)")] - public string? EmailAddressMember { get; set; } - - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Employee.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Employee.cs deleted file mode 100644 index 4796d73..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/Employee.cs +++ /dev/null @@ -1,221 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'Employee'. -/// -[Table("Employee", Schema = "HumanResources")] -public class Employee -{ - /// - /// Initializes a new instance of the class. - /// - public Employee() - { - #region Generated Constructor - - EmployeeDepartmentHistories = new HashSet(); - EmployeePayHistories = new HashSet(); - JobCandidates = new HashSet(); - PurchaseOrderHeaders = new HashSet(); - - #endregion - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'BusinessEntityID'. - /// - /// - /// The property value representing column 'BusinessEntityID'. - /// - [Key] - [Column("BusinessEntityID", TypeName = "int")] - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value representing column 'NationalIDNumber'. - /// - /// - /// The property value representing column 'NationalIDNumber'. - /// - [Column("NationalIDNumber", TypeName = "nvarchar(15)")] - public string NationalIdNumber { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'LoginID'. - /// - /// - /// The property value representing column 'LoginID'. - /// - [Column("LoginID", TypeName = "nvarchar(256)")] - public string LoginId { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'OrganizationLevel'. - /// - /// - /// The property value representing column 'OrganizationLevel'. - /// - [Column("OrganizationLevel", TypeName = "smallint")] - [DatabaseGenerated(DatabaseGeneratedOption.Computed)] - public short? OrganizationLevel { get; set; } - - /// - /// Gets or sets the property value representing column 'JobTitle'. - /// - /// - /// The property value representing column 'JobTitle'. - /// - [Column("JobTitle", TypeName = "nvarchar(50)")] - public string JobTitle { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'BirthDate'. - /// - /// - /// The property value representing column 'BirthDate'. - /// - [Column("BirthDate", TypeName = "date")] - public DateOnly BirthDate { get; set; } - - /// - /// Gets or sets the property value representing column 'MaritalStatus'. - /// - /// - /// The property value representing column 'MaritalStatus'. - /// - [Column("MaritalStatus", TypeName = "nchar(1)")] - public string MaritalStatus { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'Gender'. - /// - /// - /// The property value representing column 'Gender'. - /// - [Column("Gender", TypeName = "nchar(1)")] - public string Gender { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'HireDate'. - /// - /// - /// The property value representing column 'HireDate'. - /// - [Column("HireDate", TypeName = "date")] - public DateOnly HireDate { get; set; } - - /// - /// Gets or sets the property value representing column 'SalariedFlag'. - /// - /// - /// The property value representing column 'SalariedFlag'. - /// - [Column("SalariedFlag", TypeName = "bit")] - public bool SalariedFlag { get; set; } - - /// - /// Gets or sets the property value representing column 'VacationHours'. - /// - /// - /// The property value representing column 'VacationHours'. - /// - [Column("VacationHours", TypeName = "smallint")] - public short VacationHours { get; set; } - - /// - /// Gets or sets the property value representing column 'SickLeaveHours'. - /// - /// - /// The property value representing column 'SickLeaveHours'. - /// - [Column("SickLeaveHours", TypeName = "smallint")] - public short SickLeaveHours { get; set; } - - /// - /// Gets or sets the property value representing column 'CurrentFlag'. - /// - /// - /// The property value representing column 'CurrentFlag'. - /// - [Column("CurrentFlag", TypeName = "bit")] - public bool CurrentFlag { get; set; } - - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection EmployeeDepartmentHistories { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection EmployeePayHistories { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection JobCandidates { get; set; } - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Person Person { get; set; } = null!; - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection PurchaseOrderHeaders { get; set; } - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual SalesPerson SalesPerson { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/EmployeeDepartmentHistory.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/EmployeeDepartmentHistory.cs deleted file mode 100644 index b26bb89..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/EmployeeDepartmentHistory.cs +++ /dev/null @@ -1,111 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'EmployeeDepartmentHistory'. -/// -[Table("EmployeeDepartmentHistory", Schema = "HumanResources")] -public class EmployeeDepartmentHistory -{ - /// - /// Initializes a new instance of the class. - /// - public EmployeeDepartmentHistory() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'BusinessEntityID'. - /// - /// - /// The property value representing column 'BusinessEntityID'. - /// - [Key] - [Column("BusinessEntityID", TypeName = "int")] - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value representing column 'DepartmentID'. - /// - /// - /// The property value representing column 'DepartmentID'. - /// - [Key] - [Column("DepartmentID", TypeName = "smallint")] - public short DepartmentId { get; set; } - - /// - /// Gets or sets the property value representing column 'ShiftID'. - /// - /// - /// The property value representing column 'ShiftID'. - /// - [Key] - [Column("ShiftID", TypeName = "tinyint")] - public byte ShiftId { get; set; } - - /// - /// Gets or sets the property value representing column 'StartDate'. - /// - /// - /// The property value representing column 'StartDate'. - /// - [Key] - [Column("StartDate", TypeName = "date")] - public DateOnly StartDate { get; set; } - - /// - /// Gets or sets the property value representing column 'EndDate'. - /// - /// - /// The property value representing column 'EndDate'. - /// - [Column("EndDate", TypeName = "date")] - public DateOnly? EndDate { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Department Department { get; set; } = null!; - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Employee Employee { get; set; } = null!; - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Shift Shift { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/EmployeePayHistory.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/EmployeePayHistory.cs deleted file mode 100644 index 6f8962d..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/EmployeePayHistory.cs +++ /dev/null @@ -1,82 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'EmployeePayHistory'. -/// -[Table("EmployeePayHistory", Schema = "HumanResources")] -public class EmployeePayHistory -{ - /// - /// Initializes a new instance of the class. - /// - public EmployeePayHistory() - { - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Employee Employee { get; set; } = null!; - - #endregion - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'BusinessEntityID'. - /// - /// - /// The property value representing column 'BusinessEntityID'. - /// - [Key] - [Column("BusinessEntityID", TypeName = "int")] - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value representing column 'RateChangeDate'. - /// - /// - /// The property value representing column 'RateChangeDate'. - /// - [Key] - [Column("RateChangeDate", TypeName = "datetime")] - public DateTime RateChangeDate { get; set; } - - /// - /// Gets or sets the property value representing column 'Rate'. - /// - /// - /// The property value representing column 'Rate'. - /// - [Column("Rate", TypeName = "money")] - public decimal Rate { get; set; } - - /// - /// Gets or sets the property value representing column 'PayFrequency'. - /// - /// - /// The property value representing column 'PayFrequency'. - /// - [Column("PayFrequency", TypeName = "tinyint")] - public byte PayFrequency { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Illustration.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Illustration.cs deleted file mode 100644 index 8b0ef3e..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/Illustration.cs +++ /dev/null @@ -1,69 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'Illustration'. -/// -[Table("Illustration", Schema = "Production")] -public class Illustration - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public Illustration() - { - #region Generated Constructor - - ProductModelIllustrations = new HashSet(); - - #endregion - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection ProductModelIllustrations { get; set; } - - #endregion - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'IllustrationID'. - /// - /// - /// The property value representing column 'IllustrationID'. - /// - [Key] - [Column("IllustrationID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'Diagram'. - /// - /// - /// The property value representing column 'Diagram'. - /// - [Column("Diagram", TypeName = "xml")] - public string? Diagram { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/JobCandidate.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/JobCandidate.cs deleted file mode 100644 index 4195dfe..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/JobCandidate.cs +++ /dev/null @@ -1,74 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'JobCandidate'. -/// -[Table("JobCandidate", Schema = "HumanResources")] -public class JobCandidate - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public JobCandidate() - { - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Employee? Employee { get; set; } - - #endregion - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'JobCandidateID'. - /// - /// - /// The property value representing column 'JobCandidateID'. - /// - [Key] - [Column("JobCandidateID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'BusinessEntityID'. - /// - /// - /// The property value representing column 'BusinessEntityID'. - /// - [Column("BusinessEntityID", TypeName = "int")] - public int? BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value representing column 'Resume'. - /// - /// - /// The property value representing column 'Resume'. - /// - [Column("Resume", TypeName = "xml")] - public string? Resume { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Location.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Location.cs deleted file mode 100644 index a475fcc..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/Location.cs +++ /dev/null @@ -1,96 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'Location'. -/// -[Table("Location", Schema = "Production")] -public class Location - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public Location() - { - #region Generated Constructor - - ProductInventories = new HashSet(); - WorkOrderRoutings = new HashSet(); - - #endregion - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'LocationID'. - /// - /// - /// The property value representing column 'LocationID'. - /// - [Key] - [Column("LocationID", TypeName = "smallint")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public short Id { get; set; } - - /// - /// Gets or sets the property value representing column 'Name'. - /// - /// - /// The property value representing column 'Name'. - /// - [Column("Name", TypeName = "nvarchar(50)")] - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'CostRate'. - /// - /// - /// The property value representing column 'CostRate'. - /// - [Column("CostRate", TypeName = "smallmoney")] - public decimal CostRate { get; set; } - - /// - /// Gets or sets the property value representing column 'Availability'. - /// - /// - /// The property value representing column 'Availability'. - /// - [Column("Availability", TypeName = "decimal(8,2)")] - public decimal Availability { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection ProductInventories { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection WorkOrderRoutings { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Password.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Password.cs deleted file mode 100644 index 49ca393..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/Password.cs +++ /dev/null @@ -1,81 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'Password'. -/// -[Table("Password", Schema = "Person")] -public class Password -{ - /// - /// Initializes a new instance of the class. - /// - public Password() - { - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Person Person { get; set; } = null!; - - #endregion - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'BusinessEntityID'. - /// - /// - /// The property value representing column 'BusinessEntityID'. - /// - [Key] - [Column("BusinessEntityID", TypeName = "int")] - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value representing column 'PasswordHash'. - /// - /// - /// The property value representing column 'PasswordHash'. - /// - [Column("PasswordHash", TypeName = "varchar(128)")] - public string PasswordHash { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'PasswordSalt'. - /// - /// - /// The property value representing column 'PasswordSalt'. - /// - [Column("PasswordSalt", TypeName = "varchar(10)")] - public string PasswordSalt { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Person.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Person.cs deleted file mode 100644 index ada6768..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/Person.cs +++ /dev/null @@ -1,220 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'Person'. -/// -[Table("Person", Schema = "Person")] -public class Person -{ - /// - /// Initializes a new instance of the class. - /// - public Person() - { - #region Generated Constructor - - BusinessEntityContacts = new HashSet(); - Customers = new HashSet(); - EmailAddresses = new HashSet(); - PersonCreditCards = new HashSet(); - PersonPhones = new HashSet(); - - #endregion - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'BusinessEntityID'. - /// - /// - /// The property value representing column 'BusinessEntityID'. - /// - [Key] - [Column("BusinessEntityID", TypeName = "int")] - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value representing column 'PersonType'. - /// - /// - /// The property value representing column 'PersonType'. - /// - [Column("PersonType", TypeName = "nchar(2)")] - public string PersonType { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'NameStyle'. - /// - /// - /// The property value representing column 'NameStyle'. - /// - [Column("NameStyle", TypeName = "bit")] - public bool NameStyle { get; set; } - - /// - /// Gets or sets the property value representing column 'Title'. - /// - /// - /// The property value representing column 'Title'. - /// - [Column("Title", TypeName = "nvarchar(8)")] - public string? Title { get; set; } - - /// - /// Gets or sets the property value representing column 'FirstName'. - /// - /// - /// The property value representing column 'FirstName'. - /// - [Column("FirstName", TypeName = "nvarchar(50)")] - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'MiddleName'. - /// - /// - /// The property value representing column 'MiddleName'. - /// - [Column("MiddleName", TypeName = "nvarchar(50)")] - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value representing column 'LastName'. - /// - /// - /// The property value representing column 'LastName'. - /// - [Column("LastName", TypeName = "nvarchar(50)")] - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'Suffix'. - /// - /// - /// The property value representing column 'Suffix'. - /// - [Column("Suffix", TypeName = "nvarchar(10)")] - public string? Suffix { get; set; } - - /// - /// Gets or sets the property value representing column 'EmailPromotion'. - /// - /// - /// The property value representing column 'EmailPromotion'. - /// - [Column("EmailPromotion", TypeName = "int")] - public int EmailPromotion { get; set; } - - /// - /// Gets or sets the property value representing column 'AdditionalContactInfo'. - /// - /// - /// The property value representing column 'AdditionalContactInfo'. - /// - [Column("AdditionalContactInfo", TypeName = "xml")] - public string? AdditionalContactInfo { get; set; } - - /// - /// Gets or sets the property value representing column 'Demographics'. - /// - /// - /// The property value representing column 'Demographics'. - /// - [Column("Demographics", TypeName = "xml")] - public string? Demographics { get; set; } - - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual BusinessEntity BusinessEntity { get; set; } = null!; - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection BusinessEntityContacts { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection Customers { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection EmailAddresses { get; set; } - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Employee Employee { get; set; } = null!; - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Password Password { get; set; } = null!; - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection PersonCreditCards { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection PersonPhones { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/PersonCreditCard.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/PersonCreditCard.cs deleted file mode 100644 index 6301b31..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/PersonCreditCard.cs +++ /dev/null @@ -1,73 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'PersonCreditCard'. -/// -[Table("PersonCreditCard", Schema = "Sales")] -public class PersonCreditCard -{ - /// - /// Initializes a new instance of the class. - /// - public PersonCreditCard() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'BusinessEntityID'. - /// - /// - /// The property value representing column 'BusinessEntityID'. - /// - [Key] - [Column("BusinessEntityID", TypeName = "int")] - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value representing column 'CreditCardID'. - /// - /// - /// The property value representing column 'CreditCardID'. - /// - [Key] - [Column("CreditCardID", TypeName = "int")] - public int CreditCardId { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual CreditCard CreditCard { get; set; } = null!; - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Person Person { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/PersonPhone.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/PersonPhone.cs deleted file mode 100644 index daec0a6..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/PersonPhone.cs +++ /dev/null @@ -1,83 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'PersonPhone'. -/// -[Table("PersonPhone", Schema = "Person")] -public class PersonPhone -{ - /// - /// Initializes a new instance of the class. - /// - public PersonPhone() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'BusinessEntityID'. - /// - /// - /// The property value representing column 'BusinessEntityID'. - /// - [Key] - [Column("BusinessEntityID", TypeName = "int")] - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value representing column 'PhoneNumber'. - /// - /// - /// The property value representing column 'PhoneNumber'. - /// - [Key] - [Column("PhoneNumber", TypeName = "nvarchar(25)")] - public string PhoneNumber { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'PhoneNumberTypeID'. - /// - /// - /// The property value representing column 'PhoneNumberTypeID'. - /// - [Key] - [Column("PhoneNumberTypeID", TypeName = "int")] - public int PhoneNumberTypeId { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Person Person { get; set; } = null!; - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual PhoneNumberType PhoneNumberType { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/PhoneNumberType.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/PhoneNumberType.cs deleted file mode 100644 index 4dba450..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/PhoneNumberType.cs +++ /dev/null @@ -1,69 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'PhoneNumberType'. -/// -[Table("PhoneNumberType", Schema = "Person")] -public class PhoneNumberType - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public PhoneNumberType() - { - #region Generated Constructor - - PersonPhones = new HashSet(); - - #endregion - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection PersonPhones { get; set; } - - #endregion - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'PhoneNumberTypeID'. - /// - /// - /// The property value representing column 'PhoneNumberTypeID'. - /// - [Key] - [Column("PhoneNumberTypeID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'Name'. - /// - /// - /// The property value representing column 'Name'. - /// - [Column("Name", TypeName = "nvarchar(50)")] - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Product.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Product.cs deleted file mode 100644 index 608d4c6..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/Product.cs +++ /dev/null @@ -1,420 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'Product'. -/// -[Table("Product", Schema = "Production")] -public class Product - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public Product() - { - #region Generated Constructor - - AssemblyBillOfMaterials = new HashSet(); - ComponentBillOfMaterials = new HashSet(); - ProductCostHistories = new HashSet(); - ProductDocuments = new HashSet(); - ProductInventories = new HashSet(); - ProductListPriceHistories = new HashSet(); - ProductProductPhotos = new HashSet(); - ProductReviews = new HashSet(); - ProductVendors = new HashSet(); - PurchaseOrderDetails = new HashSet(); - ShoppingCartItems = new HashSet(); - SpecialOfferProducts = new HashSet(); - TransactionHistories = new HashSet(); - WorkOrders = new HashSet(); - - #endregion - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'ProductID'. - /// - /// - /// The property value representing column 'ProductID'. - /// - [Key] - [Column("ProductID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'Name'. - /// - /// - /// The property value representing column 'Name'. - /// - [Column("Name", TypeName = "nvarchar(50)")] - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'ProductNumber'. - /// - /// - /// The property value representing column 'ProductNumber'. - /// - [Column("ProductNumber", TypeName = "nvarchar(25)")] - public string ProductNumber { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'MakeFlag'. - /// - /// - /// The property value representing column 'MakeFlag'. - /// - [Column("MakeFlag", TypeName = "bit")] - public bool MakeFlag { get; set; } - - /// - /// Gets or sets the property value representing column 'FinishedGoodsFlag'. - /// - /// - /// The property value representing column 'FinishedGoodsFlag'. - /// - [Column("FinishedGoodsFlag", TypeName = "bit")] - public bool FinishedGoodsFlag { get; set; } - - /// - /// Gets or sets the property value representing column 'Color'. - /// - /// - /// The property value representing column 'Color'. - /// - [Column("Color", TypeName = "nvarchar(15)")] - public string? Color { get; set; } - - /// - /// Gets or sets the property value representing column 'SafetyStockLevel'. - /// - /// - /// The property value representing column 'SafetyStockLevel'. - /// - [Column("SafetyStockLevel", TypeName = "smallint")] - public short SafetyStockLevel { get; set; } - - /// - /// Gets or sets the property value representing column 'ReorderPoint'. - /// - /// - /// The property value representing column 'ReorderPoint'. - /// - [Column("ReorderPoint", TypeName = "smallint")] - public short ReorderPoint { get; set; } - - /// - /// Gets or sets the property value representing column 'StandardCost'. - /// - /// - /// The property value representing column 'StandardCost'. - /// - [Column("StandardCost", TypeName = "money")] - public decimal StandardCost { get; set; } - - /// - /// Gets or sets the property value representing column 'ListPrice'. - /// - /// - /// The property value representing column 'ListPrice'. - /// - [Column("ListPrice", TypeName = "money")] - public decimal ListPrice { get; set; } - - /// - /// Gets or sets the property value representing column 'Size'. - /// - /// - /// The property value representing column 'Size'. - /// - [Column("Size", TypeName = "nvarchar(5)")] - public string? Size { get; set; } - - /// - /// Gets or sets the property value representing column 'SizeUnitMeasureCode'. - /// - /// - /// The property value representing column 'SizeUnitMeasureCode'. - /// - [Column("SizeUnitMeasureCode", TypeName = "nchar(3)")] - public string? SizeUnitMeasureCode { get; set; } - - /// - /// Gets or sets the property value representing column 'WeightUnitMeasureCode'. - /// - /// - /// The property value representing column 'WeightUnitMeasureCode'. - /// - [Column("WeightUnitMeasureCode", TypeName = "nchar(3)")] - public string? WeightUnitMeasureCode { get; set; } - - /// - /// Gets or sets the property value representing column 'Weight'. - /// - /// - /// The property value representing column 'Weight'. - /// - [Column("Weight", TypeName = "decimal(8,2)")] - public decimal? Weight { get; set; } - - /// - /// Gets or sets the property value representing column 'DaysToManufacture'. - /// - /// - /// The property value representing column 'DaysToManufacture'. - /// - [Column("DaysToManufacture", TypeName = "int")] - public int DaysToManufacture { get; set; } - - /// - /// Gets or sets the property value representing column 'ProductLine'. - /// - /// - /// The property value representing column 'ProductLine'. - /// - [Column("ProductLine", TypeName = "nchar(2)")] - public string? ProductLine { get; set; } - - /// - /// Gets or sets the property value representing column 'Class'. - /// - /// - /// The property value representing column 'Class'. - /// - [Column("Class", TypeName = "nchar(2)")] - public string? Class { get; set; } - - /// - /// Gets or sets the property value representing column 'Style'. - /// - /// - /// The property value representing column 'Style'. - /// - [Column("Style", TypeName = "nchar(2)")] - public string? Style { get; set; } - - /// - /// Gets or sets the property value representing column 'ProductSubcategoryID'. - /// - /// - /// The property value representing column 'ProductSubcategoryID'. - /// - [Column("ProductSubcategoryID", TypeName = "int")] - public int? ProductSubcategoryId { get; set; } - - /// - /// Gets or sets the property value representing column 'ProductModelID'. - /// - /// - /// The property value representing column 'ProductModelID'. - /// - [Column("ProductModelID", TypeName = "int")] - public int? ProductModelId { get; set; } - - /// - /// Gets or sets the property value representing column 'SellStartDate'. - /// - /// - /// The property value representing column 'SellStartDate'. - /// - [Column("SellStartDate", TypeName = "datetime")] - public DateTime SellStartDate { get; set; } - - /// - /// Gets or sets the property value representing column 'SellEndDate'. - /// - /// - /// The property value representing column 'SellEndDate'. - /// - [Column("SellEndDate", TypeName = "datetime")] - public DateTime? SellEndDate { get; set; } - - /// - /// Gets or sets the property value representing column 'DiscontinuedDate'. - /// - /// - /// The property value representing column 'DiscontinuedDate'. - /// - [Column("DiscontinuedDate", TypeName = "datetime")] - public DateTime? DiscontinuedDate { get; set; } - - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection AssemblyBillOfMaterials { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection ComponentBillOfMaterials { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection ProductCostHistories { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection ProductDocuments { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection ProductInventories { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection ProductListPriceHistories { get; set; } - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual ProductModel? ProductModel { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection ProductProductPhotos { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection ProductReviews { get; set; } - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual ProductSubcategory? ProductSubcategory { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection ProductVendors { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection PurchaseOrderDetails { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection ShoppingCartItems { get; set; } - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual UnitMeasure? SizeUnitMeasure { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection SpecialOfferProducts { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection TransactionHistories { get; set; } - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual UnitMeasure? WeightUnitMeasure { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection WorkOrders { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductCategory.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductCategory.cs deleted file mode 100644 index 5ae875d..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductCategory.cs +++ /dev/null @@ -1,78 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'ProductCategory'. -/// -[Table("ProductCategory", Schema = "Production")] -public class ProductCategory - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public ProductCategory() - { - #region Generated Constructor - - ProductSubcategories = new HashSet(); - - #endregion - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection ProductSubcategories { get; set; } - - #endregion - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'ProductCategoryID'. - /// - /// - /// The property value representing column 'ProductCategoryID'. - /// - [Key] - [Column("ProductCategoryID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'Name'. - /// - /// - /// The property value representing column 'Name'. - /// - [Column("Name", TypeName = "nvarchar(50)")] - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductCostHistory.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductCostHistory.cs deleted file mode 100644 index 411ae71..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductCostHistory.cs +++ /dev/null @@ -1,82 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'ProductCostHistory'. -/// -[Table("ProductCostHistory", Schema = "Production")] -public class ProductCostHistory -{ - /// - /// Initializes a new instance of the class. - /// - public ProductCostHistory() - { - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Product Product { get; set; } = null!; - - #endregion - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'ProductID'. - /// - /// - /// The property value representing column 'ProductID'. - /// - [Key] - [Column("ProductID", TypeName = "int")] - public int ProductId { get; set; } - - /// - /// Gets or sets the property value representing column 'StartDate'. - /// - /// - /// The property value representing column 'StartDate'. - /// - [Key] - [Column("StartDate", TypeName = "datetime")] - public DateTime StartDate { get; set; } - - /// - /// Gets or sets the property value representing column 'EndDate'. - /// - /// - /// The property value representing column 'EndDate'. - /// - [Column("EndDate", TypeName = "datetime")] - public DateTime? EndDate { get; set; } - - /// - /// Gets or sets the property value representing column 'StandardCost'. - /// - /// - /// The property value representing column 'StandardCost'. - /// - [Column("StandardCost", TypeName = "money")] - public decimal StandardCost { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductDescription.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductDescription.cs deleted file mode 100644 index 7973896..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductDescription.cs +++ /dev/null @@ -1,78 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'ProductDescription'. -/// -[Table("ProductDescription", Schema = "Production")] -public class ProductDescription - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public ProductDescription() - { - #region Generated Constructor - - ProductModelProductDescriptionCultures = new HashSet(); - - #endregion - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection ProductModelProductDescriptionCultures { get; set; } - - #endregion - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'ProductDescriptionID'. - /// - /// - /// The property value representing column 'ProductDescriptionID'. - /// - [Key] - [Column("ProductDescriptionID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'Description'. - /// - /// - /// The property value representing column 'Description'. - /// - [Column("Description", TypeName = "nvarchar(400)")] - public string Description { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductDocument.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductDocument.cs deleted file mode 100644 index af87d1e..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductDocument.cs +++ /dev/null @@ -1,54 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'ProductDocument'. -/// -[Table("ProductDocument", Schema = "Production")] -public class ProductDocument -{ - /// - /// Initializes a new instance of the class. - /// - public ProductDocument() - { - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Product Product { get; set; } = null!; - - #endregion - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'ProductID'. - /// - /// - /// The property value representing column 'ProductID'. - /// - [Key] - [Column("ProductID", TypeName = "int")] - public int ProductId { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductInventory.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductInventory.cs deleted file mode 100644 index 48cd7a7..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductInventory.cs +++ /dev/null @@ -1,109 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'ProductInventory'. -/// -[Table("ProductInventory", Schema = "Production")] -public class ProductInventory -{ - /// - /// Initializes a new instance of the class. - /// - public ProductInventory() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'ProductID'. - /// - /// - /// The property value representing column 'ProductID'. - /// - [Key] - [Column("ProductID", TypeName = "int")] - public int ProductId { get; set; } - - /// - /// Gets or sets the property value representing column 'LocationID'. - /// - /// - /// The property value representing column 'LocationID'. - /// - [Key] - [Column("LocationID", TypeName = "smallint")] - public short LocationId { get; set; } - - /// - /// Gets or sets the property value representing column 'Shelf'. - /// - /// - /// The property value representing column 'Shelf'. - /// - [Column("Shelf", TypeName = "nvarchar(10)")] - public string Shelf { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'Bin'. - /// - /// - /// The property value representing column 'Bin'. - /// - [Column("Bin", TypeName = "tinyint")] - public byte Bin { get; set; } - - /// - /// Gets or sets the property value representing column 'Quantity'. - /// - /// - /// The property value representing column 'Quantity'. - /// - [Column("Quantity", TypeName = "smallint")] - public short Quantity { get; set; } - - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Location Location { get; set; } = null!; - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Product Product { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductListPriceHistory.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductListPriceHistory.cs deleted file mode 100644 index 889d3dd..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductListPriceHistory.cs +++ /dev/null @@ -1,82 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'ProductListPriceHistory'. -/// -[Table("ProductListPriceHistory", Schema = "Production")] -public class ProductListPriceHistory -{ - /// - /// Initializes a new instance of the class. - /// - public ProductListPriceHistory() - { - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Product Product { get; set; } = null!; - - #endregion - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'ProductID'. - /// - /// - /// The property value representing column 'ProductID'. - /// - [Key] - [Column("ProductID", TypeName = "int")] - public int ProductId { get; set; } - - /// - /// Gets or sets the property value representing column 'StartDate'. - /// - /// - /// The property value representing column 'StartDate'. - /// - [Key] - [Column("StartDate", TypeName = "datetime")] - public DateTime StartDate { get; set; } - - /// - /// Gets or sets the property value representing column 'EndDate'. - /// - /// - /// The property value representing column 'EndDate'. - /// - [Column("EndDate", TypeName = "datetime")] - public DateTime? EndDate { get; set; } - - /// - /// Gets or sets the property value representing column 'ListPrice'. - /// - /// - /// The property value representing column 'ListPrice'. - /// - [Column("ListPrice", TypeName = "money")] - public decimal ListPrice { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductModel.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductModel.cs deleted file mode 100644 index b125667..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductModel.cs +++ /dev/null @@ -1,114 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'ProductModel'. -/// -[Table("ProductModel", Schema = "Production")] -public class ProductModel - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public ProductModel() - { - #region Generated Constructor - - ProductModelIllustrations = new HashSet(); - ProductModelProductDescriptionCultures = new HashSet(); - Products = new HashSet(); - - #endregion - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'ProductModelID'. - /// - /// - /// The property value representing column 'ProductModelID'. - /// - [Key] - [Column("ProductModelID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'Name'. - /// - /// - /// The property value representing column 'Name'. - /// - [Column("Name", TypeName = "nvarchar(50)")] - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'CatalogDescription'. - /// - /// - /// The property value representing column 'CatalogDescription'. - /// - [Column("CatalogDescription", TypeName = "xml")] - public string? CatalogDescription { get; set; } - - /// - /// Gets or sets the property value representing column 'Instructions'. - /// - /// - /// The property value representing column 'Instructions'. - /// - [Column("Instructions", TypeName = "xml")] - public string? Instructions { get; set; } - - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection ProductModelIllustrations { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection ProductModelProductDescriptionCultures { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection Products { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductModelIllustration.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductModelIllustration.cs deleted file mode 100644 index 7ecaab9..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductModelIllustration.cs +++ /dev/null @@ -1,73 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'ProductModelIllustration'. -/// -[Table("ProductModelIllustration", Schema = "Production")] -public class ProductModelIllustration -{ - /// - /// Initializes a new instance of the class. - /// - public ProductModelIllustration() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'ProductModelID'. - /// - /// - /// The property value representing column 'ProductModelID'. - /// - [Key] - [Column("ProductModelID", TypeName = "int")] - public int ProductModelId { get; set; } - - /// - /// Gets or sets the property value representing column 'IllustrationID'. - /// - /// - /// The property value representing column 'IllustrationID'. - /// - [Key] - [Column("IllustrationID", TypeName = "int")] - public int IllustrationId { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Illustration Illustration { get; set; } = null!; - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual ProductModel ProductModel { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductModelProductDescriptionCulture.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductModelProductDescriptionCulture.cs deleted file mode 100644 index d430ba6..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductModelProductDescriptionCulture.cs +++ /dev/null @@ -1,92 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'ProductModelProductDescriptionCulture'. -/// -[Table("ProductModelProductDescriptionCulture", Schema = "Production")] -public class ProductModelProductDescriptionCulture -{ - /// - /// Initializes a new instance of the class. - /// - public ProductModelProductDescriptionCulture() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'ProductModelID'. - /// - /// - /// The property value representing column 'ProductModelID'. - /// - [Key] - [Column("ProductModelID", TypeName = "int")] - public int ProductModelId { get; set; } - - /// - /// Gets or sets the property value representing column 'ProductDescriptionID'. - /// - /// - /// The property value representing column 'ProductDescriptionID'. - /// - [Key] - [Column("ProductDescriptionID", TypeName = "int")] - public int ProductDescriptionId { get; set; } - - /// - /// Gets or sets the property value representing column 'CultureID'. - /// - /// - /// The property value representing column 'CultureID'. - /// - [Key] - [Column("CultureID", TypeName = "nchar(6)")] - public string CultureId { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Culture Culture { get; set; } = null!; - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual ProductDescription ProductDescription { get; set; } = null!; - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual ProductModel ProductModel { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductPhoto.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductPhoto.cs deleted file mode 100644 index cfe8a7a..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductPhoto.cs +++ /dev/null @@ -1,96 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'ProductPhoto'. -/// -[Table("ProductPhoto", Schema = "Production")] -public class ProductPhoto - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public ProductPhoto() - { - #region Generated Constructor - - ProductProductPhotos = new HashSet(); - - #endregion - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection ProductProductPhotos { get; set; } - - #endregion - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'ProductPhotoID'. - /// - /// - /// The property value representing column 'ProductPhotoID'. - /// - [Key] - [Column("ProductPhotoID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'ThumbNailPhoto'. - /// - /// - /// The property value representing column 'ThumbNailPhoto'. - /// - [Column("ThumbNailPhoto", TypeName = "varbinary(max)")] - public byte[]? ThumbNailPhoto { get; set; } - - /// - /// Gets or sets the property value representing column 'ThumbnailPhotoFileName'. - /// - /// - /// The property value representing column 'ThumbnailPhotoFileName'. - /// - [Column("ThumbnailPhotoFileName", TypeName = "nvarchar(50)")] - public string? ThumbnailPhotoFileName { get; set; } - - /// - /// Gets or sets the property value representing column 'LargePhoto'. - /// - /// - /// The property value representing column 'LargePhoto'. - /// - [Column("LargePhoto", TypeName = "varbinary(max)")] - public byte[]? LargePhoto { get; set; } - - /// - /// Gets or sets the property value representing column 'LargePhotoFileName'. - /// - /// - /// The property value representing column 'LargePhotoFileName'. - /// - [Column("LargePhotoFileName", TypeName = "nvarchar(50)")] - public string? LargePhotoFileName { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductProductPhoto.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductProductPhoto.cs deleted file mode 100644 index e70d190..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductProductPhoto.cs +++ /dev/null @@ -1,82 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'ProductProductPhoto'. -/// -[Table("ProductProductPhoto", Schema = "Production")] -public class ProductProductPhoto -{ - /// - /// Initializes a new instance of the class. - /// - public ProductProductPhoto() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'ProductID'. - /// - /// - /// The property value representing column 'ProductID'. - /// - [Key] - [Column("ProductID", TypeName = "int")] - public int ProductId { get; set; } - - /// - /// Gets or sets the property value representing column 'ProductPhotoID'. - /// - /// - /// The property value representing column 'ProductPhotoID'. - /// - [Key] - [Column("ProductPhotoID", TypeName = "int")] - public int ProductPhotoId { get; set; } - - /// - /// Gets or sets the property value representing column 'Primary'. - /// - /// - /// The property value representing column 'Primary'. - /// - [Column("Primary", TypeName = "bit")] - public bool Primary { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Product Product { get; set; } = null!; - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual ProductPhoto ProductPhoto { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductReview.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductReview.cs deleted file mode 100644 index 1f980c3..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductReview.cs +++ /dev/null @@ -1,110 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'ProductReview'. -/// -[Table("ProductReview", Schema = "Production")] -public class ProductReview - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public ProductReview() - { - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Product Product { get; set; } = null!; - - #endregion - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'ProductReviewID'. - /// - /// - /// The property value representing column 'ProductReviewID'. - /// - [Key] - [Column("ProductReviewID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'ProductID'. - /// - /// - /// The property value representing column 'ProductID'. - /// - [Column("ProductID", TypeName = "int")] - public int ProductId { get; set; } - - /// - /// Gets or sets the property value representing column 'ReviewerName'. - /// - /// - /// The property value representing column 'ReviewerName'. - /// - [Column("ReviewerName", TypeName = "nvarchar(50)")] - public string ReviewerName { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'ReviewDate'. - /// - /// - /// The property value representing column 'ReviewDate'. - /// - [Column("ReviewDate", TypeName = "datetime")] - public DateTime ReviewDate { get; set; } - - /// - /// Gets or sets the property value representing column 'EmailAddress'. - /// - /// - /// The property value representing column 'EmailAddress'. - /// - [Column("EmailAddress", TypeName = "nvarchar(50)")] - public string EmailAddress { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'Rating'. - /// - /// - /// The property value representing column 'Rating'. - /// - [Column("Rating", TypeName = "int")] - public int Rating { get; set; } - - /// - /// Gets or sets the property value representing column 'Comments'. - /// - /// - /// The property value representing column 'Comments'. - /// - [Column("Comments", TypeName = "nvarchar(3850)")] - public string? Comments { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductSubcategory.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductSubcategory.cs deleted file mode 100644 index d58db8f..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductSubcategory.cs +++ /dev/null @@ -1,96 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'ProductSubcategory'. -/// -[Table("ProductSubcategory", Schema = "Production")] -public class ProductSubcategory - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public ProductSubcategory() - { - #region Generated Constructor - - Products = new HashSet(); - - #endregion - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'ProductSubcategoryID'. - /// - /// - /// The property value representing column 'ProductSubcategoryID'. - /// - [Key] - [Column("ProductSubcategoryID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'ProductCategoryID'. - /// - /// - /// The property value representing column 'ProductCategoryID'. - /// - [Column("ProductCategoryID", TypeName = "int")] - public int ProductCategoryId { get; set; } - - /// - /// Gets or sets the property value representing column 'Name'. - /// - /// - /// The property value representing column 'Name'. - /// - [Column("Name", TypeName = "nvarchar(50)")] - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual ProductCategory ProductCategory { get; set; } = null!; - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection Products { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductVendor.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductVendor.cs deleted file mode 100644 index 7d15919..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductVendor.cs +++ /dev/null @@ -1,154 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'ProductVendor'. -/// -[Table("ProductVendor", Schema = "Purchasing")] -public class ProductVendor -{ - /// - /// Initializes a new instance of the class. - /// - public ProductVendor() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'ProductID'. - /// - /// - /// The property value representing column 'ProductID'. - /// - [Key] - [Column("ProductID", TypeName = "int")] - public int ProductId { get; set; } - - /// - /// Gets or sets the property value representing column 'BusinessEntityID'. - /// - /// - /// The property value representing column 'BusinessEntityID'. - /// - [Key] - [Column("BusinessEntityID", TypeName = "int")] - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value representing column 'AverageLeadTime'. - /// - /// - /// The property value representing column 'AverageLeadTime'. - /// - [Column("AverageLeadTime", TypeName = "int")] - public int AverageLeadTime { get; set; } - - /// - /// Gets or sets the property value representing column 'StandardPrice'. - /// - /// - /// The property value representing column 'StandardPrice'. - /// - [Column("StandardPrice", TypeName = "money")] - public decimal StandardPrice { get; set; } - - /// - /// Gets or sets the property value representing column 'LastReceiptCost'. - /// - /// - /// The property value representing column 'LastReceiptCost'. - /// - [Column("LastReceiptCost", TypeName = "money")] - public decimal? LastReceiptCost { get; set; } - - /// - /// Gets or sets the property value representing column 'LastReceiptDate'. - /// - /// - /// The property value representing column 'LastReceiptDate'. - /// - [Column("LastReceiptDate", TypeName = "datetime")] - public DateTime? LastReceiptDate { get; set; } - - /// - /// Gets or sets the property value representing column 'MinOrderQty'. - /// - /// - /// The property value representing column 'MinOrderQty'. - /// - [Column("MinOrderQty", TypeName = "int")] - public int MinOrderQty { get; set; } - - /// - /// Gets or sets the property value representing column 'MaxOrderQty'. - /// - /// - /// The property value representing column 'MaxOrderQty'. - /// - [Column("MaxOrderQty", TypeName = "int")] - public int MaxOrderQty { get; set; } - - /// - /// Gets or sets the property value representing column 'OnOrderQty'. - /// - /// - /// The property value representing column 'OnOrderQty'. - /// - [Column("OnOrderQty", TypeName = "int")] - public int? OnOrderQty { get; set; } - - /// - /// Gets or sets the property value representing column 'UnitMeasureCode'. - /// - /// - /// The property value representing column 'UnitMeasureCode'. - /// - [Column("UnitMeasureCode", TypeName = "nchar(3)")] - public string UnitMeasureCode { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Product Product { get; set; } = null!; - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual UnitMeasure UnitMeasure { get; set; } = null!; - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Vendor Vendor { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/PurchaseOrderDetail.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/PurchaseOrderDetail.cs deleted file mode 100644 index 61956b8..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/PurchaseOrderDetail.cs +++ /dev/null @@ -1,149 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'PurchaseOrderDetail'. -/// -[Table("PurchaseOrderDetail", Schema = "Purchasing")] -public class PurchaseOrderDetail - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public PurchaseOrderDetail() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'PurchaseOrderID'. - /// - /// - /// The property value representing column 'PurchaseOrderID'. - /// - [Key] - [Column("PurchaseOrderID", TypeName = "int")] - public int PurchaseOrderId { get; set; } - - /// - /// Gets or sets the property value representing column 'PurchaseOrderDetailID'. - /// - /// - /// The property value representing column 'PurchaseOrderDetailID'. - /// - [Key] - [Column("PurchaseOrderDetailID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'DueDate'. - /// - /// - /// The property value representing column 'DueDate'. - /// - [Column("DueDate", TypeName = "datetime")] - public DateTime DueDate { get; set; } - - /// - /// Gets or sets the property value representing column 'OrderQty'. - /// - /// - /// The property value representing column 'OrderQty'. - /// - [Column("OrderQty", TypeName = "smallint")] - public short OrderQty { get; set; } - - /// - /// Gets or sets the property value representing column 'ProductID'. - /// - /// - /// The property value representing column 'ProductID'. - /// - [Column("ProductID", TypeName = "int")] - public int ProductId { get; set; } - - /// - /// Gets or sets the property value representing column 'UnitPrice'. - /// - /// - /// The property value representing column 'UnitPrice'. - /// - [Column("UnitPrice", TypeName = "money")] - public decimal UnitPrice { get; set; } - - /// - /// Gets or sets the property value representing column 'LineTotal'. - /// - /// - /// The property value representing column 'LineTotal'. - /// - [Column("LineTotal", TypeName = "money")] - [DatabaseGenerated(DatabaseGeneratedOption.Computed)] - public decimal LineTotal { get; set; } - - /// - /// Gets or sets the property value representing column 'ReceivedQty'. - /// - /// - /// The property value representing column 'ReceivedQty'. - /// - [Column("ReceivedQty", TypeName = "decimal(8,2)")] - public decimal ReceivedQty { get; set; } - - /// - /// Gets or sets the property value representing column 'RejectedQty'. - /// - /// - /// The property value representing column 'RejectedQty'. - /// - [Column("RejectedQty", TypeName = "decimal(8,2)")] - public decimal RejectedQty { get; set; } - - /// - /// Gets or sets the property value representing column 'StockedQty'. - /// - /// - /// The property value representing column 'StockedQty'. - /// - [Column("StockedQty", TypeName = "decimal(9,2)")] - [DatabaseGenerated(DatabaseGeneratedOption.Computed)] - public decimal StockedQty { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Product Product { get; set; } = null!; - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual PurchaseOrderHeader PurchaseOrderHeader { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/PurchaseOrderHeader.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/PurchaseOrderHeader.cs deleted file mode 100644 index e51a5ce..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/PurchaseOrderHeader.cs +++ /dev/null @@ -1,187 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'PurchaseOrderHeader'. -/// -[Table("PurchaseOrderHeader", Schema = "Purchasing")] -public class PurchaseOrderHeader - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public PurchaseOrderHeader() - { - #region Generated Constructor - - PurchaseOrderDetails = new HashSet(); - - #endregion - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'PurchaseOrderID'. - /// - /// - /// The property value representing column 'PurchaseOrderID'. - /// - [Key] - [Column("PurchaseOrderID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'RevisionNumber'. - /// - /// - /// The property value representing column 'RevisionNumber'. - /// - [Column("RevisionNumber", TypeName = "tinyint")] - public byte RevisionNumber { get; set; } - - /// - /// Gets or sets the property value representing column 'Status'. - /// - /// - /// The property value representing column 'Status'. - /// - [Column("Status", TypeName = "tinyint")] - public byte Status { get; set; } - - /// - /// Gets or sets the property value representing column 'EmployeeID'. - /// - /// - /// The property value representing column 'EmployeeID'. - /// - [Column("EmployeeID", TypeName = "int")] - public int EmployeeId { get; set; } - - /// - /// Gets or sets the property value representing column 'VendorID'. - /// - /// - /// The property value representing column 'VendorID'. - /// - [Column("VendorID", TypeName = "int")] - public int VendorId { get; set; } - - /// - /// Gets or sets the property value representing column 'ShipMethodID'. - /// - /// - /// The property value representing column 'ShipMethodID'. - /// - [Column("ShipMethodID", TypeName = "int")] - public int ShipMethodId { get; set; } - - /// - /// Gets or sets the property value representing column 'OrderDate'. - /// - /// - /// The property value representing column 'OrderDate'. - /// - [Column("OrderDate", TypeName = "datetime")] - public DateTime OrderDate { get; set; } - - /// - /// Gets or sets the property value representing column 'ShipDate'. - /// - /// - /// The property value representing column 'ShipDate'. - /// - [Column("ShipDate", TypeName = "datetime")] - public DateTime? ShipDate { get; set; } - - /// - /// Gets or sets the property value representing column 'SubTotal'. - /// - /// - /// The property value representing column 'SubTotal'. - /// - [Column("SubTotal", TypeName = "money")] - public decimal SubTotal { get; set; } - - /// - /// Gets or sets the property value representing column 'TaxAmt'. - /// - /// - /// The property value representing column 'TaxAmt'. - /// - [Column("TaxAmt", TypeName = "money")] - public decimal TaxAmt { get; set; } - - /// - /// Gets or sets the property value representing column 'Freight'. - /// - /// - /// The property value representing column 'Freight'. - /// - [Column("Freight", TypeName = "money")] - public decimal Freight { get; set; } - - /// - /// Gets or sets the property value representing column 'TotalDue'. - /// - /// - /// The property value representing column 'TotalDue'. - /// - [Column("TotalDue", TypeName = "money")] - [DatabaseGenerated(DatabaseGeneratedOption.Computed)] - public decimal TotalDue { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Employee Employee { get; set; } = null!; - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection PurchaseOrderDetails { get; set; } - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual ShipMethod ShipMethod { get; set; } = null!; - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Vendor Vendor { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesOrderDetail.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesOrderDetail.cs deleted file mode 100644 index cbbe8fb..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesOrderDetail.cs +++ /dev/null @@ -1,149 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'SalesOrderDetail'. -/// -[Table("SalesOrderDetail", Schema = "Sales")] -public class SalesOrderDetail - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public SalesOrderDetail() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'SalesOrderID'. - /// - /// - /// The property value representing column 'SalesOrderID'. - /// - [Key] - [Column("SalesOrderID", TypeName = "int")] - public int SalesOrderId { get; set; } - - /// - /// Gets or sets the property value representing column 'SalesOrderDetailID'. - /// - /// - /// The property value representing column 'SalesOrderDetailID'. - /// - [Key] - [Column("SalesOrderDetailID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'CarrierTrackingNumber'. - /// - /// - /// The property value representing column 'CarrierTrackingNumber'. - /// - [Column("CarrierTrackingNumber", TypeName = "nvarchar(25)")] - public string? CarrierTrackingNumber { get; set; } - - /// - /// Gets or sets the property value representing column 'OrderQty'. - /// - /// - /// The property value representing column 'OrderQty'. - /// - [Column("OrderQty", TypeName = "smallint")] - public short OrderQty { get; set; } - - /// - /// Gets or sets the property value representing column 'ProductID'. - /// - /// - /// The property value representing column 'ProductID'. - /// - [Column("ProductID", TypeName = "int")] - public int ProductId { get; set; } - - /// - /// Gets or sets the property value representing column 'SpecialOfferID'. - /// - /// - /// The property value representing column 'SpecialOfferID'. - /// - [Column("SpecialOfferID", TypeName = "int")] - public int SpecialOfferId { get; set; } - - /// - /// Gets or sets the property value representing column 'UnitPrice'. - /// - /// - /// The property value representing column 'UnitPrice'. - /// - [Column("UnitPrice", TypeName = "money")] - public decimal UnitPrice { get; set; } - - /// - /// Gets or sets the property value representing column 'UnitPriceDiscount'. - /// - /// - /// The property value representing column 'UnitPriceDiscount'. - /// - [Column("UnitPriceDiscount", TypeName = "money")] - public decimal UnitPriceDiscount { get; set; } - - /// - /// Gets or sets the property value representing column 'LineTotal'. - /// - /// - /// The property value representing column 'LineTotal'. - /// - [Column("LineTotal", TypeName = "numeric(38,6)")] - [DatabaseGenerated(DatabaseGeneratedOption.Computed)] - public decimal LineTotal { get; set; } - - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual SalesOrderHeader SalesOrderHeader { get; set; } = null!; - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - /// - public virtual SpecialOfferProduct SpecialOfferProduct { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesOrderHeader.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesOrderHeader.cs deleted file mode 100644 index 6689cb1..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesOrderHeader.cs +++ /dev/null @@ -1,359 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'SalesOrderHeader'. -/// -[Table("SalesOrderHeader", Schema = "Sales")] -public class SalesOrderHeader - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public SalesOrderHeader() - { - #region Generated Constructor - - SalesOrderDetails = new HashSet(); - SalesOrderHeaderSalesReasons = new HashSet(); - - #endregion - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'SalesOrderID'. - /// - /// - /// The property value representing column 'SalesOrderID'. - /// - [Key] - [Column("SalesOrderID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'RevisionNumber'. - /// - /// - /// The property value representing column 'RevisionNumber'. - /// - [Column("RevisionNumber", TypeName = "tinyint")] - public byte RevisionNumber { get; set; } - - /// - /// Gets or sets the property value representing column 'OrderDate'. - /// - /// - /// The property value representing column 'OrderDate'. - /// - [Column("OrderDate", TypeName = "datetime")] - public DateTime OrderDate { get; set; } - - /// - /// Gets or sets the property value representing column 'DueDate'. - /// - /// - /// The property value representing column 'DueDate'. - /// - [Column("DueDate", TypeName = "datetime")] - public DateTime DueDate { get; set; } - - /// - /// Gets or sets the property value representing column 'ShipDate'. - /// - /// - /// The property value representing column 'ShipDate'. - /// - [Column("ShipDate", TypeName = "datetime")] - public DateTime? ShipDate { get; set; } - - /// - /// Gets or sets the property value representing column 'Status'. - /// - /// - /// The property value representing column 'Status'. - /// - [Column("Status", TypeName = "tinyint")] - public byte Status { get; set; } - - /// - /// Gets or sets the property value representing column 'OnlineOrderFlag'. - /// - /// - /// The property value representing column 'OnlineOrderFlag'. - /// - [Column("OnlineOrderFlag", TypeName = "bit")] - public bool OnlineOrderFlag { get; set; } - - /// - /// Gets or sets the property value representing column 'SalesOrderNumber'. - /// - /// - /// The property value representing column 'SalesOrderNumber'. - /// - [Column("SalesOrderNumber", TypeName = "nvarchar(25)")] - [DatabaseGenerated(DatabaseGeneratedOption.Computed)] - public string SalesOrderNumber { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'PurchaseOrderNumber'. - /// - /// - /// The property value representing column 'PurchaseOrderNumber'. - /// - [Column("PurchaseOrderNumber", TypeName = "nvarchar(25)")] - public string? PurchaseOrderNumber { get; set; } - - /// - /// Gets or sets the property value representing column 'AccountNumber'. - /// - /// - /// The property value representing column 'AccountNumber'. - /// - [Column("AccountNumber", TypeName = "nvarchar(15)")] - public string? AccountNumber { get; set; } - - /// - /// Gets or sets the property value representing column 'CustomerID'. - /// - /// - /// The property value representing column 'CustomerID'. - /// - [Column("CustomerID", TypeName = "int")] - public int CustomerId { get; set; } - - /// - /// Gets or sets the property value representing column 'SalesPersonID'. - /// - /// - /// The property value representing column 'SalesPersonID'. - /// - [Column("SalesPersonID", TypeName = "int")] - public int? SalesPersonId { get; set; } - - /// - /// Gets or sets the property value representing column 'TerritoryID'. - /// - /// - /// The property value representing column 'TerritoryID'. - /// - [Column("TerritoryID", TypeName = "int")] - public int? TerritoryId { get; set; } - - /// - /// Gets or sets the property value representing column 'BillToAddressID'. - /// - /// - /// The property value representing column 'BillToAddressID'. - /// - [Column("BillToAddressID", TypeName = "int")] - public int BillToAddressId { get; set; } - - /// - /// Gets or sets the property value representing column 'ShipToAddressID'. - /// - /// - /// The property value representing column 'ShipToAddressID'. - /// - [Column("ShipToAddressID", TypeName = "int")] - public int ShipToAddressId { get; set; } - - /// - /// Gets or sets the property value representing column 'ShipMethodID'. - /// - /// - /// The property value representing column 'ShipMethodID'. - /// - [Column("ShipMethodID", TypeName = "int")] - public int ShipMethodId { get; set; } - - /// - /// Gets or sets the property value representing column 'CreditCardID'. - /// - /// - /// The property value representing column 'CreditCardID'. - /// - [Column("CreditCardID", TypeName = "int")] - public int? CreditCardId { get; set; } - - /// - /// Gets or sets the property value representing column 'CreditCardApprovalCode'. - /// - /// - /// The property value representing column 'CreditCardApprovalCode'. - /// - [Column("CreditCardApprovalCode", TypeName = "varchar(15)")] - public string? CreditCardApprovalCode { get; set; } - - /// - /// Gets or sets the property value representing column 'CurrencyRateID'. - /// - /// - /// The property value representing column 'CurrencyRateID'. - /// - [Column("CurrencyRateID", TypeName = "int")] - public int? CurrencyRateId { get; set; } - - /// - /// Gets or sets the property value representing column 'SubTotal'. - /// - /// - /// The property value representing column 'SubTotal'. - /// - [Column("SubTotal", TypeName = "money")] - public decimal SubTotal { get; set; } - - /// - /// Gets or sets the property value representing column 'TaxAmt'. - /// - /// - /// The property value representing column 'TaxAmt'. - /// - [Column("TaxAmt", TypeName = "money")] - public decimal TaxAmt { get; set; } - - /// - /// Gets or sets the property value representing column 'Freight'. - /// - /// - /// The property value representing column 'Freight'. - /// - [Column("Freight", TypeName = "money")] - public decimal Freight { get; set; } - - /// - /// Gets or sets the property value representing column 'TotalDue'. - /// - /// - /// The property value representing column 'TotalDue'. - /// - [Column("TotalDue", TypeName = "money")] - [DatabaseGenerated(DatabaseGeneratedOption.Computed)] - public decimal TotalDue { get; set; } - - /// - /// Gets or sets the property value representing column 'Comment'. - /// - /// - /// The property value representing column 'Comment'. - /// - [Column("Comment", TypeName = "nvarchar(128)")] - public string? Comment { get; set; } - - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Address BillToAddress { get; set; } = null!; - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual CreditCard? CreditCard { get; set; } - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual CurrencyRate? CurrencyRate { get; set; } - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Customer Customer { get; set; } = null!; - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection SalesOrderDetails { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection SalesOrderHeaderSalesReasons { get; set; } - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual SalesPerson? SalesPerson { get; set; } - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual SalesTerritory? SalesTerritory { get; set; } - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual ShipMethod ShipMethod { get; set; } = null!; - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Address ShipToAddress { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesOrderHeaderSalesReason.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesOrderHeaderSalesReason.cs deleted file mode 100644 index 9354239..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesOrderHeaderSalesReason.cs +++ /dev/null @@ -1,73 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'SalesOrderHeaderSalesReason'. -/// -[Table("SalesOrderHeaderSalesReason", Schema = "Sales")] -public class SalesOrderHeaderSalesReason -{ - /// - /// Initializes a new instance of the class. - /// - public SalesOrderHeaderSalesReason() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'SalesOrderID'. - /// - /// - /// The property value representing column 'SalesOrderID'. - /// - [Key] - [Column("SalesOrderID", TypeName = "int")] - public int SalesOrderId { get; set; } - - /// - /// Gets or sets the property value representing column 'SalesReasonID'. - /// - /// - /// The property value representing column 'SalesReasonID'. - /// - [Key] - [Column("SalesReasonID", TypeName = "int")] - public int SalesReasonId { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual SalesOrderHeader SalesOrderHeader { get; set; } = null!; - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual SalesReason SalesReason { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesPerson.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesPerson.cs deleted file mode 100644 index 9dcdeac..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesPerson.cs +++ /dev/null @@ -1,166 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'SalesPerson'. -/// -[Table("SalesPerson", Schema = "Sales")] -public class SalesPerson -{ - /// - /// Initializes a new instance of the class. - /// - public SalesPerson() - { - #region Generated Constructor - - SalesOrderHeaders = new HashSet(); - SalesPersonQuotaHistories = new HashSet(); - SalesTerritoryHistories = new HashSet(); - Stores = new HashSet(); - - #endregion - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'BusinessEntityID'. - /// - /// - /// The property value representing column 'BusinessEntityID'. - /// - [Key] - [Column("BusinessEntityID", TypeName = "int")] - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value representing column 'TerritoryID'. - /// - /// - /// The property value representing column 'TerritoryID'. - /// - [Column("TerritoryID", TypeName = "int")] - public int? TerritoryId { get; set; } - - /// - /// Gets or sets the property value representing column 'SalesQuota'. - /// - /// - /// The property value representing column 'SalesQuota'. - /// - [Column("SalesQuota", TypeName = "money")] - public decimal? SalesQuota { get; set; } - - /// - /// Gets or sets the property value representing column 'Bonus'. - /// - /// - /// The property value representing column 'Bonus'. - /// - [Column("Bonus", TypeName = "money")] - public decimal Bonus { get; set; } - - /// - /// Gets or sets the property value representing column 'CommissionPct'. - /// - /// - /// The property value representing column 'CommissionPct'. - /// - [Column("CommissionPct", TypeName = "smallmoney")] - public decimal CommissionPct { get; set; } - - /// - /// Gets or sets the property value representing column 'SalesYTD'. - /// - /// - /// The property value representing column 'SalesYTD'. - /// - [Column("SalesYTD", TypeName = "money")] - public decimal SalesYTD { get; set; } - - /// - /// Gets or sets the property value representing column 'SalesLastYear'. - /// - /// - /// The property value representing column 'SalesLastYear'. - /// - [Column("SalesLastYear", TypeName = "money")] - public decimal SalesLastYear { get; set; } - - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Employee Employee { get; set; } = null!; - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection SalesOrderHeaders { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection SalesPersonQuotaHistories { get; set; } - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual SalesTerritory? SalesTerritory { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection SalesTerritoryHistories { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection Stores { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesPersonQuotaHistory.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesPersonQuotaHistory.cs deleted file mode 100644 index 0607cbc..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesPersonQuotaHistory.cs +++ /dev/null @@ -1,82 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'SalesPersonQuotaHistory'. -/// -[Table("SalesPersonQuotaHistory", Schema = "Sales")] -public class SalesPersonQuotaHistory -{ - /// - /// Initializes a new instance of the class. - /// - public SalesPersonQuotaHistory() - { - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual SalesPerson SalesPerson { get; set; } = null!; - - #endregion - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'BusinessEntityID'. - /// - /// - /// The property value representing column 'BusinessEntityID'. - /// - [Key] - [Column("BusinessEntityID", TypeName = "int")] - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value representing column 'QuotaDate'. - /// - /// - /// The property value representing column 'QuotaDate'. - /// - [Key] - [Column("QuotaDate", TypeName = "datetime")] - public DateTime QuotaDate { get; set; } - - /// - /// Gets or sets the property value representing column 'SalesQuota'. - /// - /// - /// The property value representing column 'SalesQuota'. - /// - [Column("SalesQuota", TypeName = "money")] - public decimal SalesQuota { get; set; } - - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesReason.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesReason.cs deleted file mode 100644 index 148b252..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesReason.cs +++ /dev/null @@ -1,78 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'SalesReason'. -/// -[Table("SalesReason", Schema = "Sales")] -public class SalesReason - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public SalesReason() - { - #region Generated Constructor - - SalesOrderHeaderSalesReasons = new HashSet(); - - #endregion - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection SalesOrderHeaderSalesReasons { get; set; } - - #endregion - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'SalesReasonID'. - /// - /// - /// The property value representing column 'SalesReasonID'. - /// - [Key] - [Column("SalesReasonID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'Name'. - /// - /// - /// The property value representing column 'Name'. - /// - [Column("Name", TypeName = "nvarchar(50)")] - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'ReasonType'. - /// - /// - /// The property value representing column 'ReasonType'. - /// - [Column("ReasonType", TypeName = "nvarchar(50)")] - public string ReasonType { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesTaxRate.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesTaxRate.cs deleted file mode 100644 index 6f6ff51..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesTaxRate.cs +++ /dev/null @@ -1,101 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'SalesTaxRate'. -/// -[Table("SalesTaxRate", Schema = "Sales")] -public class SalesTaxRate - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public SalesTaxRate() - { - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual StateProvince StateProvince { get; set; } = null!; - - #endregion - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'SalesTaxRateID'. - /// - /// - /// The property value representing column 'SalesTaxRateID'. - /// - [Key] - [Column("SalesTaxRateID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'StateProvinceID'. - /// - /// - /// The property value representing column 'StateProvinceID'. - /// - [Column("StateProvinceID", TypeName = "int")] - public int StateProvinceId { get; set; } - - /// - /// Gets or sets the property value representing column 'TaxType'. - /// - /// - /// The property value representing column 'TaxType'. - /// - [Column("TaxType", TypeName = "tinyint")] - public byte TaxType { get; set; } - - /// - /// Gets or sets the property value representing column 'TaxRate'. - /// - /// - /// The property value representing column 'TaxRate'. - /// - [Column("TaxRate", TypeName = "smallmoney")] - public decimal TaxRate { get; set; } - - /// - /// Gets or sets the property value representing column 'Name'. - /// - /// - /// The property value representing column 'Name'. - /// - [Column("Name", TypeName = "nvarchar(50)")] - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesTerritory.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesTerritory.cs deleted file mode 100644 index 8a082c5..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesTerritory.cs +++ /dev/null @@ -1,177 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'SalesTerritory'. -/// -[Table("SalesTerritory", Schema = "Sales")] -public class SalesTerritory - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public SalesTerritory() - { - #region Generated Constructor - - Customers = new HashSet(); - SalesOrderHeaders = new HashSet(); - SalesPeople = new HashSet(); - SalesTerritoryHistories = new HashSet(); - StateProvinces = new HashSet(); - - #endregion - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'TerritoryID'. - /// - /// - /// The property value representing column 'TerritoryID'. - /// - [Key] - [Column("TerritoryID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'Name'. - /// - /// - /// The property value representing column 'Name'. - /// - [Column("Name", TypeName = "nvarchar(50)")] - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'CountryRegionCode'. - /// - /// - /// The property value representing column 'CountryRegionCode'. - /// - [Column("CountryRegionCode", TypeName = "nvarchar(3)")] - public string CountryRegionCode { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'Group'. - /// - /// - /// The property value representing column 'Group'. - /// - [Column("Group", TypeName = "nvarchar(50)")] - public string Group { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'SalesYTD'. - /// - /// - /// The property value representing column 'SalesYTD'. - /// - [Column("SalesYTD", TypeName = "money")] - public decimal SalesYTD { get; set; } - - /// - /// Gets or sets the property value representing column 'SalesLastYear'. - /// - /// - /// The property value representing column 'SalesLastYear'. - /// - [Column("SalesLastYear", TypeName = "money")] - public decimal SalesLastYear { get; set; } - - /// - /// Gets or sets the property value representing column 'CostYTD'. - /// - /// - /// The property value representing column 'CostYTD'. - /// - [Column("CostYTD", TypeName = "money")] - public decimal CostYTD { get; set; } - - /// - /// Gets or sets the property value representing column 'CostLastYear'. - /// - /// - /// The property value representing column 'CostLastYear'. - /// - [Column("CostLastYear", TypeName = "money")] - public decimal CostLastYear { get; set; } - - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual CountryRegion CountryRegion { get; set; } = null!; - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection Customers { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection SalesOrderHeaders { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection SalesPeople { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection SalesTerritoryHistories { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection StateProvinces { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesTerritoryHistory.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesTerritoryHistory.cs deleted file mode 100644 index aa095af..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesTerritoryHistory.cs +++ /dev/null @@ -1,101 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'SalesTerritoryHistory'. -/// -[Table("SalesTerritoryHistory", Schema = "Sales")] -public class SalesTerritoryHistory -{ - /// - /// Initializes a new instance of the class. - /// - public SalesTerritoryHistory() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'BusinessEntityID'. - /// - /// - /// The property value representing column 'BusinessEntityID'. - /// - [Key] - [Column("BusinessEntityID", TypeName = "int")] - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value representing column 'TerritoryID'. - /// - /// - /// The property value representing column 'TerritoryID'. - /// - [Key] - [Column("TerritoryID", TypeName = "int")] - public int TerritoryId { get; set; } - - /// - /// Gets or sets the property value representing column 'StartDate'. - /// - /// - /// The property value representing column 'StartDate'. - /// - [Key] - [Column("StartDate", TypeName = "datetime")] - public DateTime StartDate { get; set; } - - /// - /// Gets or sets the property value representing column 'EndDate'. - /// - /// - /// The property value representing column 'EndDate'. - /// - [Column("EndDate", TypeName = "datetime")] - public DateTime? EndDate { get; set; } - - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual SalesPerson SalesPerson { get; set; } = null!; - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual SalesTerritory SalesTerritory { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ScrapReason.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ScrapReason.cs deleted file mode 100644 index 2f61acf..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ScrapReason.cs +++ /dev/null @@ -1,69 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'ScrapReason'. -/// -[Table("ScrapReason", Schema = "Production")] -public class ScrapReason - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public ScrapReason() - { - #region Generated Constructor - - WorkOrders = new HashSet(); - - #endregion - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection WorkOrders { get; set; } - - #endregion - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'ScrapReasonID'. - /// - /// - /// The property value representing column 'ScrapReasonID'. - /// - [Key] - [Column("ScrapReasonID", TypeName = "smallint")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public short Id { get; set; } - - /// - /// Gets or sets the property value representing column 'Name'. - /// - /// - /// The property value representing column 'Name'. - /// - [Column("Name", TypeName = "nvarchar(50)")] - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Shift.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Shift.cs deleted file mode 100644 index b42c4e2..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/Shift.cs +++ /dev/null @@ -1,87 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'Shift'. -/// -[Table("Shift", Schema = "HumanResources")] -public class Shift - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public Shift() - { - #region Generated Constructor - - EmployeeDepartmentHistories = new HashSet(); - - #endregion - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection EmployeeDepartmentHistories { get; set; } - - #endregion - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'ShiftID'. - /// - /// - /// The property value representing column 'ShiftID'. - /// - [Key] - [Column("ShiftID", TypeName = "tinyint")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public byte Id { get; set; } - - /// - /// Gets or sets the property value representing column 'Name'. - /// - /// - /// The property value representing column 'Name'. - /// - [Column("Name", TypeName = "nvarchar(50)")] - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'StartTime'. - /// - /// - /// The property value representing column 'StartTime'. - /// - [Column("StartTime", TypeName = "time")] - public TimeOnly StartTime { get; set; } - - /// - /// Gets or sets the property value representing column 'EndTime'. - /// - /// - /// The property value representing column 'EndTime'. - /// - [Column("EndTime", TypeName = "time")] - public TimeOnly EndTime { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ShipMethod.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ShipMethod.cs deleted file mode 100644 index c7fbe76..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ShipMethod.cs +++ /dev/null @@ -1,105 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'ShipMethod'. -/// -[Table("ShipMethod", Schema = "Purchasing")] -public class ShipMethod - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public ShipMethod() - { - #region Generated Constructor - - PurchaseOrderHeaders = new HashSet(); - SalesOrderHeaders = new HashSet(); - - #endregion - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'ShipMethodID'. - /// - /// - /// The property value representing column 'ShipMethodID'. - /// - [Key] - [Column("ShipMethodID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'Name'. - /// - /// - /// The property value representing column 'Name'. - /// - [Column("Name", TypeName = "nvarchar(50)")] - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'ShipBase'. - /// - /// - /// The property value representing column 'ShipBase'. - /// - [Column("ShipBase", TypeName = "money")] - public decimal ShipBase { get; set; } - - /// - /// Gets or sets the property value representing column 'ShipRate'. - /// - /// - /// The property value representing column 'ShipRate'. - /// - [Column("ShipRate", TypeName = "money")] - public decimal ShipRate { get; set; } - - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection PurchaseOrderHeaders { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection SalesOrderHeaders { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ShoppingCartItem.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ShoppingCartItem.cs deleted file mode 100644 index 1396ea6..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ShoppingCartItem.cs +++ /dev/null @@ -1,92 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'ShoppingCartItem'. -/// -[Table("ShoppingCartItem", Schema = "Sales")] -public class ShoppingCartItem - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public ShoppingCartItem() - { - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Product Product { get; set; } = null!; - - #endregion - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'ShoppingCartItemID'. - /// - /// - /// The property value representing column 'ShoppingCartItemID'. - /// - [Key] - [Column("ShoppingCartItemID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'ShoppingCartID'. - /// - /// - /// The property value representing column 'ShoppingCartID'. - /// - [Column("ShoppingCartID", TypeName = "nvarchar(50)")] - public string ShoppingCartId { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'Quantity'. - /// - /// - /// The property value representing column 'Quantity'. - /// - [Column("Quantity", TypeName = "int")] - public int Quantity { get; set; } - - /// - /// Gets or sets the property value representing column 'ProductID'. - /// - /// - /// The property value representing column 'ProductID'. - /// - [Column("ProductID", TypeName = "int")] - public int ProductId { get; set; } - - /// - /// Gets or sets the property value representing column 'DateCreated'. - /// - /// - /// The property value representing column 'DateCreated'. - /// - [Column("DateCreated", TypeName = "datetime")] - public DateTime DateCreated { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/SpecialOffer.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/SpecialOffer.cs deleted file mode 100644 index 0aea07c..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/SpecialOffer.cs +++ /dev/null @@ -1,141 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'SpecialOffer'. -/// -[Table("SpecialOffer", Schema = "Sales")] -public class SpecialOffer - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public SpecialOffer() - { - #region Generated Constructor - - SpecialOfferProducts = new HashSet(); - - #endregion - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection SpecialOfferProducts { get; set; } - - #endregion - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'SpecialOfferID'. - /// - /// - /// The property value representing column 'SpecialOfferID'. - /// - [Key] - [Column("SpecialOfferID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'Description'. - /// - /// - /// The property value representing column 'Description'. - /// - [Column("Description", TypeName = "nvarchar(255)")] - public string Description { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'DiscountPct'. - /// - /// - /// The property value representing column 'DiscountPct'. - /// - [Column("DiscountPct", TypeName = "smallmoney")] - public decimal DiscountPct { get; set; } - - /// - /// Gets or sets the property value representing column 'Type'. - /// - /// - /// The property value representing column 'Type'. - /// - [Column("Type", TypeName = "nvarchar(50)")] - public string Type { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'Category'. - /// - /// - /// The property value representing column 'Category'. - /// - [Column("Category", TypeName = "nvarchar(50)")] - public string Category { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'StartDate'. - /// - /// - /// The property value representing column 'StartDate'. - /// - [Column("StartDate", TypeName = "datetime")] - public DateTime StartDate { get; set; } - - /// - /// Gets or sets the property value representing column 'EndDate'. - /// - /// - /// The property value representing column 'EndDate'. - /// - [Column("EndDate", TypeName = "datetime")] - public DateTime EndDate { get; set; } - - /// - /// Gets or sets the property value representing column 'MinQty'. - /// - /// - /// The property value representing column 'MinQty'. - /// - [Column("MinQty", TypeName = "int")] - public int MinQty { get; set; } - - /// - /// Gets or sets the property value representing column 'MaxQty'. - /// - /// - /// The property value representing column 'MaxQty'. - /// - [Column("MaxQty", TypeName = "int")] - public int? MaxQty { get; set; } - - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/SpecialOfferProduct.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/SpecialOfferProduct.cs deleted file mode 100644 index d4aebbf..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/SpecialOfferProduct.cs +++ /dev/null @@ -1,95 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'SpecialOfferProduct'. -/// -[Table("SpecialOfferProduct", Schema = "Sales")] -public class SpecialOfferProduct -{ - /// - /// Initializes a new instance of the class. - /// - public SpecialOfferProduct() - { - #region Generated Constructor - - SalesOrderDetails = new HashSet(); - - #endregion - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'SpecialOfferID'. - /// - /// - /// The property value representing column 'SpecialOfferID'. - /// - [Key] - [Column("SpecialOfferID", TypeName = "int")] - public int SpecialOfferId { get; set; } - - /// - /// Gets or sets the property value representing column 'ProductID'. - /// - /// - /// The property value representing column 'ProductID'. - /// - [Key] - [Column("ProductID", TypeName = "int")] - public int ProductId { get; set; } - - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Product Product { get; set; } = null!; - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection SalesOrderDetails { get; set; } - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual SpecialOffer SpecialOffer { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/StateProvince.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/StateProvince.cs deleted file mode 100644 index 418426f..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/StateProvince.cs +++ /dev/null @@ -1,141 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'StateProvince'. -/// -[Table("StateProvince", Schema = "Person")] -public class StateProvince - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public StateProvince() - { - #region Generated Constructor - - Addresses = new HashSet
(); - SalesTaxRates = new HashSet(); - - #endregion - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'StateProvinceID'. - /// - /// - /// The property value representing column 'StateProvinceID'. - /// - [Key] - [Column("StateProvinceID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'StateProvinceCode'. - /// - /// - /// The property value representing column 'StateProvinceCode'. - /// - [Column("StateProvinceCode", TypeName = "nchar(3)")] - public string StateProvinceCode { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'CountryRegionCode'. - /// - /// - /// The property value representing column 'CountryRegionCode'. - /// - [Column("CountryRegionCode", TypeName = "nvarchar(3)")] - public string CountryRegionCode { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'IsOnlyStateProvinceFlag'. - /// - /// - /// The property value representing column 'IsOnlyStateProvinceFlag'. - /// - [Column("IsOnlyStateProvinceFlag", TypeName = "bit")] - public bool IsOnlyStateProvinceFlag { get; set; } - - /// - /// Gets or sets the property value representing column 'Name'. - /// - /// - /// The property value representing column 'Name'. - /// - [Column("Name", TypeName = "nvarchar(50)")] - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'TerritoryID'. - /// - /// - /// The property value representing column 'TerritoryID'. - /// - [Column("TerritoryID", TypeName = "int")] - public int TerritoryId { get; set; } - - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection
Addresses { get; set; } - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual CountryRegion CountryRegion { get; set; } = null!; - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection SalesTaxRates { get; set; } - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual SalesTerritory SalesTerritory { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Store.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Store.cs deleted file mode 100644 index ac05f67..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/Store.cs +++ /dev/null @@ -1,112 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'Store'. -/// -[Table("Store", Schema = "Sales")] -public class Store -{ - /// - /// Initializes a new instance of the class. - /// - public Store() - { - #region Generated Constructor - - Customers = new HashSet(); - - #endregion - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'BusinessEntityID'. - /// - /// - /// The property value representing column 'BusinessEntityID'. - /// - [Key] - [Column("BusinessEntityID", TypeName = "int")] - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value representing column 'Name'. - /// - /// - /// The property value representing column 'Name'. - /// - [Column("Name", TypeName = "nvarchar(50)")] - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'SalesPersonID'. - /// - /// - /// The property value representing column 'SalesPersonID'. - /// - [Column("SalesPersonID", TypeName = "int")] - public int? SalesPersonId { get; set; } - - /// - /// Gets or sets the property value representing column 'Demographics'. - /// - /// - /// The property value representing column 'Demographics'. - /// - [Column("Demographics", TypeName = "xml")] - public string? Demographics { get; set; } - - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual BusinessEntity BusinessEntity { get; set; } = null!; - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection Customers { get; set; } - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual SalesPerson? SalesPerson { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/TransactionHistory.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/TransactionHistory.cs deleted file mode 100644 index 46c37d7..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/TransactionHistory.cs +++ /dev/null @@ -1,119 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'TransactionHistory'. -/// -[Table("TransactionHistory", Schema = "Production")] -public class TransactionHistory - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public TransactionHistory() - { - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Product Product { get; set; } = null!; - - #endregion - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'TransactionID'. - /// - /// - /// The property value representing column 'TransactionID'. - /// - [Key] - [Column("TransactionID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'ProductID'. - /// - /// - /// The property value representing column 'ProductID'. - /// - [Column("ProductID", TypeName = "int")] - public int ProductId { get; set; } - - /// - /// Gets or sets the property value representing column 'ReferenceOrderID'. - /// - /// - /// The property value representing column 'ReferenceOrderID'. - /// - [Column("ReferenceOrderID", TypeName = "int")] - public int ReferenceOrderId { get; set; } - - /// - /// Gets or sets the property value representing column 'ReferenceOrderLineID'. - /// - /// - /// The property value representing column 'ReferenceOrderLineID'. - /// - [Column("ReferenceOrderLineID", TypeName = "int")] - public int ReferenceOrderLineId { get; set; } - - /// - /// Gets or sets the property value representing column 'TransactionDate'. - /// - /// - /// The property value representing column 'TransactionDate'. - /// - [Column("TransactionDate", TypeName = "datetime")] - public DateTime TransactionDate { get; set; } - - /// - /// Gets or sets the property value representing column 'TransactionType'. - /// - /// - /// The property value representing column 'TransactionType'. - /// - [Column("TransactionType", TypeName = "nchar(1)")] - public string TransactionType { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'Quantity'. - /// - /// - /// The property value representing column 'Quantity'. - /// - [Column("Quantity", TypeName = "int")] - public int Quantity { get; set; } - - /// - /// Gets or sets the property value representing column 'ActualCost'. - /// - /// - /// The property value representing column 'ActualCost'. - /// - [Column("ActualCost", TypeName = "money")] - public decimal ActualCost { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/TransactionHistoryArchive.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/TransactionHistoryArchive.cs deleted file mode 100644 index b6132fc..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/TransactionHistoryArchive.cs +++ /dev/null @@ -1,104 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'TransactionHistoryArchive'. -/// -[Table("TransactionHistoryArchive", Schema = "Production")] -public class TransactionHistoryArchive -{ - /// - /// Initializes a new instance of the class. - /// - public TransactionHistoryArchive() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'TransactionID'. - /// - /// - /// The property value representing column 'TransactionID'. - /// - [Key] - [Column("TransactionID", TypeName = "int")] - public int TransactionId { get; set; } - - /// - /// Gets or sets the property value representing column 'ProductID'. - /// - /// - /// The property value representing column 'ProductID'. - /// - [Column("ProductID", TypeName = "int")] - public int ProductId { get; set; } - - /// - /// Gets or sets the property value representing column 'ReferenceOrderID'. - /// - /// - /// The property value representing column 'ReferenceOrderID'. - /// - [Column("ReferenceOrderID", TypeName = "int")] - public int ReferenceOrderId { get; set; } - - /// - /// Gets or sets the property value representing column 'ReferenceOrderLineID'. - /// - /// - /// The property value representing column 'ReferenceOrderLineID'. - /// - [Column("ReferenceOrderLineID", TypeName = "int")] - public int ReferenceOrderLineId { get; set; } - - /// - /// Gets or sets the property value representing column 'TransactionDate'. - /// - /// - /// The property value representing column 'TransactionDate'. - /// - [Column("TransactionDate", TypeName = "datetime")] - public DateTime TransactionDate { get; set; } - - /// - /// Gets or sets the property value representing column 'TransactionType'. - /// - /// - /// The property value representing column 'TransactionType'. - /// - [Column("TransactionType", TypeName = "nchar(1)")] - public string TransactionType { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'Quantity'. - /// - /// - /// The property value representing column 'Quantity'. - /// - [Column("Quantity", TypeName = "int")] - public int Quantity { get; set; } - - /// - /// Gets or sets the property value representing column 'ActualCost'. - /// - /// - /// The property value representing column 'ActualCost'. - /// - [Column("ActualCost", TypeName = "money")] - public decimal ActualCost { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/UnitMeasure.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/UnitMeasure.cs deleted file mode 100644 index 0c0cd31..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/UnitMeasure.cs +++ /dev/null @@ -1,94 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'UnitMeasure'. -/// -[Table("UnitMeasure", Schema = "Production")] -public class UnitMeasure -{ - /// - /// Initializes a new instance of the class. - /// - public UnitMeasure() - { - #region Generated Constructor - - BillOfMaterials = new HashSet(); - ProductVendors = new HashSet(); - SizeProducts = new HashSet(); - WeightProducts = new HashSet(); - - #endregion - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'UnitMeasureCode'. - /// - /// - /// The property value representing column 'UnitMeasureCode'. - /// - [Key] - [Column("UnitMeasureCode", TypeName = "nchar(3)")] - public string UnitMeasureCode { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'Name'. - /// - /// - /// The property value representing column 'Name'. - /// - [Column("Name", TypeName = "nvarchar(50)")] - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection BillOfMaterials { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection ProductVendors { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection SizeProducts { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection WeightProducts { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VAdditionalContactInfo.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VAdditionalContactInfo.cs deleted file mode 100644 index b14f822..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VAdditionalContactInfo.cs +++ /dev/null @@ -1,174 +0,0 @@ -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'vAdditionalContactInfo'. -/// -[Table("vAdditionalContactInfo", Schema = "Person")] -public class VAdditionalContactInfo -{ - /// - /// Initializes a new instance of the class. - /// - public VAdditionalContactInfo() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'BusinessEntityID'. - /// - /// - /// The property value representing column 'BusinessEntityID'. - /// - [Column("BusinessEntityID", TypeName = "int")] - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value representing column 'FirstName'. - /// - /// - /// The property value representing column 'FirstName'. - /// - [Column("FirstName", TypeName = "nvarchar(50)")] - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'MiddleName'. - /// - /// - /// The property value representing column 'MiddleName'. - /// - [Column("MiddleName", TypeName = "nvarchar(50)")] - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value representing column 'LastName'. - /// - /// - /// The property value representing column 'LastName'. - /// - [Column("LastName", TypeName = "nvarchar(50)")] - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'TelephoneNumber'. - /// - /// - /// The property value representing column 'TelephoneNumber'. - /// - [Column("TelephoneNumber", TypeName = "nvarchar(50)")] - public string? TelephoneNumber { get; set; } - - /// - /// Gets or sets the property value representing column 'TelephoneSpecialInstructions'. - /// - /// - /// The property value representing column 'TelephoneSpecialInstructions'. - /// - [Column("TelephoneSpecialInstructions", TypeName = "nvarchar(max)")] - public string? TelephoneSpecialInstructions { get; set; } - - /// - /// Gets or sets the property value representing column 'Street'. - /// - /// - /// The property value representing column 'Street'. - /// - [Column("Street", TypeName = "nvarchar(50)")] - public string? Street { get; set; } - - /// - /// Gets or sets the property value representing column 'City'. - /// - /// - /// The property value representing column 'City'. - /// - [Column("City", TypeName = "nvarchar(50)")] - public string? City { get; set; } - - /// - /// Gets or sets the property value representing column 'StateProvince'. - /// - /// - /// The property value representing column 'StateProvince'. - /// - [Column("StateProvince", TypeName = "nvarchar(50)")] - public string? StateProvince { get; set; } - - /// - /// Gets or sets the property value representing column 'PostalCode'. - /// - /// - /// The property value representing column 'PostalCode'. - /// - [Column("PostalCode", TypeName = "nvarchar(50)")] - public string? PostalCode { get; set; } - - /// - /// Gets or sets the property value representing column 'CountryRegion'. - /// - /// - /// The property value representing column 'CountryRegion'. - /// - [Column("CountryRegion", TypeName = "nvarchar(50)")] - public string? CountryRegion { get; set; } - - /// - /// Gets or sets the property value representing column 'HomeAddressSpecialInstructions'. - /// - /// - /// The property value representing column 'HomeAddressSpecialInstructions'. - /// - [Column("HomeAddressSpecialInstructions", TypeName = "nvarchar(max)")] - public string? HomeAddressSpecialInstructions { get; set; } - - /// - /// Gets or sets the property value representing column 'EMailAddress'. - /// - /// - /// The property value representing column 'EMailAddress'. - /// - [Column("EMailAddress", TypeName = "nvarchar(128)")] - public string? EMailAddress { get; set; } - - /// - /// Gets or sets the property value representing column 'EMailSpecialInstructions'. - /// - /// - /// The property value representing column 'EMailSpecialInstructions'. - /// - [Column("EMailSpecialInstructions", TypeName = "nvarchar(max)")] - public string? EMailSpecialInstructions { get; set; } - - /// - /// Gets or sets the property value representing column 'EMailTelephoneNumber'. - /// - /// - /// The property value representing column 'EMailTelephoneNumber'. - /// - [Column("EMailTelephoneNumber", TypeName = "nvarchar(50)")] - public string? EMailTelephoneNumber { get; set; } - - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VEmployee.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VEmployee.cs deleted file mode 100644 index a70298e..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VEmployee.cs +++ /dev/null @@ -1,183 +0,0 @@ -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'vEmployee'. -/// -[Table("vEmployee", Schema = "HumanResources")] -public class VEmployee -{ - /// - /// Initializes a new instance of the class. - /// - public VEmployee() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'BusinessEntityID'. - /// - /// - /// The property value representing column 'BusinessEntityID'. - /// - [Column("BusinessEntityID", TypeName = "int")] - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value representing column 'Title'. - /// - /// - /// The property value representing column 'Title'. - /// - [Column("Title", TypeName = "nvarchar(8)")] - public string? Title { get; set; } - - /// - /// Gets or sets the property value representing column 'FirstName'. - /// - /// - /// The property value representing column 'FirstName'. - /// - [Column("FirstName", TypeName = "nvarchar(50)")] - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'MiddleName'. - /// - /// - /// The property value representing column 'MiddleName'. - /// - [Column("MiddleName", TypeName = "nvarchar(50)")] - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value representing column 'LastName'. - /// - /// - /// The property value representing column 'LastName'. - /// - [Column("LastName", TypeName = "nvarchar(50)")] - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'Suffix'. - /// - /// - /// The property value representing column 'Suffix'. - /// - [Column("Suffix", TypeName = "nvarchar(10)")] - public string? Suffix { get; set; } - - /// - /// Gets or sets the property value representing column 'JobTitle'. - /// - /// - /// The property value representing column 'JobTitle'. - /// - [Column("JobTitle", TypeName = "nvarchar(50)")] - public string JobTitle { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'PhoneNumber'. - /// - /// - /// The property value representing column 'PhoneNumber'. - /// - [Column("PhoneNumber", TypeName = "nvarchar(25)")] - public string? PhoneNumber { get; set; } - - /// - /// Gets or sets the property value representing column 'PhoneNumberType'. - /// - /// - /// The property value representing column 'PhoneNumberType'. - /// - [Column("PhoneNumberType", TypeName = "nvarchar(50)")] - public string? PhoneNumberType { get; set; } - - /// - /// Gets or sets the property value representing column 'EmailAddress'. - /// - /// - /// The property value representing column 'EmailAddress'. - /// - [Column("EmailAddress", TypeName = "nvarchar(50)")] - public string? EmailAddress { get; set; } - - /// - /// Gets or sets the property value representing column 'EmailPromotion'. - /// - /// - /// The property value representing column 'EmailPromotion'. - /// - [Column("EmailPromotion", TypeName = "int")] - public int EmailPromotion { get; set; } - - /// - /// Gets or sets the property value representing column 'AddressLine1'. - /// - /// - /// The property value representing column 'AddressLine1'. - /// - [Column("AddressLine1", TypeName = "nvarchar(60)")] - public string AddressLine1 { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'AddressLine2'. - /// - /// - /// The property value representing column 'AddressLine2'. - /// - [Column("AddressLine2", TypeName = "nvarchar(60)")] - public string? AddressLine2 { get; set; } - - /// - /// Gets or sets the property value representing column 'City'. - /// - /// - /// The property value representing column 'City'. - /// - [Column("City", TypeName = "nvarchar(30)")] - public string City { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'StateProvinceName'. - /// - /// - /// The property value representing column 'StateProvinceName'. - /// - [Column("StateProvinceName", TypeName = "nvarchar(50)")] - public string StateProvinceName { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'PostalCode'. - /// - /// - /// The property value representing column 'PostalCode'. - /// - [Column("PostalCode", TypeName = "nvarchar(15)")] - public string PostalCode { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'CountryRegionName'. - /// - /// - /// The property value representing column 'CountryRegionName'. - /// - [Column("CountryRegionName", TypeName = "nvarchar(50)")] - public string CountryRegionName { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'AdditionalContactInfo'. - /// - /// - /// The property value representing column 'AdditionalContactInfo'. - /// - [Column("AdditionalContactInfo", TypeName = "xml")] - public string? AdditionalContactInfo { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VEmployeeDepartment.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VEmployeeDepartment.cs deleted file mode 100644 index 6af3d1d..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VEmployeeDepartment.cs +++ /dev/null @@ -1,111 +0,0 @@ -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'vEmployeeDepartment'. -/// -[Table("vEmployeeDepartment", Schema = "HumanResources")] -public class VEmployeeDepartment -{ - /// - /// Initializes a new instance of the class. - /// - public VEmployeeDepartment() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'BusinessEntityID'. - /// - /// - /// The property value representing column 'BusinessEntityID'. - /// - [Column("BusinessEntityID", TypeName = "int")] - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value representing column 'Title'. - /// - /// - /// The property value representing column 'Title'. - /// - [Column("Title", TypeName = "nvarchar(8)")] - public string? Title { get; set; } - - /// - /// Gets or sets the property value representing column 'FirstName'. - /// - /// - /// The property value representing column 'FirstName'. - /// - [Column("FirstName", TypeName = "nvarchar(50)")] - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'MiddleName'. - /// - /// - /// The property value representing column 'MiddleName'. - /// - [Column("MiddleName", TypeName = "nvarchar(50)")] - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value representing column 'LastName'. - /// - /// - /// The property value representing column 'LastName'. - /// - [Column("LastName", TypeName = "nvarchar(50)")] - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'Suffix'. - /// - /// - /// The property value representing column 'Suffix'. - /// - [Column("Suffix", TypeName = "nvarchar(10)")] - public string? Suffix { get; set; } - - /// - /// Gets or sets the property value representing column 'JobTitle'. - /// - /// - /// The property value representing column 'JobTitle'. - /// - [Column("JobTitle", TypeName = "nvarchar(50)")] - public string JobTitle { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'Department'. - /// - /// - /// The property value representing column 'Department'. - /// - [Column("Department", TypeName = "nvarchar(50)")] - public string Department { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'GroupName'. - /// - /// - /// The property value representing column 'GroupName'. - /// - [Column("GroupName", TypeName = "nvarchar(50)")] - public string GroupName { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'StartDate'. - /// - /// - /// The property value representing column 'StartDate'. - /// - [Column("StartDate", TypeName = "date")] - public DateOnly StartDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VEmployeeDepartmentHistory.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VEmployeeDepartmentHistory.cs deleted file mode 100644 index 9ed1ce1..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VEmployeeDepartmentHistory.cs +++ /dev/null @@ -1,120 +0,0 @@ -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'vEmployeeDepartmentHistory'. -/// -[Table("vEmployeeDepartmentHistory", Schema = "HumanResources")] -public class VEmployeeDepartmentHistory -{ - /// - /// Initializes a new instance of the class. - /// - public VEmployeeDepartmentHistory() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'BusinessEntityID'. - /// - /// - /// The property value representing column 'BusinessEntityID'. - /// - [Column("BusinessEntityID", TypeName = "int")] - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value representing column 'Title'. - /// - /// - /// The property value representing column 'Title'. - /// - [Column("Title", TypeName = "nvarchar(8)")] - public string? Title { get; set; } - - /// - /// Gets or sets the property value representing column 'FirstName'. - /// - /// - /// The property value representing column 'FirstName'. - /// - [Column("FirstName", TypeName = "nvarchar(50)")] - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'MiddleName'. - /// - /// - /// The property value representing column 'MiddleName'. - /// - [Column("MiddleName", TypeName = "nvarchar(50)")] - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value representing column 'LastName'. - /// - /// - /// The property value representing column 'LastName'. - /// - [Column("LastName", TypeName = "nvarchar(50)")] - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'Suffix'. - /// - /// - /// The property value representing column 'Suffix'. - /// - [Column("Suffix", TypeName = "nvarchar(10)")] - public string? Suffix { get; set; } - - /// - /// Gets or sets the property value representing column 'Shift'. - /// - /// - /// The property value representing column 'Shift'. - /// - [Column("Shift", TypeName = "nvarchar(50)")] - public string Shift { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'Department'. - /// - /// - /// The property value representing column 'Department'. - /// - [Column("Department", TypeName = "nvarchar(50)")] - public string Department { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'GroupName'. - /// - /// - /// The property value representing column 'GroupName'. - /// - [Column("GroupName", TypeName = "nvarchar(50)")] - public string GroupName { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'StartDate'. - /// - /// - /// The property value representing column 'StartDate'. - /// - [Column("StartDate", TypeName = "date")] - public DateOnly StartDate { get; set; } - - /// - /// Gets or sets the property value representing column 'EndDate'. - /// - /// - /// The property value representing column 'EndDate'. - /// - [Column("EndDate", TypeName = "date")] - public DateOnly? EndDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VIndividualCustomer.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VIndividualCustomer.cs deleted file mode 100644 index fdb1573..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VIndividualCustomer.cs +++ /dev/null @@ -1,183 +0,0 @@ -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'vIndividualCustomer'. -/// -[Table("vIndividualCustomer", Schema = "Sales")] -public class VIndividualCustomer -{ - /// - /// Initializes a new instance of the class. - /// - public VIndividualCustomer() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'BusinessEntityID'. - /// - /// - /// The property value representing column 'BusinessEntityID'. - /// - [Column("BusinessEntityID", TypeName = "int")] - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value representing column 'Title'. - /// - /// - /// The property value representing column 'Title'. - /// - [Column("Title", TypeName = "nvarchar(8)")] - public string? Title { get; set; } - - /// - /// Gets or sets the property value representing column 'FirstName'. - /// - /// - /// The property value representing column 'FirstName'. - /// - [Column("FirstName", TypeName = "nvarchar(50)")] - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'MiddleName'. - /// - /// - /// The property value representing column 'MiddleName'. - /// - [Column("MiddleName", TypeName = "nvarchar(50)")] - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value representing column 'LastName'. - /// - /// - /// The property value representing column 'LastName'. - /// - [Column("LastName", TypeName = "nvarchar(50)")] - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'Suffix'. - /// - /// - /// The property value representing column 'Suffix'. - /// - [Column("Suffix", TypeName = "nvarchar(10)")] - public string? Suffix { get; set; } - - /// - /// Gets or sets the property value representing column 'PhoneNumber'. - /// - /// - /// The property value representing column 'PhoneNumber'. - /// - [Column("PhoneNumber", TypeName = "nvarchar(25)")] - public string? PhoneNumber { get; set; } - - /// - /// Gets or sets the property value representing column 'PhoneNumberType'. - /// - /// - /// The property value representing column 'PhoneNumberType'. - /// - [Column("PhoneNumberType", TypeName = "nvarchar(50)")] - public string? PhoneNumberType { get; set; } - - /// - /// Gets or sets the property value representing column 'EmailAddress'. - /// - /// - /// The property value representing column 'EmailAddress'. - /// - [Column("EmailAddress", TypeName = "nvarchar(50)")] - public string? EmailAddress { get; set; } - - /// - /// Gets or sets the property value representing column 'EmailPromotion'. - /// - /// - /// The property value representing column 'EmailPromotion'. - /// - [Column("EmailPromotion", TypeName = "int")] - public int EmailPromotion { get; set; } - - /// - /// Gets or sets the property value representing column 'AddressType'. - /// - /// - /// The property value representing column 'AddressType'. - /// - [Column("AddressType", TypeName = "nvarchar(50)")] - public string AddressType { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'AddressLine1'. - /// - /// - /// The property value representing column 'AddressLine1'. - /// - [Column("AddressLine1", TypeName = "nvarchar(60)")] - public string AddressLine1 { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'AddressLine2'. - /// - /// - /// The property value representing column 'AddressLine2'. - /// - [Column("AddressLine2", TypeName = "nvarchar(60)")] - public string? AddressLine2 { get; set; } - - /// - /// Gets or sets the property value representing column 'City'. - /// - /// - /// The property value representing column 'City'. - /// - [Column("City", TypeName = "nvarchar(30)")] - public string City { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'StateProvinceName'. - /// - /// - /// The property value representing column 'StateProvinceName'. - /// - [Column("StateProvinceName", TypeName = "nvarchar(50)")] - public string StateProvinceName { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'PostalCode'. - /// - /// - /// The property value representing column 'PostalCode'. - /// - [Column("PostalCode", TypeName = "nvarchar(15)")] - public string PostalCode { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'CountryRegionName'. - /// - /// - /// The property value representing column 'CountryRegionName'. - /// - [Column("CountryRegionName", TypeName = "nvarchar(50)")] - public string CountryRegionName { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'Demographics'. - /// - /// - /// The property value representing column 'Demographics'. - /// - [Column("Demographics", TypeName = "xml")] - public string? Demographics { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VJobCandidate.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VJobCandidate.cs deleted file mode 100644 index 992495c..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VJobCandidate.cs +++ /dev/null @@ -1,167 +0,0 @@ -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'vJobCandidate'. -/// -[Table("vJobCandidate", Schema = "HumanResources")] -public class VJobCandidate - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public VJobCandidate() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'JobCandidateID'. - /// - /// - /// The property value representing column 'JobCandidateID'. - /// - [Column("JobCandidateID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'BusinessEntityID'. - /// - /// - /// The property value representing column 'BusinessEntityID'. - /// - [Column("BusinessEntityID", TypeName = "int")] - public int? BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value representing column 'Name.Prefix'. - /// - /// - /// The property value representing column 'Name.Prefix'. - /// - [Column("Name.Prefix", TypeName = "nvarchar(30)")] - public string? NamePrefix { get; set; } - - /// - /// Gets or sets the property value representing column 'Name.First'. - /// - /// - /// The property value representing column 'Name.First'. - /// - [Column("Name.First", TypeName = "nvarchar(30)")] - public string? NameFirst { get; set; } - - /// - /// Gets or sets the property value representing column 'Name.Middle'. - /// - /// - /// The property value representing column 'Name.Middle'. - /// - [Column("Name.Middle", TypeName = "nvarchar(30)")] - public string? NameMiddle { get; set; } - - /// - /// Gets or sets the property value representing column 'Name.Last'. - /// - /// - /// The property value representing column 'Name.Last'. - /// - [Column("Name.Last", TypeName = "nvarchar(30)")] - public string? NameLast { get; set; } - - /// - /// Gets or sets the property value representing column 'Name.Suffix'. - /// - /// - /// The property value representing column 'Name.Suffix'. - /// - [Column("Name.Suffix", TypeName = "nvarchar(30)")] - public string? NameSuffix { get; set; } - - /// - /// Gets or sets the property value representing column 'Skills'. - /// - /// - /// The property value representing column 'Skills'. - /// - [Column("Skills", TypeName = "nvarchar(max)")] - public string? Skills { get; set; } - - /// - /// Gets or sets the property value representing column 'Addr.Type'. - /// - /// - /// The property value representing column 'Addr.Type'. - /// - [Column("Addr.Type", TypeName = "nvarchar(30)")] - public string? AddrType { get; set; } - - /// - /// Gets or sets the property value representing column 'Addr.Loc.CountryRegion'. - /// - /// - /// The property value representing column 'Addr.Loc.CountryRegion'. - /// - [Column("Addr.Loc.CountryRegion", TypeName = "nvarchar(100)")] - public string? AddrLocCountryRegion { get; set; } - - /// - /// Gets or sets the property value representing column 'Addr.Loc.State'. - /// - /// - /// The property value representing column 'Addr.Loc.State'. - /// - [Column("Addr.Loc.State", TypeName = "nvarchar(100)")] - public string? AddrLocState { get; set; } - - /// - /// Gets or sets the property value representing column 'Addr.Loc.City'. - /// - /// - /// The property value representing column 'Addr.Loc.City'. - /// - [Column("Addr.Loc.City", TypeName = "nvarchar(100)")] - public string? AddrLocCity { get; set; } - - /// - /// Gets or sets the property value representing column 'Addr.PostalCode'. - /// - /// - /// The property value representing column 'Addr.PostalCode'. - /// - [Column("Addr.PostalCode", TypeName = "nvarchar(20)")] - public string? AddrPostalCode { get; set; } - - /// - /// Gets or sets the property value representing column 'EMail'. - /// - /// - /// The property value representing column 'EMail'. - /// - [Column("EMail", TypeName = "nvarchar(max)")] - public string? EMail { get; set; } - - /// - /// Gets or sets the property value representing column 'WebSite'. - /// - /// - /// The property value representing column 'WebSite'. - /// - [Column("WebSite", TypeName = "nvarchar(max)")] - public string? WebSite { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VJobCandidateEducation.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VJobCandidateEducation.cs deleted file mode 100644 index fd3918e..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VJobCandidateEducation.cs +++ /dev/null @@ -1,140 +0,0 @@ -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'vJobCandidateEducation'. -/// -[Table("vJobCandidateEducation", Schema = "HumanResources")] -public class VJobCandidateEducation - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public VJobCandidateEducation() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'JobCandidateID'. - /// - /// - /// The property value representing column 'JobCandidateID'. - /// - [Column("JobCandidateID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'Edu.Level'. - /// - /// - /// The property value representing column 'Edu.Level'. - /// - [Column("Edu.Level", TypeName = "nvarchar(max)")] - public string? EduLevel { get; set; } - - /// - /// Gets or sets the property value representing column 'Edu.StartDate'. - /// - /// - /// The property value representing column 'Edu.StartDate'. - /// - [Column("Edu.StartDate", TypeName = "datetime")] - public DateTime? EduStartDate { get; set; } - - /// - /// Gets or sets the property value representing column 'Edu.EndDate'. - /// - /// - /// The property value representing column 'Edu.EndDate'. - /// - [Column("Edu.EndDate", TypeName = "datetime")] - public DateTime? EduEndDate { get; set; } - - /// - /// Gets or sets the property value representing column 'Edu.Degree'. - /// - /// - /// The property value representing column 'Edu.Degree'. - /// - [Column("Edu.Degree", TypeName = "nvarchar(50)")] - public string? EduDegree { get; set; } - - /// - /// Gets or sets the property value representing column 'Edu.Major'. - /// - /// - /// The property value representing column 'Edu.Major'. - /// - [Column("Edu.Major", TypeName = "nvarchar(50)")] - public string? EduMajor { get; set; } - - /// - /// Gets or sets the property value representing column 'Edu.Minor'. - /// - /// - /// The property value representing column 'Edu.Minor'. - /// - [Column("Edu.Minor", TypeName = "nvarchar(50)")] - public string? EduMinor { get; set; } - - /// - /// Gets or sets the property value representing column 'Edu.GPA'. - /// - /// - /// The property value representing column 'Edu.GPA'. - /// - [Column("Edu.GPA", TypeName = "nvarchar(5)")] - public string? EduGPA { get; set; } - - /// - /// Gets or sets the property value representing column 'Edu.GPAScale'. - /// - /// - /// The property value representing column 'Edu.GPAScale'. - /// - [Column("Edu.GPAScale", TypeName = "nvarchar(5)")] - public string? EduGPAScale { get; set; } - - /// - /// Gets or sets the property value representing column 'Edu.School'. - /// - /// - /// The property value representing column 'Edu.School'. - /// - [Column("Edu.School", TypeName = "nvarchar(100)")] - public string? EduSchool { get; set; } - - /// - /// Gets or sets the property value representing column 'Edu.Loc.CountryRegion'. - /// - /// - /// The property value representing column 'Edu.Loc.CountryRegion'. - /// - [Column("Edu.Loc.CountryRegion", TypeName = "nvarchar(100)")] - public string? EduLocCountryRegion { get; set; } - - /// - /// Gets or sets the property value representing column 'Edu.Loc.State'. - /// - /// - /// The property value representing column 'Edu.Loc.State'. - /// - [Column("Edu.Loc.State", TypeName = "nvarchar(100)")] - public string? EduLocState { get; set; } - - /// - /// Gets or sets the property value representing column 'Edu.Loc.City'. - /// - /// - /// The property value representing column 'Edu.Loc.City'. - /// - [Column("Edu.Loc.City", TypeName = "nvarchar(100)")] - public string? EduLocCity { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VJobCandidateEmployment.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VJobCandidateEmployment.cs deleted file mode 100644 index 81a13ef..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VJobCandidateEmployment.cs +++ /dev/null @@ -1,122 +0,0 @@ -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'vJobCandidateEmployment'. -/// -[Table("vJobCandidateEmployment", Schema = "HumanResources")] -public class VJobCandidateEmployment - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public VJobCandidateEmployment() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'JobCandidateID'. - /// - /// - /// The property value representing column 'JobCandidateID'. - /// - [Column("JobCandidateID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'Emp.StartDate'. - /// - /// - /// The property value representing column 'Emp.StartDate'. - /// - [Column("Emp.StartDate", TypeName = "datetime")] - public DateTime? EmpStartDate { get; set; } - - /// - /// Gets or sets the property value representing column 'Emp.EndDate'. - /// - /// - /// The property value representing column 'Emp.EndDate'. - /// - [Column("Emp.EndDate", TypeName = "datetime")] - public DateTime? EmpEndDate { get; set; } - - /// - /// Gets or sets the property value representing column 'Emp.OrgName'. - /// - /// - /// The property value representing column 'Emp.OrgName'. - /// - [Column("Emp.OrgName", TypeName = "nvarchar(100)")] - public string? EmpOrgName { get; set; } - - /// - /// Gets or sets the property value representing column 'Emp.JobTitle'. - /// - /// - /// The property value representing column 'Emp.JobTitle'. - /// - [Column("Emp.JobTitle", TypeName = "nvarchar(100)")] - public string? EmpJobTitle { get; set; } - - /// - /// Gets or sets the property value representing column 'Emp.Responsibility'. - /// - /// - /// The property value representing column 'Emp.Responsibility'. - /// - [Column("Emp.Responsibility", TypeName = "nvarchar(max)")] - public string? EmpResponsibility { get; set; } - - /// - /// Gets or sets the property value representing column 'Emp.FunctionCategory'. - /// - /// - /// The property value representing column 'Emp.FunctionCategory'. - /// - [Column("Emp.FunctionCategory", TypeName = "nvarchar(max)")] - public string? EmpFunctionCategory { get; set; } - - /// - /// Gets or sets the property value representing column 'Emp.IndustryCategory'. - /// - /// - /// The property value representing column 'Emp.IndustryCategory'. - /// - [Column("Emp.IndustryCategory", TypeName = "nvarchar(max)")] - public string? EmpIndustryCategory { get; set; } - - /// - /// Gets or sets the property value representing column 'Emp.Loc.CountryRegion'. - /// - /// - /// The property value representing column 'Emp.Loc.CountryRegion'. - /// - [Column("Emp.Loc.CountryRegion", TypeName = "nvarchar(max)")] - public string? EmpLocCountryRegion { get; set; } - - /// - /// Gets or sets the property value representing column 'Emp.Loc.State'. - /// - /// - /// The property value representing column 'Emp.Loc.State'. - /// - [Column("Emp.Loc.State", TypeName = "nvarchar(max)")] - public string? EmpLocState { get; set; } - - /// - /// Gets or sets the property value representing column 'Emp.Loc.City'. - /// - /// - /// The property value representing column 'Emp.Loc.City'. - /// - [Column("Emp.Loc.City", TypeName = "nvarchar(max)")] - public string? EmpLocCity { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VPersonDemographics.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VPersonDemographics.cs deleted file mode 100644 index d3e532b..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VPersonDemographics.cs +++ /dev/null @@ -1,138 +0,0 @@ -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'vPersonDemographics'. -/// -[Table("vPersonDemographics", Schema = "Sales")] -public class VPersonDemographics -{ - /// - /// Initializes a new instance of the class. - /// - public VPersonDemographics() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'BusinessEntityID'. - /// - /// - /// The property value representing column 'BusinessEntityID'. - /// - [Column("BusinessEntityID", TypeName = "int")] - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value representing column 'TotalPurchaseYTD'. - /// - /// - /// The property value representing column 'TotalPurchaseYTD'. - /// - [Column("TotalPurchaseYTD", TypeName = "money")] - public decimal? TotalPurchaseYTD { get; set; } - - /// - /// Gets or sets the property value representing column 'DateFirstPurchase'. - /// - /// - /// The property value representing column 'DateFirstPurchase'. - /// - [Column("DateFirstPurchase", TypeName = "datetime")] - public DateTime? DateFirstPurchase { get; set; } - - /// - /// Gets or sets the property value representing column 'BirthDate'. - /// - /// - /// The property value representing column 'BirthDate'. - /// - [Column("BirthDate", TypeName = "datetime")] - public DateTime? BirthDate { get; set; } - - /// - /// Gets or sets the property value representing column 'MaritalStatus'. - /// - /// - /// The property value representing column 'MaritalStatus'. - /// - [Column("MaritalStatus", TypeName = "nvarchar(1)")] - public string? MaritalStatus { get; set; } - - /// - /// Gets or sets the property value representing column 'YearlyIncome'. - /// - /// - /// The property value representing column 'YearlyIncome'. - /// - [Column("YearlyIncome", TypeName = "nvarchar(30)")] - public string? YearlyIncome { get; set; } - - /// - /// Gets or sets the property value representing column 'Gender'. - /// - /// - /// The property value representing column 'Gender'. - /// - [Column("Gender", TypeName = "nvarchar(1)")] - public string? Gender { get; set; } - - /// - /// Gets or sets the property value representing column 'TotalChildren'. - /// - /// - /// The property value representing column 'TotalChildren'. - /// - [Column("TotalChildren", TypeName = "int")] - public int? TotalChildren { get; set; } - - /// - /// Gets or sets the property value representing column 'NumberChildrenAtHome'. - /// - /// - /// The property value representing column 'NumberChildrenAtHome'. - /// - [Column("NumberChildrenAtHome", TypeName = "int")] - public int? NumberChildrenAtHome { get; set; } - - /// - /// Gets or sets the property value representing column 'Education'. - /// - /// - /// The property value representing column 'Education'. - /// - [Column("Education", TypeName = "nvarchar(30)")] - public string? Education { get; set; } - - /// - /// Gets or sets the property value representing column 'Occupation'. - /// - /// - /// The property value representing column 'Occupation'. - /// - [Column("Occupation", TypeName = "nvarchar(30)")] - public string? Occupation { get; set; } - - /// - /// Gets or sets the property value representing column 'HomeOwnerFlag'. - /// - /// - /// The property value representing column 'HomeOwnerFlag'. - /// - [Column("HomeOwnerFlag", TypeName = "bit")] - public bool? HomeOwnerFlag { get; set; } - - /// - /// Gets or sets the property value representing column 'NumberCarsOwned'. - /// - /// - /// The property value representing column 'NumberCarsOwned'. - /// - [Column("NumberCarsOwned", TypeName = "int")] - public int? NumberCarsOwned { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VProductAndDescription.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VProductAndDescription.cs deleted file mode 100644 index 112f0a3..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VProductAndDescription.cs +++ /dev/null @@ -1,66 +0,0 @@ -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'vProductAndDescription'. -/// -[Table("vProductAndDescription", Schema = "Production")] -public class VProductAndDescription -{ - /// - /// Initializes a new instance of the class. - /// - public VProductAndDescription() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'ProductID'. - /// - /// - /// The property value representing column 'ProductID'. - /// - [Column("ProductID", TypeName = "int")] - public int ProductId { get; set; } - - /// - /// Gets or sets the property value representing column 'Name'. - /// - /// - /// The property value representing column 'Name'. - /// - [Column("Name", TypeName = "nvarchar(50)")] - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'ProductModel'. - /// - /// - /// The property value representing column 'ProductModel'. - /// - [Column("ProductModel", TypeName = "nvarchar(50)")] - public string ProductModel { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'CultureID'. - /// - /// - /// The property value representing column 'CultureID'. - /// - [Column("CultureID", TypeName = "nchar(6)")] - public string CultureId { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'Description'. - /// - /// - /// The property value representing column 'Description'. - /// - [Column("Description", TypeName = "nvarchar(400)")] - public string Description { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VProductModelCatalogDescription.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VProductModelCatalogDescription.cs deleted file mode 100644 index 37e0503..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VProductModelCatalogDescription.cs +++ /dev/null @@ -1,248 +0,0 @@ -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'vProductModelCatalogDescription'. -/// -[Table("vProductModelCatalogDescription", Schema = "Production")] -public class VProductModelCatalogDescription - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public VProductModelCatalogDescription() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'ProductModelID'. - /// - /// - /// The property value representing column 'ProductModelID'. - /// - [Column("ProductModelID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'Name'. - /// - /// - /// The property value representing column 'Name'. - /// - [Column("Name", TypeName = "nvarchar(50)")] - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'Summary'. - /// - /// - /// The property value representing column 'Summary'. - /// - [Column("Summary", TypeName = "nvarchar(max)")] - public string? Summary { get; set; } - - /// - /// Gets or sets the property value representing column 'Manufacturer'. - /// - /// - /// The property value representing column 'Manufacturer'. - /// - [Column("Manufacturer", TypeName = "nvarchar(max)")] - public string? Manufacturer { get; set; } - - /// - /// Gets or sets the property value representing column 'Copyright'. - /// - /// - /// The property value representing column 'Copyright'. - /// - [Column("Copyright", TypeName = "nvarchar(30)")] - public string? Copyright { get; set; } - - /// - /// Gets or sets the property value representing column 'ProductURL'. - /// - /// - /// The property value representing column 'ProductURL'. - /// - [Column("ProductURL", TypeName = "nvarchar(256)")] - public string? ProductURL { get; set; } - - /// - /// Gets or sets the property value representing column 'WarrantyPeriod'. - /// - /// - /// The property value representing column 'WarrantyPeriod'. - /// - [Column("WarrantyPeriod", TypeName = "nvarchar(256)")] - public string? WarrantyPeriod { get; set; } - - /// - /// Gets or sets the property value representing column 'WarrantyDescription'. - /// - /// - /// The property value representing column 'WarrantyDescription'. - /// - [Column("WarrantyDescription", TypeName = "nvarchar(256)")] - public string? WarrantyDescription { get; set; } - - /// - /// Gets or sets the property value representing column 'NoOfYears'. - /// - /// - /// The property value representing column 'NoOfYears'. - /// - [Column("NoOfYears", TypeName = "nvarchar(256)")] - public string? NoOfYears { get; set; } - - /// - /// Gets or sets the property value representing column 'MaintenanceDescription'. - /// - /// - /// The property value representing column 'MaintenanceDescription'. - /// - [Column("MaintenanceDescription", TypeName = "nvarchar(256)")] - public string? MaintenanceDescription { get; set; } - - /// - /// Gets or sets the property value representing column 'Wheel'. - /// - /// - /// The property value representing column 'Wheel'. - /// - [Column("Wheel", TypeName = "nvarchar(256)")] - public string? Wheel { get; set; } - - /// - /// Gets or sets the property value representing column 'Saddle'. - /// - /// - /// The property value representing column 'Saddle'. - /// - [Column("Saddle", TypeName = "nvarchar(256)")] - public string? Saddle { get; set; } - - /// - /// Gets or sets the property value representing column 'Pedal'. - /// - /// - /// The property value representing column 'Pedal'. - /// - [Column("Pedal", TypeName = "nvarchar(256)")] - public string? Pedal { get; set; } - - /// - /// Gets or sets the property value representing column 'BikeFrame'. - /// - /// - /// The property value representing column 'BikeFrame'. - /// - [Column("BikeFrame", TypeName = "nvarchar(max)")] - public string? BikeFrame { get; set; } - - /// - /// Gets or sets the property value representing column 'Crankset'. - /// - /// - /// The property value representing column 'Crankset'. - /// - [Column("Crankset", TypeName = "nvarchar(256)")] - public string? Crankset { get; set; } - - /// - /// Gets or sets the property value representing column 'PictureAngle'. - /// - /// - /// The property value representing column 'PictureAngle'. - /// - [Column("PictureAngle", TypeName = "nvarchar(256)")] - public string? PictureAngle { get; set; } - - /// - /// Gets or sets the property value representing column 'PictureSize'. - /// - /// - /// The property value representing column 'PictureSize'. - /// - [Column("PictureSize", TypeName = "nvarchar(256)")] - public string? PictureSize { get; set; } - - /// - /// Gets or sets the property value representing column 'ProductPhotoID'. - /// - /// - /// The property value representing column 'ProductPhotoID'. - /// - [Column("ProductPhotoID", TypeName = "nvarchar(256)")] - public string? ProductPhotoId { get; set; } - - /// - /// Gets or sets the property value representing column 'Material'. - /// - /// - /// The property value representing column 'Material'. - /// - [Column("Material", TypeName = "nvarchar(256)")] - public string? Material { get; set; } - - /// - /// Gets or sets the property value representing column 'Color'. - /// - /// - /// The property value representing column 'Color'. - /// - [Column("Color", TypeName = "nvarchar(256)")] - public string? Color { get; set; } - - /// - /// Gets or sets the property value representing column 'ProductLine'. - /// - /// - /// The property value representing column 'ProductLine'. - /// - [Column("ProductLine", TypeName = "nvarchar(256)")] - public string? ProductLine { get; set; } - - /// - /// Gets or sets the property value representing column 'Style'. - /// - /// - /// The property value representing column 'Style'. - /// - [Column("Style", TypeName = "nvarchar(256)")] - public string? Style { get; set; } - - /// - /// Gets or sets the property value representing column 'RiderExperience'. - /// - /// - /// The property value representing column 'RiderExperience'. - /// - [Column("RiderExperience", TypeName = "nvarchar(1024)")] - public string? RiderExperience { get; set; } - - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VProductModelInstructions.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VProductModelInstructions.cs deleted file mode 100644 index ac11ba4..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VProductModelInstructions.cs +++ /dev/null @@ -1,122 +0,0 @@ -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'vProductModelInstructions'. -/// -[Table("vProductModelInstructions", Schema = "Production")] -public class VProductModelInstructions - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public VProductModelInstructions() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'ProductModelID'. - /// - /// - /// The property value representing column 'ProductModelID'. - /// - [Column("ProductModelID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'Name'. - /// - /// - /// The property value representing column 'Name'. - /// - [Column("Name", TypeName = "nvarchar(50)")] - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'Instructions'. - /// - /// - /// The property value representing column 'Instructions'. - /// - [Column("Instructions", TypeName = "nvarchar(max)")] - public string? Instructions { get; set; } - - /// - /// Gets or sets the property value representing column 'LocationID'. - /// - /// - /// The property value representing column 'LocationID'. - /// - [Column("LocationID", TypeName = "int")] - public int? LocationId { get; set; } - - /// - /// Gets or sets the property value representing column 'SetupHours'. - /// - /// - /// The property value representing column 'SetupHours'. - /// - [Column("SetupHours", TypeName = "decimal(9,4)")] - public decimal? SetupHours { get; set; } - - /// - /// Gets or sets the property value representing column 'MachineHours'. - /// - /// - /// The property value representing column 'MachineHours'. - /// - [Column("MachineHours", TypeName = "decimal(9,4)")] - public decimal? MachineHours { get; set; } - - /// - /// Gets or sets the property value representing column 'LaborHours'. - /// - /// - /// The property value representing column 'LaborHours'. - /// - [Column("LaborHours", TypeName = "decimal(9,4)")] - public decimal? LaborHours { get; set; } - - /// - /// Gets or sets the property value representing column 'LotSize'. - /// - /// - /// The property value representing column 'LotSize'. - /// - [Column("LotSize", TypeName = "int")] - public int? LotSize { get; set; } - - /// - /// Gets or sets the property value representing column 'Step'. - /// - /// - /// The property value representing column 'Step'. - /// - [Column("Step", TypeName = "nvarchar(1024)")] - public string? Step { get; set; } - - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VSalesPerson.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VSalesPerson.cs deleted file mode 100644 index de2fb8a..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VSalesPerson.cs +++ /dev/null @@ -1,219 +0,0 @@ -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'vSalesPerson'. -/// -[Table("vSalesPerson", Schema = "Sales")] -public class VSalesPerson -{ - /// - /// Initializes a new instance of the class. - /// - public VSalesPerson() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'BusinessEntityID'. - /// - /// - /// The property value representing column 'BusinessEntityID'. - /// - [Column("BusinessEntityID", TypeName = "int")] - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value representing column 'Title'. - /// - /// - /// The property value representing column 'Title'. - /// - [Column("Title", TypeName = "nvarchar(8)")] - public string? Title { get; set; } - - /// - /// Gets or sets the property value representing column 'FirstName'. - /// - /// - /// The property value representing column 'FirstName'. - /// - [Column("FirstName", TypeName = "nvarchar(50)")] - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'MiddleName'. - /// - /// - /// The property value representing column 'MiddleName'. - /// - [Column("MiddleName", TypeName = "nvarchar(50)")] - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value representing column 'LastName'. - /// - /// - /// The property value representing column 'LastName'. - /// - [Column("LastName", TypeName = "nvarchar(50)")] - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'Suffix'. - /// - /// - /// The property value representing column 'Suffix'. - /// - [Column("Suffix", TypeName = "nvarchar(10)")] - public string? Suffix { get; set; } - - /// - /// Gets or sets the property value representing column 'JobTitle'. - /// - /// - /// The property value representing column 'JobTitle'. - /// - [Column("JobTitle", TypeName = "nvarchar(50)")] - public string JobTitle { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'PhoneNumber'. - /// - /// - /// The property value representing column 'PhoneNumber'. - /// - [Column("PhoneNumber", TypeName = "nvarchar(25)")] - public string? PhoneNumber { get; set; } - - /// - /// Gets or sets the property value representing column 'PhoneNumberType'. - /// - /// - /// The property value representing column 'PhoneNumberType'. - /// - [Column("PhoneNumberType", TypeName = "nvarchar(50)")] - public string? PhoneNumberType { get; set; } - - /// - /// Gets or sets the property value representing column 'EmailAddress'. - /// - /// - /// The property value representing column 'EmailAddress'. - /// - [Column("EmailAddress", TypeName = "nvarchar(50)")] - public string? EmailAddress { get; set; } - - /// - /// Gets or sets the property value representing column 'EmailPromotion'. - /// - /// - /// The property value representing column 'EmailPromotion'. - /// - [Column("EmailPromotion", TypeName = "int")] - public int EmailPromotion { get; set; } - - /// - /// Gets or sets the property value representing column 'AddressLine1'. - /// - /// - /// The property value representing column 'AddressLine1'. - /// - [Column("AddressLine1", TypeName = "nvarchar(60)")] - public string AddressLine1 { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'AddressLine2'. - /// - /// - /// The property value representing column 'AddressLine2'. - /// - [Column("AddressLine2", TypeName = "nvarchar(60)")] - public string? AddressLine2 { get; set; } - - /// - /// Gets or sets the property value representing column 'City'. - /// - /// - /// The property value representing column 'City'. - /// - [Column("City", TypeName = "nvarchar(30)")] - public string City { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'StateProvinceName'. - /// - /// - /// The property value representing column 'StateProvinceName'. - /// - [Column("StateProvinceName", TypeName = "nvarchar(50)")] - public string StateProvinceName { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'PostalCode'. - /// - /// - /// The property value representing column 'PostalCode'. - /// - [Column("PostalCode", TypeName = "nvarchar(15)")] - public string PostalCode { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'CountryRegionName'. - /// - /// - /// The property value representing column 'CountryRegionName'. - /// - [Column("CountryRegionName", TypeName = "nvarchar(50)")] - public string CountryRegionName { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'TerritoryName'. - /// - /// - /// The property value representing column 'TerritoryName'. - /// - [Column("TerritoryName", TypeName = "nvarchar(50)")] - public string? TerritoryName { get; set; } - - /// - /// Gets or sets the property value representing column 'TerritoryGroup'. - /// - /// - /// The property value representing column 'TerritoryGroup'. - /// - [Column("TerritoryGroup", TypeName = "nvarchar(50)")] - public string? TerritoryGroup { get; set; } - - /// - /// Gets or sets the property value representing column 'SalesQuota'. - /// - /// - /// The property value representing column 'SalesQuota'. - /// - [Column("SalesQuota", TypeName = "money")] - public decimal? SalesQuota { get; set; } - - /// - /// Gets or sets the property value representing column 'SalesYTD'. - /// - /// - /// The property value representing column 'SalesYTD'. - /// - [Column("SalesYTD", TypeName = "money")] - public decimal SalesYTD { get; set; } - - /// - /// Gets or sets the property value representing column 'SalesLastYear'. - /// - /// - /// The property value representing column 'SalesLastYear'. - /// - [Column("SalesLastYear", TypeName = "money")] - public decimal SalesLastYear { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VSalesPersonSalesByFiscalYears.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VSalesPersonSalesByFiscalYears.cs deleted file mode 100644 index d5343b0..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VSalesPersonSalesByFiscalYears.cs +++ /dev/null @@ -1,84 +0,0 @@ -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'vSalesPersonSalesByFiscalYears'. -/// -[Table("vSalesPersonSalesByFiscalYears", Schema = "Sales")] -public class VSalesPersonSalesByFiscalYears -{ - /// - /// Initializes a new instance of the class. - /// - public VSalesPersonSalesByFiscalYears() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'SalesPersonID'. - /// - /// - /// The property value representing column 'SalesPersonID'. - /// - [Column("SalesPersonID", TypeName = "int")] - public int? SalesPersonId { get; set; } - - /// - /// Gets or sets the property value representing column 'FullName'. - /// - /// - /// The property value representing column 'FullName'. - /// - [Column("FullName", TypeName = "nvarchar(152)")] - public string? FullName { get; set; } - - /// - /// Gets or sets the property value representing column 'JobTitle'. - /// - /// - /// The property value representing column 'JobTitle'. - /// - [Column("JobTitle", TypeName = "nvarchar(50)")] - public string JobTitle { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'SalesTerritory'. - /// - /// - /// The property value representing column 'SalesTerritory'. - /// - [Column("SalesTerritory", TypeName = "nvarchar(50)")] - public string SalesTerritory { get; set; } = null!; - - /// - /// Gets or sets the property value representing column '2002'. - /// - /// - /// The property value representing column '2002'. - /// - [Column("2002", TypeName = "money")] - public decimal? Number2002 { get; set; } - - /// - /// Gets or sets the property value representing column '2003'. - /// - /// - /// The property value representing column '2003'. - /// - [Column("2003", TypeName = "money")] - public decimal? Number2003 { get; set; } - - /// - /// Gets or sets the property value representing column '2004'. - /// - /// - /// The property value representing column '2004'. - /// - [Column("2004", TypeName = "money")] - public decimal? Number2004 { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VStateProvinceCountryRegion.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VStateProvinceCountryRegion.cs deleted file mode 100644 index 81db32f..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VStateProvinceCountryRegion.cs +++ /dev/null @@ -1,84 +0,0 @@ -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'vStateProvinceCountryRegion'. -/// -[Table("vStateProvinceCountryRegion", Schema = "Person")] -public class VStateProvinceCountryRegion -{ - /// - /// Initializes a new instance of the class. - /// - public VStateProvinceCountryRegion() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'StateProvinceID'. - /// - /// - /// The property value representing column 'StateProvinceID'. - /// - [Column("StateProvinceID", TypeName = "int")] - public int StateProvinceId { get; set; } - - /// - /// Gets or sets the property value representing column 'StateProvinceCode'. - /// - /// - /// The property value representing column 'StateProvinceCode'. - /// - [Column("StateProvinceCode", TypeName = "nchar(3)")] - public string StateProvinceCode { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'IsOnlyStateProvinceFlag'. - /// - /// - /// The property value representing column 'IsOnlyStateProvinceFlag'. - /// - [Column("IsOnlyStateProvinceFlag", TypeName = "bit")] - public bool IsOnlyStateProvinceFlag { get; set; } - - /// - /// Gets or sets the property value representing column 'StateProvinceName'. - /// - /// - /// The property value representing column 'StateProvinceName'. - /// - [Column("StateProvinceName", TypeName = "nvarchar(50)")] - public string StateProvinceName { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'TerritoryID'. - /// - /// - /// The property value representing column 'TerritoryID'. - /// - [Column("TerritoryID", TypeName = "int")] - public int TerritoryId { get; set; } - - /// - /// Gets or sets the property value representing column 'CountryRegionCode'. - /// - /// - /// The property value representing column 'CountryRegionCode'. - /// - [Column("CountryRegionCode", TypeName = "nvarchar(3)")] - public string CountryRegionCode { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'CountryRegionName'. - /// - /// - /// The property value representing column 'CountryRegionName'. - /// - [Column("CountryRegionName", TypeName = "nvarchar(50)")] - public string CountryRegionName { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithAddresses.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithAddresses.cs deleted file mode 100644 index e442482..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithAddresses.cs +++ /dev/null @@ -1,102 +0,0 @@ -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'vStoreWithAddresses'. -/// -[Table("vStoreWithAddresses", Schema = "Sales")] -public class VStoreWithAddresses -{ - /// - /// Initializes a new instance of the class. - /// - public VStoreWithAddresses() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'BusinessEntityID'. - /// - /// - /// The property value representing column 'BusinessEntityID'. - /// - [Column("BusinessEntityID", TypeName = "int")] - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value representing column 'Name'. - /// - /// - /// The property value representing column 'Name'. - /// - [Column("Name", TypeName = "nvarchar(50)")] - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'AddressType'. - /// - /// - /// The property value representing column 'AddressType'. - /// - [Column("AddressType", TypeName = "nvarchar(50)")] - public string AddressType { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'AddressLine1'. - /// - /// - /// The property value representing column 'AddressLine1'. - /// - [Column("AddressLine1", TypeName = "nvarchar(60)")] - public string AddressLine1 { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'AddressLine2'. - /// - /// - /// The property value representing column 'AddressLine2'. - /// - [Column("AddressLine2", TypeName = "nvarchar(60)")] - public string? AddressLine2 { get; set; } - - /// - /// Gets or sets the property value representing column 'City'. - /// - /// - /// The property value representing column 'City'. - /// - [Column("City", TypeName = "nvarchar(30)")] - public string City { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'StateProvinceName'. - /// - /// - /// The property value representing column 'StateProvinceName'. - /// - [Column("StateProvinceName", TypeName = "nvarchar(50)")] - public string StateProvinceName { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'PostalCode'. - /// - /// - /// The property value representing column 'PostalCode'. - /// - [Column("PostalCode", TypeName = "nvarchar(15)")] - public string PostalCode { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'CountryRegionName'. - /// - /// - /// The property value representing column 'CountryRegionName'. - /// - [Column("CountryRegionName", TypeName = "nvarchar(50)")] - public string CountryRegionName { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithContacts.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithContacts.cs deleted file mode 100644 index 18c702e..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithContacts.cs +++ /dev/null @@ -1,129 +0,0 @@ -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'vStoreWithContacts'. -/// -[Table("vStoreWithContacts", Schema = "Sales")] -public class VStoreWithContacts -{ - /// - /// Initializes a new instance of the class. - /// - public VStoreWithContacts() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'BusinessEntityID'. - /// - /// - /// The property value representing column 'BusinessEntityID'. - /// - [Column("BusinessEntityID", TypeName = "int")] - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value representing column 'Name'. - /// - /// - /// The property value representing column 'Name'. - /// - [Column("Name", TypeName = "nvarchar(50)")] - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'ContactType'. - /// - /// - /// The property value representing column 'ContactType'. - /// - [Column("ContactType", TypeName = "nvarchar(50)")] - public string ContactType { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'Title'. - /// - /// - /// The property value representing column 'Title'. - /// - [Column("Title", TypeName = "nvarchar(8)")] - public string? Title { get; set; } - - /// - /// Gets or sets the property value representing column 'FirstName'. - /// - /// - /// The property value representing column 'FirstName'. - /// - [Column("FirstName", TypeName = "nvarchar(50)")] - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'MiddleName'. - /// - /// - /// The property value representing column 'MiddleName'. - /// - [Column("MiddleName", TypeName = "nvarchar(50)")] - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value representing column 'LastName'. - /// - /// - /// The property value representing column 'LastName'. - /// - [Column("LastName", TypeName = "nvarchar(50)")] - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'Suffix'. - /// - /// - /// The property value representing column 'Suffix'. - /// - [Column("Suffix", TypeName = "nvarchar(10)")] - public string? Suffix { get; set; } - - /// - /// Gets or sets the property value representing column 'PhoneNumber'. - /// - /// - /// The property value representing column 'PhoneNumber'. - /// - [Column("PhoneNumber", TypeName = "nvarchar(25)")] - public string? PhoneNumber { get; set; } - - /// - /// Gets or sets the property value representing column 'PhoneNumberType'. - /// - /// - /// The property value representing column 'PhoneNumberType'. - /// - [Column("PhoneNumberType", TypeName = "nvarchar(50)")] - public string? PhoneNumberType { get; set; } - - /// - /// Gets or sets the property value representing column 'EmailAddress'. - /// - /// - /// The property value representing column 'EmailAddress'. - /// - [Column("EmailAddress", TypeName = "nvarchar(50)")] - public string? EmailAddress { get; set; } - - /// - /// Gets or sets the property value representing column 'EmailPromotion'. - /// - /// - /// The property value representing column 'EmailPromotion'. - /// - [Column("EmailPromotion", TypeName = "int")] - public int EmailPromotion { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithDemographics.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithDemographics.cs deleted file mode 100644 index ed9f711..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithDemographics.cs +++ /dev/null @@ -1,129 +0,0 @@ -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'vStoreWithDemographics'. -/// -[Table("vStoreWithDemographics", Schema = "Sales")] -public class VStoreWithDemographics -{ - /// - /// Initializes a new instance of the class. - /// - public VStoreWithDemographics() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'BusinessEntityID'. - /// - /// - /// The property value representing column 'BusinessEntityID'. - /// - [Column("BusinessEntityID", TypeName = "int")] - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value representing column 'Name'. - /// - /// - /// The property value representing column 'Name'. - /// - [Column("Name", TypeName = "nvarchar(50)")] - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'AnnualSales'. - /// - /// - /// The property value representing column 'AnnualSales'. - /// - [Column("AnnualSales", TypeName = "money")] - public decimal? AnnualSales { get; set; } - - /// - /// Gets or sets the property value representing column 'AnnualRevenue'. - /// - /// - /// The property value representing column 'AnnualRevenue'. - /// - [Column("AnnualRevenue", TypeName = "money")] - public decimal? AnnualRevenue { get; set; } - - /// - /// Gets or sets the property value representing column 'BankName'. - /// - /// - /// The property value representing column 'BankName'. - /// - [Column("BankName", TypeName = "nvarchar(50)")] - public string? BankName { get; set; } - - /// - /// Gets or sets the property value representing column 'BusinessType'. - /// - /// - /// The property value representing column 'BusinessType'. - /// - [Column("BusinessType", TypeName = "nvarchar(5)")] - public string? BusinessType { get; set; } - - /// - /// Gets or sets the property value representing column 'YearOpened'. - /// - /// - /// The property value representing column 'YearOpened'. - /// - [Column("YearOpened", TypeName = "int")] - public int? YearOpened { get; set; } - - /// - /// Gets or sets the property value representing column 'Specialty'. - /// - /// - /// The property value representing column 'Specialty'. - /// - [Column("Specialty", TypeName = "nvarchar(50)")] - public string? Specialty { get; set; } - - /// - /// Gets or sets the property value representing column 'SquareFeet'. - /// - /// - /// The property value representing column 'SquareFeet'. - /// - [Column("SquareFeet", TypeName = "int")] - public int? SquareFeet { get; set; } - - /// - /// Gets or sets the property value representing column 'Brands'. - /// - /// - /// The property value representing column 'Brands'. - /// - [Column("Brands", TypeName = "nvarchar(30)")] - public string? Brands { get; set; } - - /// - /// Gets or sets the property value representing column 'Internet'. - /// - /// - /// The property value representing column 'Internet'. - /// - [Column("Internet", TypeName = "nvarchar(30)")] - public string? Internet { get; set; } - - /// - /// Gets or sets the property value representing column 'NumberEmployees'. - /// - /// - /// The property value representing column 'NumberEmployees'. - /// - [Column("NumberEmployees", TypeName = "int")] - public int? NumberEmployees { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VVendorWithAddresses.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VVendorWithAddresses.cs deleted file mode 100644 index 39a5ec0..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VVendorWithAddresses.cs +++ /dev/null @@ -1,102 +0,0 @@ -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'vVendorWithAddresses'. -/// -[Table("vVendorWithAddresses", Schema = "Purchasing")] -public class VVendorWithAddresses -{ - /// - /// Initializes a new instance of the class. - /// - public VVendorWithAddresses() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'BusinessEntityID'. - /// - /// - /// The property value representing column 'BusinessEntityID'. - /// - [Column("BusinessEntityID", TypeName = "int")] - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value representing column 'Name'. - /// - /// - /// The property value representing column 'Name'. - /// - [Column("Name", TypeName = "nvarchar(50)")] - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'AddressType'. - /// - /// - /// The property value representing column 'AddressType'. - /// - [Column("AddressType", TypeName = "nvarchar(50)")] - public string AddressType { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'AddressLine1'. - /// - /// - /// The property value representing column 'AddressLine1'. - /// - [Column("AddressLine1", TypeName = "nvarchar(60)")] - public string AddressLine1 { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'AddressLine2'. - /// - /// - /// The property value representing column 'AddressLine2'. - /// - [Column("AddressLine2", TypeName = "nvarchar(60)")] - public string? AddressLine2 { get; set; } - - /// - /// Gets or sets the property value representing column 'City'. - /// - /// - /// The property value representing column 'City'. - /// - [Column("City", TypeName = "nvarchar(30)")] - public string City { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'StateProvinceName'. - /// - /// - /// The property value representing column 'StateProvinceName'. - /// - [Column("StateProvinceName", TypeName = "nvarchar(50)")] - public string StateProvinceName { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'PostalCode'. - /// - /// - /// The property value representing column 'PostalCode'. - /// - [Column("PostalCode", TypeName = "nvarchar(15)")] - public string PostalCode { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'CountryRegionName'. - /// - /// - /// The property value representing column 'CountryRegionName'. - /// - [Column("CountryRegionName", TypeName = "nvarchar(50)")] - public string CountryRegionName { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VVendorWithContacts.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VVendorWithContacts.cs deleted file mode 100644 index f788629..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VVendorWithContacts.cs +++ /dev/null @@ -1,129 +0,0 @@ -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'vVendorWithContacts'. -/// -[Table("vVendorWithContacts", Schema = "Purchasing")] -public class VVendorWithContacts -{ - /// - /// Initializes a new instance of the class. - /// - public VVendorWithContacts() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'BusinessEntityID'. - /// - /// - /// The property value representing column 'BusinessEntityID'. - /// - [Column("BusinessEntityID", TypeName = "int")] - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value representing column 'Name'. - /// - /// - /// The property value representing column 'Name'. - /// - [Column("Name", TypeName = "nvarchar(50)")] - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'ContactType'. - /// - /// - /// The property value representing column 'ContactType'. - /// - [Column("ContactType", TypeName = "nvarchar(50)")] - public string ContactType { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'Title'. - /// - /// - /// The property value representing column 'Title'. - /// - [Column("Title", TypeName = "nvarchar(8)")] - public string? Title { get; set; } - - /// - /// Gets or sets the property value representing column 'FirstName'. - /// - /// - /// The property value representing column 'FirstName'. - /// - [Column("FirstName", TypeName = "nvarchar(50)")] - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'MiddleName'. - /// - /// - /// The property value representing column 'MiddleName'. - /// - [Column("MiddleName", TypeName = "nvarchar(50)")] - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value representing column 'LastName'. - /// - /// - /// The property value representing column 'LastName'. - /// - [Column("LastName", TypeName = "nvarchar(50)")] - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'Suffix'. - /// - /// - /// The property value representing column 'Suffix'. - /// - [Column("Suffix", TypeName = "nvarchar(10)")] - public string? Suffix { get; set; } - - /// - /// Gets or sets the property value representing column 'PhoneNumber'. - /// - /// - /// The property value representing column 'PhoneNumber'. - /// - [Column("PhoneNumber", TypeName = "nvarchar(25)")] - public string? PhoneNumber { get; set; } - - /// - /// Gets or sets the property value representing column 'PhoneNumberType'. - /// - /// - /// The property value representing column 'PhoneNumberType'. - /// - [Column("PhoneNumberType", TypeName = "nvarchar(50)")] - public string? PhoneNumberType { get; set; } - - /// - /// Gets or sets the property value representing column 'EmailAddress'. - /// - /// - /// The property value representing column 'EmailAddress'. - /// - [Column("EmailAddress", TypeName = "nvarchar(50)")] - public string? EmailAddress { get; set; } - - /// - /// Gets or sets the property value representing column 'EmailPromotion'. - /// - /// - /// The property value representing column 'EmailPromotion'. - /// - [Column("EmailPromotion", TypeName = "int")] - public int EmailPromotion { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Vendor.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Vendor.cs deleted file mode 100644 index eea8cab..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/Vendor.cs +++ /dev/null @@ -1,130 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'Vendor'. -/// -[Table("Vendor", Schema = "Purchasing")] -public class Vendor -{ - /// - /// Initializes a new instance of the class. - /// - public Vendor() - { - #region Generated Constructor - - ProductVendors = new HashSet(); - PurchaseOrderHeaders = new HashSet(); - - #endregion - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'BusinessEntityID'. - /// - /// - /// The property value representing column 'BusinessEntityID'. - /// - [Key] - [Column("BusinessEntityID", TypeName = "int")] - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value representing column 'AccountNumber'. - /// - /// - /// The property value representing column 'AccountNumber'. - /// - [Column("AccountNumber", TypeName = "nvarchar(15)")] - public string AccountNumber { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'Name'. - /// - /// - /// The property value representing column 'Name'. - /// - [Column("Name", TypeName = "nvarchar(50)")] - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value representing column 'CreditRating'. - /// - /// - /// The property value representing column 'CreditRating'. - /// - [Column("CreditRating", TypeName = "tinyint")] - public byte CreditRating { get; set; } - - /// - /// Gets or sets the property value representing column 'PreferredVendorStatus'. - /// - /// - /// The property value representing column 'PreferredVendorStatus'. - /// - [Column("PreferredVendorStatus", TypeName = "bit")] - public bool PreferredVendorStatus { get; set; } - - /// - /// Gets or sets the property value representing column 'ActiveFlag'. - /// - /// - /// The property value representing column 'ActiveFlag'. - /// - [Column("ActiveFlag", TypeName = "bit")] - public bool ActiveFlag { get; set; } - - /// - /// Gets or sets the property value representing column 'PurchasingWebServiceURL'. - /// - /// - /// The property value representing column 'PurchasingWebServiceURL'. - /// - [Column("PurchasingWebServiceURL", TypeName = "nvarchar(1024)")] - public string? PurchasingWebServiceURL { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual BusinessEntity BusinessEntity { get; set; } = null!; - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection ProductVendors { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection PurchaseOrderHeaders { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/WorkOrder.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/WorkOrder.cs deleted file mode 100644 index 2092cf3..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/WorkOrder.cs +++ /dev/null @@ -1,151 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'WorkOrder'. -/// -[Table("WorkOrder", Schema = "Production")] -public class WorkOrder - : HasDomainEventsBase, IIdentity -{ - /// - /// Initializes a new instance of the class. - /// - public WorkOrder() - { - #region Generated Constructor - - WorkOrderRoutings = new HashSet(); - - #endregion - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'WorkOrderID'. - /// - /// - /// The property value representing column 'WorkOrderID'. - /// - [Key] - [Column("WorkOrderID", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int Id { get; set; } - - /// - /// Gets or sets the property value representing column 'ProductID'. - /// - /// - /// The property value representing column 'ProductID'. - /// - [Column("ProductID", TypeName = "int")] - public int ProductId { get; set; } - - /// - /// Gets or sets the property value representing column 'OrderQty'. - /// - /// - /// The property value representing column 'OrderQty'. - /// - [Column("OrderQty", TypeName = "int")] - public int OrderQty { get; set; } - - /// - /// Gets or sets the property value representing column 'StockedQty'. - /// - /// - /// The property value representing column 'StockedQty'. - /// - [Column("StockedQty", TypeName = "int")] - [DatabaseGenerated(DatabaseGeneratedOption.Computed)] - public int StockedQty { get; set; } - - /// - /// Gets or sets the property value representing column 'ScrappedQty'. - /// - /// - /// The property value representing column 'ScrappedQty'. - /// - [Column("ScrappedQty", TypeName = "smallint")] - public short ScrappedQty { get; set; } - - /// - /// Gets or sets the property value representing column 'StartDate'. - /// - /// - /// The property value representing column 'StartDate'. - /// - [Column("StartDate", TypeName = "datetime")] - public DateTime StartDate { get; set; } - - /// - /// Gets or sets the property value representing column 'EndDate'. - /// - /// - /// The property value representing column 'EndDate'. - /// - [Column("EndDate", TypeName = "datetime")] - public DateTime? EndDate { get; set; } - - /// - /// Gets or sets the property value representing column 'DueDate'. - /// - /// - /// The property value representing column 'DueDate'. - /// - [Column("DueDate", TypeName = "datetime")] - public DateTime DueDate { get; set; } - - /// - /// Gets or sets the property value representing column 'ScrapReasonID'. - /// - /// - /// The property value representing column 'ScrapReasonID'. - /// - [Column("ScrapReasonID", TypeName = "smallint")] - public short? ScrapReasonId { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Product Product { get; set; } = null!; - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual ScrapReason? ScrapReason { get; set; } - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection WorkOrderRoutings { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/WorkOrderRouting.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/WorkOrderRouting.cs deleted file mode 100644 index e7edc5c..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/WorkOrderRouting.cs +++ /dev/null @@ -1,155 +0,0 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Platy.AdventureWorks.Repository.Data.Entities; - -/// -/// Entity class representing data for table 'WorkOrderRouting'. -/// -[Table("WorkOrderRouting", Schema = "Production")] -public class WorkOrderRouting -{ - /// - /// Initializes a new instance of the class. - /// - public WorkOrderRouting() - { - } - - #region Generated Properties - - /// - /// Gets or sets the property value representing column 'WorkOrderID'. - /// - /// - /// The property value representing column 'WorkOrderID'. - /// - [Key] - [Column("WorkOrderID", TypeName = "int")] - public int WorkOrderId { get; set; } - - /// - /// Gets or sets the property value representing column 'ProductID'. - /// - /// - /// The property value representing column 'ProductID'. - /// - [Key] - [Column("ProductID", TypeName = "int")] - public int ProductId { get; set; } - - /// - /// Gets or sets the property value representing column 'OperationSequence'. - /// - /// - /// The property value representing column 'OperationSequence'. - /// - [Key] - [Column("OperationSequence", TypeName = "smallint")] - public short OperationSequence { get; set; } - - /// - /// Gets or sets the property value representing column 'LocationID'. - /// - /// - /// The property value representing column 'LocationID'. - /// - [Column("LocationID", TypeName = "smallint")] - public short LocationId { get; set; } - - /// - /// Gets or sets the property value representing column 'ScheduledStartDate'. - /// - /// - /// The property value representing column 'ScheduledStartDate'. - /// - [Column("ScheduledStartDate", TypeName = "datetime")] - public DateTime ScheduledStartDate { get; set; } - - /// - /// Gets or sets the property value representing column 'ScheduledEndDate'. - /// - /// - /// The property value representing column 'ScheduledEndDate'. - /// - [Column("ScheduledEndDate", TypeName = "datetime")] - public DateTime ScheduledEndDate { get; set; } - - /// - /// Gets or sets the property value representing column 'ActualStartDate'. - /// - /// - /// The property value representing column 'ActualStartDate'. - /// - [Column("ActualStartDate", TypeName = "datetime")] - public DateTime? ActualStartDate { get; set; } - - /// - /// Gets or sets the property value representing column 'ActualEndDate'. - /// - /// - /// The property value representing column 'ActualEndDate'. - /// - [Column("ActualEndDate", TypeName = "datetime")] - public DateTime? ActualEndDate { get; set; } - - /// - /// Gets or sets the property value representing column 'ActualResourceHrs'. - /// - /// - /// The property value representing column 'ActualResourceHrs'. - /// - [Column("ActualResourceHrs", TypeName = "decimal(9,4)")] - public decimal? ActualResourceHrs { get; set; } - - /// - /// Gets or sets the property value representing column 'PlannedCost'. - /// - /// - /// The property value representing column 'PlannedCost'. - /// - [Column("PlannedCost", TypeName = "money")] - public decimal PlannedCost { get; set; } - - /// - /// Gets or sets the property value representing column 'ActualCost'. - /// - /// - /// The property value representing column 'ActualCost'. - /// - [Column("ActualCost", TypeName = "money")] - public decimal? ActualCost { get; set; } - - /// - /// Gets or sets the property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } - - #endregion - - #region Generated Relationships - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Location Location { get; set; } = null!; - - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual WorkOrder WorkOrder { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/AddressConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/AddressConfiguration.cs deleted file mode 100644 index 5a2b7ad..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/AddressConfiguration.cs +++ /dev/null @@ -1,143 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class AddressConfiguration - : IEntityTypeConfiguration
-{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder
builder) - { - #region Generated Configure - - // table - builder.ToTable("Address", "Person"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("AddressID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.AddressLine1) - .IsRequired() - .HasColumnName("AddressLine1") - .HasColumnType("nvarchar(60)") - .HasMaxLength(60); - - builder.Property(t => t.AddressLine2) - .HasColumnName("AddressLine2") - .HasColumnType("nvarchar(60)") - .HasMaxLength(60); - - builder.Property(t => t.City) - .IsRequired() - .HasColumnName("City") - .HasColumnType("nvarchar(30)") - .HasMaxLength(30); - - builder.Property(t => t.StateProvinceId) - .IsRequired() - .HasColumnName("StateProvinceID") - .HasColumnType("int"); - - builder.Property(t => t.PostalCode) - .IsRequired() - .HasColumnName("PostalCode") - .HasColumnType("nvarchar(15)") - .HasMaxLength(15); - - builder.Property(t => t.Rowguid) - .IsRequired() - .HasColumnName("rowguid") - .HasColumnType("uniqueidentifier") - .HasDefaultValueSql("(newid())"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.StateProvince) - .WithMany(t => t.Addresses) - .HasForeignKey(d => d.StateProvinceId) - .HasConstraintName("FK_Address_StateProvince_StateProvinceID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - public const string Schema = "Person"; - - /// Table Name constant for entity - public const string Name = "Address"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - public const string Id = "AddressID"; - - /// - /// Column Name constant for property - /// - /// - public const string AddressLine1 = "AddressLine1"; - - /// - /// Column Name constant for property - /// - /// - public const string AddressLine2 = "AddressLine2"; - - /// - /// Column Name constant for property - /// - public const string City = "City"; - - /// - /// Column Name constant for property - /// - /// - public const string StateProvinceId = "StateProvinceID"; - - /// - /// Column Name constant for property - /// - /// - public const string PostalCode = "PostalCode"; - - /// - /// Column Name constant for property - /// - public const string Rowguid = "rowguid"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/AddressTypeConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/AddressTypeConfiguration.cs deleted file mode 100644 index 9426226..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/AddressTypeConfiguration.cs +++ /dev/null @@ -1,97 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class AddressTypeConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("AddressType", "Person"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("AddressTypeID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.Name) - .IsRequired() - .HasColumnName("Name") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.Rowguid) - .IsRequired() - .HasColumnName("rowguid") - .HasColumnType("uniqueidentifier") - .HasDefaultValueSql("(newid())"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - public const string Schema = "Person"; - - /// - /// Table Name constant for entity - /// - public const string Name = "AddressType"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - public const string Id = "AddressTypeID"; - - /// - /// Column Name constant for property - /// - /// - public const string Name = "Name"; - - /// - /// Column Name constant for property - /// - /// - public const string Rowguid = "rowguid"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BillOfMaterialsConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BillOfMaterialsConfiguration.cs deleted file mode 100644 index 50f8bfd..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BillOfMaterialsConfiguration.cs +++ /dev/null @@ -1,167 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class BillOfMaterialsConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("BillOfMaterials", "Production"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("BillOfMaterialsID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.ProductAssemblyId) - .HasColumnName("ProductAssemblyID") - .HasColumnType("int"); - - builder.Property(t => t.ComponentId) - .IsRequired() - .HasColumnName("ComponentID") - .HasColumnType("int"); - - builder.Property(t => t.StartDate) - .IsRequired() - .HasColumnName("StartDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - builder.Property(t => t.EndDate) - .HasColumnName("EndDate") - .HasColumnType("datetime"); - - builder.Property(t => t.UnitMeasureCode) - .IsRequired() - .HasColumnName("UnitMeasureCode") - .HasColumnType("nchar(3)") - .HasMaxLength(3); - - builder.Property(t => t.BOMLevel) - .IsRequired() - .HasColumnName("BOMLevel") - .HasColumnType("smallint"); - - builder.Property(t => t.PerAssemblyQty) - .IsRequired() - .HasColumnName("PerAssemblyQty") - .HasColumnType("decimal(8,2)") - .HasDefaultValueSql("((1.00))"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.ComponentProduct) - .WithMany(t => t.ComponentBillOfMaterials) - .HasForeignKey(d => d.ComponentId) - .HasConstraintName("FK_BillOfMaterials_Product_ComponentID"); - - builder.HasOne(t => t.AssemblyProduct) - .WithMany(t => t.AssemblyBillOfMaterials) - .HasForeignKey(d => d.ProductAssemblyId) - .HasConstraintName("FK_BillOfMaterials_Product_ProductAssemblyID"); - - builder.HasOne(t => t.UnitMeasure) - .WithMany(t => t.BillOfMaterials) - .HasForeignKey(d => d.UnitMeasureCode) - .HasConstraintName("FK_BillOfMaterials_UnitMeasure_UnitMeasureCode"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Production"; - - /// - /// Table Name constant for entity - /// - public const string Name = "BillOfMaterials"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string Id = "BillOfMaterialsID"; - - /// - /// Column Name constant for property - /// - /// - public const string ProductAssemblyId = "ProductAssemblyID"; - - /// - /// Column Name constant for property - /// - /// - public const string ComponentId = "ComponentID"; - - /// - /// Column Name constant for property - /// - /// - public const string StartDate = "StartDate"; - - /// - /// Column Name constant for property - /// - /// - public const string EndDate = "EndDate"; - - /// - /// Column Name constant for property - /// - /// - public const string UnitMeasureCode = "UnitMeasureCode"; - - /// - /// Column Name constant for property - /// - /// - public const string BOMLevel = "BOMLevel"; - - /// - /// Column Name constant for property - /// - /// - public const string PerAssemblyQty = "PerAssemblyQty"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BusinessEntityAddressConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BusinessEntityAddressConfiguration.cs deleted file mode 100644 index 122c66b..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BusinessEntityAddressConfiguration.cs +++ /dev/null @@ -1,124 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class BusinessEntityAddressConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("BusinessEntityAddress", "Person"); - - // key - builder.HasKey(t => new { t.BusinessEntityId, t.AddressId, t.AddressTypeId }); - - // properties - builder.Property(t => t.BusinessEntityId) - .IsRequired() - .HasColumnName("BusinessEntityID") - .HasColumnType("int"); - - builder.Property(t => t.AddressId) - .IsRequired() - .HasColumnName("AddressID") - .HasColumnType("int"); - - builder.Property(t => t.AddressTypeId) - .IsRequired() - .HasColumnName("AddressTypeID") - .HasColumnType("int"); - - builder.Property(t => t.Rowguid) - .IsRequired() - .HasColumnName("rowguid") - .HasColumnType("uniqueidentifier") - .HasDefaultValueSql("(newid())"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.Address) - .WithMany(t => t.BusinessEntityAddresses) - .HasForeignKey(d => d.AddressId) - .HasConstraintName("FK_BusinessEntityAddress_Address_AddressID"); - - builder.HasOne(t => t.AddressType) - .WithMany(t => t.BusinessEntityAddresses) - .HasForeignKey(d => d.AddressTypeId) - .HasConstraintName("FK_BusinessEntityAddress_AddressType_AddressTypeID"); - - builder.HasOne(t => t.BusinessEntity) - .WithMany(t => t.BusinessEntityAddresses) - .HasForeignKey(d => d.BusinessEntityId) - .HasConstraintName("FK_BusinessEntityAddress_BusinessEntity_BusinessEntityID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Person"; - - /// - /// Table Name constant for entity - /// - /// - public const string Name = "BusinessEntityAddress"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string BusinessEntityId = "BusinessEntityID"; - - /// - /// Column Name constant for property - /// - /// - public const string AddressId = "AddressID"; - - /// - /// Column Name constant for property - /// - /// - public const string AddressTypeId = "AddressTypeID"; - - /// - /// Column Name constant for property - /// - /// - public const string Rowguid = "rowguid"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BusinessEntityConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BusinessEntityConfiguration.cs deleted file mode 100644 index faa49b2..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BusinessEntityConfiguration.cs +++ /dev/null @@ -1,87 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class BusinessEntityConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("BusinessEntity", "Person"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("BusinessEntityID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.Rowguid) - .IsRequired() - .HasColumnName("rowguid") - .HasColumnType("uniqueidentifier") - .HasDefaultValueSql("(newid())"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Person"; - - /// - /// Table Name constant for entity - /// - public const string Name = "BusinessEntity"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string Id = "BusinessEntityID"; - - /// - /// Column Name constant for property - /// - /// - public const string Rowguid = "rowguid"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BusinessEntityContactConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BusinessEntityContactConfiguration.cs deleted file mode 100644 index 4c74106..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BusinessEntityContactConfiguration.cs +++ /dev/null @@ -1,124 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class BusinessEntityContactConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("BusinessEntityContact", "Person"); - - // key - builder.HasKey(t => new { t.BusinessEntityId, t.PersonId, t.ContactTypeId }); - - // properties - builder.Property(t => t.BusinessEntityId) - .IsRequired() - .HasColumnName("BusinessEntityID") - .HasColumnType("int"); - - builder.Property(t => t.PersonId) - .IsRequired() - .HasColumnName("PersonID") - .HasColumnType("int"); - - builder.Property(t => t.ContactTypeId) - .IsRequired() - .HasColumnName("ContactTypeID") - .HasColumnType("int"); - - builder.Property(t => t.Rowguid) - .IsRequired() - .HasColumnName("rowguid") - .HasColumnType("uniqueidentifier") - .HasDefaultValueSql("(newid())"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.BusinessEntity) - .WithMany(t => t.BusinessEntityContacts) - .HasForeignKey(d => d.BusinessEntityId) - .HasConstraintName("FK_BusinessEntityContact_BusinessEntity_BusinessEntityID"); - - builder.HasOne(t => t.ContactType) - .WithMany(t => t.BusinessEntityContacts) - .HasForeignKey(d => d.ContactTypeId) - .HasConstraintName("FK_BusinessEntityContact_ContactType_ContactTypeID"); - - builder.HasOne(t => t.Person) - .WithMany(t => t.BusinessEntityContacts) - .HasForeignKey(d => d.PersonId) - .HasConstraintName("FK_BusinessEntityContact_Person_PersonID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Person"; - - /// - /// Table Name constant for entity - /// - /// - public const string Name = "BusinessEntityContact"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string BusinessEntityId = "BusinessEntityID"; - - /// - /// Column Name constant for property - /// - /// - public const string PersonId = "PersonID"; - - /// - /// Column Name constant for property - /// - /// - public const string ContactTypeId = "ContactTypeID"; - - /// - /// Column Name constant for property - /// - /// - public const string Rowguid = "rowguid"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ContactTypeConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ContactTypeConfiguration.cs deleted file mode 100644 index 471444d..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ContactTypeConfiguration.cs +++ /dev/null @@ -1,85 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class ContactTypeConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("ContactType", "Person"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("ContactTypeID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.Name) - .IsRequired() - .HasColumnName("Name") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - public const string Schema = "Person"; - - /// - /// Table Name constant for entity - /// - public const string Name = "ContactType"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - public const string Id = "ContactTypeID"; - - /// - /// Column Name constant for property - /// - /// - public const string Name = "Name"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CountryRegionConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CountryRegionConfiguration.cs deleted file mode 100644 index c8d7705..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CountryRegionConfiguration.cs +++ /dev/null @@ -1,87 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class CountryRegionConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("CountryRegion", "Person"); - - // key - builder.HasKey(t => t.CountryRegionCode); - - // properties - builder.Property(t => t.CountryRegionCode) - .IsRequired() - .HasColumnName("CountryRegionCode") - .HasColumnType("nvarchar(3)") - .HasMaxLength(3); - - builder.Property(t => t.Name) - .IsRequired() - .HasColumnName("Name") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Person"; - - /// - /// Table Name constant for entity - /// - public const string Name = "CountryRegion"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string CountryRegionCode = "CountryRegionCode"; - - /// - /// Column Name constant for property - /// - /// - public const string Name = "Name"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CountryRegionCurrencyConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CountryRegionCurrencyConfiguration.cs deleted file mode 100644 index b5e4b79..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CountryRegionCurrencyConfiguration.cs +++ /dev/null @@ -1,98 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class CountryRegionCurrencyConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("CountryRegionCurrency", "Sales"); - - // key - builder.HasKey(t => new { t.CountryRegionCode, t.CurrencyCode }); - - // properties - builder.Property(t => t.CountryRegionCode) - .IsRequired() - .HasColumnName("CountryRegionCode") - .HasColumnType("nvarchar(3)") - .HasMaxLength(3); - - builder.Property(t => t.CurrencyCode) - .IsRequired() - .HasColumnName("CurrencyCode") - .HasColumnType("nchar(3)") - .HasMaxLength(3); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.CountryRegion) - .WithMany(t => t.CountryRegionCurrencies) - .HasForeignKey(d => d.CountryRegionCode) - .HasConstraintName("FK_CountryRegionCurrency_CountryRegion_CountryRegionCode"); - - builder.HasOne(t => t.Currency) - .WithMany(t => t.CountryRegionCurrencies) - .HasForeignKey(d => d.CurrencyCode) - .HasConstraintName("FK_CountryRegionCurrency_Currency_CurrencyCode"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Sales"; - - /// - /// Table Name constant for entity - /// - /// - public const string Name = "CountryRegionCurrency"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string CountryRegionCode = "CountryRegionCode"; - - /// - /// Column Name constant for property - /// - /// - public const string CurrencyCode = "CurrencyCode"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CreditCardConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CreditCardConfiguration.cs deleted file mode 100644 index 09365ed..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CreditCardConfiguration.cs +++ /dev/null @@ -1,119 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class CreditCardConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("CreditCard", "Sales"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("CreditCardID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.CardType) - .IsRequired() - .HasColumnName("CardType") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.CardNumber) - .IsRequired() - .HasColumnName("CardNumber") - .HasColumnType("nvarchar(25)") - .HasMaxLength(25); - - builder.Property(t => t.ExpMonth) - .IsRequired() - .HasColumnName("ExpMonth") - .HasColumnType("tinyint"); - - builder.Property(t => t.ExpYear) - .IsRequired() - .HasColumnName("ExpYear") - .HasColumnType("smallint"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - public const string Schema = "Sales"; - - /// - /// Table Name constant for entity - /// - public const string Name = "CreditCard"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - public const string Id = "CreditCardID"; - - /// - /// Column Name constant for property - /// - /// - public const string CardType = "CardType"; - - /// - /// Column Name constant for property - /// - /// - public const string CardNumber = "CardNumber"; - - /// - /// Column Name constant for property - /// - /// - public const string ExpMonth = "ExpMonth"; - - /// - /// Column Name constant for property - /// - /// - public const string ExpYear = "ExpYear"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CultureConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CultureConfiguration.cs deleted file mode 100644 index 920a7e0..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CultureConfiguration.cs +++ /dev/null @@ -1,82 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class CultureConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("Culture", "Production"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("CultureID") - .HasColumnType("nchar(6)") - .HasMaxLength(6); - - builder.Property(t => t.Name) - .IsRequired() - .HasColumnName("Name") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - public const string Schema = "Production"; - - /// Table Name constant for entity - public const string Name = "Culture"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - public const string Id = "CultureID"; - - /// - /// Column Name constant for property - /// - public const string Name = "Name"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CurrencyConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CurrencyConfiguration.cs deleted file mode 100644 index 424dba6..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CurrencyConfiguration.cs +++ /dev/null @@ -1,83 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class CurrencyConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("Currency", "Sales"); - - // key - builder.HasKey(t => t.CurrencyCode); - - // properties - builder.Property(t => t.CurrencyCode) - .IsRequired() - .HasColumnName("CurrencyCode") - .HasColumnType("nchar(3)") - .HasMaxLength(3); - - builder.Property(t => t.Name) - .IsRequired() - .HasColumnName("Name") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - public const string Schema = "Sales"; - - /// Table Name constant for entity - public const string Name = "Currency"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string CurrencyCode = "CurrencyCode"; - - /// - /// Column Name constant for property - /// - public const string Name = "Name"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CurrencyRateConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CurrencyRateConfiguration.cs deleted file mode 100644 index 8231faa..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CurrencyRateConfiguration.cs +++ /dev/null @@ -1,140 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class CurrencyRateConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("CurrencyRate", "Sales"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("CurrencyRateID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.CurrencyRateDate) - .IsRequired() - .HasColumnName("CurrencyRateDate") - .HasColumnType("datetime"); - - builder.Property(t => t.FromCurrencyCode) - .IsRequired() - .HasColumnName("FromCurrencyCode") - .HasColumnType("nchar(3)") - .HasMaxLength(3); - - builder.Property(t => t.ToCurrencyCode) - .IsRequired() - .HasColumnName("ToCurrencyCode") - .HasColumnType("nchar(3)") - .HasMaxLength(3); - - builder.Property(t => t.AverageRate) - .IsRequired() - .HasColumnName("AverageRate") - .HasColumnType("money"); - - builder.Property(t => t.EndOfDayRate) - .IsRequired() - .HasColumnName("EndOfDayRate") - .HasColumnType("money"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.FromCurrency) - .WithMany(t => t.FromCurrencyRates) - .HasForeignKey(d => d.FromCurrencyCode) - .HasConstraintName("FK_CurrencyRate_Currency_FromCurrencyCode"); - - builder.HasOne(t => t.ToCurrency) - .WithMany(t => t.ToCurrencyRates) - .HasForeignKey(d => d.ToCurrencyCode) - .HasConstraintName("FK_CurrencyRate_Currency_ToCurrencyCode"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Sales"; - - /// - /// Table Name constant for entity - /// - public const string Name = "CurrencyRate"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - public const string Id = "CurrencyRateID"; - - /// - /// Column Name constant for property - /// - /// - public const string CurrencyRateDate = "CurrencyRateDate"; - - /// - /// Column Name constant for property - /// - /// - public const string FromCurrencyCode = "FromCurrencyCode"; - - /// - /// Column Name constant for property - /// - /// - public const string ToCurrencyCode = "ToCurrencyCode"; - - /// - /// Column Name constant for property - /// - /// - public const string AverageRate = "AverageRate"; - - /// - /// Column Name constant for property - /// - /// - public const string EndOfDayRate = "EndOfDayRate"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CustomerConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CustomerConfiguration.cs deleted file mode 100644 index 0b1b998..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CustomerConfiguration.cs +++ /dev/null @@ -1,140 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class CustomerConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("Customer", "Sales"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("CustomerID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.PersonId) - .HasColumnName("PersonID") - .HasColumnType("int"); - - builder.Property(t => t.StoreId) - .HasColumnName("StoreID") - .HasColumnType("int"); - - builder.Property(t => t.TerritoryId) - .HasColumnName("TerritoryID") - .HasColumnType("int"); - - builder.Property(t => t.AccountNumber) - .IsRequired() - .HasColumnName("AccountNumber") - .HasColumnType("varchar(10)") - .HasMaxLength(10) - .ValueGeneratedOnAddOrUpdate(); - - builder.Property(t => t.Rowguid) - .IsRequired() - .HasColumnName("rowguid") - .HasColumnType("uniqueidentifier") - .HasDefaultValueSql("(newid())"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.Person) - .WithMany(t => t.Customers) - .HasForeignKey(d => d.PersonId) - .HasConstraintName("FK_Customer_Person_PersonID"); - - builder.HasOne(t => t.SalesTerritory) - .WithMany(t => t.Customers) - .HasForeignKey(d => d.TerritoryId) - .HasConstraintName("FK_Customer_SalesTerritory_TerritoryID"); - - builder.HasOne(t => t.Store) - .WithMany(t => t.Customers) - .HasForeignKey(d => d.StoreId) - .HasConstraintName("FK_Customer_Store_StoreID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - public const string Schema = "Sales"; - - /// Table Name constant for entity - public const string Name = "Customer"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - public const string Id = "CustomerID"; - - /// - /// Column Name constant for property - /// - /// - public const string PersonId = "PersonID"; - - /// - /// Column Name constant for property - /// - /// - public const string StoreId = "StoreID"; - - /// - /// Column Name constant for property - /// - /// - public const string TerritoryId = "TerritoryID"; - - /// - /// Column Name constant for property - /// - /// - public const string AccountNumber = "AccountNumber"; - - /// - /// Column Name constant for property - /// - /// - public const string Rowguid = "rowguid"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/DepartmentConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/DepartmentConfiguration.cs deleted file mode 100644 index f9c1fbe..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/DepartmentConfiguration.cs +++ /dev/null @@ -1,96 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class DepartmentConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("Department", "HumanResources"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("DepartmentID") - .HasColumnType("smallint") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.Name) - .IsRequired() - .HasColumnName("Name") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.GroupName) - .IsRequired() - .HasColumnName("GroupName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - public const string Schema = "HumanResources"; - - /// - /// Table Name constant for entity - /// - public const string Name = "Department"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - public const string Id = "DepartmentID"; - - /// - /// Column Name constant for property - /// - public const string Name = "Name"; - - /// - /// Column Name constant for property - /// - /// - public const string GroupName = "GroupName"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmailAddressConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmailAddressConfiguration.cs deleted file mode 100644 index fc54028..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmailAddressConfiguration.cs +++ /dev/null @@ -1,112 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class EmailAddressConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("EmailAddress", "Person"); - - // key - builder.HasKey(t => new { t.BusinessEntityId, t.Id }); - - // properties - builder.Property(t => t.BusinessEntityId) - .IsRequired() - .HasColumnName("BusinessEntityID") - .HasColumnType("int"); - - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("EmailAddressID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.EmailAddressMember) - .HasColumnName("EmailAddress") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.Rowguid) - .IsRequired() - .HasColumnName("rowguid") - .HasColumnType("uniqueidentifier") - .HasDefaultValueSql("(newid())"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.Person) - .WithMany(t => t.EmailAddresses) - .HasForeignKey(d => d.BusinessEntityId) - .HasConstraintName("FK_EmailAddress_Person_BusinessEntityID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Person"; - - /// - /// Table Name constant for entity - /// - public const string Name = "EmailAddress"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string BusinessEntityId = "BusinessEntityID"; - - /// - /// Column Name constant for property - /// - public const string Id = "EmailAddressID"; - - /// - /// Column Name constant for property - /// - /// - public const string EmailAddressMember = "EmailAddress"; - - /// - /// Column Name constant for property - /// - /// - public const string Rowguid = "rowguid"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmployeeConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmployeeConfiguration.cs deleted file mode 100644 index 0b4656b..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmployeeConfiguration.cs +++ /dev/null @@ -1,227 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class EmployeeConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("Employee", "HumanResources"); - - // key - builder.HasKey(t => t.BusinessEntityId); - - // properties - builder.Property(t => t.BusinessEntityId) - .IsRequired() - .HasColumnName("BusinessEntityID") - .HasColumnType("int"); - - builder.Property(t => t.NationalIdNumber) - .IsRequired() - .HasColumnName("NationalIDNumber") - .HasColumnType("nvarchar(15)") - .HasMaxLength(15); - - builder.Property(t => t.LoginId) - .IsRequired() - .HasColumnName("LoginID") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - builder.Property(t => t.OrganizationLevel) - .HasColumnName("OrganizationLevel") - .HasColumnType("smallint") - .ValueGeneratedOnAddOrUpdate(); - - builder.Property(t => t.JobTitle) - .IsRequired() - .HasColumnName("JobTitle") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.BirthDate) - .IsRequired() - .HasColumnName("BirthDate") - .HasColumnType("date"); - - builder.Property(t => t.MaritalStatus) - .IsRequired() - .HasColumnName("MaritalStatus") - .HasColumnType("nchar(1)") - .HasMaxLength(1); - - builder.Property(t => t.Gender) - .IsRequired() - .HasColumnName("Gender") - .HasColumnType("nchar(1)") - .HasMaxLength(1); - - builder.Property(t => t.HireDate) - .IsRequired() - .HasColumnName("HireDate") - .HasColumnType("date"); - - builder.Property(t => t.SalariedFlag) - .IsRequired() - .HasColumnName("SalariedFlag") - .HasColumnType("bit") - .HasDefaultValue(true); - - builder.Property(t => t.VacationHours) - .IsRequired() - .HasColumnName("VacationHours") - .HasColumnType("smallint") - .HasDefaultValue(0); - - builder.Property(t => t.SickLeaveHours) - .IsRequired() - .HasColumnName("SickLeaveHours") - .HasColumnType("smallint") - .HasDefaultValue(0); - - builder.Property(t => t.CurrentFlag) - .IsRequired() - .HasColumnName("CurrentFlag") - .HasColumnType("bit") - .HasDefaultValue(true); - - builder.Property(t => t.Rowguid) - .IsRequired() - .HasColumnName("rowguid") - .HasColumnType("uniqueidentifier") - .HasDefaultValueSql("(newid())"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.Person) - .WithOne(t => t.Employee) - .HasForeignKey(d => d.BusinessEntityId) - .HasConstraintName("FK_Employee_Person_BusinessEntityID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - public const string Schema = "HumanResources"; - - /// Table Name constant for entity - public const string Name = "Employee"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string BusinessEntityId = "BusinessEntityID"; - - /// - /// Column Name constant for property - /// - /// - public const string NationalIdNumber = "NationalIDNumber"; - - /// - /// Column Name constant for property - /// - /// - public const string LoginId = "LoginID"; - - /// - /// Column Name constant for property - /// - /// - public const string OrganizationLevel = "OrganizationLevel"; - - /// - /// Column Name constant for property - /// - /// - public const string JobTitle = "JobTitle"; - - /// - /// Column Name constant for property - /// - /// - public const string BirthDate = "BirthDate"; - - /// - /// Column Name constant for property - /// - /// - public const string MaritalStatus = "MaritalStatus"; - - /// - /// Column Name constant for property - /// - public const string Gender = "Gender"; - - /// - /// Column Name constant for property - /// - /// - public const string HireDate = "HireDate"; - - /// - /// Column Name constant for property - /// - /// - public const string SalariedFlag = "SalariedFlag"; - - /// - /// Column Name constant for property - /// - /// - public const string VacationHours = "VacationHours"; - - /// - /// Column Name constant for property - /// - /// - public const string SickLeaveHours = "SickLeaveHours"; - - /// - /// Column Name constant for property - /// - /// - public const string CurrentFlag = "CurrentFlag"; - - /// - /// Column Name constant for property - /// - /// - public const string Rowguid = "rowguid"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmployeeDepartmentHistoryConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmployeeDepartmentHistoryConfiguration.cs deleted file mode 100644 index ffa3061..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmployeeDepartmentHistoryConfiguration.cs +++ /dev/null @@ -1,133 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class EmployeeDepartmentHistoryConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("EmployeeDepartmentHistory", "HumanResources"); - - // key - builder.HasKey(t => new { t.BusinessEntityId, t.DepartmentId, t.ShiftId, t.StartDate }); - - // properties - builder.Property(t => t.BusinessEntityId) - .IsRequired() - .HasColumnName("BusinessEntityID") - .HasColumnType("int"); - - builder.Property(t => t.DepartmentId) - .IsRequired() - .HasColumnName("DepartmentID") - .HasColumnType("smallint"); - - builder.Property(t => t.ShiftId) - .IsRequired() - .HasColumnName("ShiftID") - .HasColumnType("tinyint"); - - builder.Property(t => t.StartDate) - .IsRequired() - .HasColumnName("StartDate") - .HasColumnType("date"); - - builder.Property(t => t.EndDate) - .HasColumnName("EndDate") - .HasColumnType("date"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.Department) - .WithMany(t => t.EmployeeDepartmentHistories) - .HasForeignKey(d => d.DepartmentId) - .HasConstraintName("FK_EmployeeDepartmentHistory_Department_DepartmentID"); - - builder.HasOne(t => t.Employee) - .WithMany(t => t.EmployeeDepartmentHistories) - .HasForeignKey(d => d.BusinessEntityId) - .HasConstraintName("FK_EmployeeDepartmentHistory_Employee_BusinessEntityID"); - - builder.HasOne(t => t.Shift) - .WithMany(t => t.EmployeeDepartmentHistories) - .HasForeignKey(d => d.ShiftId) - .HasConstraintName("FK_EmployeeDepartmentHistory_Shift_ShiftID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "HumanResources"; - - /// - /// Table Name constant for entity - /// - /// - public const string Name = "EmployeeDepartmentHistory"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string BusinessEntityId = "BusinessEntityID"; - - /// - /// Column Name constant for property - /// - /// - public const string DepartmentId = "DepartmentID"; - - /// - /// Column Name constant for property - /// - /// - public const string ShiftId = "ShiftID"; - - /// - /// Column Name constant for property - /// - /// - public const string StartDate = "StartDate"; - - /// - /// Column Name constant for property - /// - /// - public const string EndDate = "EndDate"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmployeePayHistoryConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmployeePayHistoryConfiguration.cs deleted file mode 100644 index 962d2cb..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmployeePayHistoryConfiguration.cs +++ /dev/null @@ -1,112 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class EmployeePayHistoryConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("EmployeePayHistory", "HumanResources"); - - // key - builder.HasKey(t => new { t.BusinessEntityId, t.RateChangeDate }); - - // properties - builder.Property(t => t.BusinessEntityId) - .IsRequired() - .HasColumnName("BusinessEntityID") - .HasColumnType("int"); - - builder.Property(t => t.RateChangeDate) - .IsRequired() - .HasColumnName("RateChangeDate") - .HasColumnType("datetime"); - - builder.Property(t => t.Rate) - .IsRequired() - .HasColumnName("Rate") - .HasColumnType("money"); - - builder.Property(t => t.PayFrequency) - .IsRequired() - .HasColumnName("PayFrequency") - .HasColumnType("tinyint"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.Employee) - .WithMany(t => t.EmployeePayHistories) - .HasForeignKey(d => d.BusinessEntityId) - .HasConstraintName("FK_EmployeePayHistory_Employee_BusinessEntityID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "HumanResources"; - - /// - /// Table Name constant for entity - /// - public const string Name = "EmployeePayHistory"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string BusinessEntityId = "BusinessEntityID"; - - /// - /// Column Name constant for property - /// - /// - public const string RateChangeDate = "RateChangeDate"; - - /// - /// Column Name constant for property - /// - /// - public const string Rate = "Rate"; - - /// - /// Column Name constant for property - /// - /// - public const string PayFrequency = "PayFrequency"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/IllustrationConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/IllustrationConfiguration.cs deleted file mode 100644 index b239c00..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/IllustrationConfiguration.cs +++ /dev/null @@ -1,84 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class IllustrationConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("Illustration", "Production"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("IllustrationID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.Diagram) - .HasColumnName("Diagram") - .HasColumnType("xml"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Production"; - - /// - /// Table Name constant for entity - /// - public const string Name = "Illustration"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - public const string Id = "IllustrationID"; - - /// - /// Column Name constant for property - /// - /// - public const string Diagram = "Diagram"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/JobCandidateConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/JobCandidateConfiguration.cs deleted file mode 100644 index a22d291..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/JobCandidateConfiguration.cs +++ /dev/null @@ -1,98 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class JobCandidateConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("JobCandidate", "HumanResources"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("JobCandidateID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.BusinessEntityId) - .HasColumnName("BusinessEntityID") - .HasColumnType("int"); - - builder.Property(t => t.Resume) - .HasColumnName("Resume") - .HasColumnType("xml"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.Employee) - .WithMany(t => t.JobCandidates) - .HasForeignKey(d => d.BusinessEntityId) - .HasConstraintName("FK_JobCandidate_Employee_BusinessEntityID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "HumanResources"; - - /// - /// Table Name constant for entity - /// - public const string Name = "JobCandidate"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - public const string Id = "JobCandidateID"; - - /// - /// Column Name constant for property - /// - /// - public const string BusinessEntityId = "BusinessEntityID"; - - /// - /// Column Name constant for property - /// - /// - public const string Resume = "Resume"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/LocationConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/LocationConfiguration.cs deleted file mode 100644 index cae71c7..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/LocationConfiguration.cs +++ /dev/null @@ -1,106 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class LocationConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("Location", "Production"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("LocationID") - .HasColumnType("smallint") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.Name) - .IsRequired() - .HasColumnName("Name") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.CostRate) - .IsRequired() - .HasColumnName("CostRate") - .HasColumnType("smallmoney") - .HasDefaultValueSql("((0.00))"); - - builder.Property(t => t.Availability) - .IsRequired() - .HasColumnName("Availability") - .HasColumnType("decimal(8,2)") - .HasDefaultValueSql("((0.00))"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - public const string Schema = "Production"; - - /// Table Name constant for entity - public const string Name = "Location"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - public const string Id = "LocationID"; - - /// - /// Column Name constant for property - /// - public const string Name = "Name"; - - /// - /// Column Name constant for property - /// - /// - public const string CostRate = "CostRate"; - - /// - /// Column Name constant for property - /// - /// - public const string Availability = "Availability"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PasswordConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PasswordConfiguration.cs deleted file mode 100644 index 9689147..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PasswordConfiguration.cs +++ /dev/null @@ -1,111 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class PasswordConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("Password", "Person"); - - // key - builder.HasKey(t => t.BusinessEntityId); - - // properties - builder.Property(t => t.BusinessEntityId) - .IsRequired() - .HasColumnName("BusinessEntityID") - .HasColumnType("int"); - - builder.Property(t => t.PasswordHash) - .IsRequired() - .HasColumnName("PasswordHash") - .HasColumnType("varchar(128)") - .HasMaxLength(128); - - builder.Property(t => t.PasswordSalt) - .IsRequired() - .HasColumnName("PasswordSalt") - .HasColumnType("varchar(10)") - .HasMaxLength(10); - - builder.Property(t => t.Rowguid) - .IsRequired() - .HasColumnName("rowguid") - .HasColumnType("uniqueidentifier") - .HasDefaultValueSql("(newid())"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.Person) - .WithOne(t => t.Password) - .HasForeignKey(d => d.BusinessEntityId) - .HasConstraintName("FK_Password_Person_BusinessEntityID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - public const string Schema = "Person"; - - /// Table Name constant for entity - public const string Name = "Password"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string BusinessEntityId = "BusinessEntityID"; - - /// - /// Column Name constant for property - /// - /// - public const string PasswordHash = "PasswordHash"; - - /// - /// Column Name constant for property - /// - /// - public const string PasswordSalt = "PasswordSalt"; - - /// - /// Column Name constant for property - /// - /// - public const string Rowguid = "rowguid"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PersonConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PersonConfiguration.cs deleted file mode 100644 index 8dd9dc5..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PersonConfiguration.cs +++ /dev/null @@ -1,196 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class PersonConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("Person", "Person"); - - // key - builder.HasKey(t => t.BusinessEntityId); - - // properties - builder.Property(t => t.BusinessEntityId) - .IsRequired() - .HasColumnName("BusinessEntityID") - .HasColumnType("int"); - - builder.Property(t => t.PersonType) - .IsRequired() - .HasColumnName("PersonType") - .HasColumnType("nchar(2)") - .HasMaxLength(2); - - builder.Property(t => t.NameStyle) - .IsRequired() - .HasColumnName("NameStyle") - .HasColumnType("bit") - .HasDefaultValue(false); - - builder.Property(t => t.Title) - .HasColumnName("Title") - .HasColumnType("nvarchar(8)") - .HasMaxLength(8); - - builder.Property(t => t.FirstName) - .IsRequired() - .HasColumnName("FirstName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.MiddleName) - .HasColumnName("MiddleName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.LastName) - .IsRequired() - .HasColumnName("LastName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.Suffix) - .HasColumnName("Suffix") - .HasColumnType("nvarchar(10)") - .HasMaxLength(10); - - builder.Property(t => t.EmailPromotion) - .IsRequired() - .HasColumnName("EmailPromotion") - .HasColumnType("int") - .HasDefaultValue(0); - - builder.Property(t => t.AdditionalContactInfo) - .HasColumnName("AdditionalContactInfo") - .HasColumnType("xml"); - - builder.Property(t => t.Demographics) - .HasColumnName("Demographics") - .HasColumnType("xml"); - - builder.Property(t => t.Rowguid) - .IsRequired() - .HasColumnName("rowguid") - .HasColumnType("uniqueidentifier") - .HasDefaultValueSql("(newid())"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.BusinessEntity) - .WithOne(t => t.Person) - .HasForeignKey(d => d.BusinessEntityId) - .HasConstraintName("FK_Person_BusinessEntity_BusinessEntityID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - public const string Schema = "Person"; - - /// Table Name constant for entity - public const string Name = "Person"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string BusinessEntityId = "BusinessEntityID"; - - /// - /// Column Name constant for property - /// - /// - public const string PersonType = "PersonType"; - - /// - /// Column Name constant for property - /// - /// - public const string NameStyle = "NameStyle"; - - /// - /// Column Name constant for property - /// - public const string Title = "Title"; - - /// - /// Column Name constant for property - /// - /// - public const string FirstName = "FirstName"; - - /// - /// Column Name constant for property - /// - /// - public const string MiddleName = "MiddleName"; - - /// - /// Column Name constant for property - /// - public const string LastName = "LastName"; - - /// - /// Column Name constant for property - /// - public const string Suffix = "Suffix"; - - /// - /// Column Name constant for property - /// - /// - public const string EmailPromotion = "EmailPromotion"; - - /// - /// Column Name constant for property - /// - /// - public const string AdditionalContactInfo = "AdditionalContactInfo"; - - /// - /// Column Name constant for property - /// - /// - public const string Demographics = "Demographics"; - - /// - /// Column Name constant for property - /// - public const string Rowguid = "rowguid"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PersonCreditCardConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PersonCreditCardConfiguration.cs deleted file mode 100644 index 8c7b0dd..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PersonCreditCardConfiguration.cs +++ /dev/null @@ -1,94 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class PersonCreditCardConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("PersonCreditCard", "Sales"); - - // key - builder.HasKey(t => new { t.BusinessEntityId, t.CreditCardId }); - - // properties - builder.Property(t => t.BusinessEntityId) - .IsRequired() - .HasColumnName("BusinessEntityID") - .HasColumnType("int"); - - builder.Property(t => t.CreditCardId) - .IsRequired() - .HasColumnName("CreditCardID") - .HasColumnType("int"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.CreditCard) - .WithMany(t => t.PersonCreditCards) - .HasForeignKey(d => d.CreditCardId) - .HasConstraintName("FK_PersonCreditCard_CreditCard_CreditCardID"); - - builder.HasOne(t => t.Person) - .WithMany(t => t.PersonCreditCards) - .HasForeignKey(d => d.BusinessEntityId) - .HasConstraintName("FK_PersonCreditCard_Person_BusinessEntityID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Sales"; - - /// - /// Table Name constant for entity - /// - public const string Name = "PersonCreditCard"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string BusinessEntityId = "BusinessEntityID"; - - /// - /// Column Name constant for property - /// - /// - public const string CreditCardId = "CreditCardID"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PersonPhoneConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PersonPhoneConfiguration.cs deleted file mode 100644 index 1ed3cf3..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PersonPhoneConfiguration.cs +++ /dev/null @@ -1,105 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class PersonPhoneConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("PersonPhone", "Person"); - - // key - builder.HasKey(t => new { t.BusinessEntityId, t.PhoneNumber, t.PhoneNumberTypeId }); - - // properties - builder.Property(t => t.BusinessEntityId) - .IsRequired() - .HasColumnName("BusinessEntityID") - .HasColumnType("int"); - - builder.Property(t => t.PhoneNumber) - .IsRequired() - .HasColumnName("PhoneNumber") - .HasColumnType("nvarchar(25)") - .HasMaxLength(25); - - builder.Property(t => t.PhoneNumberTypeId) - .IsRequired() - .HasColumnName("PhoneNumberTypeID") - .HasColumnType("int"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.Person) - .WithMany(t => t.PersonPhones) - .HasForeignKey(d => d.BusinessEntityId) - .HasConstraintName("FK_PersonPhone_Person_BusinessEntityID"); - - builder.HasOne(t => t.PhoneNumberType) - .WithMany(t => t.PersonPhones) - .HasForeignKey(d => d.PhoneNumberTypeId) - .HasConstraintName("FK_PersonPhone_PhoneNumberType_PhoneNumberTypeID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - public const string Schema = "Person"; - - /// - /// Table Name constant for entity - /// - public const string Name = "PersonPhone"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string BusinessEntityId = "BusinessEntityID"; - - /// - /// Column Name constant for property - /// - /// - public const string PhoneNumber = "PhoneNumber"; - - /// - /// Column Name constant for property - /// - /// - public const string PhoneNumberTypeId = "PhoneNumberTypeID"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PhoneNumberTypeConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PhoneNumberTypeConfiguration.cs deleted file mode 100644 index 3639098..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PhoneNumberTypeConfiguration.cs +++ /dev/null @@ -1,87 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class PhoneNumberTypeConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("PhoneNumberType", "Person"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("PhoneNumberTypeID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.Name) - .IsRequired() - .HasColumnName("Name") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Person"; - - /// - /// Table Name constant for entity - /// - public const string Name = "PhoneNumberType"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string Id = "PhoneNumberTypeID"; - - /// - /// Column Name constant for property - /// - /// - public const string Name = "Name"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductCategoryConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductCategoryConfiguration.cs deleted file mode 100644 index 80ac9b9..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductCategoryConfiguration.cs +++ /dev/null @@ -1,99 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class ProductCategoryConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("ProductCategory", "Production"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("ProductCategoryID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.Name) - .IsRequired() - .HasColumnName("Name") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.Rowguid) - .IsRequired() - .HasColumnName("rowguid") - .HasColumnType("uniqueidentifier") - .HasDefaultValueSql("(newid())"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Production"; - - /// - /// Table Name constant for entity - /// - public const string Name = "ProductCategory"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string Id = "ProductCategoryID"; - - /// - /// Column Name constant for property - /// - /// - public const string Name = "Name"; - - /// - /// Column Name constant for property - /// - /// - public const string Rowguid = "rowguid"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductConfiguration.cs deleted file mode 100644 index 73ccf88..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductConfiguration.cs +++ /dev/null @@ -1,336 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class ProductConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("Product", "Production"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("ProductID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.Name) - .IsRequired() - .HasColumnName("Name") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.ProductNumber) - .IsRequired() - .HasColumnName("ProductNumber") - .HasColumnType("nvarchar(25)") - .HasMaxLength(25); - - builder.Property(t => t.MakeFlag) - .IsRequired() - .HasColumnName("MakeFlag") - .HasColumnType("bit") - .HasDefaultValue(true); - - builder.Property(t => t.FinishedGoodsFlag) - .IsRequired() - .HasColumnName("FinishedGoodsFlag") - .HasColumnType("bit") - .HasDefaultValue(true); - - builder.Property(t => t.Color) - .HasColumnName("Color") - .HasColumnType("nvarchar(15)") - .HasMaxLength(15); - - builder.Property(t => t.SafetyStockLevel) - .IsRequired() - .HasColumnName("SafetyStockLevel") - .HasColumnType("smallint"); - - builder.Property(t => t.ReorderPoint) - .IsRequired() - .HasColumnName("ReorderPoint") - .HasColumnType("smallint"); - - builder.Property(t => t.StandardCost) - .IsRequired() - .HasColumnName("StandardCost") - .HasColumnType("money"); - - builder.Property(t => t.ListPrice) - .IsRequired() - .HasColumnName("ListPrice") - .HasColumnType("money"); - - builder.Property(t => t.Size) - .HasColumnName("Size") - .HasColumnType("nvarchar(5)") - .HasMaxLength(5); - - builder.Property(t => t.SizeUnitMeasureCode) - .HasColumnName("SizeUnitMeasureCode") - .HasColumnType("nchar(3)") - .HasMaxLength(3); - - builder.Property(t => t.WeightUnitMeasureCode) - .HasColumnName("WeightUnitMeasureCode") - .HasColumnType("nchar(3)") - .HasMaxLength(3); - - builder.Property(t => t.Weight) - .HasColumnName("Weight") - .HasColumnType("decimal(8,2)"); - - builder.Property(t => t.DaysToManufacture) - .IsRequired() - .HasColumnName("DaysToManufacture") - .HasColumnType("int"); - - builder.Property(t => t.ProductLine) - .HasColumnName("ProductLine") - .HasColumnType("nchar(2)") - .HasMaxLength(2); - - builder.Property(t => t.Class) - .HasColumnName("Class") - .HasColumnType("nchar(2)") - .HasMaxLength(2); - - builder.Property(t => t.Style) - .HasColumnName("Style") - .HasColumnType("nchar(2)") - .HasMaxLength(2); - - builder.Property(t => t.ProductSubcategoryId) - .HasColumnName("ProductSubcategoryID") - .HasColumnType("int"); - - builder.Property(t => t.ProductModelId) - .HasColumnName("ProductModelID") - .HasColumnType("int"); - - builder.Property(t => t.SellStartDate) - .IsRequired() - .HasColumnName("SellStartDate") - .HasColumnType("datetime"); - - builder.Property(t => t.SellEndDate) - .HasColumnName("SellEndDate") - .HasColumnType("datetime"); - - builder.Property(t => t.DiscontinuedDate) - .HasColumnName("DiscontinuedDate") - .HasColumnType("datetime"); - - builder.Property(t => t.Rowguid) - .IsRequired() - .HasColumnName("rowguid") - .HasColumnType("uniqueidentifier") - .HasDefaultValueSql("(newid())"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.ProductModel) - .WithMany(t => t.Products) - .HasForeignKey(d => d.ProductModelId) - .HasConstraintName("FK_Product_ProductModel_ProductModelID"); - - builder.HasOne(t => t.ProductSubcategory) - .WithMany(t => t.Products) - .HasForeignKey(d => d.ProductSubcategoryId) - .HasConstraintName("FK_Product_ProductSubcategory_ProductSubcategoryID"); - - builder.HasOne(t => t.SizeUnitMeasure) - .WithMany(t => t.SizeProducts) - .HasForeignKey(d => d.SizeUnitMeasureCode) - .HasConstraintName("FK_Product_UnitMeasure_SizeUnitMeasureCode"); - - builder.HasOne(t => t.WeightUnitMeasure) - .WithMany(t => t.WeightProducts) - .HasForeignKey(d => d.WeightUnitMeasureCode) - .HasConstraintName("FK_Product_UnitMeasure_WeightUnitMeasureCode"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - public const string Schema = "Production"; - - /// Table Name constant for entity - public const string Name = "Product"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - public const string Id = "ProductID"; - - /// - /// Column Name constant for property - /// - public const string Name = "Name"; - - /// - /// Column Name constant for property - /// - /// - public const string ProductNumber = "ProductNumber"; - - /// - /// Column Name constant for property - /// - /// - public const string MakeFlag = "MakeFlag"; - - /// - /// Column Name constant for property - /// - /// - public const string FinishedGoodsFlag = "FinishedGoodsFlag"; - - /// - /// Column Name constant for property - /// - public const string Color = "Color"; - - /// - /// Column Name constant for property - /// - /// - public const string SafetyStockLevel = "SafetyStockLevel"; - - /// - /// Column Name constant for property - /// - /// - public const string ReorderPoint = "ReorderPoint"; - - /// - /// Column Name constant for property - /// - /// - public const string StandardCost = "StandardCost"; - - /// - /// Column Name constant for property - /// - /// - public const string ListPrice = "ListPrice"; - - /// - /// Column Name constant for property - /// - public const string Size = "Size"; - - /// - /// Column Name constant for property - /// - /// - public const string SizeUnitMeasureCode = "SizeUnitMeasureCode"; - - /// - /// Column Name constant for property - /// - /// - public const string WeightUnitMeasureCode = "WeightUnitMeasureCode"; - - /// - /// Column Name constant for property - /// - public const string Weight = "Weight"; - - /// - /// Column Name constant for property - /// - /// - public const string DaysToManufacture = "DaysToManufacture"; - - /// - /// Column Name constant for property - /// - /// - public const string ProductLine = "ProductLine"; - - /// - /// Column Name constant for property - /// - public const string Class = "Class"; - - /// - /// Column Name constant for property - /// - public const string Style = "Style"; - - /// - /// Column Name constant for property - /// - /// - public const string ProductSubcategoryId = "ProductSubcategoryID"; - - /// - /// Column Name constant for property - /// - /// - public const string ProductModelId = "ProductModelID"; - - /// - /// Column Name constant for property - /// - /// - public const string SellStartDate = "SellStartDate"; - - /// - /// Column Name constant for property - /// - /// - public const string SellEndDate = "SellEndDate"; - - /// - /// Column Name constant for property - /// - /// - public const string DiscontinuedDate = "DiscontinuedDate"; - - /// - /// Column Name constant for property - /// - public const string Rowguid = "rowguid"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductCostHistoryConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductCostHistoryConfiguration.cs deleted file mode 100644 index 97b3e9b..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductCostHistoryConfiguration.cs +++ /dev/null @@ -1,111 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class ProductCostHistoryConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("ProductCostHistory", "Production"); - - // key - builder.HasKey(t => new { t.ProductId, t.StartDate }); - - // properties - builder.Property(t => t.ProductId) - .IsRequired() - .HasColumnName("ProductID") - .HasColumnType("int"); - - builder.Property(t => t.StartDate) - .IsRequired() - .HasColumnName("StartDate") - .HasColumnType("datetime"); - - builder.Property(t => t.EndDate) - .HasColumnName("EndDate") - .HasColumnType("datetime"); - - builder.Property(t => t.StandardCost) - .IsRequired() - .HasColumnName("StandardCost") - .HasColumnType("money"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.Product) - .WithMany(t => t.ProductCostHistories) - .HasForeignKey(d => d.ProductId) - .HasConstraintName("FK_ProductCostHistory_Product_ProductID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Production"; - - /// - /// Table Name constant for entity - /// - public const string Name = "ProductCostHistory"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string ProductId = "ProductID"; - - /// - /// Column Name constant for property - /// - /// - public const string StartDate = "StartDate"; - - /// - /// Column Name constant for property - /// - /// - public const string EndDate = "EndDate"; - - /// - /// Column Name constant for property - /// - /// - public const string StandardCost = "StandardCost"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductDescriptionConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductDescriptionConfiguration.cs deleted file mode 100644 index 54a2b9d..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductDescriptionConfiguration.cs +++ /dev/null @@ -1,100 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class ProductDescriptionConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("ProductDescription", "Production"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("ProductDescriptionID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.Description) - .IsRequired() - .HasColumnName("Description") - .HasColumnType("nvarchar(400)") - .HasMaxLength(400); - - builder.Property(t => t.Rowguid) - .IsRequired() - .HasColumnName("rowguid") - .HasColumnType("uniqueidentifier") - .HasDefaultValueSql("(newid())"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Production"; - - /// - /// Table Name constant for entity - /// - public const string Name = "ProductDescription"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string Id = "ProductDescriptionID"; - - /// - /// Column Name constant for property - /// - /// - public const string Description = "Description"; - - /// - /// Column Name constant for property - /// - /// - public const string Rowguid = "rowguid"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductDocumentConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductDocumentConfiguration.cs deleted file mode 100644 index 009dcf8..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductDocumentConfiguration.cs +++ /dev/null @@ -1,78 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class ProductDocumentConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("ProductDocument", "Production"); - - // key - builder.HasKey(t => t.ProductId); - - // properties - builder.Property(t => t.ProductId) - .IsRequired() - .HasColumnName("ProductID") - .HasColumnType("int"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.Product) - .WithMany(t => t.ProductDocuments) - .HasForeignKey(d => d.ProductId) - .HasConstraintName("FK_ProductDocument_Product_ProductID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Production"; - - /// - /// Table Name constant for entity - /// - public const string Name = "ProductDocument"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string ProductId = "ProductID"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductInventoryConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductInventoryConfiguration.cs deleted file mode 100644 index 23aed38..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductInventoryConfiguration.cs +++ /dev/null @@ -1,141 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class ProductInventoryConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("ProductInventory", "Production"); - - // key - builder.HasKey(t => new { t.ProductId, t.LocationId }); - - // properties - builder.Property(t => t.ProductId) - .IsRequired() - .HasColumnName("ProductID") - .HasColumnType("int"); - - builder.Property(t => t.LocationId) - .IsRequired() - .HasColumnName("LocationID") - .HasColumnType("smallint"); - - builder.Property(t => t.Shelf) - .IsRequired() - .HasColumnName("Shelf") - .HasColumnType("nvarchar(10)") - .HasMaxLength(10); - - builder.Property(t => t.Bin) - .IsRequired() - .HasColumnName("Bin") - .HasColumnType("tinyint"); - - builder.Property(t => t.Quantity) - .IsRequired() - .HasColumnName("Quantity") - .HasColumnType("smallint") - .HasDefaultValue(0); - - builder.Property(t => t.Rowguid) - .IsRequired() - .HasColumnName("rowguid") - .HasColumnType("uniqueidentifier") - .HasDefaultValueSql("(newid())"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.Location) - .WithMany(t => t.ProductInventories) - .HasForeignKey(d => d.LocationId) - .HasConstraintName("FK_ProductInventory_Location_LocationID"); - - builder.HasOne(t => t.Product) - .WithMany(t => t.ProductInventories) - .HasForeignKey(d => d.ProductId) - .HasConstraintName("FK_ProductInventory_Product_ProductID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Production"; - - /// - /// Table Name constant for entity - /// - public const string Name = "ProductInventory"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string ProductId = "ProductID"; - - /// - /// Column Name constant for property - /// - /// - public const string LocationId = "LocationID"; - - /// - /// Column Name constant for property - /// - /// - public const string Shelf = "Shelf"; - - /// - /// Column Name constant for property - /// - /// - public const string Bin = "Bin"; - - /// - /// Column Name constant for property - /// - /// - public const string Quantity = "Quantity"; - - /// - /// Column Name constant for property - /// - /// - public const string Rowguid = "rowguid"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductListPriceHistoryConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductListPriceHistoryConfiguration.cs deleted file mode 100644 index 786caa4..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductListPriceHistoryConfiguration.cs +++ /dev/null @@ -1,112 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class ProductListPriceHistoryConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("ProductListPriceHistory", "Production"); - - // key - builder.HasKey(t => new { t.ProductId, t.StartDate }); - - // properties - builder.Property(t => t.ProductId) - .IsRequired() - .HasColumnName("ProductID") - .HasColumnType("int"); - - builder.Property(t => t.StartDate) - .IsRequired() - .HasColumnName("StartDate") - .HasColumnType("datetime"); - - builder.Property(t => t.EndDate) - .HasColumnName("EndDate") - .HasColumnType("datetime"); - - builder.Property(t => t.ListPrice) - .IsRequired() - .HasColumnName("ListPrice") - .HasColumnType("money"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.Product) - .WithMany(t => t.ProductListPriceHistories) - .HasForeignKey(d => d.ProductId) - .HasConstraintName("FK_ProductListPriceHistory_Product_ProductID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Production"; - - /// - /// Table Name constant for entity - /// - /// - public const string Name = "ProductListPriceHistory"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string ProductId = "ProductID"; - - /// - /// Column Name constant for property - /// - /// - public const string StartDate = "StartDate"; - - /// - /// Column Name constant for property - /// - /// - public const string EndDate = "EndDate"; - - /// - /// Column Name constant for property - /// - /// - public const string ListPrice = "ListPrice"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductModelConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductModelConfiguration.cs deleted file mode 100644 index c3ad6f1..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductModelConfiguration.cs +++ /dev/null @@ -1,118 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class ProductModelConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("ProductModel", "Production"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("ProductModelID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.Name) - .IsRequired() - .HasColumnName("Name") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.CatalogDescription) - .HasColumnName("CatalogDescription") - .HasColumnType("xml"); - - builder.Property(t => t.Instructions) - .HasColumnName("Instructions") - .HasColumnType("xml"); - - builder.Property(t => t.Rowguid) - .IsRequired() - .HasColumnName("rowguid") - .HasColumnType("uniqueidentifier") - .HasDefaultValueSql("(newid())"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Production"; - - /// - /// Table Name constant for entity - /// - public const string Name = "ProductModel"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - public const string Id = "ProductModelID"; - - /// - /// Column Name constant for property - /// - /// - public const string Name = "Name"; - - /// - /// Column Name constant for property - /// - /// - public const string CatalogDescription = "CatalogDescription"; - - /// - /// Column Name constant for property - /// - /// - public const string Instructions = "Instructions"; - - /// - /// Column Name constant for property - /// - /// - public const string Rowguid = "rowguid"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductModelIllustrationConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductModelIllustrationConfiguration.cs deleted file mode 100644 index 88f0061..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductModelIllustrationConfiguration.cs +++ /dev/null @@ -1,96 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class ProductModelIllustrationConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("ProductModelIllustration", "Production"); - - // key - builder.HasKey(t => new { t.ProductModelId, t.IllustrationId }); - - // properties - builder.Property(t => t.ProductModelId) - .IsRequired() - .HasColumnName("ProductModelID") - .HasColumnType("int"); - - builder.Property(t => t.IllustrationId) - .IsRequired() - .HasColumnName("IllustrationID") - .HasColumnType("int"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.Illustration) - .WithMany(t => t.ProductModelIllustrations) - .HasForeignKey(d => d.IllustrationId) - .HasConstraintName("FK_ProductModelIllustration_Illustration_IllustrationID"); - - builder.HasOne(t => t.ProductModel) - .WithMany(t => t.ProductModelIllustrations) - .HasForeignKey(d => d.ProductModelId) - .HasConstraintName("FK_ProductModelIllustration_ProductModel_ProductModelID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Production"; - - /// - /// Table Name constant for entity - /// - /// - public const string Name = "ProductModelIllustration"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string ProductModelId = "ProductModelID"; - - /// - /// Column Name constant for property - /// - /// - public const string IllustrationId = "IllustrationID"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductModelProductDescriptionCultureConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductModelProductDescriptionCultureConfiguration.cs deleted file mode 100644 index 396e216..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductModelProductDescriptionCultureConfiguration.cs +++ /dev/null @@ -1,114 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class ProductModelProductDescriptionCultureConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("ProductModelProductDescriptionCulture", "Production"); - - // key - builder.HasKey(t => new { t.ProductModelId, t.ProductDescriptionId, t.CultureId }); - - // properties - builder.Property(t => t.ProductModelId) - .IsRequired() - .HasColumnName("ProductModelID") - .HasColumnType("int"); - - builder.Property(t => t.ProductDescriptionId) - .IsRequired() - .HasColumnName("ProductDescriptionID") - .HasColumnType("int"); - - builder.Property(t => t.CultureId) - .IsRequired() - .HasColumnName("CultureID") - .HasColumnType("nchar(6)") - .HasMaxLength(6); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.Culture) - .WithMany(t => t.ProductModelProductDescriptionCultures) - .HasForeignKey(d => d.CultureId) - .HasConstraintName("FK_ProductModelProductDescriptionCulture_Culture_CultureID"); - - builder.HasOne(t => t.ProductDescription) - .WithMany(t => t.ProductModelProductDescriptionCultures) - .HasForeignKey(d => d.ProductDescriptionId) - .HasConstraintName("FK_ProductModelProductDescriptionCulture_ProductDescription_ProductDescriptionID"); - - builder.HasOne(t => t.ProductModel) - .WithMany(t => t.ProductModelProductDescriptionCultures) - .HasForeignKey(d => d.ProductModelId) - .HasConstraintName("FK_ProductModelProductDescriptionCulture_ProductModel_ProductModelID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Production"; - - /// - /// Table Name constant for entity - /// - /// - public const string Name = "ProductModelProductDescriptionCulture"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string ProductModelId = "ProductModelID"; - - /// - /// Column Name constant for property - /// - /// - public const string ProductDescriptionId = "ProductDescriptionID"; - - /// - /// Column Name constant for property - /// - /// - public const string CultureId = "CultureID"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductPhotoConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductPhotoConfiguration.cs deleted file mode 100644 index 055c01b..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductPhotoConfiguration.cs +++ /dev/null @@ -1,116 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class ProductPhotoConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("ProductPhoto", "Production"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("ProductPhotoID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.ThumbNailPhoto) - .HasColumnName("ThumbNailPhoto") - .HasColumnType("varbinary(max)"); - - builder.Property(t => t.ThumbnailPhotoFileName) - .HasColumnName("ThumbnailPhotoFileName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.LargePhoto) - .HasColumnName("LargePhoto") - .HasColumnType("varbinary(max)"); - - builder.Property(t => t.LargePhotoFileName) - .HasColumnName("LargePhotoFileName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Production"; - - /// - /// Table Name constant for entity - /// - public const string Name = "ProductPhoto"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - public const string Id = "ProductPhotoID"; - - /// - /// Column Name constant for property - /// - /// - public const string ThumbNailPhoto = "ThumbNailPhoto"; - - /// - /// Column Name constant for property - /// - /// - public const string ThumbnailPhotoFileName = "ThumbnailPhotoFileName"; - - /// - /// Column Name constant for property - /// - /// - public const string LargePhoto = "LargePhoto"; - - /// - /// Column Name constant for property - /// - /// - public const string LargePhotoFileName = "LargePhotoFileName"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductProductPhotoConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductProductPhotoConfiguration.cs deleted file mode 100644 index faa083c..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductProductPhotoConfiguration.cs +++ /dev/null @@ -1,108 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class ProductProductPhotoConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("ProductProductPhoto", "Production"); - - // key - builder.HasKey(t => new { t.ProductId, t.ProductPhotoId }); - - // properties - builder.Property(t => t.ProductId) - .IsRequired() - .HasColumnName("ProductID") - .HasColumnType("int"); - - builder.Property(t => t.ProductPhotoId) - .IsRequired() - .HasColumnName("ProductPhotoID") - .HasColumnType("int"); - - builder.Property(t => t.Primary) - .IsRequired() - .HasColumnName("Primary") - .HasColumnType("bit") - .HasDefaultValue(false); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.Product) - .WithMany(t => t.ProductProductPhotos) - .HasForeignKey(d => d.ProductId) - .HasConstraintName("FK_ProductProductPhoto_Product_ProductID"); - - builder.HasOne(t => t.ProductPhoto) - .WithMany(t => t.ProductProductPhotos) - .HasForeignKey(d => d.ProductPhotoId) - .HasConstraintName("FK_ProductProductPhoto_ProductPhoto_ProductPhotoID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Production"; - - /// - /// Table Name constant for entity - /// - /// - public const string Name = "ProductProductPhoto"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string ProductId = "ProductID"; - - /// - /// Column Name constant for property - /// - /// - public const string ProductPhotoId = "ProductPhotoID"; - - /// - /// Column Name constant for property - /// - /// - public const string Primary = "Primary"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductReviewConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductReviewConfiguration.cs deleted file mode 100644 index 3961b0f..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductReviewConfiguration.cs +++ /dev/null @@ -1,148 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class ProductReviewConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("ProductReview", "Production"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("ProductReviewID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.ProductId) - .IsRequired() - .HasColumnName("ProductID") - .HasColumnType("int"); - - builder.Property(t => t.ReviewerName) - .IsRequired() - .HasColumnName("ReviewerName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.ReviewDate) - .IsRequired() - .HasColumnName("ReviewDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - builder.Property(t => t.EmailAddress) - .IsRequired() - .HasColumnName("EmailAddress") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.Rating) - .IsRequired() - .HasColumnName("Rating") - .HasColumnType("int"); - - builder.Property(t => t.Comments) - .HasColumnName("Comments") - .HasColumnType("nvarchar(3850)") - .HasMaxLength(3850); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.Product) - .WithMany(t => t.ProductReviews) - .HasForeignKey(d => d.ProductId) - .HasConstraintName("FK_ProductReview_Product_ProductID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Production"; - - /// - /// Table Name constant for entity - /// - public const string Name = "ProductReview"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string Id = "ProductReviewID"; - - /// - /// Column Name constant for property - /// - /// - public const string ProductId = "ProductID"; - - /// - /// Column Name constant for property - /// - /// - public const string ReviewerName = "ReviewerName"; - - /// - /// Column Name constant for property - /// - /// - public const string ReviewDate = "ReviewDate"; - - /// - /// Column Name constant for property - /// - /// - public const string EmailAddress = "EmailAddress"; - - /// - /// Column Name constant for property - /// - /// - public const string Rating = "Rating"; - - /// - /// Column Name constant for property - /// - /// - public const string Comments = "Comments"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductSubcategoryConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductSubcategoryConfiguration.cs deleted file mode 100644 index ee99571..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductSubcategoryConfiguration.cs +++ /dev/null @@ -1,115 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class ProductSubcategoryConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("ProductSubcategory", "Production"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("ProductSubcategoryID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.ProductCategoryId) - .IsRequired() - .HasColumnName("ProductCategoryID") - .HasColumnType("int"); - - builder.Property(t => t.Name) - .IsRequired() - .HasColumnName("Name") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.Rowguid) - .IsRequired() - .HasColumnName("rowguid") - .HasColumnType("uniqueidentifier") - .HasDefaultValueSql("(newid())"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.ProductCategory) - .WithMany(t => t.ProductSubcategories) - .HasForeignKey(d => d.ProductCategoryId) - .HasConstraintName("FK_ProductSubcategory_ProductCategory_ProductCategoryID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Production"; - - /// - /// Table Name constant for entity - /// - public const string Name = "ProductSubcategory"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string Id = "ProductSubcategoryID"; - - /// - /// Column Name constant for property - /// - /// - public const string ProductCategoryId = "ProductCategoryID"; - - /// - /// Column Name constant for property - /// - /// - public const string Name = "Name"; - - /// - /// Column Name constant for property - /// - /// - public const string Rowguid = "rowguid"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductVendorConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductVendorConfiguration.cs deleted file mode 100644 index da8fa35..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductVendorConfiguration.cs +++ /dev/null @@ -1,185 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class ProductVendorConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("ProductVendor", "Purchasing"); - - // key - builder.HasKey(t => new { t.ProductId, t.BusinessEntityId }); - - // properties - builder.Property(t => t.ProductId) - .IsRequired() - .HasColumnName("ProductID") - .HasColumnType("int"); - - builder.Property(t => t.BusinessEntityId) - .IsRequired() - .HasColumnName("BusinessEntityID") - .HasColumnType("int"); - - builder.Property(t => t.AverageLeadTime) - .IsRequired() - .HasColumnName("AverageLeadTime") - .HasColumnType("int"); - - builder.Property(t => t.StandardPrice) - .IsRequired() - .HasColumnName("StandardPrice") - .HasColumnType("money"); - - builder.Property(t => t.LastReceiptCost) - .HasColumnName("LastReceiptCost") - .HasColumnType("money"); - - builder.Property(t => t.LastReceiptDate) - .HasColumnName("LastReceiptDate") - .HasColumnType("datetime"); - - builder.Property(t => t.MinOrderQty) - .IsRequired() - .HasColumnName("MinOrderQty") - .HasColumnType("int"); - - builder.Property(t => t.MaxOrderQty) - .IsRequired() - .HasColumnName("MaxOrderQty") - .HasColumnType("int"); - - builder.Property(t => t.OnOrderQty) - .HasColumnName("OnOrderQty") - .HasColumnType("int"); - - builder.Property(t => t.UnitMeasureCode) - .IsRequired() - .HasColumnName("UnitMeasureCode") - .HasColumnType("nchar(3)") - .HasMaxLength(3); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.Product) - .WithMany(t => t.ProductVendors) - .HasForeignKey(d => d.ProductId) - .HasConstraintName("FK_ProductVendor_Product_ProductID"); - - builder.HasOne(t => t.UnitMeasure) - .WithMany(t => t.ProductVendors) - .HasForeignKey(d => d.UnitMeasureCode) - .HasConstraintName("FK_ProductVendor_UnitMeasure_UnitMeasureCode"); - - builder.HasOne(t => t.Vendor) - .WithMany(t => t.ProductVendors) - .HasForeignKey(d => d.BusinessEntityId) - .HasConstraintName("FK_ProductVendor_Vendor_BusinessEntityID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Purchasing"; - - /// - /// Table Name constant for entity - /// - public const string Name = "ProductVendor"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string ProductId = "ProductID"; - - /// - /// Column Name constant for property - /// - /// - public const string BusinessEntityId = "BusinessEntityID"; - - /// - /// Column Name constant for property - /// - /// - public const string AverageLeadTime = "AverageLeadTime"; - - /// - /// Column Name constant for property - /// - /// - public const string StandardPrice = "StandardPrice"; - - /// - /// Column Name constant for property - /// - /// - public const string LastReceiptCost = "LastReceiptCost"; - - /// - /// Column Name constant for property - /// - /// - public const string LastReceiptDate = "LastReceiptDate"; - - /// - /// Column Name constant for property - /// - /// - public const string MinOrderQty = "MinOrderQty"; - - /// - /// Column Name constant for property - /// - /// - public const string MaxOrderQty = "MaxOrderQty"; - - /// - /// Column Name constant for property - /// - /// - public const string OnOrderQty = "OnOrderQty"; - - /// - /// Column Name constant for property - /// - /// - public const string UnitMeasureCode = "UnitMeasureCode"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PurchaseOrderDetailConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PurchaseOrderDetailConfiguration.cs deleted file mode 100644 index 99de232..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PurchaseOrderDetailConfiguration.cs +++ /dev/null @@ -1,187 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class PurchaseOrderDetailConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("PurchaseOrderDetail", "Purchasing"); - - // key - builder.HasKey(t => new { t.PurchaseOrderId, t.Id }); - - // properties - builder.Property(t => t.PurchaseOrderId) - .IsRequired() - .HasColumnName("PurchaseOrderID") - .HasColumnType("int"); - - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("PurchaseOrderDetailID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.DueDate) - .IsRequired() - .HasColumnName("DueDate") - .HasColumnType("datetime"); - - builder.Property(t => t.OrderQty) - .IsRequired() - .HasColumnName("OrderQty") - .HasColumnType("smallint"); - - builder.Property(t => t.ProductId) - .IsRequired() - .HasColumnName("ProductID") - .HasColumnType("int"); - - builder.Property(t => t.UnitPrice) - .IsRequired() - .HasColumnName("UnitPrice") - .HasColumnType("money"); - - builder.Property(t => t.LineTotal) - .IsRequired() - .HasColumnName("LineTotal") - .HasColumnType("money") - .ValueGeneratedOnAddOrUpdate(); - - builder.Property(t => t.ReceivedQty) - .IsRequired() - .HasColumnName("ReceivedQty") - .HasColumnType("decimal(8,2)"); - - builder.Property(t => t.RejectedQty) - .IsRequired() - .HasColumnName("RejectedQty") - .HasColumnType("decimal(8,2)"); - - builder.Property(t => t.StockedQty) - .IsRequired() - .HasColumnName("StockedQty") - .HasColumnType("decimal(9,2)") - .ValueGeneratedOnAddOrUpdate(); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.Product) - .WithMany(t => t.PurchaseOrderDetails) - .HasForeignKey(d => d.ProductId) - .HasConstraintName("FK_PurchaseOrderDetail_Product_ProductID"); - - builder.HasOne(t => t.PurchaseOrderHeader) - .WithMany(t => t.PurchaseOrderDetails) - .HasForeignKey(d => d.PurchaseOrderId) - .HasConstraintName("FK_PurchaseOrderDetail_PurchaseOrderHeader_PurchaseOrderID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Purchasing"; - - /// - /// Table Name constant for entity - /// - /// - public const string Name = "PurchaseOrderDetail"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string PurchaseOrderId = "PurchaseOrderID"; - - /// - /// Column Name constant for property - /// - /// - public const string Id = "PurchaseOrderDetailID"; - - /// - /// Column Name constant for property - /// - /// - public const string DueDate = "DueDate"; - - /// - /// Column Name constant for property - /// - /// - public const string OrderQty = "OrderQty"; - - /// - /// Column Name constant for property - /// - /// - public const string ProductId = "ProductID"; - - /// - /// Column Name constant for property - /// - /// - public const string UnitPrice = "UnitPrice"; - - /// - /// Column Name constant for property - /// - /// - public const string LineTotal = "LineTotal"; - - /// - /// Column Name constant for property - /// - /// - public const string ReceivedQty = "ReceivedQty"; - - /// - /// Column Name constant for property - /// - /// - public const string RejectedQty = "RejectedQty"; - - /// - /// Column Name constant for property - /// - /// - public const string StockedQty = "StockedQty"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PurchaseOrderHeaderConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PurchaseOrderHeaderConfiguration.cs deleted file mode 100644 index 96db980..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PurchaseOrderHeaderConfiguration.cs +++ /dev/null @@ -1,218 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class PurchaseOrderHeaderConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("PurchaseOrderHeader", "Purchasing"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("PurchaseOrderID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.RevisionNumber) - .IsRequired() - .HasColumnName("RevisionNumber") - .HasColumnType("tinyint") - .HasDefaultValue(0); - - builder.Property(t => t.Status) - .IsRequired() - .HasColumnName("Status") - .HasColumnType("tinyint") - .HasDefaultValue(1); - - builder.Property(t => t.EmployeeId) - .IsRequired() - .HasColumnName("EmployeeID") - .HasColumnType("int"); - - builder.Property(t => t.VendorId) - .IsRequired() - .HasColumnName("VendorID") - .HasColumnType("int"); - - builder.Property(t => t.ShipMethodId) - .IsRequired() - .HasColumnName("ShipMethodID") - .HasColumnType("int"); - - builder.Property(t => t.OrderDate) - .IsRequired() - .HasColumnName("OrderDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - builder.Property(t => t.ShipDate) - .HasColumnName("ShipDate") - .HasColumnType("datetime"); - - builder.Property(t => t.SubTotal) - .IsRequired() - .HasColumnName("SubTotal") - .HasColumnType("money") - .HasDefaultValueSql("((0.00))"); - - builder.Property(t => t.TaxAmt) - .IsRequired() - .HasColumnName("TaxAmt") - .HasColumnType("money") - .HasDefaultValueSql("((0.00))"); - - builder.Property(t => t.Freight) - .IsRequired() - .HasColumnName("Freight") - .HasColumnType("money") - .HasDefaultValueSql("((0.00))"); - - builder.Property(t => t.TotalDue) - .IsRequired() - .HasColumnName("TotalDue") - .HasColumnType("money") - .ValueGeneratedOnAddOrUpdate(); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.Employee) - .WithMany(t => t.PurchaseOrderHeaders) - .HasForeignKey(d => d.EmployeeId) - .HasConstraintName("FK_PurchaseOrderHeader_Employee_EmployeeID"); - - builder.HasOne(t => t.ShipMethod) - .WithMany(t => t.PurchaseOrderHeaders) - .HasForeignKey(d => d.ShipMethodId) - .HasConstraintName("FK_PurchaseOrderHeader_ShipMethod_ShipMethodID"); - - builder.HasOne(t => t.Vendor) - .WithMany(t => t.PurchaseOrderHeaders) - .HasForeignKey(d => d.VendorId) - .HasConstraintName("FK_PurchaseOrderHeader_Vendor_VendorID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Purchasing"; - - /// - /// Table Name constant for entity - /// - /// - public const string Name = "PurchaseOrderHeader"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string Id = "PurchaseOrderID"; - - /// - /// Column Name constant for property - /// - /// - public const string RevisionNumber = "RevisionNumber"; - - /// - /// Column Name constant for property - /// - /// - public const string Status = "Status"; - - /// - /// Column Name constant for property - /// - /// - public const string EmployeeId = "EmployeeID"; - - /// - /// Column Name constant for property - /// - /// - public const string VendorId = "VendorID"; - - /// - /// Column Name constant for property - /// - /// - public const string ShipMethodId = "ShipMethodID"; - - /// - /// Column Name constant for property - /// - /// - public const string OrderDate = "OrderDate"; - - /// - /// Column Name constant for property - /// - /// - public const string ShipDate = "ShipDate"; - - /// - /// Column Name constant for property - /// - /// - public const string SubTotal = "SubTotal"; - - /// - /// Column Name constant for property - /// - /// - public const string TaxAmt = "TaxAmt"; - - /// - /// Column Name constant for property - /// - /// - public const string Freight = "Freight"; - - /// - /// Column Name constant for property - /// - /// - public const string TotalDue = "TotalDue"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesOrderDetailConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesOrderDetailConfiguration.cs deleted file mode 100644 index 72ae559..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesOrderDetailConfiguration.cs +++ /dev/null @@ -1,186 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class SalesOrderDetailConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("SalesOrderDetail", "Sales"); - - // key - builder.HasKey(t => new { t.SalesOrderId, t.Id }); - - // properties - builder.Property(t => t.SalesOrderId) - .IsRequired() - .HasColumnName("SalesOrderID") - .HasColumnType("int"); - - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("SalesOrderDetailID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.CarrierTrackingNumber) - .HasColumnName("CarrierTrackingNumber") - .HasColumnType("nvarchar(25)") - .HasMaxLength(25); - - builder.Property(t => t.OrderQty) - .IsRequired() - .HasColumnName("OrderQty") - .HasColumnType("smallint"); - - builder.Property(t => t.ProductId) - .IsRequired() - .HasColumnName("ProductID") - .HasColumnType("int"); - - builder.Property(t => t.SpecialOfferId) - .IsRequired() - .HasColumnName("SpecialOfferID") - .HasColumnType("int"); - - builder.Property(t => t.UnitPrice) - .IsRequired() - .HasColumnName("UnitPrice") - .HasColumnType("money"); - - builder.Property(t => t.UnitPriceDiscount) - .IsRequired() - .HasColumnName("UnitPriceDiscount") - .HasColumnType("money") - .HasDefaultValueSql("((0.0))"); - - builder.Property(t => t.LineTotal) - .IsRequired() - .HasColumnName("LineTotal") - .HasColumnType("numeric(38,6)") - .ValueGeneratedOnAddOrUpdate(); - - builder.Property(t => t.Rowguid) - .IsRequired() - .HasColumnName("rowguid") - .HasColumnType("uniqueidentifier") - .HasDefaultValueSql("(newid())"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.SalesOrderHeader) - .WithMany(t => t.SalesOrderDetails) - .HasForeignKey(d => d.SalesOrderId) - .HasConstraintName("FK_SalesOrderDetail_SalesOrderHeader_SalesOrderID"); - - builder.HasOne(t => t.SpecialOfferProduct) - .WithMany(t => t.SalesOrderDetails) - .HasForeignKey(d => new { d.SpecialOfferId, d.ProductId }) - .HasConstraintName("FK_SalesOrderDetail_SpecialOfferProduct_SpecialOfferIDProductID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Sales"; - - /// - /// Table Name constant for entity - /// - public const string Name = "SalesOrderDetail"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string SalesOrderId = "SalesOrderID"; - - /// - /// Column Name constant for property - /// - /// - public const string Id = "SalesOrderDetailID"; - - /// - /// Column Name constant for property - /// - /// - public const string CarrierTrackingNumber = "CarrierTrackingNumber"; - - /// - /// Column Name constant for property - /// - /// - public const string OrderQty = "OrderQty"; - - /// - /// Column Name constant for property - /// - /// - public const string ProductId = "ProductID"; - - /// - /// Column Name constant for property - /// - /// - public const string SpecialOfferId = "SpecialOfferID"; - - /// - /// Column Name constant for property - /// - /// - public const string UnitPrice = "UnitPrice"; - - /// - /// Column Name constant for property - /// - /// - public const string UnitPriceDiscount = "UnitPriceDiscount"; - - /// - /// Column Name constant for property - /// - /// - public const string LineTotal = "LineTotal"; - - /// - /// Column Name constant for property - /// - /// - public const string Rowguid = "rowguid"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesOrderHeaderConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesOrderHeaderConfiguration.cs deleted file mode 100644 index ff8b1b4..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesOrderHeaderConfiguration.cs +++ /dev/null @@ -1,384 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class SalesOrderHeaderConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("SalesOrderHeader", "Sales"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("SalesOrderID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.RevisionNumber) - .IsRequired() - .HasColumnName("RevisionNumber") - .HasColumnType("tinyint") - .HasDefaultValue(0); - - builder.Property(t => t.OrderDate) - .IsRequired() - .HasColumnName("OrderDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - builder.Property(t => t.DueDate) - .IsRequired() - .HasColumnName("DueDate") - .HasColumnType("datetime"); - - builder.Property(t => t.ShipDate) - .HasColumnName("ShipDate") - .HasColumnType("datetime"); - - builder.Property(t => t.Status) - .IsRequired() - .HasColumnName("Status") - .HasColumnType("tinyint") - .HasDefaultValue(1); - - builder.Property(t => t.OnlineOrderFlag) - .IsRequired() - .HasColumnName("OnlineOrderFlag") - .HasColumnType("bit") - .HasDefaultValue(true); - - builder.Property(t => t.SalesOrderNumber) - .IsRequired() - .HasColumnName("SalesOrderNumber") - .HasColumnType("nvarchar(25)") - .HasMaxLength(25) - .ValueGeneratedOnAddOrUpdate(); - - builder.Property(t => t.PurchaseOrderNumber) - .HasColumnName("PurchaseOrderNumber") - .HasColumnType("nvarchar(25)") - .HasMaxLength(25); - - builder.Property(t => t.AccountNumber) - .HasColumnName("AccountNumber") - .HasColumnType("nvarchar(15)") - .HasMaxLength(15); - - builder.Property(t => t.CustomerId) - .IsRequired() - .HasColumnName("CustomerID") - .HasColumnType("int"); - - builder.Property(t => t.SalesPersonId) - .HasColumnName("SalesPersonID") - .HasColumnType("int"); - - builder.Property(t => t.TerritoryId) - .HasColumnName("TerritoryID") - .HasColumnType("int"); - - builder.Property(t => t.BillToAddressId) - .IsRequired() - .HasColumnName("BillToAddressID") - .HasColumnType("int"); - - builder.Property(t => t.ShipToAddressId) - .IsRequired() - .HasColumnName("ShipToAddressID") - .HasColumnType("int"); - - builder.Property(t => t.ShipMethodId) - .IsRequired() - .HasColumnName("ShipMethodID") - .HasColumnType("int"); - - builder.Property(t => t.CreditCardId) - .HasColumnName("CreditCardID") - .HasColumnType("int"); - - builder.Property(t => t.CreditCardApprovalCode) - .HasColumnName("CreditCardApprovalCode") - .HasColumnType("varchar(15)") - .HasMaxLength(15); - - builder.Property(t => t.CurrencyRateId) - .HasColumnName("CurrencyRateID") - .HasColumnType("int"); - - builder.Property(t => t.SubTotal) - .IsRequired() - .HasColumnName("SubTotal") - .HasColumnType("money") - .HasDefaultValueSql("((0.00))"); - - builder.Property(t => t.TaxAmt) - .IsRequired() - .HasColumnName("TaxAmt") - .HasColumnType("money") - .HasDefaultValueSql("((0.00))"); - - builder.Property(t => t.Freight) - .IsRequired() - .HasColumnName("Freight") - .HasColumnType("money") - .HasDefaultValueSql("((0.00))"); - - builder.Property(t => t.TotalDue) - .IsRequired() - .HasColumnName("TotalDue") - .HasColumnType("money") - .ValueGeneratedOnAddOrUpdate(); - - builder.Property(t => t.Comment) - .HasColumnName("Comment") - .HasColumnType("nvarchar(128)") - .HasMaxLength(128); - - builder.Property(t => t.Rowguid) - .IsRequired() - .HasColumnName("rowguid") - .HasColumnType("uniqueidentifier") - .HasDefaultValueSql("(newid())"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.BillToAddress) - .WithMany(t => t.BillToSalesOrderHeaders) - .HasForeignKey(d => d.BillToAddressId) - .HasConstraintName("FK_SalesOrderHeader_Address_BillToAddressID"); - - builder.HasOne(t => t.ShipToAddress) - .WithMany(t => t.ShipToSalesOrderHeaders) - .HasForeignKey(d => d.ShipToAddressId) - .HasConstraintName("FK_SalesOrderHeader_Address_ShipToAddressID"); - - builder.HasOne(t => t.CreditCard) - .WithMany(t => t.SalesOrderHeaders) - .HasForeignKey(d => d.CreditCardId) - .HasConstraintName("FK_SalesOrderHeader_CreditCard_CreditCardID"); - - builder.HasOne(t => t.CurrencyRate) - .WithMany(t => t.SalesOrderHeaders) - .HasForeignKey(d => d.CurrencyRateId) - .HasConstraintName("FK_SalesOrderHeader_CurrencyRate_CurrencyRateID"); - - builder.HasOne(t => t.Customer) - .WithMany(t => t.SalesOrderHeaders) - .HasForeignKey(d => d.CustomerId) - .HasConstraintName("FK_SalesOrderHeader_Customer_CustomerID"); - - builder.HasOne(t => t.SalesPerson) - .WithMany(t => t.SalesOrderHeaders) - .HasForeignKey(d => d.SalesPersonId) - .HasConstraintName("FK_SalesOrderHeader_SalesPerson_SalesPersonID"); - - builder.HasOne(t => t.SalesTerritory) - .WithMany(t => t.SalesOrderHeaders) - .HasForeignKey(d => d.TerritoryId) - .HasConstraintName("FK_SalesOrderHeader_SalesTerritory_TerritoryID"); - - builder.HasOne(t => t.ShipMethod) - .WithMany(t => t.SalesOrderHeaders) - .HasForeignKey(d => d.ShipMethodId) - .HasConstraintName("FK_SalesOrderHeader_ShipMethod_ShipMethodID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Sales"; - - /// - /// Table Name constant for entity - /// - public const string Name = "SalesOrderHeader"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string Id = "SalesOrderID"; - - /// - /// Column Name constant for property - /// - /// - public const string RevisionNumber = "RevisionNumber"; - - /// - /// Column Name constant for property - /// - /// - public const string OrderDate = "OrderDate"; - - /// - /// Column Name constant for property - /// - /// - public const string DueDate = "DueDate"; - - /// - /// Column Name constant for property - /// - /// - public const string ShipDate = "ShipDate"; - - /// - /// Column Name constant for property - /// - /// - public const string Status = "Status"; - - /// - /// Column Name constant for property - /// - /// - public const string OnlineOrderFlag = "OnlineOrderFlag"; - - /// - /// Column Name constant for property - /// - /// - public const string SalesOrderNumber = "SalesOrderNumber"; - - /// - /// Column Name constant for property - /// - /// - public const string PurchaseOrderNumber = "PurchaseOrderNumber"; - - /// - /// Column Name constant for property - /// - /// - public const string AccountNumber = "AccountNumber"; - - /// - /// Column Name constant for property - /// - /// - public const string CustomerId = "CustomerID"; - - /// - /// Column Name constant for property - /// - /// - public const string SalesPersonId = "SalesPersonID"; - - /// - /// Column Name constant for property - /// - /// - public const string TerritoryId = "TerritoryID"; - - /// - /// Column Name constant for property - /// - /// - public const string BillToAddressId = "BillToAddressID"; - - /// - /// Column Name constant for property - /// - /// - public const string ShipToAddressId = "ShipToAddressID"; - - /// - /// Column Name constant for property - /// - /// - public const string ShipMethodId = "ShipMethodID"; - - /// - /// Column Name constant for property - /// - /// - public const string CreditCardId = "CreditCardID"; - - /// - /// Column Name constant for property - /// - /// - public const string CreditCardApprovalCode = "CreditCardApprovalCode"; - - /// - /// Column Name constant for property - /// - /// - public const string CurrencyRateId = "CurrencyRateID"; - - /// - /// Column Name constant for property - /// - /// - public const string SubTotal = "SubTotal"; - - /// - /// Column Name constant for property - /// - /// - public const string TaxAmt = "TaxAmt"; - - /// - /// Column Name constant for property - /// - /// - public const string Freight = "Freight"; - - /// - /// Column Name constant for property - /// - /// - public const string TotalDue = "TotalDue"; - - /// - /// Column Name constant for property - /// - /// - public const string Comment = "Comment"; - - /// - /// Column Name constant for property - /// - /// - public const string Rowguid = "rowguid"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesOrderHeaderSalesReasonConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesOrderHeaderSalesReasonConfiguration.cs deleted file mode 100644 index 4b6b3e8..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesOrderHeaderSalesReasonConfiguration.cs +++ /dev/null @@ -1,97 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class SalesOrderHeaderSalesReasonConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("SalesOrderHeaderSalesReason", "Sales"); - - // key - builder.HasKey(t => new { t.SalesOrderId, t.SalesReasonId }); - - // properties - builder.Property(t => t.SalesOrderId) - .IsRequired() - .HasColumnName("SalesOrderID") - .HasColumnType("int"); - - builder.Property(t => t.SalesReasonId) - .IsRequired() - .HasColumnName("SalesReasonID") - .HasColumnType("int"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.SalesOrderHeader) - .WithMany(t => t.SalesOrderHeaderSalesReasons) - .HasForeignKey(d => d.SalesOrderId) - .HasConstraintName("FK_SalesOrderHeaderSalesReason_SalesOrderHeader_SalesOrderID"); - - builder.HasOne(t => t.SalesReason) - .WithMany(t => t.SalesOrderHeaderSalesReasons) - .HasForeignKey(d => d.SalesReasonId) - .HasConstraintName("FK_SalesOrderHeaderSalesReason_SalesReason_SalesReasonID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Sales"; - - /// - /// Table Name constant for entity - /// - /// - public const string Name = "SalesOrderHeaderSalesReason"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string SalesOrderId = "SalesOrderID"; - - /// - /// Column Name constant for property - /// - /// - public const string SalesReasonId = "SalesReasonID"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesPersonConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesPersonConfiguration.cs deleted file mode 100644 index d5cde9f..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesPersonConfiguration.cs +++ /dev/null @@ -1,162 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class SalesPersonConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("SalesPerson", "Sales"); - - // key - builder.HasKey(t => t.BusinessEntityId); - - // properties - builder.Property(t => t.BusinessEntityId) - .IsRequired() - .HasColumnName("BusinessEntityID") - .HasColumnType("int"); - - builder.Property(t => t.TerritoryId) - .HasColumnName("TerritoryID") - .HasColumnType("int"); - - builder.Property(t => t.SalesQuota) - .HasColumnName("SalesQuota") - .HasColumnType("money"); - - builder.Property(t => t.Bonus) - .IsRequired() - .HasColumnName("Bonus") - .HasColumnType("money") - .HasDefaultValueSql("((0.00))"); - - builder.Property(t => t.CommissionPct) - .IsRequired() - .HasColumnName("CommissionPct") - .HasColumnType("smallmoney") - .HasDefaultValueSql("((0.00))"); - - builder.Property(t => t.SalesYTD) - .IsRequired() - .HasColumnName("SalesYTD") - .HasColumnType("money") - .HasDefaultValueSql("((0.00))"); - - builder.Property(t => t.SalesLastYear) - .IsRequired() - .HasColumnName("SalesLastYear") - .HasColumnType("money") - .HasDefaultValueSql("((0.00))"); - - builder.Property(t => t.Rowguid) - .IsRequired() - .HasColumnName("rowguid") - .HasColumnType("uniqueidentifier") - .HasDefaultValueSql("(newid())"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.Employee) - .WithOne(t => t.SalesPerson) - .HasForeignKey(d => d.BusinessEntityId) - .HasConstraintName("FK_SalesPerson_Employee_BusinessEntityID"); - - builder.HasOne(t => t.SalesTerritory) - .WithMany(t => t.SalesPeople) - .HasForeignKey(d => d.TerritoryId) - .HasConstraintName("FK_SalesPerson_SalesTerritory_TerritoryID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - public const string Schema = "Sales"; - - /// - /// Table Name constant for entity - /// - public const string Name = "SalesPerson"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string BusinessEntityId = "BusinessEntityID"; - - /// - /// Column Name constant for property - /// - /// - public const string TerritoryId = "TerritoryID"; - - /// - /// Column Name constant for property - /// - /// - public const string SalesQuota = "SalesQuota"; - - /// - /// Column Name constant for property - /// - /// - public const string Bonus = "Bonus"; - - /// - /// Column Name constant for property - /// - /// - public const string CommissionPct = "CommissionPct"; - - /// - /// Column Name constant for property - /// - /// - public const string SalesYTD = "SalesYTD"; - - /// - /// Column Name constant for property - /// - /// - public const string SalesLastYear = "SalesLastYear"; - - /// - /// Column Name constant for property - /// - /// - public const string Rowguid = "rowguid"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesPersonQuotaHistoryConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesPersonQuotaHistoryConfiguration.cs deleted file mode 100644 index 3005924..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesPersonQuotaHistoryConfiguration.cs +++ /dev/null @@ -1,114 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class SalesPersonQuotaHistoryConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("SalesPersonQuotaHistory", "Sales"); - - // key - builder.HasKey(t => new { t.BusinessEntityId, t.QuotaDate }); - - // properties - builder.Property(t => t.BusinessEntityId) - .IsRequired() - .HasColumnName("BusinessEntityID") - .HasColumnType("int"); - - builder.Property(t => t.QuotaDate) - .IsRequired() - .HasColumnName("QuotaDate") - .HasColumnType("datetime"); - - builder.Property(t => t.SalesQuota) - .IsRequired() - .HasColumnName("SalesQuota") - .HasColumnType("money"); - - builder.Property(t => t.Rowguid) - .IsRequired() - .HasColumnName("rowguid") - .HasColumnType("uniqueidentifier") - .HasDefaultValueSql("(newid())"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.SalesPerson) - .WithMany(t => t.SalesPersonQuotaHistories) - .HasForeignKey(d => d.BusinessEntityId) - .HasConstraintName("FK_SalesPersonQuotaHistory_SalesPerson_BusinessEntityID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Sales"; - - /// - /// Table Name constant for entity - /// - /// - public const string Name = "SalesPersonQuotaHistory"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string BusinessEntityId = "BusinessEntityID"; - - /// - /// Column Name constant for property - /// - /// - public const string QuotaDate = "QuotaDate"; - - /// - /// Column Name constant for property - /// - /// - public const string SalesQuota = "SalesQuota"; - - /// - /// Column Name constant for property - /// - /// - public const string Rowguid = "rowguid"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesReasonConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesReasonConfiguration.cs deleted file mode 100644 index 705ddc5..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesReasonConfiguration.cs +++ /dev/null @@ -1,97 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class SalesReasonConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("SalesReason", "Sales"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("SalesReasonID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.Name) - .IsRequired() - .HasColumnName("Name") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.ReasonType) - .IsRequired() - .HasColumnName("ReasonType") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - public const string Schema = "Sales"; - - /// - /// Table Name constant for entity - /// - public const string Name = "SalesReason"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - public const string Id = "SalesReasonID"; - - /// - /// Column Name constant for property - /// - /// - public const string Name = "Name"; - - /// - /// Column Name constant for property - /// - /// - public const string ReasonType = "ReasonType"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesTaxRateConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesTaxRateConfiguration.cs deleted file mode 100644 index b8c9cef..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesTaxRateConfiguration.cs +++ /dev/null @@ -1,136 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class SalesTaxRateConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("SalesTaxRate", "Sales"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("SalesTaxRateID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.StateProvinceId) - .IsRequired() - .HasColumnName("StateProvinceID") - .HasColumnType("int"); - - builder.Property(t => t.TaxType) - .IsRequired() - .HasColumnName("TaxType") - .HasColumnType("tinyint"); - - builder.Property(t => t.TaxRate) - .IsRequired() - .HasColumnName("TaxRate") - .HasColumnType("smallmoney") - .HasDefaultValueSql("((0.00))"); - - builder.Property(t => t.Name) - .IsRequired() - .HasColumnName("Name") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.Rowguid) - .IsRequired() - .HasColumnName("rowguid") - .HasColumnType("uniqueidentifier") - .HasDefaultValueSql("(newid())"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.StateProvince) - .WithMany(t => t.SalesTaxRates) - .HasForeignKey(d => d.StateProvinceId) - .HasConstraintName("FK_SalesTaxRate_StateProvince_StateProvinceID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Sales"; - - /// - /// Table Name constant for entity - /// - public const string Name = "SalesTaxRate"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - public const string Id = "SalesTaxRateID"; - - /// - /// Column Name constant for property - /// - /// - public const string StateProvinceId = "StateProvinceID"; - - /// - /// Column Name constant for property - /// - /// - public const string TaxType = "TaxType"; - - /// - /// Column Name constant for property - /// - /// - public const string TaxRate = "TaxRate"; - - /// - /// Column Name constant for property - /// - /// - public const string Name = "Name"; - - /// - /// Column Name constant for property - /// - /// - public const string Rowguid = "rowguid"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesTerritoryConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesTerritoryConfiguration.cs deleted file mode 100644 index 5823873..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesTerritoryConfiguration.cs +++ /dev/null @@ -1,175 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class SalesTerritoryConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("SalesTerritory", "Sales"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("TerritoryID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.Name) - .IsRequired() - .HasColumnName("Name") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.CountryRegionCode) - .IsRequired() - .HasColumnName("CountryRegionCode") - .HasColumnType("nvarchar(3)") - .HasMaxLength(3); - - builder.Property(t => t.Group) - .IsRequired() - .HasColumnName("Group") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.SalesYTD) - .IsRequired() - .HasColumnName("SalesYTD") - .HasColumnType("money") - .HasDefaultValueSql("((0.00))"); - - builder.Property(t => t.SalesLastYear) - .IsRequired() - .HasColumnName("SalesLastYear") - .HasColumnType("money") - .HasDefaultValueSql("((0.00))"); - - builder.Property(t => t.CostYTD) - .IsRequired() - .HasColumnName("CostYTD") - .HasColumnType("money") - .HasDefaultValueSql("((0.00))"); - - builder.Property(t => t.CostLastYear) - .IsRequired() - .HasColumnName("CostLastYear") - .HasColumnType("money") - .HasDefaultValueSql("((0.00))"); - - builder.Property(t => t.Rowguid) - .IsRequired() - .HasColumnName("rowguid") - .HasColumnType("uniqueidentifier") - .HasDefaultValueSql("(newid())"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.CountryRegion) - .WithMany(t => t.SalesTerritories) - .HasForeignKey(d => d.CountryRegionCode) - .HasConstraintName("FK_SalesTerritory_CountryRegion_CountryRegionCode"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Sales"; - - /// - /// Table Name constant for entity - /// - public const string Name = "SalesTerritory"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string Id = "TerritoryID"; - - /// - /// Column Name constant for property - /// - /// - public const string Name = "Name"; - - /// - /// Column Name constant for property - /// - /// - public const string CountryRegionCode = "CountryRegionCode"; - - /// - /// Column Name constant for property - /// - /// - public const string Group = "Group"; - - /// - /// Column Name constant for property - /// - /// - public const string SalesYTD = "SalesYTD"; - - /// - /// Column Name constant for property - /// - /// - public const string SalesLastYear = "SalesLastYear"; - - /// - /// Column Name constant for property - /// - /// - public const string CostYTD = "CostYTD"; - - /// - /// Column Name constant for property - /// - /// - public const string CostLastYear = "CostLastYear"; - - /// - /// Column Name constant for property - /// - /// - public const string Rowguid = "rowguid"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesTerritoryHistoryConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesTerritoryHistoryConfiguration.cs deleted file mode 100644 index e05036f..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesTerritoryHistoryConfiguration.cs +++ /dev/null @@ -1,129 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class SalesTerritoryHistoryConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("SalesTerritoryHistory", "Sales"); - - // key - builder.HasKey(t => new { t.BusinessEntityId, t.TerritoryId, t.StartDate }); - - // properties - builder.Property(t => t.BusinessEntityId) - .IsRequired() - .HasColumnName("BusinessEntityID") - .HasColumnType("int"); - - builder.Property(t => t.TerritoryId) - .IsRequired() - .HasColumnName("TerritoryID") - .HasColumnType("int"); - - builder.Property(t => t.StartDate) - .IsRequired() - .HasColumnName("StartDate") - .HasColumnType("datetime"); - - builder.Property(t => t.EndDate) - .HasColumnName("EndDate") - .HasColumnType("datetime"); - - builder.Property(t => t.Rowguid) - .IsRequired() - .HasColumnName("rowguid") - .HasColumnType("uniqueidentifier") - .HasDefaultValueSql("(newid())"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.SalesPerson) - .WithMany(t => t.SalesTerritoryHistories) - .HasForeignKey(d => d.BusinessEntityId) - .HasConstraintName("FK_SalesTerritoryHistory_SalesPerson_BusinessEntityID"); - - builder.HasOne(t => t.SalesTerritory) - .WithMany(t => t.SalesTerritoryHistories) - .HasForeignKey(d => d.TerritoryId) - .HasConstraintName("FK_SalesTerritoryHistory_SalesTerritory_TerritoryID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Sales"; - - /// - /// Table Name constant for entity - /// - /// - public const string Name = "SalesTerritoryHistory"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string BusinessEntityId = "BusinessEntityID"; - - /// - /// Column Name constant for property - /// - /// - public const string TerritoryId = "TerritoryID"; - - /// - /// Column Name constant for property - /// - /// - public const string StartDate = "StartDate"; - - /// - /// Column Name constant for property - /// - /// - public const string EndDate = "EndDate"; - - /// - /// Column Name constant for property - /// - /// - public const string Rowguid = "rowguid"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ScrapReasonConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ScrapReasonConfiguration.cs deleted file mode 100644 index bfbcbbd..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ScrapReasonConfiguration.cs +++ /dev/null @@ -1,85 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class ScrapReasonConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("ScrapReason", "Production"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("ScrapReasonID") - .HasColumnType("smallint") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.Name) - .IsRequired() - .HasColumnName("Name") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - public const string Schema = "Production"; - - /// - /// Table Name constant for entity - /// - public const string Name = "ScrapReason"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - public const string Id = "ScrapReasonID"; - - /// - /// Column Name constant for property - /// - /// - public const string Name = "Name"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ShiftConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ShiftConfiguration.cs deleted file mode 100644 index 5509c7a..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ShiftConfiguration.cs +++ /dev/null @@ -1,102 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class ShiftConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("Shift", "HumanResources"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("ShiftID") - .HasColumnType("tinyint") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.Name) - .IsRequired() - .HasColumnName("Name") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.StartTime) - .IsRequired() - .HasColumnName("StartTime") - .HasColumnType("time"); - - builder.Property(t => t.EndTime) - .IsRequired() - .HasColumnName("EndTime") - .HasColumnType("time"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - public const string Schema = "HumanResources"; - - /// Table Name constant for entity - public const string Name = "Shift"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - public const string Id = "ShiftID"; - - /// - /// Column Name constant for property - /// - public const string Name = "Name"; - - /// - /// Column Name constant for property - /// - public const string StartTime = "StartTime"; - - /// - /// Column Name constant for property - /// - public const string EndTime = "EndTime"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ShipMethodConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ShipMethodConfiguration.cs deleted file mode 100644 index 6ef9ecd..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ShipMethodConfiguration.cs +++ /dev/null @@ -1,120 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class ShipMethodConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("ShipMethod", "Purchasing"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("ShipMethodID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.Name) - .IsRequired() - .HasColumnName("Name") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.ShipBase) - .IsRequired() - .HasColumnName("ShipBase") - .HasColumnType("money") - .HasDefaultValueSql("((0.00))"); - - builder.Property(t => t.ShipRate) - .IsRequired() - .HasColumnName("ShipRate") - .HasColumnType("money") - .HasDefaultValueSql("((0.00))"); - - builder.Property(t => t.Rowguid) - .IsRequired() - .HasColumnName("rowguid") - .HasColumnType("uniqueidentifier") - .HasDefaultValueSql("(newid())"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - public const string Schema = "Purchasing"; - - /// - /// Table Name constant for entity - /// - public const string Name = "ShipMethod"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - public const string Id = "ShipMethodID"; - - /// - /// Column Name constant for property - /// - public const string Name = "Name"; - - /// - /// Column Name constant for property - /// - /// - public const string ShipBase = "ShipBase"; - - /// - /// Column Name constant for property - /// - /// - public const string ShipRate = "ShipRate"; - - /// - /// Column Name constant for property - /// - /// - public const string Rowguid = "rowguid"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ShoppingCartItemConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ShoppingCartItemConfiguration.cs deleted file mode 100644 index f67cd39..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ShoppingCartItemConfiguration.cs +++ /dev/null @@ -1,126 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class ShoppingCartItemConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("ShoppingCartItem", "Sales"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("ShoppingCartItemID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.ShoppingCartId) - .IsRequired() - .HasColumnName("ShoppingCartID") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.Quantity) - .IsRequired() - .HasColumnName("Quantity") - .HasColumnType("int") - .HasDefaultValue(1); - - builder.Property(t => t.ProductId) - .IsRequired() - .HasColumnName("ProductID") - .HasColumnType("int"); - - builder.Property(t => t.DateCreated) - .IsRequired() - .HasColumnName("DateCreated") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.Product) - .WithMany(t => t.ShoppingCartItems) - .HasForeignKey(d => d.ProductId) - .HasConstraintName("FK_ShoppingCartItem_Product_ProductID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Sales"; - - /// - /// Table Name constant for entity - /// - public const string Name = "ShoppingCartItem"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string Id = "ShoppingCartItemID"; - - /// - /// Column Name constant for property - /// - /// - public const string ShoppingCartId = "ShoppingCartID"; - - /// - /// Column Name constant for property - /// - /// - public const string Quantity = "Quantity"; - - /// - /// Column Name constant for property - /// - /// - public const string ProductId = "ProductID"; - - /// - /// Column Name constant for property - /// - /// - public const string DateCreated = "DateCreated"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SpecialOfferConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SpecialOfferConfiguration.cs deleted file mode 100644 index bcb6caf..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SpecialOfferConfiguration.cs +++ /dev/null @@ -1,178 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class SpecialOfferConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("SpecialOffer", "Sales"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("SpecialOfferID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.Description) - .IsRequired() - .HasColumnName("Description") - .HasColumnType("nvarchar(255)") - .HasMaxLength(255); - - builder.Property(t => t.DiscountPct) - .IsRequired() - .HasColumnName("DiscountPct") - .HasColumnType("smallmoney") - .HasDefaultValueSql("((0.00))"); - - builder.Property(t => t.Type) - .IsRequired() - .HasColumnName("Type") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.Category) - .IsRequired() - .HasColumnName("Category") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.StartDate) - .IsRequired() - .HasColumnName("StartDate") - .HasColumnType("datetime"); - - builder.Property(t => t.EndDate) - .IsRequired() - .HasColumnName("EndDate") - .HasColumnType("datetime"); - - builder.Property(t => t.MinQty) - .IsRequired() - .HasColumnName("MinQty") - .HasColumnType("int") - .HasDefaultValue(0); - - builder.Property(t => t.MaxQty) - .HasColumnName("MaxQty") - .HasColumnType("int"); - - builder.Property(t => t.Rowguid) - .IsRequired() - .HasColumnName("rowguid") - .HasColumnType("uniqueidentifier") - .HasDefaultValueSql("(newid())"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Sales"; - - /// - /// Table Name constant for entity - /// - public const string Name = "SpecialOffer"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - public const string Id = "SpecialOfferID"; - - /// - /// Column Name constant for property - /// - /// - public const string Description = "Description"; - - /// - /// Column Name constant for property - /// - /// - public const string DiscountPct = "DiscountPct"; - - /// - /// Column Name constant for property - /// - /// - public const string Type = "Type"; - - /// - /// Column Name constant for property - /// - /// - public const string Category = "Category"; - - /// - /// Column Name constant for property - /// - /// - public const string StartDate = "StartDate"; - - /// - /// Column Name constant for property - /// - /// - public const string EndDate = "EndDate"; - - /// - /// Column Name constant for property - /// - /// - public const string MinQty = "MinQty"; - - /// - /// Column Name constant for property - /// - /// - public const string MaxQty = "MaxQty"; - - /// - /// Column Name constant for property - /// - /// - public const string Rowguid = "rowguid"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SpecialOfferProductConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SpecialOfferProductConfiguration.cs deleted file mode 100644 index 81a5e40..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SpecialOfferProductConfiguration.cs +++ /dev/null @@ -1,108 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class SpecialOfferProductConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("SpecialOfferProduct", "Sales"); - - // key - builder.HasKey(t => new { t.SpecialOfferId, t.ProductId }); - - // properties - builder.Property(t => t.SpecialOfferId) - .IsRequired() - .HasColumnName("SpecialOfferID") - .HasColumnType("int"); - - builder.Property(t => t.ProductId) - .IsRequired() - .HasColumnName("ProductID") - .HasColumnType("int"); - - builder.Property(t => t.Rowguid) - .IsRequired() - .HasColumnName("rowguid") - .HasColumnType("uniqueidentifier") - .HasDefaultValueSql("(newid())"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.Product) - .WithMany(t => t.SpecialOfferProducts) - .HasForeignKey(d => d.ProductId) - .HasConstraintName("FK_SpecialOfferProduct_Product_ProductID"); - - builder.HasOne(t => t.SpecialOffer) - .WithMany(t => t.SpecialOfferProducts) - .HasForeignKey(d => d.SpecialOfferId) - .HasConstraintName("FK_SpecialOfferProduct_SpecialOffer_SpecialOfferID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Sales"; - - /// - /// Table Name constant for entity - /// - /// - public const string Name = "SpecialOfferProduct"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string SpecialOfferId = "SpecialOfferID"; - - /// - /// Column Name constant for property - /// - /// - public const string ProductId = "ProductID"; - - /// - /// Column Name constant for property - /// - /// - public const string Rowguid = "rowguid"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/StateProvinceConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/StateProvinceConfiguration.cs deleted file mode 100644 index 00825a1..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/StateProvinceConfiguration.cs +++ /dev/null @@ -1,155 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class StateProvinceConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("StateProvince", "Person"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("StateProvinceID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.StateProvinceCode) - .IsRequired() - .HasColumnName("StateProvinceCode") - .HasColumnType("nchar(3)") - .HasMaxLength(3); - - builder.Property(t => t.CountryRegionCode) - .IsRequired() - .HasColumnName("CountryRegionCode") - .HasColumnType("nvarchar(3)") - .HasMaxLength(3); - - builder.Property(t => t.IsOnlyStateProvinceFlag) - .IsRequired() - .HasColumnName("IsOnlyStateProvinceFlag") - .HasColumnType("bit") - .HasDefaultValue(true); - - builder.Property(t => t.Name) - .IsRequired() - .HasColumnName("Name") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.TerritoryId) - .IsRequired() - .HasColumnName("TerritoryID") - .HasColumnType("int"); - - builder.Property(t => t.Rowguid) - .IsRequired() - .HasColumnName("rowguid") - .HasColumnType("uniqueidentifier") - .HasDefaultValueSql("(newid())"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.CountryRegion) - .WithMany(t => t.StateProvinces) - .HasForeignKey(d => d.CountryRegionCode) - .HasConstraintName("FK_StateProvince_CountryRegion_CountryRegionCode"); - - builder.HasOne(t => t.SalesTerritory) - .WithMany(t => t.StateProvinces) - .HasForeignKey(d => d.TerritoryId) - .HasConstraintName("FK_StateProvince_SalesTerritory_TerritoryID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Person"; - - /// - /// Table Name constant for entity - /// - public const string Name = "StateProvince"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string Id = "StateProvinceID"; - - /// - /// Column Name constant for property - /// - /// - public const string StateProvinceCode = "StateProvinceCode"; - - /// - /// Column Name constant for property - /// - /// - public const string CountryRegionCode = "CountryRegionCode"; - - /// - /// Column Name constant for property - /// - /// - public const string IsOnlyStateProvinceFlag = "IsOnlyStateProvinceFlag"; - - /// - /// Column Name constant for property - /// - /// - public const string Name = "Name"; - - /// - /// Column Name constant for property - /// - /// - public const string TerritoryId = "TerritoryID"; - - /// - /// Column Name constant for property - /// - /// - public const string Rowguid = "rowguid"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/StoreConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/StoreConfiguration.cs deleted file mode 100644 index eb40c6a..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/StoreConfiguration.cs +++ /dev/null @@ -1,122 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class StoreConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("Store", "Sales"); - - // key - builder.HasKey(t => t.BusinessEntityId); - - // properties - builder.Property(t => t.BusinessEntityId) - .IsRequired() - .HasColumnName("BusinessEntityID") - .HasColumnType("int"); - - builder.Property(t => t.Name) - .IsRequired() - .HasColumnName("Name") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.SalesPersonId) - .HasColumnName("SalesPersonID") - .HasColumnType("int"); - - builder.Property(t => t.Demographics) - .HasColumnName("Demographics") - .HasColumnType("xml"); - - builder.Property(t => t.Rowguid) - .IsRequired() - .HasColumnName("rowguid") - .HasColumnType("uniqueidentifier") - .HasDefaultValueSql("(newid())"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.BusinessEntity) - .WithOne(t => t.Store) - .HasForeignKey(d => d.BusinessEntityId) - .HasConstraintName("FK_Store_BusinessEntity_BusinessEntityID"); - - builder.HasOne(t => t.SalesPerson) - .WithMany(t => t.Stores) - .HasForeignKey(d => d.SalesPersonId) - .HasConstraintName("FK_Store_SalesPerson_SalesPersonID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - public const string Schema = "Sales"; - - /// Table Name constant for entity - public const string Name = "Store"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string BusinessEntityId = "BusinessEntityID"; - - /// - /// Column Name constant for property - /// - public const string Name = "Name"; - - /// - /// Column Name constant for property - /// - /// - public const string SalesPersonId = "SalesPersonID"; - - /// - /// Column Name constant for property - /// - /// - public const string Demographics = "Demographics"; - - /// - /// Column Name constant for property - /// - public const string Rowguid = "rowguid"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/TransactionHistoryArchiveConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/TransactionHistoryArchiveConfiguration.cs deleted file mode 100644 index 263fe18..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/TransactionHistoryArchiveConfiguration.cs +++ /dev/null @@ -1,156 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class TransactionHistoryArchiveConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("TransactionHistoryArchive", "Production"); - - // key - builder.HasKey(t => t.TransactionId); - - // properties - builder.Property(t => t.TransactionId) - .IsRequired() - .HasColumnName("TransactionID") - .HasColumnType("int"); - - builder.Property(t => t.ProductId) - .IsRequired() - .HasColumnName("ProductID") - .HasColumnType("int"); - - builder.Property(t => t.ReferenceOrderId) - .IsRequired() - .HasColumnName("ReferenceOrderID") - .HasColumnType("int"); - - builder.Property(t => t.ReferenceOrderLineId) - .IsRequired() - .HasColumnName("ReferenceOrderLineID") - .HasColumnType("int") - .HasDefaultValue(0); - - builder.Property(t => t.TransactionDate) - .IsRequired() - .HasColumnName("TransactionDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - builder.Property(t => t.TransactionType) - .IsRequired() - .HasColumnName("TransactionType") - .HasColumnType("nchar(1)") - .HasMaxLength(1); - - builder.Property(t => t.Quantity) - .IsRequired() - .HasColumnName("Quantity") - .HasColumnType("int"); - - builder.Property(t => t.ActualCost) - .IsRequired() - .HasColumnName("ActualCost") - .HasColumnType("money"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Production"; - - /// - /// Table Name constant for entity - /// - /// - public const string Name = "TransactionHistoryArchive"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string TransactionId = "TransactionID"; - - /// - /// Column Name constant for property - /// - /// - public const string ProductId = "ProductID"; - - /// - /// Column Name constant for property - /// - /// - public const string ReferenceOrderId = "ReferenceOrderID"; - - /// - /// Column Name constant for property - /// - /// - public const string ReferenceOrderLineId = "ReferenceOrderLineID"; - - /// - /// Column Name constant for property - /// - /// - public const string TransactionDate = "TransactionDate"; - - /// - /// Column Name constant for property - /// - /// - public const string TransactionType = "TransactionType"; - - /// - /// Column Name constant for property - /// - /// - public const string Quantity = "Quantity"; - - /// - /// Column Name constant for property - /// - /// - public const string ActualCost = "ActualCost"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/TransactionHistoryConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/TransactionHistoryConfiguration.cs deleted file mode 100644 index 4e8c8b5..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/TransactionHistoryConfiguration.cs +++ /dev/null @@ -1,160 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class TransactionHistoryConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("TransactionHistory", "Production"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("TransactionID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.ProductId) - .IsRequired() - .HasColumnName("ProductID") - .HasColumnType("int"); - - builder.Property(t => t.ReferenceOrderId) - .IsRequired() - .HasColumnName("ReferenceOrderID") - .HasColumnType("int"); - - builder.Property(t => t.ReferenceOrderLineId) - .IsRequired() - .HasColumnName("ReferenceOrderLineID") - .HasColumnType("int") - .HasDefaultValue(0); - - builder.Property(t => t.TransactionDate) - .IsRequired() - .HasColumnName("TransactionDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - builder.Property(t => t.TransactionType) - .IsRequired() - .HasColumnName("TransactionType") - .HasColumnType("nchar(1)") - .HasMaxLength(1); - - builder.Property(t => t.Quantity) - .IsRequired() - .HasColumnName("Quantity") - .HasColumnType("int"); - - builder.Property(t => t.ActualCost) - .IsRequired() - .HasColumnName("ActualCost") - .HasColumnType("money"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.Product) - .WithMany(t => t.TransactionHistories) - .HasForeignKey(d => d.ProductId) - .HasConstraintName("FK_TransactionHistory_Product_ProductID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Production"; - - /// - /// Table Name constant for entity - /// - public const string Name = "TransactionHistory"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string Id = "TransactionID"; - - /// - /// Column Name constant for property - /// - /// - public const string ProductId = "ProductID"; - - /// - /// Column Name constant for property - /// - /// - public const string ReferenceOrderId = "ReferenceOrderID"; - - /// - /// Column Name constant for property - /// - /// - public const string ReferenceOrderLineId = "ReferenceOrderLineID"; - - /// - /// Column Name constant for property - /// - /// - public const string TransactionDate = "TransactionDate"; - - /// - /// Column Name constant for property - /// - /// - public const string TransactionType = "TransactionType"; - - /// - /// Column Name constant for property - /// - /// - public const string Quantity = "Quantity"; - - /// - /// Column Name constant for property - /// - /// - public const string ActualCost = "ActualCost"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/UnitMeasureConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/UnitMeasureConfiguration.cs deleted file mode 100644 index f8132d0..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/UnitMeasureConfiguration.cs +++ /dev/null @@ -1,86 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class UnitMeasureConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("UnitMeasure", "Production"); - - // key - builder.HasKey(t => t.UnitMeasureCode); - - // properties - builder.Property(t => t.UnitMeasureCode) - .IsRequired() - .HasColumnName("UnitMeasureCode") - .HasColumnType("nchar(3)") - .HasMaxLength(3); - - builder.Property(t => t.Name) - .IsRequired() - .HasColumnName("Name") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - public const string Schema = "Production"; - - /// - /// Table Name constant for entity - /// - public const string Name = "UnitMeasure"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string UnitMeasureCode = "UnitMeasureCode"; - - /// - /// Column Name constant for property - /// - /// - public const string Name = "Name"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VAdditionalContactInfoConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VAdditionalContactInfoConfiguration.cs deleted file mode 100644 index 04eb87a..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VAdditionalContactInfoConfiguration.cs +++ /dev/null @@ -1,239 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class VAdditionalContactInfoConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToView("vAdditionalContactInfo", "Person"); - - // key - builder.HasNoKey(); - - // properties - builder.Property(t => t.BusinessEntityId) - .IsRequired() - .HasColumnName("BusinessEntityID") - .HasColumnType("int"); - - builder.Property(t => t.FirstName) - .IsRequired() - .HasColumnName("FirstName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.MiddleName) - .HasColumnName("MiddleName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.LastName) - .IsRequired() - .HasColumnName("LastName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.TelephoneNumber) - .HasColumnName("TelephoneNumber") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.TelephoneSpecialInstructions) - .HasColumnName("TelephoneSpecialInstructions") - .HasColumnType("nvarchar(max)"); - - builder.Property(t => t.Street) - .HasColumnName("Street") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.City) - .HasColumnName("City") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.StateProvince) - .HasColumnName("StateProvince") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.PostalCode) - .HasColumnName("PostalCode") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.CountryRegion) - .HasColumnName("CountryRegion") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.HomeAddressSpecialInstructions) - .HasColumnName("HomeAddressSpecialInstructions") - .HasColumnType("nvarchar(max)"); - - builder.Property(t => t.EMailAddress) - .HasColumnName("EMailAddress") - .HasColumnType("nvarchar(128)") - .HasMaxLength(128); - - builder.Property(t => t.EMailSpecialInstructions) - .HasColumnName("EMailSpecialInstructions") - .HasColumnType("nvarchar(max)"); - - builder.Property(t => t.EMailTelephoneNumber) - .HasColumnName("EMailTelephoneNumber") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.Rowguid) - .IsRequired() - .HasColumnName("rowguid") - .HasColumnType("uniqueidentifier"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Person"; - - /// - /// Table Name constant for entity - /// - /// - public const string Name = "vAdditionalContactInfo"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string BusinessEntityId = "BusinessEntityID"; - - /// - /// Column Name constant for property - /// - /// - public const string FirstName = "FirstName"; - - /// - /// Column Name constant for property - /// - /// - public const string MiddleName = "MiddleName"; - - /// - /// Column Name constant for property - /// - /// - public const string LastName = "LastName"; - - /// - /// Column Name constant for property - /// - /// - public const string TelephoneNumber = "TelephoneNumber"; - - /// - /// Column Name constant for property - /// - /// - public const string TelephoneSpecialInstructions = "TelephoneSpecialInstructions"; - - /// - /// Column Name constant for property - /// - /// - public const string Street = "Street"; - - /// - /// Column Name constant for property - /// - /// - public const string City = "City"; - - /// - /// Column Name constant for property - /// - /// - public const string StateProvince = "StateProvince"; - - /// - /// Column Name constant for property - /// - /// - public const string PostalCode = "PostalCode"; - - /// - /// Column Name constant for property - /// - /// - public const string CountryRegion = "CountryRegion"; - - /// - /// Column Name constant for property - /// - /// - public const string HomeAddressSpecialInstructions = "HomeAddressSpecialInstructions"; - - /// - /// Column Name constant for property - /// - /// - public const string EMailAddress = "EMailAddress"; - - /// - /// Column Name constant for property - /// - /// - public const string EMailSpecialInstructions = "EMailSpecialInstructions"; - - /// - /// Column Name constant for property - /// - /// - public const string EMailTelephoneNumber = "EMailTelephoneNumber"; - - /// - /// Column Name constant for property - /// - /// - public const string Rowguid = "rowguid"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VEmployeeConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VEmployeeConfiguration.cs deleted file mode 100644 index dc4c930..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VEmployeeConfiguration.cs +++ /dev/null @@ -1,253 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class VEmployeeConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToView("vEmployee", "HumanResources"); - - // key - builder.HasNoKey(); - - // properties - builder.Property(t => t.BusinessEntityId) - .IsRequired() - .HasColumnName("BusinessEntityID") - .HasColumnType("int"); - - builder.Property(t => t.Title) - .HasColumnName("Title") - .HasColumnType("nvarchar(8)") - .HasMaxLength(8); - - builder.Property(t => t.FirstName) - .IsRequired() - .HasColumnName("FirstName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.MiddleName) - .HasColumnName("MiddleName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.LastName) - .IsRequired() - .HasColumnName("LastName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.Suffix) - .HasColumnName("Suffix") - .HasColumnType("nvarchar(10)") - .HasMaxLength(10); - - builder.Property(t => t.JobTitle) - .IsRequired() - .HasColumnName("JobTitle") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.PhoneNumber) - .HasColumnName("PhoneNumber") - .HasColumnType("nvarchar(25)") - .HasMaxLength(25); - - builder.Property(t => t.PhoneNumberType) - .HasColumnName("PhoneNumberType") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.EmailAddress) - .HasColumnName("EmailAddress") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.EmailPromotion) - .IsRequired() - .HasColumnName("EmailPromotion") - .HasColumnType("int"); - - builder.Property(t => t.AddressLine1) - .IsRequired() - .HasColumnName("AddressLine1") - .HasColumnType("nvarchar(60)") - .HasMaxLength(60); - - builder.Property(t => t.AddressLine2) - .HasColumnName("AddressLine2") - .HasColumnType("nvarchar(60)") - .HasMaxLength(60); - - builder.Property(t => t.City) - .IsRequired() - .HasColumnName("City") - .HasColumnType("nvarchar(30)") - .HasMaxLength(30); - - builder.Property(t => t.StateProvinceName) - .IsRequired() - .HasColumnName("StateProvinceName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.PostalCode) - .IsRequired() - .HasColumnName("PostalCode") - .HasColumnType("nvarchar(15)") - .HasMaxLength(15); - - builder.Property(t => t.CountryRegionName) - .IsRequired() - .HasColumnName("CountryRegionName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.AdditionalContactInfo) - .HasColumnName("AdditionalContactInfo") - .HasColumnType("xml"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - public const string Schema = "HumanResources"; - - /// - /// Table Name constant for entity - /// - public const string Name = "vEmployee"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string BusinessEntityId = "BusinessEntityID"; - - /// - /// Column Name constant for property - /// - public const string Title = "Title"; - - /// - /// Column Name constant for property - /// - /// - public const string FirstName = "FirstName"; - - /// - /// Column Name constant for property - /// - /// - public const string MiddleName = "MiddleName"; - - /// - /// Column Name constant for property - /// - /// - public const string LastName = "LastName"; - - /// - /// Column Name constant for property - /// - /// - public const string Suffix = "Suffix"; - - /// - /// Column Name constant for property - /// - /// - public const string JobTitle = "JobTitle"; - - /// - /// Column Name constant for property - /// - /// - public const string PhoneNumber = "PhoneNumber"; - - /// - /// Column Name constant for property - /// - /// - public const string PhoneNumberType = "PhoneNumberType"; - - /// - /// Column Name constant for property - /// - /// - public const string EmailAddress = "EmailAddress"; - - /// - /// Column Name constant for property - /// - /// - public const string EmailPromotion = "EmailPromotion"; - - /// - /// Column Name constant for property - /// - /// - public const string AddressLine1 = "AddressLine1"; - - /// - /// Column Name constant for property - /// - /// - public const string AddressLine2 = "AddressLine2"; - - /// - /// Column Name constant for property - /// - public const string City = "City"; - - /// - /// Column Name constant for property - /// - /// - public const string StateProvinceName = "StateProvinceName"; - - /// - /// Column Name constant for property - /// - /// - public const string PostalCode = "PostalCode"; - - /// - /// Column Name constant for property - /// - /// - public const string CountryRegionName = "CountryRegionName"; - - /// - /// Column Name constant for property - /// - /// - public const string AdditionalContactInfo = "AdditionalContactInfo"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VEmployeeDepartmentConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VEmployeeDepartmentConfiguration.cs deleted file mode 100644 index d425e64..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VEmployeeDepartmentConfiguration.cs +++ /dev/null @@ -1,168 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class VEmployeeDepartmentConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToView("vEmployeeDepartment", "HumanResources"); - - // key - builder.HasNoKey(); - - // properties - builder.Property(t => t.BusinessEntityId) - .IsRequired() - .HasColumnName("BusinessEntityID") - .HasColumnType("int"); - - builder.Property(t => t.Title) - .HasColumnName("Title") - .HasColumnType("nvarchar(8)") - .HasMaxLength(8); - - builder.Property(t => t.FirstName) - .IsRequired() - .HasColumnName("FirstName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.MiddleName) - .HasColumnName("MiddleName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.LastName) - .IsRequired() - .HasColumnName("LastName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.Suffix) - .HasColumnName("Suffix") - .HasColumnType("nvarchar(10)") - .HasMaxLength(10); - - builder.Property(t => t.JobTitle) - .IsRequired() - .HasColumnName("JobTitle") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.Department) - .IsRequired() - .HasColumnName("Department") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.GroupName) - .IsRequired() - .HasColumnName("GroupName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.StartDate) - .IsRequired() - .HasColumnName("StartDate") - .HasColumnType("date"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "HumanResources"; - - /// - /// Table Name constant for entity - /// - /// - public const string Name = "vEmployeeDepartment"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string BusinessEntityId = "BusinessEntityID"; - - /// - /// Column Name constant for property - /// - /// - public const string Title = "Title"; - - /// - /// Column Name constant for property - /// - /// - public const string FirstName = "FirstName"; - - /// - /// Column Name constant for property - /// - /// - public const string MiddleName = "MiddleName"; - - /// - /// Column Name constant for property - /// - /// - public const string LastName = "LastName"; - - /// - /// Column Name constant for property - /// - /// - public const string Suffix = "Suffix"; - - /// - /// Column Name constant for property - /// - /// - public const string JobTitle = "JobTitle"; - - /// - /// Column Name constant for property - /// - /// - public const string Department = "Department"; - - /// - /// Column Name constant for property - /// - /// - public const string GroupName = "GroupName"; - - /// - /// Column Name constant for property - /// - /// - public const string StartDate = "StartDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VEmployeeDepartmentHistoryConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VEmployeeDepartmentHistoryConfiguration.cs deleted file mode 100644 index 07292e6..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VEmployeeDepartmentHistoryConfiguration.cs +++ /dev/null @@ -1,178 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class VEmployeeDepartmentHistoryConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToView("vEmployeeDepartmentHistory", "HumanResources"); - - // key - builder.HasNoKey(); - - // properties - builder.Property(t => t.BusinessEntityId) - .IsRequired() - .HasColumnName("BusinessEntityID") - .HasColumnType("int"); - - builder.Property(t => t.Title) - .HasColumnName("Title") - .HasColumnType("nvarchar(8)") - .HasMaxLength(8); - - builder.Property(t => t.FirstName) - .IsRequired() - .HasColumnName("FirstName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.MiddleName) - .HasColumnName("MiddleName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.LastName) - .IsRequired() - .HasColumnName("LastName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.Suffix) - .HasColumnName("Suffix") - .HasColumnType("nvarchar(10)") - .HasMaxLength(10); - - builder.Property(t => t.Shift) - .IsRequired() - .HasColumnName("Shift") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.Department) - .IsRequired() - .HasColumnName("Department") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.GroupName) - .IsRequired() - .HasColumnName("GroupName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.StartDate) - .IsRequired() - .HasColumnName("StartDate") - .HasColumnType("date"); - - builder.Property(t => t.EndDate) - .HasColumnName("EndDate") - .HasColumnType("date"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "HumanResources"; - - /// - /// Table Name constant for entity - /// - /// - public const string Name = "vEmployeeDepartmentHistory"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string BusinessEntityId = "BusinessEntityID"; - - /// - /// Column Name constant for property - /// - /// - public const string Title = "Title"; - - /// - /// Column Name constant for property - /// - /// - public const string FirstName = "FirstName"; - - /// - /// Column Name constant for property - /// - /// - public const string MiddleName = "MiddleName"; - - /// - /// Column Name constant for property - /// - /// - public const string LastName = "LastName"; - - /// - /// Column Name constant for property - /// - /// - public const string Suffix = "Suffix"; - - /// - /// Column Name constant for property - /// - /// - public const string Shift = "Shift"; - - /// - /// Column Name constant for property - /// - /// - public const string Department = "Department"; - - /// - /// Column Name constant for property - /// - /// - public const string GroupName = "GroupName"; - - /// - /// Column Name constant for property - /// - /// - public const string StartDate = "StartDate"; - - /// - /// Column Name constant for property - /// - /// - public const string EndDate = "EndDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VIndividualCustomerConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VIndividualCustomerConfiguration.cs deleted file mode 100644 index e392ca7..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VIndividualCustomerConfiguration.cs +++ /dev/null @@ -1,258 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class VIndividualCustomerConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToView("vIndividualCustomer", "Sales"); - - // key - builder.HasNoKey(); - - // properties - builder.Property(t => t.BusinessEntityId) - .IsRequired() - .HasColumnName("BusinessEntityID") - .HasColumnType("int"); - - builder.Property(t => t.Title) - .HasColumnName("Title") - .HasColumnType("nvarchar(8)") - .HasMaxLength(8); - - builder.Property(t => t.FirstName) - .IsRequired() - .HasColumnName("FirstName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.MiddleName) - .HasColumnName("MiddleName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.LastName) - .IsRequired() - .HasColumnName("LastName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.Suffix) - .HasColumnName("Suffix") - .HasColumnType("nvarchar(10)") - .HasMaxLength(10); - - builder.Property(t => t.PhoneNumber) - .HasColumnName("PhoneNumber") - .HasColumnType("nvarchar(25)") - .HasMaxLength(25); - - builder.Property(t => t.PhoneNumberType) - .HasColumnName("PhoneNumberType") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.EmailAddress) - .HasColumnName("EmailAddress") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.EmailPromotion) - .IsRequired() - .HasColumnName("EmailPromotion") - .HasColumnType("int"); - - builder.Property(t => t.AddressType) - .IsRequired() - .HasColumnName("AddressType") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.AddressLine1) - .IsRequired() - .HasColumnName("AddressLine1") - .HasColumnType("nvarchar(60)") - .HasMaxLength(60); - - builder.Property(t => t.AddressLine2) - .HasColumnName("AddressLine2") - .HasColumnType("nvarchar(60)") - .HasMaxLength(60); - - builder.Property(t => t.City) - .IsRequired() - .HasColumnName("City") - .HasColumnType("nvarchar(30)") - .HasMaxLength(30); - - builder.Property(t => t.StateProvinceName) - .IsRequired() - .HasColumnName("StateProvinceName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.PostalCode) - .IsRequired() - .HasColumnName("PostalCode") - .HasColumnType("nvarchar(15)") - .HasMaxLength(15); - - builder.Property(t => t.CountryRegionName) - .IsRequired() - .HasColumnName("CountryRegionName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.Demographics) - .HasColumnName("Demographics") - .HasColumnType("xml"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Sales"; - - /// - /// Table Name constant for entity - /// - /// - public const string Name = "vIndividualCustomer"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string BusinessEntityId = "BusinessEntityID"; - - /// - /// Column Name constant for property - /// - /// - public const string Title = "Title"; - - /// - /// Column Name constant for property - /// - /// - public const string FirstName = "FirstName"; - - /// - /// Column Name constant for property - /// - /// - public const string MiddleName = "MiddleName"; - - /// - /// Column Name constant for property - /// - /// - public const string LastName = "LastName"; - - /// - /// Column Name constant for property - /// - /// - public const string Suffix = "Suffix"; - - /// - /// Column Name constant for property - /// - /// - public const string PhoneNumber = "PhoneNumber"; - - /// - /// Column Name constant for property - /// - /// - public const string PhoneNumberType = "PhoneNumberType"; - - /// - /// Column Name constant for property - /// - /// - public const string EmailAddress = "EmailAddress"; - - /// - /// Column Name constant for property - /// - /// - public const string EmailPromotion = "EmailPromotion"; - - /// - /// Column Name constant for property - /// - /// - public const string AddressType = "AddressType"; - - /// - /// Column Name constant for property - /// - /// - public const string AddressLine1 = "AddressLine1"; - - /// - /// Column Name constant for property - /// - /// - public const string AddressLine2 = "AddressLine2"; - - /// - /// Column Name constant for property - /// - /// - public const string City = "City"; - - /// - /// Column Name constant for property - /// - /// - public const string StateProvinceName = "StateProvinceName"; - - /// - /// Column Name constant for property - /// - /// - public const string PostalCode = "PostalCode"; - - /// - /// Column Name constant for property - /// - /// - public const string CountryRegionName = "CountryRegionName"; - - /// - /// Column Name constant for property - /// - /// - public const string Demographics = "Demographics"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VJobCandidateConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VJobCandidateConfiguration.cs deleted file mode 100644 index ff6ec23..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VJobCandidateConfiguration.cs +++ /dev/null @@ -1,224 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class VJobCandidateConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToView("vJobCandidate", "HumanResources"); - - // key - builder.HasNoKey(); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("JobCandidateID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.BusinessEntityId) - .HasColumnName("BusinessEntityID") - .HasColumnType("int"); - - builder.Property(t => t.NamePrefix) - .HasColumnName("Name.Prefix") - .HasColumnType("nvarchar(30)") - .HasMaxLength(30); - - builder.Property(t => t.NameFirst) - .HasColumnName("Name.First") - .HasColumnType("nvarchar(30)") - .HasMaxLength(30); - - builder.Property(t => t.NameMiddle) - .HasColumnName("Name.Middle") - .HasColumnType("nvarchar(30)") - .HasMaxLength(30); - - builder.Property(t => t.NameLast) - .HasColumnName("Name.Last") - .HasColumnType("nvarchar(30)") - .HasMaxLength(30); - - builder.Property(t => t.NameSuffix) - .HasColumnName("Name.Suffix") - .HasColumnType("nvarchar(30)") - .HasMaxLength(30); - - builder.Property(t => t.Skills) - .HasColumnName("Skills") - .HasColumnType("nvarchar(max)"); - - builder.Property(t => t.AddrType) - .HasColumnName("Addr.Type") - .HasColumnType("nvarchar(30)") - .HasMaxLength(30); - - builder.Property(t => t.AddrLocCountryRegion) - .HasColumnName("Addr.Loc.CountryRegion") - .HasColumnType("nvarchar(100)") - .HasMaxLength(100); - - builder.Property(t => t.AddrLocState) - .HasColumnName("Addr.Loc.State") - .HasColumnType("nvarchar(100)") - .HasMaxLength(100); - - builder.Property(t => t.AddrLocCity) - .HasColumnName("Addr.Loc.City") - .HasColumnType("nvarchar(100)") - .HasMaxLength(100); - - builder.Property(t => t.AddrPostalCode) - .HasColumnName("Addr.PostalCode") - .HasColumnType("nvarchar(20)") - .HasMaxLength(20); - - builder.Property(t => t.EMail) - .HasColumnName("EMail") - .HasColumnType("nvarchar(max)"); - - builder.Property(t => t.WebSite) - .HasColumnName("WebSite") - .HasColumnType("nvarchar(max)"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "HumanResources"; - - /// - /// Table Name constant for entity - /// - public const string Name = "vJobCandidate"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string Id = "JobCandidateID"; - - /// - /// Column Name constant for property - /// - /// - public const string BusinessEntityId = "BusinessEntityID"; - - /// - /// Column Name constant for property - /// - /// - public const string NamePrefix = "Name.Prefix"; - - /// - /// Column Name constant for property - /// - /// - public const string NameFirst = "Name.First"; - - /// - /// Column Name constant for property - /// - /// - public const string NameMiddle = "Name.Middle"; - - /// - /// Column Name constant for property - /// - /// - public const string NameLast = "Name.Last"; - - /// - /// Column Name constant for property - /// - /// - public const string NameSuffix = "Name.Suffix"; - - /// - /// Column Name constant for property - /// - /// - public const string Skills = "Skills"; - - /// - /// Column Name constant for property - /// - /// - public const string AddrType = "Addr.Type"; - - /// - /// Column Name constant for property - /// - /// - public const string AddrLocCountryRegion = "Addr.Loc.CountryRegion"; - - /// - /// Column Name constant for property - /// - /// - public const string AddrLocState = "Addr.Loc.State"; - - /// - /// Column Name constant for property - /// - /// - public const string AddrLocCity = "Addr.Loc.City"; - - /// - /// Column Name constant for property - /// - /// - public const string AddrPostalCode = "Addr.PostalCode"; - - /// - /// Column Name constant for property - /// - /// - public const string EMail = "EMail"; - - /// - /// Column Name constant for property - /// - /// - public const string WebSite = "WebSite"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VJobCandidateEducationConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VJobCandidateEducationConfiguration.cs deleted file mode 100644 index a8a3119..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VJobCandidateEducationConfiguration.cs +++ /dev/null @@ -1,194 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class VJobCandidateEducationConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToView("vJobCandidateEducation", "HumanResources"); - - // key - builder.HasNoKey(); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("JobCandidateID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.EduLevel) - .HasColumnName("Edu.Level") - .HasColumnType("nvarchar(max)"); - - builder.Property(t => t.EduStartDate) - .HasColumnName("Edu.StartDate") - .HasColumnType("datetime"); - - builder.Property(t => t.EduEndDate) - .HasColumnName("Edu.EndDate") - .HasColumnType("datetime"); - - builder.Property(t => t.EduDegree) - .HasColumnName("Edu.Degree") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.EduMajor) - .HasColumnName("Edu.Major") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.EduMinor) - .HasColumnName("Edu.Minor") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.EduGPA) - .HasColumnName("Edu.GPA") - .HasColumnType("nvarchar(5)") - .HasMaxLength(5); - - builder.Property(t => t.EduGPAScale) - .HasColumnName("Edu.GPAScale") - .HasColumnType("nvarchar(5)") - .HasMaxLength(5); - - builder.Property(t => t.EduSchool) - .HasColumnName("Edu.School") - .HasColumnType("nvarchar(100)") - .HasMaxLength(100); - - builder.Property(t => t.EduLocCountryRegion) - .HasColumnName("Edu.Loc.CountryRegion") - .HasColumnType("nvarchar(100)") - .HasMaxLength(100); - - builder.Property(t => t.EduLocState) - .HasColumnName("Edu.Loc.State") - .HasColumnType("nvarchar(100)") - .HasMaxLength(100); - - builder.Property(t => t.EduLocCity) - .HasColumnName("Edu.Loc.City") - .HasColumnType("nvarchar(100)") - .HasMaxLength(100); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "HumanResources"; - - /// - /// Table Name constant for entity - /// - /// - public const string Name = "vJobCandidateEducation"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string Id = "JobCandidateID"; - - /// - /// Column Name constant for property - /// - /// - public const string EduLevel = "Edu.Level"; - - /// - /// Column Name constant for property - /// - /// - public const string EduStartDate = "Edu.StartDate"; - - /// - /// Column Name constant for property - /// - /// - public const string EduEndDate = "Edu.EndDate"; - - /// - /// Column Name constant for property - /// - /// - public const string EduDegree = "Edu.Degree"; - - /// - /// Column Name constant for property - /// - /// - public const string EduMajor = "Edu.Major"; - - /// - /// Column Name constant for property - /// - /// - public const string EduMinor = "Edu.Minor"; - - /// - /// Column Name constant for property - /// - /// - public const string EduGPA = "Edu.GPA"; - - /// - /// Column Name constant for property - /// - /// - public const string EduGPAScale = "Edu.GPAScale"; - - /// - /// Column Name constant for property - /// - /// - public const string EduSchool = "Edu.School"; - - /// - /// Column Name constant for property - /// - /// - public const string EduLocCountryRegion = "Edu.Loc.CountryRegion"; - - /// - /// Column Name constant for property - /// - /// - public const string EduLocState = "Edu.Loc.State"; - - /// - /// Column Name constant for property - /// - /// - public const string EduLocCity = "Edu.Loc.City"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VJobCandidateEmploymentConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VJobCandidateEmploymentConfiguration.cs deleted file mode 100644 index 5012b4b..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VJobCandidateEmploymentConfiguration.cs +++ /dev/null @@ -1,167 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class VJobCandidateEmploymentConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToView("vJobCandidateEmployment", "HumanResources"); - - // key - builder.HasNoKey(); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("JobCandidateID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.EmpStartDate) - .HasColumnName("Emp.StartDate") - .HasColumnType("datetime"); - - builder.Property(t => t.EmpEndDate) - .HasColumnName("Emp.EndDate") - .HasColumnType("datetime"); - - builder.Property(t => t.EmpOrgName) - .HasColumnName("Emp.OrgName") - .HasColumnType("nvarchar(100)") - .HasMaxLength(100); - - builder.Property(t => t.EmpJobTitle) - .HasColumnName("Emp.JobTitle") - .HasColumnType("nvarchar(100)") - .HasMaxLength(100); - - builder.Property(t => t.EmpResponsibility) - .HasColumnName("Emp.Responsibility") - .HasColumnType("nvarchar(max)"); - - builder.Property(t => t.EmpFunctionCategory) - .HasColumnName("Emp.FunctionCategory") - .HasColumnType("nvarchar(max)"); - - builder.Property(t => t.EmpIndustryCategory) - .HasColumnName("Emp.IndustryCategory") - .HasColumnType("nvarchar(max)"); - - builder.Property(t => t.EmpLocCountryRegion) - .HasColumnName("Emp.Loc.CountryRegion") - .HasColumnType("nvarchar(max)"); - - builder.Property(t => t.EmpLocState) - .HasColumnName("Emp.Loc.State") - .HasColumnType("nvarchar(max)"); - - builder.Property(t => t.EmpLocCity) - .HasColumnName("Emp.Loc.City") - .HasColumnType("nvarchar(max)"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "HumanResources"; - - /// - /// Table Name constant for entity - /// - /// - public const string Name = "vJobCandidateEmployment"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string Id = "JobCandidateID"; - - /// - /// Column Name constant for property - /// - /// - public const string EmpStartDate = "Emp.StartDate"; - - /// - /// Column Name constant for property - /// - /// - public const string EmpEndDate = "Emp.EndDate"; - - /// - /// Column Name constant for property - /// - /// - public const string EmpOrgName = "Emp.OrgName"; - - /// - /// Column Name constant for property - /// - /// - public const string EmpJobTitle = "Emp.JobTitle"; - - /// - /// Column Name constant for property - /// - /// - public const string EmpResponsibility = "Emp.Responsibility"; - - /// - /// Column Name constant for property - /// - /// - public const string EmpFunctionCategory = "Emp.FunctionCategory"; - - /// - /// Column Name constant for property - /// - /// - public const string EmpIndustryCategory = "Emp.IndustryCategory"; - - /// - /// Column Name constant for property - /// - /// - public const string EmpLocCountryRegion = "Emp.Loc.CountryRegion"; - - /// - /// Column Name constant for property - /// - /// - public const string EmpLocState = "Emp.Loc.State"; - - /// - /// Column Name constant for property - /// - /// - public const string EmpLocCity = "Emp.Loc.City"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VPersonDemographicsConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VPersonDemographicsConfiguration.cs deleted file mode 100644 index 819cc25..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VPersonDemographicsConfiguration.cs +++ /dev/null @@ -1,189 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class VPersonDemographicsConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToView("vPersonDemographics", "Sales"); - - // key - builder.HasNoKey(); - - // properties - builder.Property(t => t.BusinessEntityId) - .IsRequired() - .HasColumnName("BusinessEntityID") - .HasColumnType("int"); - - builder.Property(t => t.TotalPurchaseYTD) - .HasColumnName("TotalPurchaseYTD") - .HasColumnType("money"); - - builder.Property(t => t.DateFirstPurchase) - .HasColumnName("DateFirstPurchase") - .HasColumnType("datetime"); - - builder.Property(t => t.BirthDate) - .HasColumnName("BirthDate") - .HasColumnType("datetime"); - - builder.Property(t => t.MaritalStatus) - .HasColumnName("MaritalStatus") - .HasColumnType("nvarchar(1)") - .HasMaxLength(1); - - builder.Property(t => t.YearlyIncome) - .HasColumnName("YearlyIncome") - .HasColumnType("nvarchar(30)") - .HasMaxLength(30); - - builder.Property(t => t.Gender) - .HasColumnName("Gender") - .HasColumnType("nvarchar(1)") - .HasMaxLength(1); - - builder.Property(t => t.TotalChildren) - .HasColumnName("TotalChildren") - .HasColumnType("int"); - - builder.Property(t => t.NumberChildrenAtHome) - .HasColumnName("NumberChildrenAtHome") - .HasColumnType("int"); - - builder.Property(t => t.Education) - .HasColumnName("Education") - .HasColumnType("nvarchar(30)") - .HasMaxLength(30); - - builder.Property(t => t.Occupation) - .HasColumnName("Occupation") - .HasColumnType("nvarchar(30)") - .HasMaxLength(30); - - builder.Property(t => t.HomeOwnerFlag) - .HasColumnName("HomeOwnerFlag") - .HasColumnType("bit"); - - builder.Property(t => t.NumberCarsOwned) - .HasColumnName("NumberCarsOwned") - .HasColumnType("int"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Sales"; - - /// - /// Table Name constant for entity - /// - /// - public const string Name = "vPersonDemographics"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string BusinessEntityId = "BusinessEntityID"; - - /// - /// Column Name constant for property - /// - /// - public const string TotalPurchaseYTD = "TotalPurchaseYTD"; - - /// - /// Column Name constant for property - /// - /// - public const string DateFirstPurchase = "DateFirstPurchase"; - - /// - /// Column Name constant for property - /// - /// - public const string BirthDate = "BirthDate"; - - /// - /// Column Name constant for property - /// - /// - public const string MaritalStatus = "MaritalStatus"; - - /// - /// Column Name constant for property - /// - /// - public const string YearlyIncome = "YearlyIncome"; - - /// - /// Column Name constant for property - /// - /// - public const string Gender = "Gender"; - - /// - /// Column Name constant for property - /// - /// - public const string TotalChildren = "TotalChildren"; - - /// - /// Column Name constant for property - /// - /// - public const string NumberChildrenAtHome = "NumberChildrenAtHome"; - - /// - /// Column Name constant for property - /// - /// - public const string Education = "Education"; - - /// - /// Column Name constant for property - /// - /// - public const string Occupation = "Occupation"; - - /// - /// Column Name constant for property - /// - /// - public const string HomeOwnerFlag = "HomeOwnerFlag"; - - /// - /// Column Name constant for property - /// - /// - public const string NumberCarsOwned = "NumberCarsOwned"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VProductAndDescriptionConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VProductAndDescriptionConfiguration.cs deleted file mode 100644 index 14a9146..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VProductAndDescriptionConfiguration.cs +++ /dev/null @@ -1,112 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class VProductAndDescriptionConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToView("vProductAndDescription", "Production"); - - // key - builder.HasNoKey(); - - // properties - builder.Property(t => t.ProductId) - .IsRequired() - .HasColumnName("ProductID") - .HasColumnType("int"); - - builder.Property(t => t.Name) - .IsRequired() - .HasColumnName("Name") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.ProductModel) - .IsRequired() - .HasColumnName("ProductModel") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.CultureId) - .IsRequired() - .HasColumnName("CultureID") - .HasColumnType("nchar(6)") - .HasMaxLength(6); - - builder.Property(t => t.Description) - .IsRequired() - .HasColumnName("Description") - .HasColumnType("nvarchar(400)") - .HasMaxLength(400); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Production"; - - /// - /// Table Name constant for entity - /// - /// - public const string Name = "vProductAndDescription"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string ProductId = "ProductID"; - - /// - /// Column Name constant for property - /// - /// - public const string Name = "Name"; - - /// - /// Column Name constant for property - /// - /// - public const string ProductModel = "ProductModel"; - - /// - /// Column Name constant for property - /// - /// - public const string CultureId = "CultureID"; - - /// - /// Column Name constant for property - /// - /// - public const string Description = "Description"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VProductModelCatalogDescriptionConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VProductModelCatalogDescriptionConfiguration.cs deleted file mode 100644 index 5e1655c..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VProductModelCatalogDescriptionConfiguration.cs +++ /dev/null @@ -1,328 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class VProductModelCatalogDescriptionConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToView("vProductModelCatalogDescription", "Production"); - - // key - builder.HasNoKey(); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("ProductModelID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.Name) - .IsRequired() - .HasColumnName("Name") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.Summary) - .HasColumnName("Summary") - .HasColumnType("nvarchar(max)"); - - builder.Property(t => t.Manufacturer) - .HasColumnName("Manufacturer") - .HasColumnType("nvarchar(max)"); - - builder.Property(t => t.Copyright) - .HasColumnName("Copyright") - .HasColumnType("nvarchar(30)") - .HasMaxLength(30); - - builder.Property(t => t.ProductURL) - .HasColumnName("ProductURL") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - builder.Property(t => t.WarrantyPeriod) - .HasColumnName("WarrantyPeriod") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - builder.Property(t => t.WarrantyDescription) - .HasColumnName("WarrantyDescription") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - builder.Property(t => t.NoOfYears) - .HasColumnName("NoOfYears") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - builder.Property(t => t.MaintenanceDescription) - .HasColumnName("MaintenanceDescription") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - builder.Property(t => t.Wheel) - .HasColumnName("Wheel") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - builder.Property(t => t.Saddle) - .HasColumnName("Saddle") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - builder.Property(t => t.Pedal) - .HasColumnName("Pedal") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - builder.Property(t => t.BikeFrame) - .HasColumnName("BikeFrame") - .HasColumnType("nvarchar(max)"); - - builder.Property(t => t.Crankset) - .HasColumnName("Crankset") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - builder.Property(t => t.PictureAngle) - .HasColumnName("PictureAngle") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - builder.Property(t => t.PictureSize) - .HasColumnName("PictureSize") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - builder.Property(t => t.ProductPhotoId) - .HasColumnName("ProductPhotoID") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - builder.Property(t => t.Material) - .HasColumnName("Material") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - builder.Property(t => t.Color) - .HasColumnName("Color") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - builder.Property(t => t.ProductLine) - .HasColumnName("ProductLine") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - builder.Property(t => t.Style) - .HasColumnName("Style") - .HasColumnType("nvarchar(256)") - .HasMaxLength(256); - - builder.Property(t => t.RiderExperience) - .HasColumnName("RiderExperience") - .HasColumnType("nvarchar(1024)") - .HasMaxLength(1024); - - builder.Property(t => t.Rowguid) - .IsRequired() - .HasColumnName("rowguid") - .HasColumnType("uniqueidentifier"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Production"; - - /// - /// Table Name constant for entity - /// - /// - public const string Name = "vProductModelCatalogDescription"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string Id = "ProductModelID"; - - /// - /// Column Name constant for property - /// - /// - public const string Name = "Name"; - - /// - /// Column Name constant for property - /// - /// - public const string Summary = "Summary"; - - /// - /// Column Name constant for property - /// - /// - public const string Manufacturer = "Manufacturer"; - - /// - /// Column Name constant for property - /// - /// - public const string Copyright = "Copyright"; - - /// - /// Column Name constant for property - /// - /// - public const string ProductURL = "ProductURL"; - - /// - /// Column Name constant for property - /// - /// - public const string WarrantyPeriod = "WarrantyPeriod"; - - /// - /// Column Name constant for property - /// - /// - public const string WarrantyDescription = "WarrantyDescription"; - - /// - /// Column Name constant for property - /// - /// - public const string NoOfYears = "NoOfYears"; - - /// - /// Column Name constant for property - /// - /// - public const string MaintenanceDescription = "MaintenanceDescription"; - - /// - /// Column Name constant for property - /// - /// - public const string Wheel = "Wheel"; - - /// - /// Column Name constant for property - /// - /// - public const string Saddle = "Saddle"; - - /// - /// Column Name constant for property - /// - /// - public const string Pedal = "Pedal"; - - /// - /// Column Name constant for property - /// - /// - public const string BikeFrame = "BikeFrame"; - - /// - /// Column Name constant for property - /// - /// - public const string Crankset = "Crankset"; - - /// - /// Column Name constant for property - /// - /// - public const string PictureAngle = "PictureAngle"; - - /// - /// Column Name constant for property - /// - /// - public const string PictureSize = "PictureSize"; - - /// - /// Column Name constant for property - /// - /// - public const string ProductPhotoId = "ProductPhotoID"; - - /// - /// Column Name constant for property - /// - /// - public const string Material = "Material"; - - /// - /// Column Name constant for property - /// - /// - public const string Color = "Color"; - - /// - /// Column Name constant for property - /// - /// - public const string ProductLine = "ProductLine"; - - /// - /// Column Name constant for property - /// - /// - public const string Style = "Style"; - - /// - /// Column Name constant for property - /// - /// - public const string RiderExperience = "RiderExperience"; - - /// - /// Column Name constant for property - /// - /// - public const string Rowguid = "rowguid"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VProductModelInstructionsConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VProductModelInstructionsConfiguration.cs deleted file mode 100644 index 0bde17b..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VProductModelInstructionsConfiguration.cs +++ /dev/null @@ -1,170 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class VProductModelInstructionsConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToView("vProductModelInstructions", "Production"); - - // key - builder.HasNoKey(); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("ProductModelID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.Name) - .IsRequired() - .HasColumnName("Name") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.Instructions) - .HasColumnName("Instructions") - .HasColumnType("nvarchar(max)"); - - builder.Property(t => t.LocationId) - .HasColumnName("LocationID") - .HasColumnType("int"); - - builder.Property(t => t.SetupHours) - .HasColumnName("SetupHours") - .HasColumnType("decimal(9,4)"); - - builder.Property(t => t.MachineHours) - .HasColumnName("MachineHours") - .HasColumnType("decimal(9,4)"); - - builder.Property(t => t.LaborHours) - .HasColumnName("LaborHours") - .HasColumnType("decimal(9,4)"); - - builder.Property(t => t.LotSize) - .HasColumnName("LotSize") - .HasColumnType("int"); - - builder.Property(t => t.Step) - .HasColumnName("Step") - .HasColumnType("nvarchar(1024)") - .HasMaxLength(1024); - - builder.Property(t => t.Rowguid) - .IsRequired() - .HasColumnName("rowguid") - .HasColumnType("uniqueidentifier"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Production"; - - /// - /// Table Name constant for entity - /// - /// - public const string Name = "vProductModelInstructions"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string Id = "ProductModelID"; - - /// - /// Column Name constant for property - /// - /// - public const string Name = "Name"; - - /// - /// Column Name constant for property - /// - /// - public const string Instructions = "Instructions"; - - /// - /// Column Name constant for property - /// - /// - public const string LocationId = "LocationID"; - - /// - /// Column Name constant for property - /// - /// - public const string SetupHours = "SetupHours"; - - /// - /// Column Name constant for property - /// - /// - public const string MachineHours = "MachineHours"; - - /// - /// Column Name constant for property - /// - /// - public const string LaborHours = "LaborHours"; - - /// - /// Column Name constant for property - /// - /// - public const string LotSize = "LotSize"; - - /// - /// Column Name constant for property - /// - /// - public const string Step = "Step"; - - /// - /// Column Name constant for property - /// - /// - public const string Rowguid = "rowguid"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VSalesPersonConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VSalesPersonConfiguration.cs deleted file mode 100644 index 12bf6b6..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VSalesPersonConfiguration.cs +++ /dev/null @@ -1,300 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class VSalesPersonConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToView("vSalesPerson", "Sales"); - - // key - builder.HasNoKey(); - - // properties - builder.Property(t => t.BusinessEntityId) - .IsRequired() - .HasColumnName("BusinessEntityID") - .HasColumnType("int"); - - builder.Property(t => t.Title) - .HasColumnName("Title") - .HasColumnType("nvarchar(8)") - .HasMaxLength(8); - - builder.Property(t => t.FirstName) - .IsRequired() - .HasColumnName("FirstName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.MiddleName) - .HasColumnName("MiddleName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.LastName) - .IsRequired() - .HasColumnName("LastName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.Suffix) - .HasColumnName("Suffix") - .HasColumnType("nvarchar(10)") - .HasMaxLength(10); - - builder.Property(t => t.JobTitle) - .IsRequired() - .HasColumnName("JobTitle") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.PhoneNumber) - .HasColumnName("PhoneNumber") - .HasColumnType("nvarchar(25)") - .HasMaxLength(25); - - builder.Property(t => t.PhoneNumberType) - .HasColumnName("PhoneNumberType") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.EmailAddress) - .HasColumnName("EmailAddress") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.EmailPromotion) - .IsRequired() - .HasColumnName("EmailPromotion") - .HasColumnType("int"); - - builder.Property(t => t.AddressLine1) - .IsRequired() - .HasColumnName("AddressLine1") - .HasColumnType("nvarchar(60)") - .HasMaxLength(60); - - builder.Property(t => t.AddressLine2) - .HasColumnName("AddressLine2") - .HasColumnType("nvarchar(60)") - .HasMaxLength(60); - - builder.Property(t => t.City) - .IsRequired() - .HasColumnName("City") - .HasColumnType("nvarchar(30)") - .HasMaxLength(30); - - builder.Property(t => t.StateProvinceName) - .IsRequired() - .HasColumnName("StateProvinceName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.PostalCode) - .IsRequired() - .HasColumnName("PostalCode") - .HasColumnType("nvarchar(15)") - .HasMaxLength(15); - - builder.Property(t => t.CountryRegionName) - .IsRequired() - .HasColumnName("CountryRegionName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.TerritoryName) - .HasColumnName("TerritoryName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.TerritoryGroup) - .HasColumnName("TerritoryGroup") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.SalesQuota) - .HasColumnName("SalesQuota") - .HasColumnType("money"); - - builder.Property(t => t.SalesYTD) - .IsRequired() - .HasColumnName("SalesYTD") - .HasColumnType("money"); - - builder.Property(t => t.SalesLastYear) - .IsRequired() - .HasColumnName("SalesLastYear") - .HasColumnType("money"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Sales"; - - /// - /// Table Name constant for entity - /// - public const string Name = "vSalesPerson"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string BusinessEntityId = "BusinessEntityID"; - - /// - /// Column Name constant for property - /// - /// - public const string Title = "Title"; - - /// - /// Column Name constant for property - /// - /// - public const string FirstName = "FirstName"; - - /// - /// Column Name constant for property - /// - /// - public const string MiddleName = "MiddleName"; - - /// - /// Column Name constant for property - /// - /// - public const string LastName = "LastName"; - - /// - /// Column Name constant for property - /// - /// - public const string Suffix = "Suffix"; - - /// - /// Column Name constant for property - /// - /// - public const string JobTitle = "JobTitle"; - - /// - /// Column Name constant for property - /// - /// - public const string PhoneNumber = "PhoneNumber"; - - /// - /// Column Name constant for property - /// - /// - public const string PhoneNumberType = "PhoneNumberType"; - - /// - /// Column Name constant for property - /// - /// - public const string EmailAddress = "EmailAddress"; - - /// - /// Column Name constant for property - /// - /// - public const string EmailPromotion = "EmailPromotion"; - - /// - /// Column Name constant for property - /// - /// - public const string AddressLine1 = "AddressLine1"; - - /// - /// Column Name constant for property - /// - /// - public const string AddressLine2 = "AddressLine2"; - - /// - /// Column Name constant for property - /// - /// - public const string City = "City"; - - /// - /// Column Name constant for property - /// - /// - public const string StateProvinceName = "StateProvinceName"; - - /// - /// Column Name constant for property - /// - /// - public const string PostalCode = "PostalCode"; - - /// - /// Column Name constant for property - /// - /// - public const string CountryRegionName = "CountryRegionName"; - - /// - /// Column Name constant for property - /// - /// - public const string TerritoryName = "TerritoryName"; - - /// - /// Column Name constant for property - /// - /// - public const string TerritoryGroup = "TerritoryGroup"; - - /// - /// Column Name constant for property - /// - /// - public const string SalesQuota = "SalesQuota"; - - /// - /// Column Name constant for property - /// - /// - public const string SalesYTD = "SalesYTD"; - - /// - /// Column Name constant for property - /// - /// - public const string SalesLastYear = "SalesLastYear"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VSalesPersonSalesByFiscalYearsConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VSalesPersonSalesByFiscalYearsConfiguration.cs deleted file mode 100644 index 176a718..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VSalesPersonSalesByFiscalYearsConfiguration.cs +++ /dev/null @@ -1,129 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class VSalesPersonSalesByFiscalYearsConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToView("vSalesPersonSalesByFiscalYears", "Sales"); - - // key - builder.HasNoKey(); - - // properties - builder.Property(t => t.SalesPersonId) - .HasColumnName("SalesPersonID") - .HasColumnType("int"); - - builder.Property(t => t.FullName) - .HasColumnName("FullName") - .HasColumnType("nvarchar(152)") - .HasMaxLength(152); - - builder.Property(t => t.JobTitle) - .IsRequired() - .HasColumnName("JobTitle") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.SalesTerritory) - .IsRequired() - .HasColumnName("SalesTerritory") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.Number2002) - .HasColumnName("2002") - .HasColumnType("money"); - - builder.Property(t => t.Number2003) - .HasColumnName("2003") - .HasColumnType("money"); - - builder.Property(t => t.Number2004) - .HasColumnName("2004") - .HasColumnType("money"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Sales"; - - /// - /// Table Name constant for entity - /// - /// - public const string Name = "vSalesPersonSalesByFiscalYears"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string SalesPersonId = "SalesPersonID"; - - /// - /// Column Name constant for property - /// - /// - public const string FullName = "FullName"; - - /// - /// Column Name constant for property - /// - /// - public const string JobTitle = "JobTitle"; - - /// - /// Column Name constant for property - /// - /// - public const string SalesTerritory = "SalesTerritory"; - - /// - /// Column Name constant for property - /// - /// - public const string Number2002 = "2002"; - - /// - /// Column Name constant for property - /// - /// - public const string Number2003 = "2003"; - - /// - /// Column Name constant for property - /// - /// - public const string Number2004 = "2004"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStateProvinceCountryRegionConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStateProvinceCountryRegionConfiguration.cs deleted file mode 100644 index 637400b..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStateProvinceCountryRegionConfiguration.cs +++ /dev/null @@ -1,135 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class VStateProvinceCountryRegionConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToView("vStateProvinceCountryRegion", "Person"); - - // key - builder.HasNoKey(); - - // properties - builder.Property(t => t.StateProvinceId) - .IsRequired() - .HasColumnName("StateProvinceID") - .HasColumnType("int"); - - builder.Property(t => t.StateProvinceCode) - .IsRequired() - .HasColumnName("StateProvinceCode") - .HasColumnType("nchar(3)") - .HasMaxLength(3); - - builder.Property(t => t.IsOnlyStateProvinceFlag) - .IsRequired() - .HasColumnName("IsOnlyStateProvinceFlag") - .HasColumnType("bit"); - - builder.Property(t => t.StateProvinceName) - .IsRequired() - .HasColumnName("StateProvinceName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.TerritoryId) - .IsRequired() - .HasColumnName("TerritoryID") - .HasColumnType("int"); - - builder.Property(t => t.CountryRegionCode) - .IsRequired() - .HasColumnName("CountryRegionCode") - .HasColumnType("nvarchar(3)") - .HasMaxLength(3); - - builder.Property(t => t.CountryRegionName) - .IsRequired() - .HasColumnName("CountryRegionName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Person"; - - /// - /// Table Name constant for entity - /// - /// - public const string Name = "vStateProvinceCountryRegion"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string StateProvinceId = "StateProvinceID"; - - /// - /// Column Name constant for property - /// - /// - public const string StateProvinceCode = "StateProvinceCode"; - - /// - /// Column Name constant for property - /// - /// - public const string IsOnlyStateProvinceFlag = "IsOnlyStateProvinceFlag"; - - /// - /// Column Name constant for property - /// - /// - public const string StateProvinceName = "StateProvinceName"; - - /// - /// Column Name constant for property - /// - /// - public const string TerritoryId = "TerritoryID"; - - /// - /// Column Name constant for property - /// - /// - public const string CountryRegionCode = "CountryRegionCode"; - - /// - /// Column Name constant for property - /// - /// - public const string CountryRegionName = "CountryRegionName"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStoreWithAddressesConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStoreWithAddressesConfiguration.cs deleted file mode 100644 index 184c10f..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStoreWithAddressesConfiguration.cs +++ /dev/null @@ -1,159 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class VStoreWithAddressesConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToView("vStoreWithAddresses", "Sales"); - - // key - builder.HasNoKey(); - - // properties - builder.Property(t => t.BusinessEntityId) - .IsRequired() - .HasColumnName("BusinessEntityID") - .HasColumnType("int"); - - builder.Property(t => t.Name) - .IsRequired() - .HasColumnName("Name") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.AddressType) - .IsRequired() - .HasColumnName("AddressType") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.AddressLine1) - .IsRequired() - .HasColumnName("AddressLine1") - .HasColumnType("nvarchar(60)") - .HasMaxLength(60); - - builder.Property(t => t.AddressLine2) - .HasColumnName("AddressLine2") - .HasColumnType("nvarchar(60)") - .HasMaxLength(60); - - builder.Property(t => t.City) - .IsRequired() - .HasColumnName("City") - .HasColumnType("nvarchar(30)") - .HasMaxLength(30); - - builder.Property(t => t.StateProvinceName) - .IsRequired() - .HasColumnName("StateProvinceName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.PostalCode) - .IsRequired() - .HasColumnName("PostalCode") - .HasColumnType("nvarchar(15)") - .HasMaxLength(15); - - builder.Property(t => t.CountryRegionName) - .IsRequired() - .HasColumnName("CountryRegionName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Sales"; - - /// - /// Table Name constant for entity - /// - /// - public const string Name = "vStoreWithAddresses"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string BusinessEntityId = "BusinessEntityID"; - - /// - /// Column Name constant for property - /// - /// - public const string Name = "Name"; - - /// - /// Column Name constant for property - /// - /// - public const string AddressType = "AddressType"; - - /// - /// Column Name constant for property - /// - /// - public const string AddressLine1 = "AddressLine1"; - - /// - /// Column Name constant for property - /// - /// - public const string AddressLine2 = "AddressLine2"; - - /// - /// Column Name constant for property - /// - /// - public const string City = "City"; - - /// - /// Column Name constant for property - /// - /// - public const string StateProvinceName = "StateProvinceName"; - - /// - /// Column Name constant for property - /// - /// - public const string PostalCode = "PostalCode"; - - /// - /// Column Name constant for property - /// - /// - public const string CountryRegionName = "CountryRegionName"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStoreWithContactsConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStoreWithContactsConfiguration.cs deleted file mode 100644 index 993c158..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStoreWithContactsConfiguration.cs +++ /dev/null @@ -1,188 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class VStoreWithContactsConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToView("vStoreWithContacts", "Sales"); - - // key - builder.HasNoKey(); - - // properties - builder.Property(t => t.BusinessEntityId) - .IsRequired() - .HasColumnName("BusinessEntityID") - .HasColumnType("int"); - - builder.Property(t => t.Name) - .IsRequired() - .HasColumnName("Name") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.ContactType) - .IsRequired() - .HasColumnName("ContactType") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.Title) - .HasColumnName("Title") - .HasColumnType("nvarchar(8)") - .HasMaxLength(8); - - builder.Property(t => t.FirstName) - .IsRequired() - .HasColumnName("FirstName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.MiddleName) - .HasColumnName("MiddleName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.LastName) - .IsRequired() - .HasColumnName("LastName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.Suffix) - .HasColumnName("Suffix") - .HasColumnType("nvarchar(10)") - .HasMaxLength(10); - - builder.Property(t => t.PhoneNumber) - .HasColumnName("PhoneNumber") - .HasColumnType("nvarchar(25)") - .HasMaxLength(25); - - builder.Property(t => t.PhoneNumberType) - .HasColumnName("PhoneNumberType") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.EmailAddress) - .HasColumnName("EmailAddress") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.EmailPromotion) - .IsRequired() - .HasColumnName("EmailPromotion") - .HasColumnType("int"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Sales"; - - /// - /// Table Name constant for entity - /// - public const string Name = "vStoreWithContacts"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string BusinessEntityId = "BusinessEntityID"; - - /// - /// Column Name constant for property - /// - /// - public const string Name = "Name"; - - /// - /// Column Name constant for property - /// - /// - public const string ContactType = "ContactType"; - - /// - /// Column Name constant for property - /// - /// - public const string Title = "Title"; - - /// - /// Column Name constant for property - /// - /// - public const string FirstName = "FirstName"; - - /// - /// Column Name constant for property - /// - /// - public const string MiddleName = "MiddleName"; - - /// - /// Column Name constant for property - /// - /// - public const string LastName = "LastName"; - - /// - /// Column Name constant for property - /// - /// - public const string Suffix = "Suffix"; - - /// - /// Column Name constant for property - /// - /// - public const string PhoneNumber = "PhoneNumber"; - - /// - /// Column Name constant for property - /// - /// - public const string PhoneNumberType = "PhoneNumberType"; - - /// - /// Column Name constant for property - /// - /// - public const string EmailAddress = "EmailAddress"; - - /// - /// Column Name constant for property - /// - /// - public const string EmailPromotion = "EmailPromotion"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStoreWithDemographicsConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStoreWithDemographicsConfiguration.cs deleted file mode 100644 index 1a5d54c..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStoreWithDemographicsConfiguration.cs +++ /dev/null @@ -1,181 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class VStoreWithDemographicsConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToView("vStoreWithDemographics", "Sales"); - - // key - builder.HasNoKey(); - - // properties - builder.Property(t => t.BusinessEntityId) - .IsRequired() - .HasColumnName("BusinessEntityID") - .HasColumnType("int"); - - builder.Property(t => t.Name) - .IsRequired() - .HasColumnName("Name") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.AnnualSales) - .HasColumnName("AnnualSales") - .HasColumnType("money"); - - builder.Property(t => t.AnnualRevenue) - .HasColumnName("AnnualRevenue") - .HasColumnType("money"); - - builder.Property(t => t.BankName) - .HasColumnName("BankName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.BusinessType) - .HasColumnName("BusinessType") - .HasColumnType("nvarchar(5)") - .HasMaxLength(5); - - builder.Property(t => t.YearOpened) - .HasColumnName("YearOpened") - .HasColumnType("int"); - - builder.Property(t => t.Specialty) - .HasColumnName("Specialty") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.SquareFeet) - .HasColumnName("SquareFeet") - .HasColumnType("int"); - - builder.Property(t => t.Brands) - .HasColumnName("Brands") - .HasColumnType("nvarchar(30)") - .HasMaxLength(30); - - builder.Property(t => t.Internet) - .HasColumnName("Internet") - .HasColumnType("nvarchar(30)") - .HasMaxLength(30); - - builder.Property(t => t.NumberEmployees) - .HasColumnName("NumberEmployees") - .HasColumnType("int"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Sales"; - - /// - /// Table Name constant for entity - /// - /// - public const string Name = "vStoreWithDemographics"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string BusinessEntityId = "BusinessEntityID"; - - /// - /// Column Name constant for property - /// - /// - public const string Name = "Name"; - - /// - /// Column Name constant for property - /// - /// - public const string AnnualSales = "AnnualSales"; - - /// - /// Column Name constant for property - /// - /// - public const string AnnualRevenue = "AnnualRevenue"; - - /// - /// Column Name constant for property - /// - /// - public const string BankName = "BankName"; - - /// - /// Column Name constant for property - /// - /// - public const string BusinessType = "BusinessType"; - - /// - /// Column Name constant for property - /// - /// - public const string YearOpened = "YearOpened"; - - /// - /// Column Name constant for property - /// - /// - public const string Specialty = "Specialty"; - - /// - /// Column Name constant for property - /// - /// - public const string SquareFeet = "SquareFeet"; - - /// - /// Column Name constant for property - /// - /// - public const string Brands = "Brands"; - - /// - /// Column Name constant for property - /// - /// - public const string Internet = "Internet"; - - /// - /// Column Name constant for property - /// - /// - public const string NumberEmployees = "NumberEmployees"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VVendorWithAddressesConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VVendorWithAddressesConfiguration.cs deleted file mode 100644 index 05389c8..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VVendorWithAddressesConfiguration.cs +++ /dev/null @@ -1,159 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class VVendorWithAddressesConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToView("vVendorWithAddresses", "Purchasing"); - - // key - builder.HasNoKey(); - - // properties - builder.Property(t => t.BusinessEntityId) - .IsRequired() - .HasColumnName("BusinessEntityID") - .HasColumnType("int"); - - builder.Property(t => t.Name) - .IsRequired() - .HasColumnName("Name") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.AddressType) - .IsRequired() - .HasColumnName("AddressType") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.AddressLine1) - .IsRequired() - .HasColumnName("AddressLine1") - .HasColumnType("nvarchar(60)") - .HasMaxLength(60); - - builder.Property(t => t.AddressLine2) - .HasColumnName("AddressLine2") - .HasColumnType("nvarchar(60)") - .HasMaxLength(60); - - builder.Property(t => t.City) - .IsRequired() - .HasColumnName("City") - .HasColumnType("nvarchar(30)") - .HasMaxLength(30); - - builder.Property(t => t.StateProvinceName) - .IsRequired() - .HasColumnName("StateProvinceName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.PostalCode) - .IsRequired() - .HasColumnName("PostalCode") - .HasColumnType("nvarchar(15)") - .HasMaxLength(15); - - builder.Property(t => t.CountryRegionName) - .IsRequired() - .HasColumnName("CountryRegionName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Purchasing"; - - /// - /// Table Name constant for entity - /// - /// - public const string Name = "vVendorWithAddresses"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string BusinessEntityId = "BusinessEntityID"; - - /// - /// Column Name constant for property - /// - /// - public const string Name = "Name"; - - /// - /// Column Name constant for property - /// - /// - public const string AddressType = "AddressType"; - - /// - /// Column Name constant for property - /// - /// - public const string AddressLine1 = "AddressLine1"; - - /// - /// Column Name constant for property - /// - /// - public const string AddressLine2 = "AddressLine2"; - - /// - /// Column Name constant for property - /// - /// - public const string City = "City"; - - /// - /// Column Name constant for property - /// - /// - public const string StateProvinceName = "StateProvinceName"; - - /// - /// Column Name constant for property - /// - /// - public const string PostalCode = "PostalCode"; - - /// - /// Column Name constant for property - /// - /// - public const string CountryRegionName = "CountryRegionName"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VVendorWithContactsConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VVendorWithContactsConfiguration.cs deleted file mode 100644 index 9ed1109..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VVendorWithContactsConfiguration.cs +++ /dev/null @@ -1,189 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -/// -internal class VVendorWithContactsConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToView("vVendorWithContacts", "Purchasing"); - - // key - builder.HasNoKey(); - - // properties - builder.Property(t => t.BusinessEntityId) - .IsRequired() - .HasColumnName("BusinessEntityID") - .HasColumnType("int"); - - builder.Property(t => t.Name) - .IsRequired() - .HasColumnName("Name") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.ContactType) - .IsRequired() - .HasColumnName("ContactType") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.Title) - .HasColumnName("Title") - .HasColumnType("nvarchar(8)") - .HasMaxLength(8); - - builder.Property(t => t.FirstName) - .IsRequired() - .HasColumnName("FirstName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.MiddleName) - .HasColumnName("MiddleName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.LastName) - .IsRequired() - .HasColumnName("LastName") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.Suffix) - .HasColumnName("Suffix") - .HasColumnType("nvarchar(10)") - .HasMaxLength(10); - - builder.Property(t => t.PhoneNumber) - .HasColumnName("PhoneNumber") - .HasColumnType("nvarchar(25)") - .HasMaxLength(25); - - builder.Property(t => t.PhoneNumberType) - .HasColumnName("PhoneNumberType") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.EmailAddress) - .HasColumnName("EmailAddress") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.EmailPromotion) - .IsRequired() - .HasColumnName("EmailPromotion") - .HasColumnType("int"); - - // relationships - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Purchasing"; - - /// - /// Table Name constant for entity - /// - /// - public const string Name = "vVendorWithContacts"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string BusinessEntityId = "BusinessEntityID"; - - /// - /// Column Name constant for property - /// - /// - public const string Name = "Name"; - - /// - /// Column Name constant for property - /// - /// - public const string ContactType = "ContactType"; - - /// - /// Column Name constant for property - /// - /// - public const string Title = "Title"; - - /// - /// Column Name constant for property - /// - /// - public const string FirstName = "FirstName"; - - /// - /// Column Name constant for property - /// - /// - public const string MiddleName = "MiddleName"; - - /// - /// Column Name constant for property - /// - /// - public const string LastName = "LastName"; - - /// - /// Column Name constant for property - /// - /// - public const string Suffix = "Suffix"; - - /// - /// Column Name constant for property - /// - /// - public const string PhoneNumber = "PhoneNumber"; - - /// - /// Column Name constant for property - /// - /// - public const string PhoneNumberType = "PhoneNumberType"; - - /// - /// Column Name constant for property - /// - /// - public const string EmailAddress = "EmailAddress"; - - /// - /// Column Name constant for property - /// - /// - public const string EmailPromotion = "EmailPromotion"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VendorConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VendorConfiguration.cs deleted file mode 100644 index 6d1bbe3..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VendorConfiguration.cs +++ /dev/null @@ -1,144 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class VendorConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("Vendor", "Purchasing"); - - // key - builder.HasKey(t => t.BusinessEntityId); - - // properties - builder.Property(t => t.BusinessEntityId) - .IsRequired() - .HasColumnName("BusinessEntityID") - .HasColumnType("int"); - - builder.Property(t => t.AccountNumber) - .IsRequired() - .HasColumnName("AccountNumber") - .HasColumnType("nvarchar(15)") - .HasMaxLength(15); - - builder.Property(t => t.Name) - .IsRequired() - .HasColumnName("Name") - .HasColumnType("nvarchar(50)") - .HasMaxLength(50); - - builder.Property(t => t.CreditRating) - .IsRequired() - .HasColumnName("CreditRating") - .HasColumnType("tinyint"); - - builder.Property(t => t.PreferredVendorStatus) - .IsRequired() - .HasColumnName("PreferredVendorStatus") - .HasColumnType("bit") - .HasDefaultValue(true); - - builder.Property(t => t.ActiveFlag) - .IsRequired() - .HasColumnName("ActiveFlag") - .HasColumnType("bit") - .HasDefaultValue(true); - - builder.Property(t => t.PurchasingWebServiceURL) - .HasColumnName("PurchasingWebServiceURL") - .HasColumnType("nvarchar(1024)") - .HasMaxLength(1024); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.BusinessEntity) - .WithOne(t => t.Vendor) - .HasForeignKey(d => d.BusinessEntityId) - .HasConstraintName("FK_Vendor_BusinessEntity_BusinessEntityID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - public const string Schema = "Purchasing"; - - /// Table Name constant for entity - public const string Name = "Vendor"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string BusinessEntityId = "BusinessEntityID"; - - /// - /// Column Name constant for property - /// - /// - public const string AccountNumber = "AccountNumber"; - - /// - /// Column Name constant for property - /// - public const string Name = "Name"; - - /// - /// Column Name constant for property - /// - /// - public const string CreditRating = "CreditRating"; - - /// - /// Column Name constant for property - /// - /// - public const string PreferredVendorStatus = "PreferredVendorStatus"; - - /// - /// Column Name constant for property - /// - /// - public const string ActiveFlag = "ActiveFlag"; - - /// - /// Column Name constant for property - /// - /// - public const string PurchasingWebServiceURL = "PurchasingWebServiceURL"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/WorkOrderConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/WorkOrderConfiguration.cs deleted file mode 100644 index e9e763e..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/WorkOrderConfiguration.cs +++ /dev/null @@ -1,169 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class WorkOrderConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("WorkOrder", "Production"); - - // key - builder.HasKey(t => t.Id); - - // properties - builder.Property(t => t.Id) - .IsRequired() - .HasColumnName("WorkOrderID") - .HasColumnType("int") - .ValueGeneratedOnAdd(); - - builder.Property(t => t.ProductId) - .IsRequired() - .HasColumnName("ProductID") - .HasColumnType("int"); - - builder.Property(t => t.OrderQty) - .IsRequired() - .HasColumnName("OrderQty") - .HasColumnType("int"); - - builder.Property(t => t.StockedQty) - .IsRequired() - .HasColumnName("StockedQty") - .HasColumnType("int") - .ValueGeneratedOnAddOrUpdate(); - - builder.Property(t => t.ScrappedQty) - .IsRequired() - .HasColumnName("ScrappedQty") - .HasColumnType("smallint"); - - builder.Property(t => t.StartDate) - .IsRequired() - .HasColumnName("StartDate") - .HasColumnType("datetime"); - - builder.Property(t => t.EndDate) - .HasColumnName("EndDate") - .HasColumnType("datetime"); - - builder.Property(t => t.DueDate) - .IsRequired() - .HasColumnName("DueDate") - .HasColumnType("datetime"); - - builder.Property(t => t.ScrapReasonId) - .HasColumnName("ScrapReasonID") - .HasColumnType("smallint"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.Product) - .WithMany(t => t.WorkOrders) - .HasForeignKey(d => d.ProductId) - .HasConstraintName("FK_WorkOrder_Product_ProductID"); - - builder.HasOne(t => t.ScrapReason) - .WithMany(t => t.WorkOrders) - .HasForeignKey(d => d.ScrapReasonId) - .HasConstraintName("FK_WorkOrder_ScrapReason_ScrapReasonID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - public const string Schema = "Production"; - - /// - /// Table Name constant for entity - /// - public const string Name = "WorkOrder"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - public const string Id = "WorkOrderID"; - - /// - /// Column Name constant for property - /// - /// - public const string ProductId = "ProductID"; - - /// - /// Column Name constant for property - /// - /// - public const string OrderQty = "OrderQty"; - - /// - /// Column Name constant for property - /// - /// - public const string StockedQty = "StockedQty"; - - /// - /// Column Name constant for property - /// - /// - public const string ScrappedQty = "ScrappedQty"; - - /// - /// Column Name constant for property - /// - /// - public const string StartDate = "StartDate"; - - /// - /// Column Name constant for property - /// - /// - public const string EndDate = "EndDate"; - - /// - /// Column Name constant for property - /// - /// - public const string DueDate = "DueDate"; - - /// - /// Column Name constant for property - /// - /// - public const string ScrapReasonId = "ScrapReasonID"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/WorkOrderRoutingConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/WorkOrderRoutingConfiguration.cs deleted file mode 100644 index 9d7794b..0000000 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/WorkOrderRoutingConfiguration.cs +++ /dev/null @@ -1,189 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; - -namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; - -/// -/// Allows configuration for an entity type -/// -internal class WorkOrderRoutingConfiguration - : IEntityTypeConfiguration -{ - /// - /// Configures the entity of type - /// - /// The builder to be used to configure the entity type. - public void Configure(EntityTypeBuilder builder) - { - #region Generated Configure - - // table - builder.ToTable("WorkOrderRouting", "Production"); - - // key - builder.HasKey(t => new { t.WorkOrderId, t.ProductId, t.OperationSequence }); - - // properties - builder.Property(t => t.WorkOrderId) - .IsRequired() - .HasColumnName("WorkOrderID") - .HasColumnType("int"); - - builder.Property(t => t.ProductId) - .IsRequired() - .HasColumnName("ProductID") - .HasColumnType("int"); - - builder.Property(t => t.OperationSequence) - .IsRequired() - .HasColumnName("OperationSequence") - .HasColumnType("smallint"); - - builder.Property(t => t.LocationId) - .IsRequired() - .HasColumnName("LocationID") - .HasColumnType("smallint"); - - builder.Property(t => t.ScheduledStartDate) - .IsRequired() - .HasColumnName("ScheduledStartDate") - .HasColumnType("datetime"); - - builder.Property(t => t.ScheduledEndDate) - .IsRequired() - .HasColumnName("ScheduledEndDate") - .HasColumnType("datetime"); - - builder.Property(t => t.ActualStartDate) - .HasColumnName("ActualStartDate") - .HasColumnType("datetime"); - - builder.Property(t => t.ActualEndDate) - .HasColumnName("ActualEndDate") - .HasColumnType("datetime"); - - builder.Property(t => t.ActualResourceHrs) - .HasColumnName("ActualResourceHrs") - .HasColumnType("decimal(9,4)"); - - builder.Property(t => t.PlannedCost) - .IsRequired() - .HasColumnName("PlannedCost") - .HasColumnType("money"); - - builder.Property(t => t.ActualCost) - .HasColumnName("ActualCost") - .HasColumnType("money"); - - builder.Property(t => t.ModifiedDate) - .IsRequired() - .HasColumnName("ModifiedDate") - .HasColumnType("datetime") - .HasDefaultValueSql("(getdate())"); - - // relationships - builder.HasOne(t => t.Location) - .WithMany(t => t.WorkOrderRoutings) - .HasForeignKey(d => d.LocationId) - .HasConstraintName("FK_WorkOrderRouting_Location_LocationID"); - - builder.HasOne(t => t.WorkOrder) - .WithMany(t => t.WorkOrderRoutings) - .HasForeignKey(d => d.WorkOrderId) - .HasConstraintName("FK_WorkOrderRouting_WorkOrder_WorkOrderID"); - - #endregion - } - - #region Generated Constants - - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Production"; - - /// - /// Table Name constant for entity - /// - public const string Name = "WorkOrderRouting"; - } - - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string WorkOrderId = "WorkOrderID"; - - /// - /// Column Name constant for property - /// - /// - public const string ProductId = "ProductID"; - - /// - /// Column Name constant for property - /// - /// - public const string OperationSequence = "OperationSequence"; - - /// - /// Column Name constant for property - /// - /// - public const string LocationId = "LocationID"; - - /// - /// Column Name constant for property - /// - /// - public const string ScheduledStartDate = "ScheduledStartDate"; - - /// - /// Column Name constant for property - /// - /// - public const string ScheduledEndDate = "ScheduledEndDate"; - - /// - /// Column Name constant for property - /// - /// - public const string ActualStartDate = "ActualStartDate"; - - /// - /// Column Name constant for property - /// - /// - public const string ActualEndDate = "ActualEndDate"; - - /// - /// Column Name constant for property - /// - /// - public const string ActualResourceHrs = "ActualResourceHrs"; - - /// - /// Column Name constant for property - /// - /// - public const string PlannedCost = "PlannedCost"; - - /// - /// Column Name constant for property - /// - /// - public const string ActualCost = "ActualCost"; - - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Address/Mapping/AddressProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Address/Mapping/AddressProfile.cs deleted file mode 100644 index 165fa38..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Address/Mapping/AddressProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class AddressProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public AddressProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressCreateModel.cs deleted file mode 100644 index 1135ecb..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressCreateModel.cs +++ /dev/null @@ -1,76 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class AddressCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'AddressLine1'. - /// - /// - /// The property value for 'AddressLine1'. - /// - public string AddressLine1 { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressLine2'. - /// - /// - /// The property value for 'AddressLine2'. - /// - public string? AddressLine2 { get; set; } - - /// - /// Gets or sets the property value for 'City'. - /// - /// - /// The property value for 'City'. - /// - public string City { get; set; } = null!; - - /// - /// Gets or sets the property value for 'StateProvinceId'. - /// - /// - /// The property value for 'StateProvinceId'. - /// - public int StateProvinceId { get; set; } - - /// - /// Gets or sets the property value for 'PostalCode'. - /// - /// - /// The property value for 'PostalCode'. - /// - public string PostalCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressReadModel.cs deleted file mode 100644 index 59ddf05..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressReadModel.cs +++ /dev/null @@ -1,76 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class AddressReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'AddressLine1'. - /// - /// - /// The property value for 'AddressLine1'. - /// - public string AddressLine1 { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressLine2'. - /// - /// - /// The property value for 'AddressLine2'. - /// - public string? AddressLine2 { get; set; } - - /// - /// Gets or sets the property value for 'City'. - /// - /// - /// The property value for 'City'. - /// - public string City { get; set; } = null!; - - /// - /// Gets or sets the property value for 'StateProvinceId'. - /// - /// - /// The property value for 'StateProvinceId'. - /// - public int StateProvinceId { get; set; } - - /// - /// Gets or sets the property value for 'PostalCode'. - /// - /// - /// The property value for 'PostalCode'. - /// - public string PostalCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressUpdateModel.cs deleted file mode 100644 index c6dd7a7..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressUpdateModel.cs +++ /dev/null @@ -1,76 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class AddressUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'AddressLine1'. - /// - /// - /// The property value for 'AddressLine1'. - /// - public string AddressLine1 { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressLine2'. - /// - /// - /// The property value for 'AddressLine2'. - /// - public string? AddressLine2 { get; set; } - - /// - /// Gets or sets the property value for 'City'. - /// - /// - /// The property value for 'City'. - /// - public string City { get; set; } = null!; - - /// - /// Gets or sets the property value for 'StateProvinceId'. - /// - /// - /// The property value for 'StateProvinceId'. - /// - public int StateProvinceId { get; set; } - - /// - /// Gets or sets the property value for 'PostalCode'. - /// - /// - /// The property value for 'PostalCode'. - /// - public string PostalCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Address/Validation/AddressCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Address/Validation/AddressCreateModelValidator.cs deleted file mode 100644 index 070b986..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Address/Validation/AddressCreateModelValidator.cs +++ /dev/null @@ -1,30 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class AddressCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public AddressCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.AddressLine1).NotEmpty(); - RuleFor(p => p.AddressLine1).MaximumLength(60); - RuleFor(p => p.AddressLine2).MaximumLength(60); - RuleFor(p => p.City).NotEmpty(); - RuleFor(p => p.City).MaximumLength(30); - RuleFor(p => p.PostalCode).NotEmpty(); - RuleFor(p => p.PostalCode).MaximumLength(15); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Address/Validation/AddressUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Address/Validation/AddressUpdateModelValidator.cs deleted file mode 100644 index c0e4e0c..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Address/Validation/AddressUpdateModelValidator.cs +++ /dev/null @@ -1,30 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class AddressUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public AddressUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.AddressLine1).NotEmpty(); - RuleFor(p => p.AddressLine1).MaximumLength(60); - RuleFor(p => p.AddressLine2).MaximumLength(60); - RuleFor(p => p.City).NotEmpty(); - RuleFor(p => p.City).MaximumLength(30); - RuleFor(p => p.PostalCode).NotEmpty(); - RuleFor(p => p.PostalCode).MaximumLength(15); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/AddressType/Mapping/AddressTypeProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/AddressType/Mapping/AddressTypeProfile.cs deleted file mode 100644 index 897dc14..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/AddressType/Mapping/AddressTypeProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class AddressTypeProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public AddressTypeProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeCreateModel.cs deleted file mode 100644 index df20acb..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeCreateModel.cs +++ /dev/null @@ -1,44 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class AddressTypeCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeReadModel.cs deleted file mode 100644 index 252e5f4..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeReadModel.cs +++ /dev/null @@ -1,44 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class AddressTypeReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeUpdateModel.cs deleted file mode 100644 index f1c1d5a..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeUpdateModel.cs +++ /dev/null @@ -1,44 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class AddressTypeUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/AddressType/Validation/AddressTypeCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/AddressType/Validation/AddressTypeCreateModelValidator.cs deleted file mode 100644 index bf43e8c..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/AddressType/Validation/AddressTypeCreateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class AddressTypeCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public AddressTypeCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/AddressType/Validation/AddressTypeUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/AddressType/Validation/AddressTypeUpdateModelValidator.cs deleted file mode 100644 index 5495ac2..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/AddressType/Validation/AddressTypeUpdateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class AddressTypeUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public AddressTypeUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Mapping/BillOfMaterialsProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Mapping/BillOfMaterialsProfile.cs deleted file mode 100644 index 0ca8c6f..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Mapping/BillOfMaterialsProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class BillOfMaterialsProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public BillOfMaterialsProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsCreateModel.cs deleted file mode 100644 index 75bb0dd..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsCreateModel.cs +++ /dev/null @@ -1,84 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class BillOfMaterialsCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'ProductAssemblyId'. - /// - /// - /// The property value for 'ProductAssemblyId'. - /// - public int? ProductAssemblyId { get; set; } - - /// - /// Gets or sets the property value for 'ComponentId'. - /// - /// - /// The property value for 'ComponentId'. - /// - public int ComponentId { get; set; } - - /// - /// Gets or sets the property value for 'StartDate'. - /// - /// - /// The property value for 'StartDate'. - /// - public DateTime StartDate { get; set; } - - /// - /// Gets or sets the property value for 'EndDate'. - /// - /// - /// The property value for 'EndDate'. - /// - public DateTime? EndDate { get; set; } - - /// - /// Gets or sets the property value for 'UnitMeasureCode'. - /// - /// - /// The property value for 'UnitMeasureCode'. - /// - public string UnitMeasureCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'BOMLevel'. - /// - /// - /// The property value for 'BOMLevel'. - /// - public short BOMLevel { get; set; } - - /// - /// Gets or sets the property value for 'PerAssemblyQty'. - /// - /// - /// The property value for 'PerAssemblyQty'. - /// - public decimal PerAssemblyQty { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsReadModel.cs deleted file mode 100644 index eac9da6..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsReadModel.cs +++ /dev/null @@ -1,84 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class BillOfMaterialsReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'ProductAssemblyId'. - /// - /// - /// The property value for 'ProductAssemblyId'. - /// - public int? ProductAssemblyId { get; set; } - - /// - /// Gets or sets the property value for 'ComponentId'. - /// - /// - /// The property value for 'ComponentId'. - /// - public int ComponentId { get; set; } - - /// - /// Gets or sets the property value for 'StartDate'. - /// - /// - /// The property value for 'StartDate'. - /// - public DateTime StartDate { get; set; } - - /// - /// Gets or sets the property value for 'EndDate'. - /// - /// - /// The property value for 'EndDate'. - /// - public DateTime? EndDate { get; set; } - - /// - /// Gets or sets the property value for 'UnitMeasureCode'. - /// - /// - /// The property value for 'UnitMeasureCode'. - /// - public string UnitMeasureCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'BOMLevel'. - /// - /// - /// The property value for 'BOMLevel'. - /// - public short BOMLevel { get; set; } - - /// - /// Gets or sets the property value for 'PerAssemblyQty'. - /// - /// - /// The property value for 'PerAssemblyQty'. - /// - public decimal PerAssemblyQty { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsUpdateModel.cs deleted file mode 100644 index 71f702f..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsUpdateModel.cs +++ /dev/null @@ -1,84 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class BillOfMaterialsUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'ProductAssemblyId'. - /// - /// - /// The property value for 'ProductAssemblyId'. - /// - public int? ProductAssemblyId { get; set; } - - /// - /// Gets or sets the property value for 'ComponentId'. - /// - /// - /// The property value for 'ComponentId'. - /// - public int ComponentId { get; set; } - - /// - /// Gets or sets the property value for 'StartDate'. - /// - /// - /// The property value for 'StartDate'. - /// - public DateTime StartDate { get; set; } - - /// - /// Gets or sets the property value for 'EndDate'. - /// - /// - /// The property value for 'EndDate'. - /// - public DateTime? EndDate { get; set; } - - /// - /// Gets or sets the property value for 'UnitMeasureCode'. - /// - /// - /// The property value for 'UnitMeasureCode'. - /// - public string UnitMeasureCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'BOMLevel'. - /// - /// - /// The property value for 'BOMLevel'. - /// - public short BOMLevel { get; set; } - - /// - /// Gets or sets the property value for 'PerAssemblyQty'. - /// - /// - /// The property value for 'PerAssemblyQty'. - /// - public decimal PerAssemblyQty { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Validation/BillOfMaterialsCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Validation/BillOfMaterialsCreateModelValidator.cs deleted file mode 100644 index ee230e1..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Validation/BillOfMaterialsCreateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class BillOfMaterialsCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public BillOfMaterialsCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.UnitMeasureCode).NotEmpty(); - RuleFor(p => p.UnitMeasureCode).MaximumLength(3); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Validation/BillOfMaterialsUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Validation/BillOfMaterialsUpdateModelValidator.cs deleted file mode 100644 index 626022c..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Validation/BillOfMaterialsUpdateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class BillOfMaterialsUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public BillOfMaterialsUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.UnitMeasureCode).NotEmpty(); - RuleFor(p => p.UnitMeasureCode).MaximumLength(3); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Mapping/BusinessEntityProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Mapping/BusinessEntityProfile.cs deleted file mode 100644 index 658bbdf..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Mapping/BusinessEntityProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class BusinessEntityProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public BusinessEntityProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityCreateModel.cs deleted file mode 100644 index 2ac2bf4..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityCreateModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class BusinessEntityCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityReadModel.cs deleted file mode 100644 index 549037e..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityReadModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class BusinessEntityReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityUpdateModel.cs deleted file mode 100644 index e2eaa09..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityUpdateModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class BusinessEntityUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Validation/BusinessEntityCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Validation/BusinessEntityCreateModelValidator.cs deleted file mode 100644 index 49fb91c..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Validation/BusinessEntityCreateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class BusinessEntityCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public BusinessEntityCreateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Validation/BusinessEntityUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Validation/BusinessEntityUpdateModelValidator.cs deleted file mode 100644 index cd1bf77..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Validation/BusinessEntityUpdateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class BusinessEntityUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public BusinessEntityUpdateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Mapping/BusinessEntityAddressProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Mapping/BusinessEntityAddressProfile.cs deleted file mode 100644 index 0836ae4..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Mapping/BusinessEntityAddressProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class BusinessEntityAddressProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public BusinessEntityAddressProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Models/BusinessEntityAddressCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Models/BusinessEntityAddressCreateModel.cs deleted file mode 100644 index ef72a89..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Models/BusinessEntityAddressCreateModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class BusinessEntityAddressCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'AddressId'. - /// - /// - /// The property value for 'AddressId'. - /// - public int AddressId { get; set; } - - /// - /// Gets or sets the property value for 'AddressTypeId'. - /// - /// - /// The property value for 'AddressTypeId'. - /// - public int AddressTypeId { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Models/BusinessEntityAddressReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Models/BusinessEntityAddressReadModel.cs deleted file mode 100644 index c2cd512..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Models/BusinessEntityAddressReadModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class BusinessEntityAddressReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'AddressId'. - /// - /// - /// The property value for 'AddressId'. - /// - public int AddressId { get; set; } - - /// - /// Gets or sets the property value for 'AddressTypeId'. - /// - /// - /// The property value for 'AddressTypeId'. - /// - public int AddressTypeId { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Models/BusinessEntityAddressUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Models/BusinessEntityAddressUpdateModel.cs deleted file mode 100644 index d01d286..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Models/BusinessEntityAddressUpdateModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class BusinessEntityAddressUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'AddressId'. - /// - /// - /// The property value for 'AddressId'. - /// - public int AddressId { get; set; } - - /// - /// Gets or sets the property value for 'AddressTypeId'. - /// - /// - /// The property value for 'AddressTypeId'. - /// - public int AddressTypeId { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Validation/BusinessEntityAddressCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Validation/BusinessEntityAddressCreateModelValidator.cs deleted file mode 100644 index a2169f6..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Validation/BusinessEntityAddressCreateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class BusinessEntityAddressCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public BusinessEntityAddressCreateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Validation/BusinessEntityAddressUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Validation/BusinessEntityAddressUpdateModelValidator.cs deleted file mode 100644 index 5cdb798..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Validation/BusinessEntityAddressUpdateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class BusinessEntityAddressUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public BusinessEntityAddressUpdateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Mapping/BusinessEntityContactProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Mapping/BusinessEntityContactProfile.cs deleted file mode 100644 index f24e0b5..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Mapping/BusinessEntityContactProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class BusinessEntityContactProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public BusinessEntityContactProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Models/BusinessEntityContactCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Models/BusinessEntityContactCreateModel.cs deleted file mode 100644 index 2d29d45..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Models/BusinessEntityContactCreateModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class BusinessEntityContactCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'PersonId'. - /// - /// - /// The property value for 'PersonId'. - /// - public int PersonId { get; set; } - - /// - /// Gets or sets the property value for 'ContactTypeId'. - /// - /// - /// The property value for 'ContactTypeId'. - /// - public int ContactTypeId { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Models/BusinessEntityContactReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Models/BusinessEntityContactReadModel.cs deleted file mode 100644 index b49591c..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Models/BusinessEntityContactReadModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class BusinessEntityContactReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'PersonId'. - /// - /// - /// The property value for 'PersonId'. - /// - public int PersonId { get; set; } - - /// - /// Gets or sets the property value for 'ContactTypeId'. - /// - /// - /// The property value for 'ContactTypeId'. - /// - public int ContactTypeId { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Models/BusinessEntityContactUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Models/BusinessEntityContactUpdateModel.cs deleted file mode 100644 index 2ae2c19..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Models/BusinessEntityContactUpdateModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class BusinessEntityContactUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'PersonId'. - /// - /// - /// The property value for 'PersonId'. - /// - public int PersonId { get; set; } - - /// - /// Gets or sets the property value for 'ContactTypeId'. - /// - /// - /// The property value for 'ContactTypeId'. - /// - public int ContactTypeId { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Validation/BusinessEntityContactCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Validation/BusinessEntityContactCreateModelValidator.cs deleted file mode 100644 index 3479260..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Validation/BusinessEntityContactCreateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class BusinessEntityContactCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public BusinessEntityContactCreateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Validation/BusinessEntityContactUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Validation/BusinessEntityContactUpdateModelValidator.cs deleted file mode 100644 index dc45397..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Validation/BusinessEntityContactUpdateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class BusinessEntityContactUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public BusinessEntityContactUpdateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ContactType/Mapping/ContactTypeProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ContactType/Mapping/ContactTypeProfile.cs deleted file mode 100644 index 20e07d5..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ContactType/Mapping/ContactTypeProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class ContactTypeProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public ContactTypeProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeCreateModel.cs deleted file mode 100644 index 1190d20..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeCreateModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ContactTypeCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeReadModel.cs deleted file mode 100644 index 95ff896..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeReadModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ContactTypeReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeUpdateModel.cs deleted file mode 100644 index b3d5bad..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeUpdateModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ContactTypeUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ContactType/Validation/ContactTypeCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ContactType/Validation/ContactTypeCreateModelValidator.cs deleted file mode 100644 index 27cecde..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ContactType/Validation/ContactTypeCreateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ContactTypeCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ContactTypeCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ContactType/Validation/ContactTypeUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ContactType/Validation/ContactTypeUpdateModelValidator.cs deleted file mode 100644 index 1c69723..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ContactType/Validation/ContactTypeUpdateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ContactTypeUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ContactTypeUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Mapping/CountryRegionProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Mapping/CountryRegionProfile.cs deleted file mode 100644 index b1fb5e2..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Mapping/CountryRegionProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class CountryRegionProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public CountryRegionProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionCreateModel.cs deleted file mode 100644 index a2d5292..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionCreateModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class CountryRegionCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'CountryRegionCode'. - /// - /// - /// The property value for 'CountryRegionCode'. - /// - public string CountryRegionCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionReadModel.cs deleted file mode 100644 index f40099b..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionReadModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class CountryRegionReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'CountryRegionCode'. - /// - /// - /// The property value for 'CountryRegionCode'. - /// - public string CountryRegionCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionUpdateModel.cs deleted file mode 100644 index 195e021..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionUpdateModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class CountryRegionUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'CountryRegionCode'. - /// - /// - /// The property value for 'CountryRegionCode'. - /// - public string CountryRegionCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Validation/CountryRegionCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Validation/CountryRegionCreateModelValidator.cs deleted file mode 100644 index d3cf729..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Validation/CountryRegionCreateModelValidator.cs +++ /dev/null @@ -1,27 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class CountryRegionCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public CountryRegionCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.CountryRegionCode).NotEmpty(); - RuleFor(p => p.CountryRegionCode).MaximumLength(3); - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Validation/CountryRegionUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Validation/CountryRegionUpdateModelValidator.cs deleted file mode 100644 index 08217d5..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Validation/CountryRegionUpdateModelValidator.cs +++ /dev/null @@ -1,27 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class CountryRegionUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public CountryRegionUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.CountryRegionCode).NotEmpty(); - RuleFor(p => p.CountryRegionCode).MaximumLength(3); - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Mapping/CountryRegionCurrencyProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Mapping/CountryRegionCurrencyProfile.cs deleted file mode 100644 index 6f5006d..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Mapping/CountryRegionCurrencyProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class CountryRegionCurrencyProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public CountryRegionCurrencyProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyCreateModel.cs deleted file mode 100644 index 8e118b1..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyCreateModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class CountryRegionCurrencyCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'CountryRegionCode'. - /// - /// - /// The property value for 'CountryRegionCode'. - /// - public string CountryRegionCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CurrencyCode'. - /// - /// - /// The property value for 'CurrencyCode'. - /// - public string CurrencyCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyReadModel.cs deleted file mode 100644 index b49f924..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyReadModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class CountryRegionCurrencyReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'CountryRegionCode'. - /// - /// - /// The property value for 'CountryRegionCode'. - /// - public string CountryRegionCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CurrencyCode'. - /// - /// - /// The property value for 'CurrencyCode'. - /// - public string CurrencyCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyUpdateModel.cs deleted file mode 100644 index 4d469ec..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyUpdateModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class CountryRegionCurrencyUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'CountryRegionCode'. - /// - /// - /// The property value for 'CountryRegionCode'. - /// - public string CountryRegionCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CurrencyCode'. - /// - /// - /// The property value for 'CurrencyCode'. - /// - public string CurrencyCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Validation/CountryRegionCurrencyCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Validation/CountryRegionCurrencyCreateModelValidator.cs deleted file mode 100644 index 079366a..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Validation/CountryRegionCurrencyCreateModelValidator.cs +++ /dev/null @@ -1,27 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class CountryRegionCurrencyCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public CountryRegionCurrencyCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.CountryRegionCode).NotEmpty(); - RuleFor(p => p.CountryRegionCode).MaximumLength(3); - RuleFor(p => p.CurrencyCode).NotEmpty(); - RuleFor(p => p.CurrencyCode).MaximumLength(3); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Validation/CountryRegionCurrencyUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Validation/CountryRegionCurrencyUpdateModelValidator.cs deleted file mode 100644 index 3362e4a..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Validation/CountryRegionCurrencyUpdateModelValidator.cs +++ /dev/null @@ -1,27 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class CountryRegionCurrencyUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public CountryRegionCurrencyUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.CountryRegionCode).NotEmpty(); - RuleFor(p => p.CountryRegionCode).MaximumLength(3); - RuleFor(p => p.CurrencyCode).NotEmpty(); - RuleFor(p => p.CurrencyCode).MaximumLength(3); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Mapping/CreditCardProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Mapping/CreditCardProfile.cs deleted file mode 100644 index 04fcc0c..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Mapping/CreditCardProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class CreditCardProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public CreditCardProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Models/CreditCardCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Models/CreditCardCreateModel.cs deleted file mode 100644 index 194345f..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Models/CreditCardCreateModel.cs +++ /dev/null @@ -1,60 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class CreditCardCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'CardType'. - /// - /// - /// The property value for 'CardType'. - /// - public string CardType { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CardNumber'. - /// - /// - /// The property value for 'CardNumber'. - /// - public string CardNumber { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ExpMonth'. - /// - /// - /// The property value for 'ExpMonth'. - /// - public byte ExpMonth { get; set; } - - /// - /// Gets or sets the property value for 'ExpYear'. - /// - /// - /// The property value for 'ExpYear'. - /// - public short ExpYear { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Models/CreditCardReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Models/CreditCardReadModel.cs deleted file mode 100644 index 0b16f9b..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Models/CreditCardReadModel.cs +++ /dev/null @@ -1,60 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class CreditCardReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'CardType'. - /// - /// - /// The property value for 'CardType'. - /// - public string CardType { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CardNumber'. - /// - /// - /// The property value for 'CardNumber'. - /// - public string CardNumber { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ExpMonth'. - /// - /// - /// The property value for 'ExpMonth'. - /// - public byte ExpMonth { get; set; } - - /// - /// Gets or sets the property value for 'ExpYear'. - /// - /// - /// The property value for 'ExpYear'. - /// - public short ExpYear { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Models/CreditCardUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Models/CreditCardUpdateModel.cs deleted file mode 100644 index 05a717f..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Models/CreditCardUpdateModel.cs +++ /dev/null @@ -1,60 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class CreditCardUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'CardType'. - /// - /// - /// The property value for 'CardType'. - /// - public string CardType { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CardNumber'. - /// - /// - /// The property value for 'CardNumber'. - /// - public string CardNumber { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ExpMonth'. - /// - /// - /// The property value for 'ExpMonth'. - /// - public byte ExpMonth { get; set; } - - /// - /// Gets or sets the property value for 'ExpYear'. - /// - /// - /// The property value for 'ExpYear'. - /// - public short ExpYear { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Validation/CreditCardCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Validation/CreditCardCreateModelValidator.cs deleted file mode 100644 index e569682..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Validation/CreditCardCreateModelValidator.cs +++ /dev/null @@ -1,27 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class CreditCardCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public CreditCardCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.CardType).NotEmpty(); - RuleFor(p => p.CardType).MaximumLength(50); - RuleFor(p => p.CardNumber).NotEmpty(); - RuleFor(p => p.CardNumber).MaximumLength(25); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Validation/CreditCardUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Validation/CreditCardUpdateModelValidator.cs deleted file mode 100644 index bceb898..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Validation/CreditCardUpdateModelValidator.cs +++ /dev/null @@ -1,27 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class CreditCardUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public CreditCardUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.CardType).NotEmpty(); - RuleFor(p => p.CardType).MaximumLength(50); - RuleFor(p => p.CardNumber).NotEmpty(); - RuleFor(p => p.CardNumber).MaximumLength(25); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Culture/Mapping/CultureProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Culture/Mapping/CultureProfile.cs deleted file mode 100644 index 77fc52f..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Culture/Mapping/CultureProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class CultureProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public CultureProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureCreateModel.cs deleted file mode 100644 index aabba37..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureCreateModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class CultureCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public string Id { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureReadModel.cs deleted file mode 100644 index ec8686c..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureReadModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class CultureReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public string Id { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureUpdateModel.cs deleted file mode 100644 index aab47c6..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureUpdateModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class CultureUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public string Id { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Culture/Validation/CultureCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Culture/Validation/CultureCreateModelValidator.cs deleted file mode 100644 index 55712d2..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Culture/Validation/CultureCreateModelValidator.cs +++ /dev/null @@ -1,27 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class CultureCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public CultureCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Id).NotEmpty(); - RuleFor(p => p.Id).MaximumLength(6); - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Culture/Validation/CultureUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Culture/Validation/CultureUpdateModelValidator.cs deleted file mode 100644 index 4bfc49f..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Culture/Validation/CultureUpdateModelValidator.cs +++ /dev/null @@ -1,27 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class CultureUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public CultureUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Id).NotEmpty(); - RuleFor(p => p.Id).MaximumLength(6); - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Currency/Mapping/CurrencyProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Currency/Mapping/CurrencyProfile.cs deleted file mode 100644 index 70098bd..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Currency/Mapping/CurrencyProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class CurrencyProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public CurrencyProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyCreateModel.cs deleted file mode 100644 index adebaf6..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyCreateModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class CurrencyCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'CurrencyCode'. - /// - /// - /// The property value for 'CurrencyCode'. - /// - public string CurrencyCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyReadModel.cs deleted file mode 100644 index a84d0b5..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyReadModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class CurrencyReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'CurrencyCode'. - /// - /// - /// The property value for 'CurrencyCode'. - /// - public string CurrencyCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyUpdateModel.cs deleted file mode 100644 index 9e7d72b..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyUpdateModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class CurrencyUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'CurrencyCode'. - /// - /// - /// The property value for 'CurrencyCode'. - /// - public string CurrencyCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Currency/Validation/CurrencyCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Currency/Validation/CurrencyCreateModelValidator.cs deleted file mode 100644 index 9201e48..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Currency/Validation/CurrencyCreateModelValidator.cs +++ /dev/null @@ -1,27 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class CurrencyCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public CurrencyCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.CurrencyCode).NotEmpty(); - RuleFor(p => p.CurrencyCode).MaximumLength(3); - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Currency/Validation/CurrencyUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Currency/Validation/CurrencyUpdateModelValidator.cs deleted file mode 100644 index a32e319..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Currency/Validation/CurrencyUpdateModelValidator.cs +++ /dev/null @@ -1,27 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class CurrencyUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public CurrencyUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.CurrencyCode).NotEmpty(); - RuleFor(p => p.CurrencyCode).MaximumLength(3); - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Mapping/CurrencyRateProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Mapping/CurrencyRateProfile.cs deleted file mode 100644 index 07a25fe..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Mapping/CurrencyRateProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class CurrencyRateProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public CurrencyRateProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateCreateModel.cs deleted file mode 100644 index 81c3fd9..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateCreateModel.cs +++ /dev/null @@ -1,68 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class CurrencyRateCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'CurrencyRateDate'. - /// - /// - /// The property value for 'CurrencyRateDate'. - /// - public DateTime CurrencyRateDate { get; set; } - - /// - /// Gets or sets the property value for 'FromCurrencyCode'. - /// - /// - /// The property value for 'FromCurrencyCode'. - /// - public string FromCurrencyCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ToCurrencyCode'. - /// - /// - /// The property value for 'ToCurrencyCode'. - /// - public string ToCurrencyCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AverageRate'. - /// - /// - /// The property value for 'AverageRate'. - /// - public decimal AverageRate { get; set; } - - /// - /// Gets or sets the property value for 'EndOfDayRate'. - /// - /// - /// The property value for 'EndOfDayRate'. - /// - public decimal EndOfDayRate { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateReadModel.cs deleted file mode 100644 index f7ca639..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateReadModel.cs +++ /dev/null @@ -1,68 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class CurrencyRateReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'CurrencyRateDate'. - /// - /// - /// The property value for 'CurrencyRateDate'. - /// - public DateTime CurrencyRateDate { get; set; } - - /// - /// Gets or sets the property value for 'FromCurrencyCode'. - /// - /// - /// The property value for 'FromCurrencyCode'. - /// - public string FromCurrencyCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ToCurrencyCode'. - /// - /// - /// The property value for 'ToCurrencyCode'. - /// - public string ToCurrencyCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AverageRate'. - /// - /// - /// The property value for 'AverageRate'. - /// - public decimal AverageRate { get; set; } - - /// - /// Gets or sets the property value for 'EndOfDayRate'. - /// - /// - /// The property value for 'EndOfDayRate'. - /// - public decimal EndOfDayRate { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateUpdateModel.cs deleted file mode 100644 index f57bd20..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateUpdateModel.cs +++ /dev/null @@ -1,68 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class CurrencyRateUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'CurrencyRateDate'. - /// - /// - /// The property value for 'CurrencyRateDate'. - /// - public DateTime CurrencyRateDate { get; set; } - - /// - /// Gets or sets the property value for 'FromCurrencyCode'. - /// - /// - /// The property value for 'FromCurrencyCode'. - /// - public string FromCurrencyCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ToCurrencyCode'. - /// - /// - /// The property value for 'ToCurrencyCode'. - /// - public string ToCurrencyCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AverageRate'. - /// - /// - /// The property value for 'AverageRate'. - /// - public decimal AverageRate { get; set; } - - /// - /// Gets or sets the property value for 'EndOfDayRate'. - /// - /// - /// The property value for 'EndOfDayRate'. - /// - public decimal EndOfDayRate { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Validation/CurrencyRateCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Validation/CurrencyRateCreateModelValidator.cs deleted file mode 100644 index 229282a..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Validation/CurrencyRateCreateModelValidator.cs +++ /dev/null @@ -1,27 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class CurrencyRateCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public CurrencyRateCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.FromCurrencyCode).NotEmpty(); - RuleFor(p => p.FromCurrencyCode).MaximumLength(3); - RuleFor(p => p.ToCurrencyCode).NotEmpty(); - RuleFor(p => p.ToCurrencyCode).MaximumLength(3); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Validation/CurrencyRateUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Validation/CurrencyRateUpdateModelValidator.cs deleted file mode 100644 index b34b64f..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Validation/CurrencyRateUpdateModelValidator.cs +++ /dev/null @@ -1,27 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class CurrencyRateUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public CurrencyRateUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.FromCurrencyCode).NotEmpty(); - RuleFor(p => p.FromCurrencyCode).MaximumLength(3); - RuleFor(p => p.ToCurrencyCode).NotEmpty(); - RuleFor(p => p.ToCurrencyCode).MaximumLength(3); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Customer/Mapping/CustomerProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Customer/Mapping/CustomerProfile.cs deleted file mode 100644 index ea5aea0..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Customer/Mapping/CustomerProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class CustomerProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public CustomerProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerCreateModel.cs deleted file mode 100644 index b1a80a3..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerCreateModel.cs +++ /dev/null @@ -1,68 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class CustomerCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'PersonId'. - /// - /// - /// The property value for 'PersonId'. - /// - public int? PersonId { get; set; } - - /// - /// Gets or sets the property value for 'StoreId'. - /// - /// - /// The property value for 'StoreId'. - /// - public int? StoreId { get; set; } - - /// - /// Gets or sets the property value for 'TerritoryId'. - /// - /// - /// The property value for 'TerritoryId'. - /// - public int? TerritoryId { get; set; } - - /// - /// Gets or sets the property value for 'AccountNumber'. - /// - /// - /// The property value for 'AccountNumber'. - /// - public string AccountNumber { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerReadModel.cs deleted file mode 100644 index 94e3534..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerReadModel.cs +++ /dev/null @@ -1,68 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class CustomerReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'PersonId'. - /// - /// - /// The property value for 'PersonId'. - /// - public int? PersonId { get; set; } - - /// - /// Gets or sets the property value for 'StoreId'. - /// - /// - /// The property value for 'StoreId'. - /// - public int? StoreId { get; set; } - - /// - /// Gets or sets the property value for 'TerritoryId'. - /// - /// - /// The property value for 'TerritoryId'. - /// - public int? TerritoryId { get; set; } - - /// - /// Gets or sets the property value for 'AccountNumber'. - /// - /// - /// The property value for 'AccountNumber'. - /// - public string AccountNumber { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerUpdateModel.cs deleted file mode 100644 index 1920066..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerUpdateModel.cs +++ /dev/null @@ -1,68 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class CustomerUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'PersonId'. - /// - /// - /// The property value for 'PersonId'. - /// - public int? PersonId { get; set; } - - /// - /// Gets or sets the property value for 'StoreId'. - /// - /// - /// The property value for 'StoreId'. - /// - public int? StoreId { get; set; } - - /// - /// Gets or sets the property value for 'TerritoryId'. - /// - /// - /// The property value for 'TerritoryId'. - /// - public int? TerritoryId { get; set; } - - /// - /// Gets or sets the property value for 'AccountNumber'. - /// - /// - /// The property value for 'AccountNumber'. - /// - public string AccountNumber { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Customer/Validation/CustomerCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Customer/Validation/CustomerCreateModelValidator.cs deleted file mode 100644 index e620b89..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Customer/Validation/CustomerCreateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class CustomerCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public CustomerCreateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Customer/Validation/CustomerUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Customer/Validation/CustomerUpdateModelValidator.cs deleted file mode 100644 index d36b59b..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Customer/Validation/CustomerUpdateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class CustomerUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public CustomerUpdateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Department/Mapping/DepartmentProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Department/Mapping/DepartmentProfile.cs deleted file mode 100644 index 36fe6c1..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Department/Mapping/DepartmentProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class DepartmentProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public DepartmentProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentCreateModel.cs deleted file mode 100644 index fbf85a2..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentCreateModel.cs +++ /dev/null @@ -1,44 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class DepartmentCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public short Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'GroupName'. - /// - /// - /// The property value for 'GroupName'. - /// - public string GroupName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentReadModel.cs deleted file mode 100644 index 1c230b8..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentReadModel.cs +++ /dev/null @@ -1,44 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class DepartmentReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public short Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'GroupName'. - /// - /// - /// The property value for 'GroupName'. - /// - public string GroupName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentUpdateModel.cs deleted file mode 100644 index 23befed..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentUpdateModel.cs +++ /dev/null @@ -1,44 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class DepartmentUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public short Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'GroupName'. - /// - /// - /// The property value for 'GroupName'. - /// - public string GroupName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Department/Validation/DepartmentCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Department/Validation/DepartmentCreateModelValidator.cs deleted file mode 100644 index 74d44cd..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Department/Validation/DepartmentCreateModelValidator.cs +++ /dev/null @@ -1,27 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class DepartmentCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public DepartmentCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - RuleFor(p => p.GroupName).NotEmpty(); - RuleFor(p => p.GroupName).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Department/Validation/DepartmentUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Department/Validation/DepartmentUpdateModelValidator.cs deleted file mode 100644 index ee93058..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Department/Validation/DepartmentUpdateModelValidator.cs +++ /dev/null @@ -1,27 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class DepartmentUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public DepartmentUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - RuleFor(p => p.GroupName).NotEmpty(); - RuleFor(p => p.GroupName).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Mapping/EmailAddressProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Mapping/EmailAddressProfile.cs deleted file mode 100644 index 4005630..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Mapping/EmailAddressProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class EmailAddressProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public EmailAddressProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Models/EmailAddressCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Models/EmailAddressCreateModel.cs deleted file mode 100644 index 7c5c1e9..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Models/EmailAddressCreateModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class EmailAddressCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'EmailAddressMember'. - /// - /// - /// The property value for 'EmailAddressMember'. - /// - public string? EmailAddressMember { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Models/EmailAddressReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Models/EmailAddressReadModel.cs deleted file mode 100644 index 27aeea4..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Models/EmailAddressReadModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class EmailAddressReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'EmailAddressMember'. - /// - /// - /// The property value for 'EmailAddressMember'. - /// - public string? EmailAddressMember { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Models/EmailAddressUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Models/EmailAddressUpdateModel.cs deleted file mode 100644 index f560317..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Models/EmailAddressUpdateModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class EmailAddressUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'EmailAddressMember'. - /// - /// - /// The property value for 'EmailAddressMember'. - /// - public string? EmailAddressMember { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Validation/EmailAddressCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Validation/EmailAddressCreateModelValidator.cs deleted file mode 100644 index e18f3b9..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Validation/EmailAddressCreateModelValidator.cs +++ /dev/null @@ -1,24 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class EmailAddressCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public EmailAddressCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.EmailAddressMember).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Validation/EmailAddressUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Validation/EmailAddressUpdateModelValidator.cs deleted file mode 100644 index 9c7e41b..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Validation/EmailAddressUpdateModelValidator.cs +++ /dev/null @@ -1,24 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class EmailAddressUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public EmailAddressUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.EmailAddressMember).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Employee/Mapping/EmployeeProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Employee/Mapping/EmployeeProfile.cs deleted file mode 100644 index d5e0dea..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Employee/Mapping/EmployeeProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class EmployeeProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public EmployeeProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Employee/Models/EmployeeCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Employee/Models/EmployeeCreateModel.cs deleted file mode 100644 index cfe85c3..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Employee/Models/EmployeeCreateModel.cs +++ /dev/null @@ -1,132 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class EmployeeCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'NationalIdNumber'. - /// - /// - /// The property value for 'NationalIdNumber'. - /// - public string NationalIdNumber { get; set; } = null!; - - /// - /// Gets or sets the property value for 'LoginId'. - /// - /// - /// The property value for 'LoginId'. - /// - public string LoginId { get; set; } = null!; - - /// - /// Gets or sets the property value for 'OrganizationLevel'. - /// - /// - /// The property value for 'OrganizationLevel'. - /// - public short? OrganizationLevel { get; set; } - - /// - /// Gets or sets the property value for 'JobTitle'. - /// - /// - /// The property value for 'JobTitle'. - /// - public string JobTitle { get; set; } = null!; - - /// - /// Gets or sets the property value for 'BirthDate'. - /// - /// - /// The property value for 'BirthDate'. - /// - public DateOnly BirthDate { get; set; } - - /// - /// Gets or sets the property value for 'MaritalStatus'. - /// - /// - /// The property value for 'MaritalStatus'. - /// - public string MaritalStatus { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Gender'. - /// - /// - /// The property value for 'Gender'. - /// - public string Gender { get; set; } = null!; - - /// - /// Gets or sets the property value for 'HireDate'. - /// - /// - /// The property value for 'HireDate'. - /// - public DateOnly HireDate { get; set; } - - /// - /// Gets or sets the property value for 'SalariedFlag'. - /// - /// - /// The property value for 'SalariedFlag'. - /// - public bool SalariedFlag { get; set; } - - /// - /// Gets or sets the property value for 'VacationHours'. - /// - /// - /// The property value for 'VacationHours'. - /// - public short VacationHours { get; set; } - - /// - /// Gets or sets the property value for 'SickLeaveHours'. - /// - /// - /// The property value for 'SickLeaveHours'. - /// - public short SickLeaveHours { get; set; } - - /// - /// Gets or sets the property value for 'CurrentFlag'. - /// - /// - /// The property value for 'CurrentFlag'. - /// - public bool CurrentFlag { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Employee/Models/EmployeeReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Employee/Models/EmployeeReadModel.cs deleted file mode 100644 index c1d82a2..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Employee/Models/EmployeeReadModel.cs +++ /dev/null @@ -1,132 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class EmployeeReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'NationalIdNumber'. - /// - /// - /// The property value for 'NationalIdNumber'. - /// - public string NationalIdNumber { get; set; } = null!; - - /// - /// Gets or sets the property value for 'LoginId'. - /// - /// - /// The property value for 'LoginId'. - /// - public string LoginId { get; set; } = null!; - - /// - /// Gets or sets the property value for 'OrganizationLevel'. - /// - /// - /// The property value for 'OrganizationLevel'. - /// - public short? OrganizationLevel { get; set; } - - /// - /// Gets or sets the property value for 'JobTitle'. - /// - /// - /// The property value for 'JobTitle'. - /// - public string JobTitle { get; set; } = null!; - - /// - /// Gets or sets the property value for 'BirthDate'. - /// - /// - /// The property value for 'BirthDate'. - /// - public DateOnly BirthDate { get; set; } - - /// - /// Gets or sets the property value for 'MaritalStatus'. - /// - /// - /// The property value for 'MaritalStatus'. - /// - public string MaritalStatus { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Gender'. - /// - /// - /// The property value for 'Gender'. - /// - public string Gender { get; set; } = null!; - - /// - /// Gets or sets the property value for 'HireDate'. - /// - /// - /// The property value for 'HireDate'. - /// - public DateOnly HireDate { get; set; } - - /// - /// Gets or sets the property value for 'SalariedFlag'. - /// - /// - /// The property value for 'SalariedFlag'. - /// - public bool SalariedFlag { get; set; } - - /// - /// Gets or sets the property value for 'VacationHours'. - /// - /// - /// The property value for 'VacationHours'. - /// - public short VacationHours { get; set; } - - /// - /// Gets or sets the property value for 'SickLeaveHours'. - /// - /// - /// The property value for 'SickLeaveHours'. - /// - public short SickLeaveHours { get; set; } - - /// - /// Gets or sets the property value for 'CurrentFlag'. - /// - /// - /// The property value for 'CurrentFlag'. - /// - public bool CurrentFlag { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Employee/Models/EmployeeUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Employee/Models/EmployeeUpdateModel.cs deleted file mode 100644 index d0621fd..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Employee/Models/EmployeeUpdateModel.cs +++ /dev/null @@ -1,132 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class EmployeeUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'NationalIdNumber'. - /// - /// - /// The property value for 'NationalIdNumber'. - /// - public string NationalIdNumber { get; set; } = null!; - - /// - /// Gets or sets the property value for 'LoginId'. - /// - /// - /// The property value for 'LoginId'. - /// - public string LoginId { get; set; } = null!; - - /// - /// Gets or sets the property value for 'OrganizationLevel'. - /// - /// - /// The property value for 'OrganizationLevel'. - /// - public short? OrganizationLevel { get; set; } - - /// - /// Gets or sets the property value for 'JobTitle'. - /// - /// - /// The property value for 'JobTitle'. - /// - public string JobTitle { get; set; } = null!; - - /// - /// Gets or sets the property value for 'BirthDate'. - /// - /// - /// The property value for 'BirthDate'. - /// - public DateOnly BirthDate { get; set; } - - /// - /// Gets or sets the property value for 'MaritalStatus'. - /// - /// - /// The property value for 'MaritalStatus'. - /// - public string MaritalStatus { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Gender'. - /// - /// - /// The property value for 'Gender'. - /// - public string Gender { get; set; } = null!; - - /// - /// Gets or sets the property value for 'HireDate'. - /// - /// - /// The property value for 'HireDate'. - /// - public DateOnly HireDate { get; set; } - - /// - /// Gets or sets the property value for 'SalariedFlag'. - /// - /// - /// The property value for 'SalariedFlag'. - /// - public bool SalariedFlag { get; set; } - - /// - /// Gets or sets the property value for 'VacationHours'. - /// - /// - /// The property value for 'VacationHours'. - /// - public short VacationHours { get; set; } - - /// - /// Gets or sets the property value for 'SickLeaveHours'. - /// - /// - /// The property value for 'SickLeaveHours'. - /// - public short SickLeaveHours { get; set; } - - /// - /// Gets or sets the property value for 'CurrentFlag'. - /// - /// - /// The property value for 'CurrentFlag'. - /// - public bool CurrentFlag { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Employee/Validation/EmployeeCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Employee/Validation/EmployeeCreateModelValidator.cs deleted file mode 100644 index 8ce7d37..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Employee/Validation/EmployeeCreateModelValidator.cs +++ /dev/null @@ -1,33 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class EmployeeCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public EmployeeCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.NationalIdNumber).NotEmpty(); - RuleFor(p => p.NationalIdNumber).MaximumLength(15); - RuleFor(p => p.LoginId).NotEmpty(); - RuleFor(p => p.LoginId).MaximumLength(256); - RuleFor(p => p.JobTitle).NotEmpty(); - RuleFor(p => p.JobTitle).MaximumLength(50); - RuleFor(p => p.MaritalStatus).NotEmpty(); - RuleFor(p => p.MaritalStatus).MaximumLength(1); - RuleFor(p => p.Gender).NotEmpty(); - RuleFor(p => p.Gender).MaximumLength(1); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Employee/Validation/EmployeeUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Employee/Validation/EmployeeUpdateModelValidator.cs deleted file mode 100644 index f31baf1..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Employee/Validation/EmployeeUpdateModelValidator.cs +++ /dev/null @@ -1,33 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class EmployeeUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public EmployeeUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.NationalIdNumber).NotEmpty(); - RuleFor(p => p.NationalIdNumber).MaximumLength(15); - RuleFor(p => p.LoginId).NotEmpty(); - RuleFor(p => p.LoginId).MaximumLength(256); - RuleFor(p => p.JobTitle).NotEmpty(); - RuleFor(p => p.JobTitle).MaximumLength(50); - RuleFor(p => p.MaritalStatus).NotEmpty(); - RuleFor(p => p.MaritalStatus).MaximumLength(1); - RuleFor(p => p.Gender).NotEmpty(); - RuleFor(p => p.Gender).MaximumLength(1); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Mapping/EmployeeDepartmentHistoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Mapping/EmployeeDepartmentHistoryProfile.cs deleted file mode 100644 index 8234717..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Mapping/EmployeeDepartmentHistoryProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class EmployeeDepartmentHistoryProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public EmployeeDepartmentHistoryProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Models/EmployeeDepartmentHistoryCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Models/EmployeeDepartmentHistoryCreateModel.cs deleted file mode 100644 index 413a419..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Models/EmployeeDepartmentHistoryCreateModel.cs +++ /dev/null @@ -1,60 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class EmployeeDepartmentHistoryCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'DepartmentId'. - /// - /// - /// The property value for 'DepartmentId'. - /// - public short DepartmentId { get; set; } - - /// - /// Gets or sets the property value for 'ShiftId'. - /// - /// - /// The property value for 'ShiftId'. - /// - public byte ShiftId { get; set; } - - /// - /// Gets or sets the property value for 'StartDate'. - /// - /// - /// The property value for 'StartDate'. - /// - public DateOnly StartDate { get; set; } - - /// - /// Gets or sets the property value for 'EndDate'. - /// - /// - /// The property value for 'EndDate'. - /// - public DateOnly? EndDate { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Models/EmployeeDepartmentHistoryReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Models/EmployeeDepartmentHistoryReadModel.cs deleted file mode 100644 index fc28555..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Models/EmployeeDepartmentHistoryReadModel.cs +++ /dev/null @@ -1,60 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class EmployeeDepartmentHistoryReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'DepartmentId'. - /// - /// - /// The property value for 'DepartmentId'. - /// - public short DepartmentId { get; set; } - - /// - /// Gets or sets the property value for 'ShiftId'. - /// - /// - /// The property value for 'ShiftId'. - /// - public byte ShiftId { get; set; } - - /// - /// Gets or sets the property value for 'StartDate'. - /// - /// - /// The property value for 'StartDate'. - /// - public DateOnly StartDate { get; set; } - - /// - /// Gets or sets the property value for 'EndDate'. - /// - /// - /// The property value for 'EndDate'. - /// - public DateOnly? EndDate { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Models/EmployeeDepartmentHistoryUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Models/EmployeeDepartmentHistoryUpdateModel.cs deleted file mode 100644 index 04cbef2..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Models/EmployeeDepartmentHistoryUpdateModel.cs +++ /dev/null @@ -1,60 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class EmployeeDepartmentHistoryUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'DepartmentId'. - /// - /// - /// The property value for 'DepartmentId'. - /// - public short DepartmentId { get; set; } - - /// - /// Gets or sets the property value for 'ShiftId'. - /// - /// - /// The property value for 'ShiftId'. - /// - public byte ShiftId { get; set; } - - /// - /// Gets or sets the property value for 'StartDate'. - /// - /// - /// The property value for 'StartDate'. - /// - public DateOnly StartDate { get; set; } - - /// - /// Gets or sets the property value for 'EndDate'. - /// - /// - /// The property value for 'EndDate'. - /// - public DateOnly? EndDate { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Validation/EmployeeDepartmentHistoryCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Validation/EmployeeDepartmentHistoryCreateModelValidator.cs deleted file mode 100644 index 27f9854..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Validation/EmployeeDepartmentHistoryCreateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class EmployeeDepartmentHistoryCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public EmployeeDepartmentHistoryCreateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Validation/EmployeeDepartmentHistoryUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Validation/EmployeeDepartmentHistoryUpdateModelValidator.cs deleted file mode 100644 index 489106a..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Validation/EmployeeDepartmentHistoryUpdateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class EmployeeDepartmentHistoryUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public EmployeeDepartmentHistoryUpdateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Mapping/EmployeePayHistoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Mapping/EmployeePayHistoryProfile.cs deleted file mode 100644 index 39425cb..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Mapping/EmployeePayHistoryProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class EmployeePayHistoryProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public EmployeePayHistoryProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Models/EmployeePayHistoryCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Models/EmployeePayHistoryCreateModel.cs deleted file mode 100644 index fa6a360..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Models/EmployeePayHistoryCreateModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class EmployeePayHistoryCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'RateChangeDate'. - /// - /// - /// The property value for 'RateChangeDate'. - /// - public DateTime RateChangeDate { get; set; } - - /// - /// Gets or sets the property value for 'Rate'. - /// - /// - /// The property value for 'Rate'. - /// - public decimal Rate { get; set; } - - /// - /// Gets or sets the property value for 'PayFrequency'. - /// - /// - /// The property value for 'PayFrequency'. - /// - public byte PayFrequency { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Models/EmployeePayHistoryReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Models/EmployeePayHistoryReadModel.cs deleted file mode 100644 index 4bfd367..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Models/EmployeePayHistoryReadModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class EmployeePayHistoryReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'RateChangeDate'. - /// - /// - /// The property value for 'RateChangeDate'. - /// - public DateTime RateChangeDate { get; set; } - - /// - /// Gets or sets the property value for 'Rate'. - /// - /// - /// The property value for 'Rate'. - /// - public decimal Rate { get; set; } - - /// - /// Gets or sets the property value for 'PayFrequency'. - /// - /// - /// The property value for 'PayFrequency'. - /// - public byte PayFrequency { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Models/EmployeePayHistoryUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Models/EmployeePayHistoryUpdateModel.cs deleted file mode 100644 index 7d4a931..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Models/EmployeePayHistoryUpdateModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class EmployeePayHistoryUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'RateChangeDate'. - /// - /// - /// The property value for 'RateChangeDate'. - /// - public DateTime RateChangeDate { get; set; } - - /// - /// Gets or sets the property value for 'Rate'. - /// - /// - /// The property value for 'Rate'. - /// - public decimal Rate { get; set; } - - /// - /// Gets or sets the property value for 'PayFrequency'. - /// - /// - /// The property value for 'PayFrequency'. - /// - public byte PayFrequency { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Validation/EmployeePayHistoryCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Validation/EmployeePayHistoryCreateModelValidator.cs deleted file mode 100644 index 25f6433..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Validation/EmployeePayHistoryCreateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class EmployeePayHistoryCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public EmployeePayHistoryCreateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Validation/EmployeePayHistoryUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Validation/EmployeePayHistoryUpdateModelValidator.cs deleted file mode 100644 index c9f1255..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Validation/EmployeePayHistoryUpdateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class EmployeePayHistoryUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public EmployeePayHistoryUpdateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Illustration/Mapping/IllustrationProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Illustration/Mapping/IllustrationProfile.cs deleted file mode 100644 index 458a1a1..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Illustration/Mapping/IllustrationProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class IllustrationProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public IllustrationProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationCreateModel.cs deleted file mode 100644 index 2ee63f3..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationCreateModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class IllustrationCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Diagram'. - /// - /// - /// The property value for 'Diagram'. - /// - public string? Diagram { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationReadModel.cs deleted file mode 100644 index 8d9bc5f..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationReadModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class IllustrationReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Diagram'. - /// - /// - /// The property value for 'Diagram'. - /// - public string? Diagram { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationUpdateModel.cs deleted file mode 100644 index 8923264..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationUpdateModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class IllustrationUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Diagram'. - /// - /// - /// The property value for 'Diagram'. - /// - public string? Diagram { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Illustration/Validation/IllustrationCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Illustration/Validation/IllustrationCreateModelValidator.cs deleted file mode 100644 index f2de8a9..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Illustration/Validation/IllustrationCreateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class IllustrationCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public IllustrationCreateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Illustration/Validation/IllustrationUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Illustration/Validation/IllustrationUpdateModelValidator.cs deleted file mode 100644 index f5d189c..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Illustration/Validation/IllustrationUpdateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class IllustrationUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public IllustrationUpdateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Mapping/JobCandidateProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Mapping/JobCandidateProfile.cs deleted file mode 100644 index c1422b2..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Mapping/JobCandidateProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class JobCandidateProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public JobCandidateProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateCreateModel.cs deleted file mode 100644 index 85c2116..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateCreateModel.cs +++ /dev/null @@ -1,44 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class JobCandidateCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int? BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Resume'. - /// - /// - /// The property value for 'Resume'. - /// - public string? Resume { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateReadModel.cs deleted file mode 100644 index b726f1b..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateReadModel.cs +++ /dev/null @@ -1,44 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class JobCandidateReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int? BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Resume'. - /// - /// - /// The property value for 'Resume'. - /// - public string? Resume { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateUpdateModel.cs deleted file mode 100644 index 8d6b2d7..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateUpdateModel.cs +++ /dev/null @@ -1,44 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class JobCandidateUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int? BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Resume'. - /// - /// - /// The property value for 'Resume'. - /// - public string? Resume { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Validation/JobCandidateCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Validation/JobCandidateCreateModelValidator.cs deleted file mode 100644 index e65c511..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Validation/JobCandidateCreateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class JobCandidateCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public JobCandidateCreateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Validation/JobCandidateUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Validation/JobCandidateUpdateModelValidator.cs deleted file mode 100644 index 7f7038f..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Validation/JobCandidateUpdateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class JobCandidateUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public JobCandidateUpdateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Location/Mapping/LocationProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Location/Mapping/LocationProfile.cs deleted file mode 100644 index 709e9bc..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Location/Mapping/LocationProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class LocationProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public LocationProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Location/Models/LocationCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Location/Models/LocationCreateModel.cs deleted file mode 100644 index 0a855a5..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Location/Models/LocationCreateModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class LocationCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public short Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CostRate'. - /// - /// - /// The property value for 'CostRate'. - /// - public decimal CostRate { get; set; } - - /// - /// Gets or sets the property value for 'Availability'. - /// - /// - /// The property value for 'Availability'. - /// - public decimal Availability { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Location/Models/LocationReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Location/Models/LocationReadModel.cs deleted file mode 100644 index 97c6465..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Location/Models/LocationReadModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class LocationReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public short Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CostRate'. - /// - /// - /// The property value for 'CostRate'. - /// - public decimal CostRate { get; set; } - - /// - /// Gets or sets the property value for 'Availability'. - /// - /// - /// The property value for 'Availability'. - /// - public decimal Availability { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Location/Models/LocationUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Location/Models/LocationUpdateModel.cs deleted file mode 100644 index 9f8dffb..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Location/Models/LocationUpdateModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class LocationUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public short Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CostRate'. - /// - /// - /// The property value for 'CostRate'. - /// - public decimal CostRate { get; set; } - - /// - /// Gets or sets the property value for 'Availability'. - /// - /// - /// The property value for 'Availability'. - /// - public decimal Availability { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Location/Validation/LocationCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Location/Validation/LocationCreateModelValidator.cs deleted file mode 100644 index de68920..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Location/Validation/LocationCreateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class LocationCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public LocationCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Location/Validation/LocationUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Location/Validation/LocationUpdateModelValidator.cs deleted file mode 100644 index 88af7ab..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Location/Validation/LocationUpdateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class LocationUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public LocationUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Password/Mapping/PasswordProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Password/Mapping/PasswordProfile.cs deleted file mode 100644 index a8a5381..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Password/Mapping/PasswordProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class PasswordProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public PasswordProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Password/Models/PasswordCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Password/Models/PasswordCreateModel.cs deleted file mode 100644 index da7c187..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Password/Models/PasswordCreateModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class PasswordCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'PasswordHash'. - /// - /// - /// The property value for 'PasswordHash'. - /// - public string PasswordHash { get; set; } = null!; - - /// - /// Gets or sets the property value for 'PasswordSalt'. - /// - /// - /// The property value for 'PasswordSalt'. - /// - public string PasswordSalt { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Password/Models/PasswordReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Password/Models/PasswordReadModel.cs deleted file mode 100644 index e095f38..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Password/Models/PasswordReadModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class PasswordReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'PasswordHash'. - /// - /// - /// The property value for 'PasswordHash'. - /// - public string PasswordHash { get; set; } = null!; - - /// - /// Gets or sets the property value for 'PasswordSalt'. - /// - /// - /// The property value for 'PasswordSalt'. - /// - public string PasswordSalt { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Password/Models/PasswordUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Password/Models/PasswordUpdateModel.cs deleted file mode 100644 index a9973fd..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Password/Models/PasswordUpdateModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class PasswordUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'PasswordHash'. - /// - /// - /// The property value for 'PasswordHash'. - /// - public string PasswordHash { get; set; } = null!; - - /// - /// Gets or sets the property value for 'PasswordSalt'. - /// - /// - /// The property value for 'PasswordSalt'. - /// - public string PasswordSalt { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Password/Validation/PasswordCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Password/Validation/PasswordCreateModelValidator.cs deleted file mode 100644 index 68f1ba3..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Password/Validation/PasswordCreateModelValidator.cs +++ /dev/null @@ -1,27 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class PasswordCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public PasswordCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.PasswordHash).NotEmpty(); - RuleFor(p => p.PasswordHash).MaximumLength(128); - RuleFor(p => p.PasswordSalt).NotEmpty(); - RuleFor(p => p.PasswordSalt).MaximumLength(10); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Password/Validation/PasswordUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Password/Validation/PasswordUpdateModelValidator.cs deleted file mode 100644 index 572cbf2..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Password/Validation/PasswordUpdateModelValidator.cs +++ /dev/null @@ -1,27 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class PasswordUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public PasswordUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.PasswordHash).NotEmpty(); - RuleFor(p => p.PasswordHash).MaximumLength(128); - RuleFor(p => p.PasswordSalt).NotEmpty(); - RuleFor(p => p.PasswordSalt).MaximumLength(10); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Person/Mapping/PersonProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Person/Mapping/PersonProfile.cs deleted file mode 100644 index 1ffc8a8..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Person/Mapping/PersonProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class PersonProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public PersonProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Person/Models/PersonCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Person/Models/PersonCreateModel.cs deleted file mode 100644 index 62edaf4..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Person/Models/PersonCreateModel.cs +++ /dev/null @@ -1,116 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class PersonCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'PersonType'. - /// - /// - /// The property value for 'PersonType'. - /// - public string PersonType { get; set; } = null!; - - /// - /// Gets or sets the property value for 'NameStyle'. - /// - /// - /// The property value for 'NameStyle'. - /// - public bool NameStyle { get; set; } - - /// - /// Gets or sets the property value for 'Title'. - /// - /// - /// The property value for 'Title'. - /// - public string? Title { get; set; } - - /// - /// Gets or sets the property value for 'FirstName'. - /// - /// - /// The property value for 'FirstName'. - /// - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'MiddleName'. - /// - /// - /// The property value for 'MiddleName'. - /// - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value for 'LastName'. - /// - /// - /// The property value for 'LastName'. - /// - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Suffix'. - /// - /// - /// The property value for 'Suffix'. - /// - public string? Suffix { get; set; } - - /// - /// Gets or sets the property value for 'EmailPromotion'. - /// - /// - /// The property value for 'EmailPromotion'. - /// - public int EmailPromotion { get; set; } - - /// - /// Gets or sets the property value for 'AdditionalContactInfo'. - /// - /// - /// The property value for 'AdditionalContactInfo'. - /// - public string? AdditionalContactInfo { get; set; } - - /// - /// Gets or sets the property value for 'Demographics'. - /// - /// - /// The property value for 'Demographics'. - /// - public string? Demographics { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Person/Models/PersonReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Person/Models/PersonReadModel.cs deleted file mode 100644 index 1d83b13..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Person/Models/PersonReadModel.cs +++ /dev/null @@ -1,116 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class PersonReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'PersonType'. - /// - /// - /// The property value for 'PersonType'. - /// - public string PersonType { get; set; } = null!; - - /// - /// Gets or sets the property value for 'NameStyle'. - /// - /// - /// The property value for 'NameStyle'. - /// - public bool NameStyle { get; set; } - - /// - /// Gets or sets the property value for 'Title'. - /// - /// - /// The property value for 'Title'. - /// - public string? Title { get; set; } - - /// - /// Gets or sets the property value for 'FirstName'. - /// - /// - /// The property value for 'FirstName'. - /// - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'MiddleName'. - /// - /// - /// The property value for 'MiddleName'. - /// - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value for 'LastName'. - /// - /// - /// The property value for 'LastName'. - /// - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Suffix'. - /// - /// - /// The property value for 'Suffix'. - /// - public string? Suffix { get; set; } - - /// - /// Gets or sets the property value for 'EmailPromotion'. - /// - /// - /// The property value for 'EmailPromotion'. - /// - public int EmailPromotion { get; set; } - - /// - /// Gets or sets the property value for 'AdditionalContactInfo'. - /// - /// - /// The property value for 'AdditionalContactInfo'. - /// - public string? AdditionalContactInfo { get; set; } - - /// - /// Gets or sets the property value for 'Demographics'. - /// - /// - /// The property value for 'Demographics'. - /// - public string? Demographics { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Person/Models/PersonUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Person/Models/PersonUpdateModel.cs deleted file mode 100644 index 8444ec8..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Person/Models/PersonUpdateModel.cs +++ /dev/null @@ -1,116 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class PersonUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'PersonType'. - /// - /// - /// The property value for 'PersonType'. - /// - public string PersonType { get; set; } = null!; - - /// - /// Gets or sets the property value for 'NameStyle'. - /// - /// - /// The property value for 'NameStyle'. - /// - public bool NameStyle { get; set; } - - /// - /// Gets or sets the property value for 'Title'. - /// - /// - /// The property value for 'Title'. - /// - public string? Title { get; set; } - - /// - /// Gets or sets the property value for 'FirstName'. - /// - /// - /// The property value for 'FirstName'. - /// - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'MiddleName'. - /// - /// - /// The property value for 'MiddleName'. - /// - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value for 'LastName'. - /// - /// - /// The property value for 'LastName'. - /// - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Suffix'. - /// - /// - /// The property value for 'Suffix'. - /// - public string? Suffix { get; set; } - - /// - /// Gets or sets the property value for 'EmailPromotion'. - /// - /// - /// The property value for 'EmailPromotion'. - /// - public int EmailPromotion { get; set; } - - /// - /// Gets or sets the property value for 'AdditionalContactInfo'. - /// - /// - /// The property value for 'AdditionalContactInfo'. - /// - public string? AdditionalContactInfo { get; set; } - - /// - /// Gets or sets the property value for 'Demographics'. - /// - /// - /// The property value for 'Demographics'. - /// - public string? Demographics { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Person/Validation/PersonCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Person/Validation/PersonCreateModelValidator.cs deleted file mode 100644 index d593f7e..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Person/Validation/PersonCreateModelValidator.cs +++ /dev/null @@ -1,32 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class PersonCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public PersonCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.PersonType).NotEmpty(); - RuleFor(p => p.PersonType).MaximumLength(2); - RuleFor(p => p.Title).MaximumLength(8); - RuleFor(p => p.FirstName).NotEmpty(); - RuleFor(p => p.FirstName).MaximumLength(50); - RuleFor(p => p.MiddleName).MaximumLength(50); - RuleFor(p => p.LastName).NotEmpty(); - RuleFor(p => p.LastName).MaximumLength(50); - RuleFor(p => p.Suffix).MaximumLength(10); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Person/Validation/PersonUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Person/Validation/PersonUpdateModelValidator.cs deleted file mode 100644 index bfa8de4..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Person/Validation/PersonUpdateModelValidator.cs +++ /dev/null @@ -1,32 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class PersonUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public PersonUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.PersonType).NotEmpty(); - RuleFor(p => p.PersonType).MaximumLength(2); - RuleFor(p => p.Title).MaximumLength(8); - RuleFor(p => p.FirstName).NotEmpty(); - RuleFor(p => p.FirstName).MaximumLength(50); - RuleFor(p => p.MiddleName).MaximumLength(50); - RuleFor(p => p.LastName).NotEmpty(); - RuleFor(p => p.LastName).MaximumLength(50); - RuleFor(p => p.Suffix).MaximumLength(10); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Mapping/PersonCreditCardProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Mapping/PersonCreditCardProfile.cs deleted file mode 100644 index eff7679..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Mapping/PersonCreditCardProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class PersonCreditCardProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public PersonCreditCardProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardCreateModel.cs deleted file mode 100644 index 68d5d5d..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardCreateModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class PersonCreditCardCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'CreditCardId'. - /// - /// - /// The property value for 'CreditCardId'. - /// - public int CreditCardId { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardReadModel.cs deleted file mode 100644 index 17e4c64..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardReadModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class PersonCreditCardReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'CreditCardId'. - /// - /// - /// The property value for 'CreditCardId'. - /// - public int CreditCardId { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardUpdateModel.cs deleted file mode 100644 index 3589be5..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardUpdateModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class PersonCreditCardUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'CreditCardId'. - /// - /// - /// The property value for 'CreditCardId'. - /// - public int CreditCardId { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Validation/PersonCreditCardCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Validation/PersonCreditCardCreateModelValidator.cs deleted file mode 100644 index f2fec0c..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Validation/PersonCreditCardCreateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class PersonCreditCardCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public PersonCreditCardCreateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Validation/PersonCreditCardUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Validation/PersonCreditCardUpdateModelValidator.cs deleted file mode 100644 index 0b71aad..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Validation/PersonCreditCardUpdateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class PersonCreditCardUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public PersonCreditCardUpdateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Mapping/PersonPhoneProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Mapping/PersonPhoneProfile.cs deleted file mode 100644 index 6e9c38b..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Mapping/PersonPhoneProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class PersonPhoneProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public PersonPhoneProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneCreateModel.cs deleted file mode 100644 index 863c70e..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneCreateModel.cs +++ /dev/null @@ -1,44 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class PersonPhoneCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'PhoneNumber'. - /// - /// - /// The property value for 'PhoneNumber'. - /// - public string PhoneNumber { get; set; } = null!; - - /// - /// Gets or sets the property value for 'PhoneNumberTypeId'. - /// - /// - /// The property value for 'PhoneNumberTypeId'. - /// - public int PhoneNumberTypeId { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneReadModel.cs deleted file mode 100644 index 31673eb..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneReadModel.cs +++ /dev/null @@ -1,44 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class PersonPhoneReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'PhoneNumber'. - /// - /// - /// The property value for 'PhoneNumber'. - /// - public string PhoneNumber { get; set; } = null!; - - /// - /// Gets or sets the property value for 'PhoneNumberTypeId'. - /// - /// - /// The property value for 'PhoneNumberTypeId'. - /// - public int PhoneNumberTypeId { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneUpdateModel.cs deleted file mode 100644 index 81e30c7..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneUpdateModel.cs +++ /dev/null @@ -1,44 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class PersonPhoneUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'PhoneNumber'. - /// - /// - /// The property value for 'PhoneNumber'. - /// - public string PhoneNumber { get; set; } = null!; - - /// - /// Gets or sets the property value for 'PhoneNumberTypeId'. - /// - /// - /// The property value for 'PhoneNumberTypeId'. - /// - public int PhoneNumberTypeId { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Validation/PersonPhoneCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Validation/PersonPhoneCreateModelValidator.cs deleted file mode 100644 index a3f779c..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Validation/PersonPhoneCreateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class PersonPhoneCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public PersonPhoneCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.PhoneNumber).NotEmpty(); - RuleFor(p => p.PhoneNumber).MaximumLength(25); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Validation/PersonPhoneUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Validation/PersonPhoneUpdateModelValidator.cs deleted file mode 100644 index 990599a..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Validation/PersonPhoneUpdateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class PersonPhoneUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public PersonPhoneUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.PhoneNumber).NotEmpty(); - RuleFor(p => p.PhoneNumber).MaximumLength(25); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Mapping/PhoneNumberTypeProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Mapping/PhoneNumberTypeProfile.cs deleted file mode 100644 index 1dc300f..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Mapping/PhoneNumberTypeProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class PhoneNumberTypeProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public PhoneNumberTypeProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeCreateModel.cs deleted file mode 100644 index 8fb4b08..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeCreateModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class PhoneNumberTypeCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeReadModel.cs deleted file mode 100644 index 5c736ee..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeReadModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class PhoneNumberTypeReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeUpdateModel.cs deleted file mode 100644 index e1adced..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeUpdateModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class PhoneNumberTypeUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Validation/PhoneNumberTypeCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Validation/PhoneNumberTypeCreateModelValidator.cs deleted file mode 100644 index 5816cd0..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Validation/PhoneNumberTypeCreateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class PhoneNumberTypeCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public PhoneNumberTypeCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Validation/PhoneNumberTypeUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Validation/PhoneNumberTypeUpdateModelValidator.cs deleted file mode 100644 index 7684a16..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Validation/PhoneNumberTypeUpdateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class PhoneNumberTypeUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public PhoneNumberTypeUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Product/Mapping/ProductProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Product/Mapping/ProductProfile.cs deleted file mode 100644 index 8c13472..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Product/Mapping/ProductProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class ProductProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public ProductProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Product/Models/ProductCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Product/Models/ProductCreateModel.cs deleted file mode 100644 index f8ffbf8..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Product/Models/ProductCreateModel.cs +++ /dev/null @@ -1,212 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ProductNumber'. - /// - /// - /// The property value for 'ProductNumber'. - /// - public string ProductNumber { get; set; } = null!; - - /// - /// Gets or sets the property value for 'MakeFlag'. - /// - /// - /// The property value for 'MakeFlag'. - /// - public bool MakeFlag { get; set; } - - /// - /// Gets or sets the property value for 'FinishedGoodsFlag'. - /// - /// - /// The property value for 'FinishedGoodsFlag'. - /// - public bool FinishedGoodsFlag { get; set; } - - /// - /// Gets or sets the property value for 'Color'. - /// - /// - /// The property value for 'Color'. - /// - public string? Color { get; set; } - - /// - /// Gets or sets the property value for 'SafetyStockLevel'. - /// - /// - /// The property value for 'SafetyStockLevel'. - /// - public short SafetyStockLevel { get; set; } - - /// - /// Gets or sets the property value for 'ReorderPoint'. - /// - /// - /// The property value for 'ReorderPoint'. - /// - public short ReorderPoint { get; set; } - - /// - /// Gets or sets the property value for 'StandardCost'. - /// - /// - /// The property value for 'StandardCost'. - /// - public decimal StandardCost { get; set; } - - /// - /// Gets or sets the property value for 'ListPrice'. - /// - /// - /// The property value for 'ListPrice'. - /// - public decimal ListPrice { get; set; } - - /// - /// Gets or sets the property value for 'Size'. - /// - /// - /// The property value for 'Size'. - /// - public string? Size { get; set; } - - /// - /// Gets or sets the property value for 'SizeUnitMeasureCode'. - /// - /// - /// The property value for 'SizeUnitMeasureCode'. - /// - public string? SizeUnitMeasureCode { get; set; } - - /// - /// Gets or sets the property value for 'WeightUnitMeasureCode'. - /// - /// - /// The property value for 'WeightUnitMeasureCode'. - /// - public string? WeightUnitMeasureCode { get; set; } - - /// - /// Gets or sets the property value for 'Weight'. - /// - /// - /// The property value for 'Weight'. - /// - public decimal? Weight { get; set; } - - /// - /// Gets or sets the property value for 'DaysToManufacture'. - /// - /// - /// The property value for 'DaysToManufacture'. - /// - public int DaysToManufacture { get; set; } - - /// - /// Gets or sets the property value for 'ProductLine'. - /// - /// - /// The property value for 'ProductLine'. - /// - public string? ProductLine { get; set; } - - /// - /// Gets or sets the property value for 'Class'. - /// - /// - /// The property value for 'Class'. - /// - public string? Class { get; set; } - - /// - /// Gets or sets the property value for 'Style'. - /// - /// - /// The property value for 'Style'. - /// - public string? Style { get; set; } - - /// - /// Gets or sets the property value for 'ProductSubcategoryId'. - /// - /// - /// The property value for 'ProductSubcategoryId'. - /// - public int? ProductSubcategoryId { get; set; } - - /// - /// Gets or sets the property value for 'ProductModelId'. - /// - /// - /// The property value for 'ProductModelId'. - /// - public int? ProductModelId { get; set; } - - /// - /// Gets or sets the property value for 'SellStartDate'. - /// - /// - /// The property value for 'SellStartDate'. - /// - public DateTime SellStartDate { get; set; } - - /// - /// Gets or sets the property value for 'SellEndDate'. - /// - /// - /// The property value for 'SellEndDate'. - /// - public DateTime? SellEndDate { get; set; } - - /// - /// Gets or sets the property value for 'DiscontinuedDate'. - /// - /// - /// The property value for 'DiscontinuedDate'. - /// - public DateTime? DiscontinuedDate { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Product/Models/ProductReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Product/Models/ProductReadModel.cs deleted file mode 100644 index c32191a..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Product/Models/ProductReadModel.cs +++ /dev/null @@ -1,212 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ProductNumber'. - /// - /// - /// The property value for 'ProductNumber'. - /// - public string ProductNumber { get; set; } = null!; - - /// - /// Gets or sets the property value for 'MakeFlag'. - /// - /// - /// The property value for 'MakeFlag'. - /// - public bool MakeFlag { get; set; } - - /// - /// Gets or sets the property value for 'FinishedGoodsFlag'. - /// - /// - /// The property value for 'FinishedGoodsFlag'. - /// - public bool FinishedGoodsFlag { get; set; } - - /// - /// Gets or sets the property value for 'Color'. - /// - /// - /// The property value for 'Color'. - /// - public string? Color { get; set; } - - /// - /// Gets or sets the property value for 'SafetyStockLevel'. - /// - /// - /// The property value for 'SafetyStockLevel'. - /// - public short SafetyStockLevel { get; set; } - - /// - /// Gets or sets the property value for 'ReorderPoint'. - /// - /// - /// The property value for 'ReorderPoint'. - /// - public short ReorderPoint { get; set; } - - /// - /// Gets or sets the property value for 'StandardCost'. - /// - /// - /// The property value for 'StandardCost'. - /// - public decimal StandardCost { get; set; } - - /// - /// Gets or sets the property value for 'ListPrice'. - /// - /// - /// The property value for 'ListPrice'. - /// - public decimal ListPrice { get; set; } - - /// - /// Gets or sets the property value for 'Size'. - /// - /// - /// The property value for 'Size'. - /// - public string? Size { get; set; } - - /// - /// Gets or sets the property value for 'SizeUnitMeasureCode'. - /// - /// - /// The property value for 'SizeUnitMeasureCode'. - /// - public string? SizeUnitMeasureCode { get; set; } - - /// - /// Gets or sets the property value for 'WeightUnitMeasureCode'. - /// - /// - /// The property value for 'WeightUnitMeasureCode'. - /// - public string? WeightUnitMeasureCode { get; set; } - - /// - /// Gets or sets the property value for 'Weight'. - /// - /// - /// The property value for 'Weight'. - /// - public decimal? Weight { get; set; } - - /// - /// Gets or sets the property value for 'DaysToManufacture'. - /// - /// - /// The property value for 'DaysToManufacture'. - /// - public int DaysToManufacture { get; set; } - - /// - /// Gets or sets the property value for 'ProductLine'. - /// - /// - /// The property value for 'ProductLine'. - /// - public string? ProductLine { get; set; } - - /// - /// Gets or sets the property value for 'Class'. - /// - /// - /// The property value for 'Class'. - /// - public string? Class { get; set; } - - /// - /// Gets or sets the property value for 'Style'. - /// - /// - /// The property value for 'Style'. - /// - public string? Style { get; set; } - - /// - /// Gets or sets the property value for 'ProductSubcategoryId'. - /// - /// - /// The property value for 'ProductSubcategoryId'. - /// - public int? ProductSubcategoryId { get; set; } - - /// - /// Gets or sets the property value for 'ProductModelId'. - /// - /// - /// The property value for 'ProductModelId'. - /// - public int? ProductModelId { get; set; } - - /// - /// Gets or sets the property value for 'SellStartDate'. - /// - /// - /// The property value for 'SellStartDate'. - /// - public DateTime SellStartDate { get; set; } - - /// - /// Gets or sets the property value for 'SellEndDate'. - /// - /// - /// The property value for 'SellEndDate'. - /// - public DateTime? SellEndDate { get; set; } - - /// - /// Gets or sets the property value for 'DiscontinuedDate'. - /// - /// - /// The property value for 'DiscontinuedDate'. - /// - public DateTime? DiscontinuedDate { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Product/Models/ProductUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Product/Models/ProductUpdateModel.cs deleted file mode 100644 index 996af39..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Product/Models/ProductUpdateModel.cs +++ /dev/null @@ -1,212 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ProductNumber'. - /// - /// - /// The property value for 'ProductNumber'. - /// - public string ProductNumber { get; set; } = null!; - - /// - /// Gets or sets the property value for 'MakeFlag'. - /// - /// - /// The property value for 'MakeFlag'. - /// - public bool MakeFlag { get; set; } - - /// - /// Gets or sets the property value for 'FinishedGoodsFlag'. - /// - /// - /// The property value for 'FinishedGoodsFlag'. - /// - public bool FinishedGoodsFlag { get; set; } - - /// - /// Gets or sets the property value for 'Color'. - /// - /// - /// The property value for 'Color'. - /// - public string? Color { get; set; } - - /// - /// Gets or sets the property value for 'SafetyStockLevel'. - /// - /// - /// The property value for 'SafetyStockLevel'. - /// - public short SafetyStockLevel { get; set; } - - /// - /// Gets or sets the property value for 'ReorderPoint'. - /// - /// - /// The property value for 'ReorderPoint'. - /// - public short ReorderPoint { get; set; } - - /// - /// Gets or sets the property value for 'StandardCost'. - /// - /// - /// The property value for 'StandardCost'. - /// - public decimal StandardCost { get; set; } - - /// - /// Gets or sets the property value for 'ListPrice'. - /// - /// - /// The property value for 'ListPrice'. - /// - public decimal ListPrice { get; set; } - - /// - /// Gets or sets the property value for 'Size'. - /// - /// - /// The property value for 'Size'. - /// - public string? Size { get; set; } - - /// - /// Gets or sets the property value for 'SizeUnitMeasureCode'. - /// - /// - /// The property value for 'SizeUnitMeasureCode'. - /// - public string? SizeUnitMeasureCode { get; set; } - - /// - /// Gets or sets the property value for 'WeightUnitMeasureCode'. - /// - /// - /// The property value for 'WeightUnitMeasureCode'. - /// - public string? WeightUnitMeasureCode { get; set; } - - /// - /// Gets or sets the property value for 'Weight'. - /// - /// - /// The property value for 'Weight'. - /// - public decimal? Weight { get; set; } - - /// - /// Gets or sets the property value for 'DaysToManufacture'. - /// - /// - /// The property value for 'DaysToManufacture'. - /// - public int DaysToManufacture { get; set; } - - /// - /// Gets or sets the property value for 'ProductLine'. - /// - /// - /// The property value for 'ProductLine'. - /// - public string? ProductLine { get; set; } - - /// - /// Gets or sets the property value for 'Class'. - /// - /// - /// The property value for 'Class'. - /// - public string? Class { get; set; } - - /// - /// Gets or sets the property value for 'Style'. - /// - /// - /// The property value for 'Style'. - /// - public string? Style { get; set; } - - /// - /// Gets or sets the property value for 'ProductSubcategoryId'. - /// - /// - /// The property value for 'ProductSubcategoryId'. - /// - public int? ProductSubcategoryId { get; set; } - - /// - /// Gets or sets the property value for 'ProductModelId'. - /// - /// - /// The property value for 'ProductModelId'. - /// - public int? ProductModelId { get; set; } - - /// - /// Gets or sets the property value for 'SellStartDate'. - /// - /// - /// The property value for 'SellStartDate'. - /// - public DateTime SellStartDate { get; set; } - - /// - /// Gets or sets the property value for 'SellEndDate'. - /// - /// - /// The property value for 'SellEndDate'. - /// - public DateTime? SellEndDate { get; set; } - - /// - /// Gets or sets the property value for 'DiscontinuedDate'. - /// - /// - /// The property value for 'DiscontinuedDate'. - /// - public DateTime? DiscontinuedDate { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Product/Validation/ProductCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Product/Validation/ProductCreateModelValidator.cs deleted file mode 100644 index c6cc844..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Product/Validation/ProductCreateModelValidator.cs +++ /dev/null @@ -1,34 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ProductCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ProductCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - RuleFor(p => p.ProductNumber).NotEmpty(); - RuleFor(p => p.ProductNumber).MaximumLength(25); - RuleFor(p => p.Color).MaximumLength(15); - RuleFor(p => p.Size).MaximumLength(5); - RuleFor(p => p.SizeUnitMeasureCode).MaximumLength(3); - RuleFor(p => p.WeightUnitMeasureCode).MaximumLength(3); - RuleFor(p => p.ProductLine).MaximumLength(2); - RuleFor(p => p.Class).MaximumLength(2); - RuleFor(p => p.Style).MaximumLength(2); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Product/Validation/ProductUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Product/Validation/ProductUpdateModelValidator.cs deleted file mode 100644 index 66478fb..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Product/Validation/ProductUpdateModelValidator.cs +++ /dev/null @@ -1,34 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ProductUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ProductUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - RuleFor(p => p.ProductNumber).NotEmpty(); - RuleFor(p => p.ProductNumber).MaximumLength(25); - RuleFor(p => p.Color).MaximumLength(15); - RuleFor(p => p.Size).MaximumLength(5); - RuleFor(p => p.SizeUnitMeasureCode).MaximumLength(3); - RuleFor(p => p.WeightUnitMeasureCode).MaximumLength(3); - RuleFor(p => p.ProductLine).MaximumLength(2); - RuleFor(p => p.Class).MaximumLength(2); - RuleFor(p => p.Style).MaximumLength(2); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Mapping/ProductCategoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Mapping/ProductCategoryProfile.cs deleted file mode 100644 index 1453433..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Mapping/ProductCategoryProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class ProductCategoryProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public ProductCategoryProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryCreateModel.cs deleted file mode 100644 index 59a294d..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryCreateModel.cs +++ /dev/null @@ -1,44 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductCategoryCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryReadModel.cs deleted file mode 100644 index edfdbab..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryReadModel.cs +++ /dev/null @@ -1,44 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductCategoryReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryUpdateModel.cs deleted file mode 100644 index 77043ec..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryUpdateModel.cs +++ /dev/null @@ -1,44 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductCategoryUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Validation/ProductCategoryCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Validation/ProductCategoryCreateModelValidator.cs deleted file mode 100644 index ca9bc3f..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Validation/ProductCategoryCreateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ProductCategoryCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ProductCategoryCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Validation/ProductCategoryUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Validation/ProductCategoryUpdateModelValidator.cs deleted file mode 100644 index e080b27..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Validation/ProductCategoryUpdateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ProductCategoryUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ProductCategoryUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Mapping/ProductCostHistoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Mapping/ProductCostHistoryProfile.cs deleted file mode 100644 index a83cbf2..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Mapping/ProductCostHistoryProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class ProductCostHistoryProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public ProductCostHistoryProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Models/ProductCostHistoryCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Models/ProductCostHistoryCreateModel.cs deleted file mode 100644 index c709944..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Models/ProductCostHistoryCreateModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductCostHistoryCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'StartDate'. - /// - /// - /// The property value for 'StartDate'. - /// - public DateTime StartDate { get; set; } - - /// - /// Gets or sets the property value for 'EndDate'. - /// - /// - /// The property value for 'EndDate'. - /// - public DateTime? EndDate { get; set; } - - /// - /// Gets or sets the property value for 'StandardCost'. - /// - /// - /// The property value for 'StandardCost'. - /// - public decimal StandardCost { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Models/ProductCostHistoryReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Models/ProductCostHistoryReadModel.cs deleted file mode 100644 index 14f8902..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Models/ProductCostHistoryReadModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductCostHistoryReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'StartDate'. - /// - /// - /// The property value for 'StartDate'. - /// - public DateTime StartDate { get; set; } - - /// - /// Gets or sets the property value for 'EndDate'. - /// - /// - /// The property value for 'EndDate'. - /// - public DateTime? EndDate { get; set; } - - /// - /// Gets or sets the property value for 'StandardCost'. - /// - /// - /// The property value for 'StandardCost'. - /// - public decimal StandardCost { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Models/ProductCostHistoryUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Models/ProductCostHistoryUpdateModel.cs deleted file mode 100644 index 56b1239..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Models/ProductCostHistoryUpdateModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductCostHistoryUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'StartDate'. - /// - /// - /// The property value for 'StartDate'. - /// - public DateTime StartDate { get; set; } - - /// - /// Gets or sets the property value for 'EndDate'. - /// - /// - /// The property value for 'EndDate'. - /// - public DateTime? EndDate { get; set; } - - /// - /// Gets or sets the property value for 'StandardCost'. - /// - /// - /// The property value for 'StandardCost'. - /// - public decimal StandardCost { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Validation/ProductCostHistoryCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Validation/ProductCostHistoryCreateModelValidator.cs deleted file mode 100644 index 1c0cf46..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Validation/ProductCostHistoryCreateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ProductCostHistoryCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ProductCostHistoryCreateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Validation/ProductCostHistoryUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Validation/ProductCostHistoryUpdateModelValidator.cs deleted file mode 100644 index 368c4a3..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Validation/ProductCostHistoryUpdateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ProductCostHistoryUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ProductCostHistoryUpdateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Mapping/ProductDescriptionProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Mapping/ProductDescriptionProfile.cs deleted file mode 100644 index 918bfd3..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Mapping/ProductDescriptionProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class ProductDescriptionProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public ProductDescriptionProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionCreateModel.cs deleted file mode 100644 index 1f602e8..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionCreateModel.cs +++ /dev/null @@ -1,44 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductDescriptionCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Description'. - /// - /// - /// The property value for 'Description'. - /// - public string Description { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionReadModel.cs deleted file mode 100644 index 64753ab..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionReadModel.cs +++ /dev/null @@ -1,44 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductDescriptionReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Description'. - /// - /// - /// The property value for 'Description'. - /// - public string Description { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionUpdateModel.cs deleted file mode 100644 index 8f86ee8..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionUpdateModel.cs +++ /dev/null @@ -1,44 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductDescriptionUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Description'. - /// - /// - /// The property value for 'Description'. - /// - public string Description { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Validation/ProductDescriptionCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Validation/ProductDescriptionCreateModelValidator.cs deleted file mode 100644 index 3d5efb9..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Validation/ProductDescriptionCreateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ProductDescriptionCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ProductDescriptionCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Description).NotEmpty(); - RuleFor(p => p.Description).MaximumLength(400); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Validation/ProductDescriptionUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Validation/ProductDescriptionUpdateModelValidator.cs deleted file mode 100644 index 2056b8d..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Validation/ProductDescriptionUpdateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ProductDescriptionUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ProductDescriptionUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Description).NotEmpty(); - RuleFor(p => p.Description).MaximumLength(400); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Mapping/ProductDocumentProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Mapping/ProductDocumentProfile.cs deleted file mode 100644 index 516c143..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Mapping/ProductDocumentProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class ProductDocumentProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public ProductDocumentProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentCreateModel.cs deleted file mode 100644 index 8d09f2b..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentCreateModel.cs +++ /dev/null @@ -1,28 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductDocumentCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentReadModel.cs deleted file mode 100644 index 1e3e1a4..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentReadModel.cs +++ /dev/null @@ -1,28 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductDocumentReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentUpdateModel.cs deleted file mode 100644 index 7f34b4a..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentUpdateModel.cs +++ /dev/null @@ -1,28 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductDocumentUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Validation/ProductDocumentCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Validation/ProductDocumentCreateModelValidator.cs deleted file mode 100644 index 0aa999b..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Validation/ProductDocumentCreateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ProductDocumentCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ProductDocumentCreateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Validation/ProductDocumentUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Validation/ProductDocumentUpdateModelValidator.cs deleted file mode 100644 index c8b682e..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Validation/ProductDocumentUpdateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ProductDocumentUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ProductDocumentUpdateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Mapping/ProductInventoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Mapping/ProductInventoryProfile.cs deleted file mode 100644 index b86b09b..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Mapping/ProductInventoryProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class ProductInventoryProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public ProductInventoryProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryCreateModel.cs deleted file mode 100644 index bd742f6..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryCreateModel.cs +++ /dev/null @@ -1,68 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductInventoryCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'LocationId'. - /// - /// - /// The property value for 'LocationId'. - /// - public short LocationId { get; set; } - - /// - /// Gets or sets the property value for 'Shelf'. - /// - /// - /// The property value for 'Shelf'. - /// - public string Shelf { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Bin'. - /// - /// - /// The property value for 'Bin'. - /// - public byte Bin { get; set; } - - /// - /// Gets or sets the property value for 'Quantity'. - /// - /// - /// The property value for 'Quantity'. - /// - public short Quantity { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryReadModel.cs deleted file mode 100644 index 2a18b34..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryReadModel.cs +++ /dev/null @@ -1,68 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductInventoryReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'LocationId'. - /// - /// - /// The property value for 'LocationId'. - /// - public short LocationId { get; set; } - - /// - /// Gets or sets the property value for 'Shelf'. - /// - /// - /// The property value for 'Shelf'. - /// - public string Shelf { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Bin'. - /// - /// - /// The property value for 'Bin'. - /// - public byte Bin { get; set; } - - /// - /// Gets or sets the property value for 'Quantity'. - /// - /// - /// The property value for 'Quantity'. - /// - public short Quantity { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryUpdateModel.cs deleted file mode 100644 index c86e5dc..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryUpdateModel.cs +++ /dev/null @@ -1,68 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductInventoryUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'LocationId'. - /// - /// - /// The property value for 'LocationId'. - /// - public short LocationId { get; set; } - - /// - /// Gets or sets the property value for 'Shelf'. - /// - /// - /// The property value for 'Shelf'. - /// - public string Shelf { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Bin'. - /// - /// - /// The property value for 'Bin'. - /// - public byte Bin { get; set; } - - /// - /// Gets or sets the property value for 'Quantity'. - /// - /// - /// The property value for 'Quantity'. - /// - public short Quantity { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Validation/ProductInventoryCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Validation/ProductInventoryCreateModelValidator.cs deleted file mode 100644 index bf51b27..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Validation/ProductInventoryCreateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ProductInventoryCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ProductInventoryCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Shelf).NotEmpty(); - RuleFor(p => p.Shelf).MaximumLength(10); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Validation/ProductInventoryUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Validation/ProductInventoryUpdateModelValidator.cs deleted file mode 100644 index 1bc026b..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Validation/ProductInventoryUpdateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ProductInventoryUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ProductInventoryUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Shelf).NotEmpty(); - RuleFor(p => p.Shelf).MaximumLength(10); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Mapping/ProductListPriceHistoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Mapping/ProductListPriceHistoryProfile.cs deleted file mode 100644 index 041daf4..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Mapping/ProductListPriceHistoryProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class ProductListPriceHistoryProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public ProductListPriceHistoryProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Models/ProductListPriceHistoryCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Models/ProductListPriceHistoryCreateModel.cs deleted file mode 100644 index 7c07143..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Models/ProductListPriceHistoryCreateModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductListPriceHistoryCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'StartDate'. - /// - /// - /// The property value for 'StartDate'. - /// - public DateTime StartDate { get; set; } - - /// - /// Gets or sets the property value for 'EndDate'. - /// - /// - /// The property value for 'EndDate'. - /// - public DateTime? EndDate { get; set; } - - /// - /// Gets or sets the property value for 'ListPrice'. - /// - /// - /// The property value for 'ListPrice'. - /// - public decimal ListPrice { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Models/ProductListPriceHistoryReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Models/ProductListPriceHistoryReadModel.cs deleted file mode 100644 index a3888c7..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Models/ProductListPriceHistoryReadModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductListPriceHistoryReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'StartDate'. - /// - /// - /// The property value for 'StartDate'. - /// - public DateTime StartDate { get; set; } - - /// - /// Gets or sets the property value for 'EndDate'. - /// - /// - /// The property value for 'EndDate'. - /// - public DateTime? EndDate { get; set; } - - /// - /// Gets or sets the property value for 'ListPrice'. - /// - /// - /// The property value for 'ListPrice'. - /// - public decimal ListPrice { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Models/ProductListPriceHistoryUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Models/ProductListPriceHistoryUpdateModel.cs deleted file mode 100644 index f4b49ba..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Models/ProductListPriceHistoryUpdateModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductListPriceHistoryUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'StartDate'. - /// - /// - /// The property value for 'StartDate'. - /// - public DateTime StartDate { get; set; } - - /// - /// Gets or sets the property value for 'EndDate'. - /// - /// - /// The property value for 'EndDate'. - /// - public DateTime? EndDate { get; set; } - - /// - /// Gets or sets the property value for 'ListPrice'. - /// - /// - /// The property value for 'ListPrice'. - /// - public decimal ListPrice { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Validation/ProductListPriceHistoryCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Validation/ProductListPriceHistoryCreateModelValidator.cs deleted file mode 100644 index 7c266e9..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Validation/ProductListPriceHistoryCreateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ProductListPriceHistoryCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ProductListPriceHistoryCreateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Validation/ProductListPriceHistoryUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Validation/ProductListPriceHistoryUpdateModelValidator.cs deleted file mode 100644 index 8625f0e..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Validation/ProductListPriceHistoryUpdateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ProductListPriceHistoryUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ProductListPriceHistoryUpdateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Mapping/ProductModelProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Mapping/ProductModelProfile.cs deleted file mode 100644 index 3a911cf..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Mapping/ProductModelProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class ProductModelProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public ProductModelProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Models/ProductModelCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Models/ProductModelCreateModel.cs deleted file mode 100644 index 0df45ce..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Models/ProductModelCreateModel.cs +++ /dev/null @@ -1,60 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductModelCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CatalogDescription'. - /// - /// - /// The property value for 'CatalogDescription'. - /// - public string? CatalogDescription { get; set; } - - /// - /// Gets or sets the property value for 'Instructions'. - /// - /// - /// The property value for 'Instructions'. - /// - public string? Instructions { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Models/ProductModelReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Models/ProductModelReadModel.cs deleted file mode 100644 index 3d00573..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Models/ProductModelReadModel.cs +++ /dev/null @@ -1,60 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductModelReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CatalogDescription'. - /// - /// - /// The property value for 'CatalogDescription'. - /// - public string? CatalogDescription { get; set; } - - /// - /// Gets or sets the property value for 'Instructions'. - /// - /// - /// The property value for 'Instructions'. - /// - public string? Instructions { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Models/ProductModelUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Models/ProductModelUpdateModel.cs deleted file mode 100644 index 1f75b4a..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Models/ProductModelUpdateModel.cs +++ /dev/null @@ -1,60 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductModelUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CatalogDescription'. - /// - /// - /// The property value for 'CatalogDescription'. - /// - public string? CatalogDescription { get; set; } - - /// - /// Gets or sets the property value for 'Instructions'. - /// - /// - /// The property value for 'Instructions'. - /// - public string? Instructions { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Validation/ProductModelCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Validation/ProductModelCreateModelValidator.cs deleted file mode 100644 index 1ab979b..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Validation/ProductModelCreateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ProductModelCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ProductModelCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Validation/ProductModelUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Validation/ProductModelUpdateModelValidator.cs deleted file mode 100644 index f3b103e..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Validation/ProductModelUpdateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ProductModelUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ProductModelUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Mapping/ProductModelIllustrationProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Mapping/ProductModelIllustrationProfile.cs deleted file mode 100644 index c52ebd4..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Mapping/ProductModelIllustrationProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class ProductModelIllustrationProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public ProductModelIllustrationProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationCreateModel.cs deleted file mode 100644 index 081bb9e..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationCreateModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductModelIllustrationCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'ProductModelId'. - /// - /// - /// The property value for 'ProductModelId'. - /// - public int ProductModelId { get; set; } - - /// - /// Gets or sets the property value for 'IllustrationId'. - /// - /// - /// The property value for 'IllustrationId'. - /// - public int IllustrationId { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationReadModel.cs deleted file mode 100644 index 665f56f..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationReadModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductModelIllustrationReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'ProductModelId'. - /// - /// - /// The property value for 'ProductModelId'. - /// - public int ProductModelId { get; set; } - - /// - /// Gets or sets the property value for 'IllustrationId'. - /// - /// - /// The property value for 'IllustrationId'. - /// - public int IllustrationId { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationUpdateModel.cs deleted file mode 100644 index 0af8258..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationUpdateModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductModelIllustrationUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'ProductModelId'. - /// - /// - /// The property value for 'ProductModelId'. - /// - public int ProductModelId { get; set; } - - /// - /// Gets or sets the property value for 'IllustrationId'. - /// - /// - /// The property value for 'IllustrationId'. - /// - public int IllustrationId { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Validation/ProductModelIllustrationCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Validation/ProductModelIllustrationCreateModelValidator.cs deleted file mode 100644 index 9f77b2c..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Validation/ProductModelIllustrationCreateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ProductModelIllustrationCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ProductModelIllustrationCreateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Validation/ProductModelIllustrationUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Validation/ProductModelIllustrationUpdateModelValidator.cs deleted file mode 100644 index f27e1ce..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Validation/ProductModelIllustrationUpdateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ProductModelIllustrationUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ProductModelIllustrationUpdateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Mapping/ProductModelProductDescriptionCultureProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Mapping/ProductModelProductDescriptionCultureProfile.cs deleted file mode 100644 index 4586da1..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Mapping/ProductModelProductDescriptionCultureProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class ProductModelProductDescriptionCultureProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public ProductModelProductDescriptionCultureProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureCreateModel.cs deleted file mode 100644 index 3c2d01f..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureCreateModel.cs +++ /dev/null @@ -1,44 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductModelProductDescriptionCultureCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'ProductModelId'. - /// - /// - /// The property value for 'ProductModelId'. - /// - public int ProductModelId { get; set; } - - /// - /// Gets or sets the property value for 'ProductDescriptionId'. - /// - /// - /// The property value for 'ProductDescriptionId'. - /// - public int ProductDescriptionId { get; set; } - - /// - /// Gets or sets the property value for 'CultureId'. - /// - /// - /// The property value for 'CultureId'. - /// - public string CultureId { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureReadModel.cs deleted file mode 100644 index 42a7709..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureReadModel.cs +++ /dev/null @@ -1,44 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductModelProductDescriptionCultureReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'ProductModelId'. - /// - /// - /// The property value for 'ProductModelId'. - /// - public int ProductModelId { get; set; } - - /// - /// Gets or sets the property value for 'ProductDescriptionId'. - /// - /// - /// The property value for 'ProductDescriptionId'. - /// - public int ProductDescriptionId { get; set; } - - /// - /// Gets or sets the property value for 'CultureId'. - /// - /// - /// The property value for 'CultureId'. - /// - public string CultureId { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureUpdateModel.cs deleted file mode 100644 index f26c70b..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureUpdateModel.cs +++ /dev/null @@ -1,44 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductModelProductDescriptionCultureUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'ProductModelId'. - /// - /// - /// The property value for 'ProductModelId'. - /// - public int ProductModelId { get; set; } - - /// - /// Gets or sets the property value for 'ProductDescriptionId'. - /// - /// - /// The property value for 'ProductDescriptionId'. - /// - public int ProductDescriptionId { get; set; } - - /// - /// Gets or sets the property value for 'CultureId'. - /// - /// - /// The property value for 'CultureId'. - /// - public string CultureId { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Validation/ProductModelProductDescriptionCultureCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Validation/ProductModelProductDescriptionCultureCreateModelValidator.cs deleted file mode 100644 index 2e7bd47..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Validation/ProductModelProductDescriptionCultureCreateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ProductModelProductDescriptionCultureCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ProductModelProductDescriptionCultureCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.CultureId).NotEmpty(); - RuleFor(p => p.CultureId).MaximumLength(6); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Validation/ProductModelProductDescriptionCultureUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Validation/ProductModelProductDescriptionCultureUpdateModelValidator.cs deleted file mode 100644 index abde4f5..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Validation/ProductModelProductDescriptionCultureUpdateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ProductModelProductDescriptionCultureUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ProductModelProductDescriptionCultureUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.CultureId).NotEmpty(); - RuleFor(p => p.CultureId).MaximumLength(6); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Mapping/ProductPhotoProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Mapping/ProductPhotoProfile.cs deleted file mode 100644 index a9d3254..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Mapping/ProductPhotoProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class ProductPhotoProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public ProductPhotoProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Models/ProductPhotoCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Models/ProductPhotoCreateModel.cs deleted file mode 100644 index d9c2579..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Models/ProductPhotoCreateModel.cs +++ /dev/null @@ -1,60 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductPhotoCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'ThumbNailPhoto'. - /// - /// - /// The property value for 'ThumbNailPhoto'. - /// - public byte[]? ThumbNailPhoto { get; set; } - - /// - /// Gets or sets the property value for 'ThumbnailPhotoFileName'. - /// - /// - /// The property value for 'ThumbnailPhotoFileName'. - /// - public string? ThumbnailPhotoFileName { get; set; } - - /// - /// Gets or sets the property value for 'LargePhoto'. - /// - /// - /// The property value for 'LargePhoto'. - /// - public byte[]? LargePhoto { get; set; } - - /// - /// Gets or sets the property value for 'LargePhotoFileName'. - /// - /// - /// The property value for 'LargePhotoFileName'. - /// - public string? LargePhotoFileName { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Models/ProductPhotoReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Models/ProductPhotoReadModel.cs deleted file mode 100644 index 72a3cc2..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Models/ProductPhotoReadModel.cs +++ /dev/null @@ -1,60 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductPhotoReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'ThumbNailPhoto'. - /// - /// - /// The property value for 'ThumbNailPhoto'. - /// - public byte[]? ThumbNailPhoto { get; set; } - - /// - /// Gets or sets the property value for 'ThumbnailPhotoFileName'. - /// - /// - /// The property value for 'ThumbnailPhotoFileName'. - /// - public string? ThumbnailPhotoFileName { get; set; } - - /// - /// Gets or sets the property value for 'LargePhoto'. - /// - /// - /// The property value for 'LargePhoto'. - /// - public byte[]? LargePhoto { get; set; } - - /// - /// Gets or sets the property value for 'LargePhotoFileName'. - /// - /// - /// The property value for 'LargePhotoFileName'. - /// - public string? LargePhotoFileName { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Models/ProductPhotoUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Models/ProductPhotoUpdateModel.cs deleted file mode 100644 index 036571e..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Models/ProductPhotoUpdateModel.cs +++ /dev/null @@ -1,60 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductPhotoUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'ThumbNailPhoto'. - /// - /// - /// The property value for 'ThumbNailPhoto'. - /// - public byte[]? ThumbNailPhoto { get; set; } - - /// - /// Gets or sets the property value for 'ThumbnailPhotoFileName'. - /// - /// - /// The property value for 'ThumbnailPhotoFileName'. - /// - public string? ThumbnailPhotoFileName { get; set; } - - /// - /// Gets or sets the property value for 'LargePhoto'. - /// - /// - /// The property value for 'LargePhoto'. - /// - public byte[]? LargePhoto { get; set; } - - /// - /// Gets or sets the property value for 'LargePhotoFileName'. - /// - /// - /// The property value for 'LargePhotoFileName'. - /// - public string? LargePhotoFileName { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Validation/ProductPhotoCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Validation/ProductPhotoCreateModelValidator.cs deleted file mode 100644 index a750786..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Validation/ProductPhotoCreateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ProductPhotoCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ProductPhotoCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.ThumbnailPhotoFileName).MaximumLength(50); - RuleFor(p => p.LargePhotoFileName).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Validation/ProductPhotoUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Validation/ProductPhotoUpdateModelValidator.cs deleted file mode 100644 index 974db91..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Validation/ProductPhotoUpdateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ProductPhotoUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ProductPhotoUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.ThumbnailPhotoFileName).MaximumLength(50); - RuleFor(p => p.LargePhotoFileName).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Mapping/ProductProductPhotoProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Mapping/ProductProductPhotoProfile.cs deleted file mode 100644 index c99b684..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Mapping/ProductProductPhotoProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class ProductProductPhotoProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public ProductProductPhotoProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoCreateModel.cs deleted file mode 100644 index 8ad2c91..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoCreateModel.cs +++ /dev/null @@ -1,44 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductProductPhotoCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'ProductPhotoId'. - /// - /// - /// The property value for 'ProductPhotoId'. - /// - public int ProductPhotoId { get; set; } - - /// - /// Gets or sets the property value for 'Primary'. - /// - /// - /// The property value for 'Primary'. - /// - public bool Primary { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoReadModel.cs deleted file mode 100644 index a91b24b..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoReadModel.cs +++ /dev/null @@ -1,44 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductProductPhotoReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'ProductPhotoId'. - /// - /// - /// The property value for 'ProductPhotoId'. - /// - public int ProductPhotoId { get; set; } - - /// - /// Gets or sets the property value for 'Primary'. - /// - /// - /// The property value for 'Primary'. - /// - public bool Primary { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoUpdateModel.cs deleted file mode 100644 index 7eede44..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoUpdateModel.cs +++ /dev/null @@ -1,44 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductProductPhotoUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'ProductPhotoId'. - /// - /// - /// The property value for 'ProductPhotoId'. - /// - public int ProductPhotoId { get; set; } - - /// - /// Gets or sets the property value for 'Primary'. - /// - /// - /// The property value for 'Primary'. - /// - public bool Primary { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Validation/ProductProductPhotoCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Validation/ProductProductPhotoCreateModelValidator.cs deleted file mode 100644 index 29ae79b..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Validation/ProductProductPhotoCreateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ProductProductPhotoCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ProductProductPhotoCreateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Validation/ProductProductPhotoUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Validation/ProductProductPhotoUpdateModelValidator.cs deleted file mode 100644 index c10e971..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Validation/ProductProductPhotoUpdateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ProductProductPhotoUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ProductProductPhotoUpdateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Mapping/ProductReviewProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Mapping/ProductReviewProfile.cs deleted file mode 100644 index 26e7962..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Mapping/ProductReviewProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class ProductReviewProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public ProductReviewProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewCreateModel.cs deleted file mode 100644 index e11c948..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewCreateModel.cs +++ /dev/null @@ -1,76 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductReviewCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'ReviewerName'. - /// - /// - /// The property value for 'ReviewerName'. - /// - public string ReviewerName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ReviewDate'. - /// - /// - /// The property value for 'ReviewDate'. - /// - public DateTime ReviewDate { get; set; } - - /// - /// Gets or sets the property value for 'EmailAddress'. - /// - /// - /// The property value for 'EmailAddress'. - /// - public string EmailAddress { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Rating'. - /// - /// - /// The property value for 'Rating'. - /// - public int Rating { get; set; } - - /// - /// Gets or sets the property value for 'Comments'. - /// - /// - /// The property value for 'Comments'. - /// - public string? Comments { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewReadModel.cs deleted file mode 100644 index 7528d0b..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewReadModel.cs +++ /dev/null @@ -1,76 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductReviewReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'ReviewerName'. - /// - /// - /// The property value for 'ReviewerName'. - /// - public string ReviewerName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ReviewDate'. - /// - /// - /// The property value for 'ReviewDate'. - /// - public DateTime ReviewDate { get; set; } - - /// - /// Gets or sets the property value for 'EmailAddress'. - /// - /// - /// The property value for 'EmailAddress'. - /// - public string EmailAddress { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Rating'. - /// - /// - /// The property value for 'Rating'. - /// - public int Rating { get; set; } - - /// - /// Gets or sets the property value for 'Comments'. - /// - /// - /// The property value for 'Comments'. - /// - public string? Comments { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewUpdateModel.cs deleted file mode 100644 index 964334a..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewUpdateModel.cs +++ /dev/null @@ -1,76 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductReviewUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'ReviewerName'. - /// - /// - /// The property value for 'ReviewerName'. - /// - public string ReviewerName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ReviewDate'. - /// - /// - /// The property value for 'ReviewDate'. - /// - public DateTime ReviewDate { get; set; } - - /// - /// Gets or sets the property value for 'EmailAddress'. - /// - /// - /// The property value for 'EmailAddress'. - /// - public string EmailAddress { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Rating'. - /// - /// - /// The property value for 'Rating'. - /// - public int Rating { get; set; } - - /// - /// Gets or sets the property value for 'Comments'. - /// - /// - /// The property value for 'Comments'. - /// - public string? Comments { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Validation/ProductReviewCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Validation/ProductReviewCreateModelValidator.cs deleted file mode 100644 index 711e047..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Validation/ProductReviewCreateModelValidator.cs +++ /dev/null @@ -1,28 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ProductReviewCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ProductReviewCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.ReviewerName).NotEmpty(); - RuleFor(p => p.ReviewerName).MaximumLength(50); - RuleFor(p => p.EmailAddress).NotEmpty(); - RuleFor(p => p.EmailAddress).MaximumLength(50); - RuleFor(p => p.Comments).MaximumLength(3850); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Validation/ProductReviewUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Validation/ProductReviewUpdateModelValidator.cs deleted file mode 100644 index 8c54389..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Validation/ProductReviewUpdateModelValidator.cs +++ /dev/null @@ -1,28 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ProductReviewUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ProductReviewUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.ReviewerName).NotEmpty(); - RuleFor(p => p.ReviewerName).MaximumLength(50); - RuleFor(p => p.EmailAddress).NotEmpty(); - RuleFor(p => p.EmailAddress).MaximumLength(50); - RuleFor(p => p.Comments).MaximumLength(3850); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Mapping/ProductSubcategoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Mapping/ProductSubcategoryProfile.cs deleted file mode 100644 index ff2a193..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Mapping/ProductSubcategoryProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class ProductSubcategoryProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public ProductSubcategoryProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Models/ProductSubcategoryCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Models/ProductSubcategoryCreateModel.cs deleted file mode 100644 index 7432886..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Models/ProductSubcategoryCreateModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductSubcategoryCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'ProductCategoryId'. - /// - /// - /// The property value for 'ProductCategoryId'. - /// - public int ProductCategoryId { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Models/ProductSubcategoryReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Models/ProductSubcategoryReadModel.cs deleted file mode 100644 index b96bfb4..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Models/ProductSubcategoryReadModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductSubcategoryReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'ProductCategoryId'. - /// - /// - /// The property value for 'ProductCategoryId'. - /// - public int ProductCategoryId { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Models/ProductSubcategoryUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Models/ProductSubcategoryUpdateModel.cs deleted file mode 100644 index f18ff33..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Models/ProductSubcategoryUpdateModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductSubcategoryUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'ProductCategoryId'. - /// - /// - /// The property value for 'ProductCategoryId'. - /// - public int ProductCategoryId { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Validation/ProductSubcategoryCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Validation/ProductSubcategoryCreateModelValidator.cs deleted file mode 100644 index bdec93d..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Validation/ProductSubcategoryCreateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ProductSubcategoryCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ProductSubcategoryCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Validation/ProductSubcategoryUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Validation/ProductSubcategoryUpdateModelValidator.cs deleted file mode 100644 index d4a41f9..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Validation/ProductSubcategoryUpdateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ProductSubcategoryUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ProductSubcategoryUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Mapping/ProductVendorProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Mapping/ProductVendorProfile.cs deleted file mode 100644 index 3b8f4b8..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Mapping/ProductVendorProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class ProductVendorProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public ProductVendorProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorCreateModel.cs deleted file mode 100644 index d2b8a68..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorCreateModel.cs +++ /dev/null @@ -1,100 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductVendorCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'AverageLeadTime'. - /// - /// - /// The property value for 'AverageLeadTime'. - /// - public int AverageLeadTime { get; set; } - - /// - /// Gets or sets the property value for 'StandardPrice'. - /// - /// - /// The property value for 'StandardPrice'. - /// - public decimal StandardPrice { get; set; } - - /// - /// Gets or sets the property value for 'LastReceiptCost'. - /// - /// - /// The property value for 'LastReceiptCost'. - /// - public decimal? LastReceiptCost { get; set; } - - /// - /// Gets or sets the property value for 'LastReceiptDate'. - /// - /// - /// The property value for 'LastReceiptDate'. - /// - public DateTime? LastReceiptDate { get; set; } - - /// - /// Gets or sets the property value for 'MinOrderQty'. - /// - /// - /// The property value for 'MinOrderQty'. - /// - public int MinOrderQty { get; set; } - - /// - /// Gets or sets the property value for 'MaxOrderQty'. - /// - /// - /// The property value for 'MaxOrderQty'. - /// - public int MaxOrderQty { get; set; } - - /// - /// Gets or sets the property value for 'OnOrderQty'. - /// - /// - /// The property value for 'OnOrderQty'. - /// - public int? OnOrderQty { get; set; } - - /// - /// Gets or sets the property value for 'UnitMeasureCode'. - /// - /// - /// The property value for 'UnitMeasureCode'. - /// - public string UnitMeasureCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorReadModel.cs deleted file mode 100644 index 0bf8459..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorReadModel.cs +++ /dev/null @@ -1,100 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductVendorReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'AverageLeadTime'. - /// - /// - /// The property value for 'AverageLeadTime'. - /// - public int AverageLeadTime { get; set; } - - /// - /// Gets or sets the property value for 'StandardPrice'. - /// - /// - /// The property value for 'StandardPrice'. - /// - public decimal StandardPrice { get; set; } - - /// - /// Gets or sets the property value for 'LastReceiptCost'. - /// - /// - /// The property value for 'LastReceiptCost'. - /// - public decimal? LastReceiptCost { get; set; } - - /// - /// Gets or sets the property value for 'LastReceiptDate'. - /// - /// - /// The property value for 'LastReceiptDate'. - /// - public DateTime? LastReceiptDate { get; set; } - - /// - /// Gets or sets the property value for 'MinOrderQty'. - /// - /// - /// The property value for 'MinOrderQty'. - /// - public int MinOrderQty { get; set; } - - /// - /// Gets or sets the property value for 'MaxOrderQty'. - /// - /// - /// The property value for 'MaxOrderQty'. - /// - public int MaxOrderQty { get; set; } - - /// - /// Gets or sets the property value for 'OnOrderQty'. - /// - /// - /// The property value for 'OnOrderQty'. - /// - public int? OnOrderQty { get; set; } - - /// - /// Gets or sets the property value for 'UnitMeasureCode'. - /// - /// - /// The property value for 'UnitMeasureCode'. - /// - public string UnitMeasureCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorUpdateModel.cs deleted file mode 100644 index 46b8553..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorUpdateModel.cs +++ /dev/null @@ -1,100 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ProductVendorUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'AverageLeadTime'. - /// - /// - /// The property value for 'AverageLeadTime'. - /// - public int AverageLeadTime { get; set; } - - /// - /// Gets or sets the property value for 'StandardPrice'. - /// - /// - /// The property value for 'StandardPrice'. - /// - public decimal StandardPrice { get; set; } - - /// - /// Gets or sets the property value for 'LastReceiptCost'. - /// - /// - /// The property value for 'LastReceiptCost'. - /// - public decimal? LastReceiptCost { get; set; } - - /// - /// Gets or sets the property value for 'LastReceiptDate'. - /// - /// - /// The property value for 'LastReceiptDate'. - /// - public DateTime? LastReceiptDate { get; set; } - - /// - /// Gets or sets the property value for 'MinOrderQty'. - /// - /// - /// The property value for 'MinOrderQty'. - /// - public int MinOrderQty { get; set; } - - /// - /// Gets or sets the property value for 'MaxOrderQty'. - /// - /// - /// The property value for 'MaxOrderQty'. - /// - public int MaxOrderQty { get; set; } - - /// - /// Gets or sets the property value for 'OnOrderQty'. - /// - /// - /// The property value for 'OnOrderQty'. - /// - public int? OnOrderQty { get; set; } - - /// - /// Gets or sets the property value for 'UnitMeasureCode'. - /// - /// - /// The property value for 'UnitMeasureCode'. - /// - public string UnitMeasureCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Validation/ProductVendorCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Validation/ProductVendorCreateModelValidator.cs deleted file mode 100644 index b852d21..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Validation/ProductVendorCreateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ProductVendorCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ProductVendorCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.UnitMeasureCode).NotEmpty(); - RuleFor(p => p.UnitMeasureCode).MaximumLength(3); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Validation/ProductVendorUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Validation/ProductVendorUpdateModelValidator.cs deleted file mode 100644 index 1f21078..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Validation/ProductVendorUpdateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ProductVendorUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ProductVendorUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.UnitMeasureCode).NotEmpty(); - RuleFor(p => p.UnitMeasureCode).MaximumLength(3); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Mapping/PurchaseOrderDetailProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Mapping/PurchaseOrderDetailProfile.cs deleted file mode 100644 index d4fe752..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Mapping/PurchaseOrderDetailProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class PurchaseOrderDetailProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public PurchaseOrderDetailProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailCreateModel.cs deleted file mode 100644 index 99f5cda..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailCreateModel.cs +++ /dev/null @@ -1,100 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class PurchaseOrderDetailCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'PurchaseOrderId'. - /// - /// - /// The property value for 'PurchaseOrderId'. - /// - public int PurchaseOrderId { get; set; } - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'DueDate'. - /// - /// - /// The property value for 'DueDate'. - /// - public DateTime DueDate { get; set; } - - /// - /// Gets or sets the property value for 'OrderQty'. - /// - /// - /// The property value for 'OrderQty'. - /// - public short OrderQty { get; set; } - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'UnitPrice'. - /// - /// - /// The property value for 'UnitPrice'. - /// - public decimal UnitPrice { get; set; } - - /// - /// Gets or sets the property value for 'LineTotal'. - /// - /// - /// The property value for 'LineTotal'. - /// - public decimal LineTotal { get; set; } - - /// - /// Gets or sets the property value for 'ReceivedQty'. - /// - /// - /// The property value for 'ReceivedQty'. - /// - public decimal ReceivedQty { get; set; } - - /// - /// Gets or sets the property value for 'RejectedQty'. - /// - /// - /// The property value for 'RejectedQty'. - /// - public decimal RejectedQty { get; set; } - - /// - /// Gets or sets the property value for 'StockedQty'. - /// - /// - /// The property value for 'StockedQty'. - /// - public decimal StockedQty { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailReadModel.cs deleted file mode 100644 index 583b2cb..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailReadModel.cs +++ /dev/null @@ -1,100 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class PurchaseOrderDetailReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'PurchaseOrderId'. - /// - /// - /// The property value for 'PurchaseOrderId'. - /// - public int PurchaseOrderId { get; set; } - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'DueDate'. - /// - /// - /// The property value for 'DueDate'. - /// - public DateTime DueDate { get; set; } - - /// - /// Gets or sets the property value for 'OrderQty'. - /// - /// - /// The property value for 'OrderQty'. - /// - public short OrderQty { get; set; } - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'UnitPrice'. - /// - /// - /// The property value for 'UnitPrice'. - /// - public decimal UnitPrice { get; set; } - - /// - /// Gets or sets the property value for 'LineTotal'. - /// - /// - /// The property value for 'LineTotal'. - /// - public decimal LineTotal { get; set; } - - /// - /// Gets or sets the property value for 'ReceivedQty'. - /// - /// - /// The property value for 'ReceivedQty'. - /// - public decimal ReceivedQty { get; set; } - - /// - /// Gets or sets the property value for 'RejectedQty'. - /// - /// - /// The property value for 'RejectedQty'. - /// - public decimal RejectedQty { get; set; } - - /// - /// Gets or sets the property value for 'StockedQty'. - /// - /// - /// The property value for 'StockedQty'. - /// - public decimal StockedQty { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailUpdateModel.cs deleted file mode 100644 index 6462385..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailUpdateModel.cs +++ /dev/null @@ -1,100 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class PurchaseOrderDetailUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'PurchaseOrderId'. - /// - /// - /// The property value for 'PurchaseOrderId'. - /// - public int PurchaseOrderId { get; set; } - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'DueDate'. - /// - /// - /// The property value for 'DueDate'. - /// - public DateTime DueDate { get; set; } - - /// - /// Gets or sets the property value for 'OrderQty'. - /// - /// - /// The property value for 'OrderQty'. - /// - public short OrderQty { get; set; } - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'UnitPrice'. - /// - /// - /// The property value for 'UnitPrice'. - /// - public decimal UnitPrice { get; set; } - - /// - /// Gets or sets the property value for 'LineTotal'. - /// - /// - /// The property value for 'LineTotal'. - /// - public decimal LineTotal { get; set; } - - /// - /// Gets or sets the property value for 'ReceivedQty'. - /// - /// - /// The property value for 'ReceivedQty'. - /// - public decimal ReceivedQty { get; set; } - - /// - /// Gets or sets the property value for 'RejectedQty'. - /// - /// - /// The property value for 'RejectedQty'. - /// - public decimal RejectedQty { get; set; } - - /// - /// Gets or sets the property value for 'StockedQty'. - /// - /// - /// The property value for 'StockedQty'. - /// - public decimal StockedQty { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Validation/PurchaseOrderDetailCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Validation/PurchaseOrderDetailCreateModelValidator.cs deleted file mode 100644 index 2acd848..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Validation/PurchaseOrderDetailCreateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class PurchaseOrderDetailCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public PurchaseOrderDetailCreateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Validation/PurchaseOrderDetailUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Validation/PurchaseOrderDetailUpdateModelValidator.cs deleted file mode 100644 index 4d6c49e..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Validation/PurchaseOrderDetailUpdateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class PurchaseOrderDetailUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public PurchaseOrderDetailUpdateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Mapping/PurchaseOrderHeaderProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Mapping/PurchaseOrderHeaderProfile.cs deleted file mode 100644 index e100c8b..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Mapping/PurchaseOrderHeaderProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class PurchaseOrderHeaderProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public PurchaseOrderHeaderProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Models/PurchaseOrderHeaderCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Models/PurchaseOrderHeaderCreateModel.cs deleted file mode 100644 index deabe9d..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Models/PurchaseOrderHeaderCreateModel.cs +++ /dev/null @@ -1,116 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class PurchaseOrderHeaderCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'RevisionNumber'. - /// - /// - /// The property value for 'RevisionNumber'. - /// - public byte RevisionNumber { get; set; } - - /// - /// Gets or sets the property value for 'Status'. - /// - /// - /// The property value for 'Status'. - /// - public byte Status { get; set; } - - /// - /// Gets or sets the property value for 'EmployeeId'. - /// - /// - /// The property value for 'EmployeeId'. - /// - public int EmployeeId { get; set; } - - /// - /// Gets or sets the property value for 'VendorId'. - /// - /// - /// The property value for 'VendorId'. - /// - public int VendorId { get; set; } - - /// - /// Gets or sets the property value for 'ShipMethodId'. - /// - /// - /// The property value for 'ShipMethodId'. - /// - public int ShipMethodId { get; set; } - - /// - /// Gets or sets the property value for 'OrderDate'. - /// - /// - /// The property value for 'OrderDate'. - /// - public DateTime OrderDate { get; set; } - - /// - /// Gets or sets the property value for 'ShipDate'. - /// - /// - /// The property value for 'ShipDate'. - /// - public DateTime? ShipDate { get; set; } - - /// - /// Gets or sets the property value for 'SubTotal'. - /// - /// - /// The property value for 'SubTotal'. - /// - public decimal SubTotal { get; set; } - - /// - /// Gets or sets the property value for 'TaxAmt'. - /// - /// - /// The property value for 'TaxAmt'. - /// - public decimal TaxAmt { get; set; } - - /// - /// Gets or sets the property value for 'Freight'. - /// - /// - /// The property value for 'Freight'. - /// - public decimal Freight { get; set; } - - /// - /// Gets or sets the property value for 'TotalDue'. - /// - /// - /// The property value for 'TotalDue'. - /// - public decimal TotalDue { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Models/PurchaseOrderHeaderReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Models/PurchaseOrderHeaderReadModel.cs deleted file mode 100644 index 7786624..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Models/PurchaseOrderHeaderReadModel.cs +++ /dev/null @@ -1,116 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class PurchaseOrderHeaderReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'RevisionNumber'. - /// - /// - /// The property value for 'RevisionNumber'. - /// - public byte RevisionNumber { get; set; } - - /// - /// Gets or sets the property value for 'Status'. - /// - /// - /// The property value for 'Status'. - /// - public byte Status { get; set; } - - /// - /// Gets or sets the property value for 'EmployeeId'. - /// - /// - /// The property value for 'EmployeeId'. - /// - public int EmployeeId { get; set; } - - /// - /// Gets or sets the property value for 'VendorId'. - /// - /// - /// The property value for 'VendorId'. - /// - public int VendorId { get; set; } - - /// - /// Gets or sets the property value for 'ShipMethodId'. - /// - /// - /// The property value for 'ShipMethodId'. - /// - public int ShipMethodId { get; set; } - - /// - /// Gets or sets the property value for 'OrderDate'. - /// - /// - /// The property value for 'OrderDate'. - /// - public DateTime OrderDate { get; set; } - - /// - /// Gets or sets the property value for 'ShipDate'. - /// - /// - /// The property value for 'ShipDate'. - /// - public DateTime? ShipDate { get; set; } - - /// - /// Gets or sets the property value for 'SubTotal'. - /// - /// - /// The property value for 'SubTotal'. - /// - public decimal SubTotal { get; set; } - - /// - /// Gets or sets the property value for 'TaxAmt'. - /// - /// - /// The property value for 'TaxAmt'. - /// - public decimal TaxAmt { get; set; } - - /// - /// Gets or sets the property value for 'Freight'. - /// - /// - /// The property value for 'Freight'. - /// - public decimal Freight { get; set; } - - /// - /// Gets or sets the property value for 'TotalDue'. - /// - /// - /// The property value for 'TotalDue'. - /// - public decimal TotalDue { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Models/PurchaseOrderHeaderUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Models/PurchaseOrderHeaderUpdateModel.cs deleted file mode 100644 index 822b776..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Models/PurchaseOrderHeaderUpdateModel.cs +++ /dev/null @@ -1,116 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class PurchaseOrderHeaderUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'RevisionNumber'. - /// - /// - /// The property value for 'RevisionNumber'. - /// - public byte RevisionNumber { get; set; } - - /// - /// Gets or sets the property value for 'Status'. - /// - /// - /// The property value for 'Status'. - /// - public byte Status { get; set; } - - /// - /// Gets or sets the property value for 'EmployeeId'. - /// - /// - /// The property value for 'EmployeeId'. - /// - public int EmployeeId { get; set; } - - /// - /// Gets or sets the property value for 'VendorId'. - /// - /// - /// The property value for 'VendorId'. - /// - public int VendorId { get; set; } - - /// - /// Gets or sets the property value for 'ShipMethodId'. - /// - /// - /// The property value for 'ShipMethodId'. - /// - public int ShipMethodId { get; set; } - - /// - /// Gets or sets the property value for 'OrderDate'. - /// - /// - /// The property value for 'OrderDate'. - /// - public DateTime OrderDate { get; set; } - - /// - /// Gets or sets the property value for 'ShipDate'. - /// - /// - /// The property value for 'ShipDate'. - /// - public DateTime? ShipDate { get; set; } - - /// - /// Gets or sets the property value for 'SubTotal'. - /// - /// - /// The property value for 'SubTotal'. - /// - public decimal SubTotal { get; set; } - - /// - /// Gets or sets the property value for 'TaxAmt'. - /// - /// - /// The property value for 'TaxAmt'. - /// - public decimal TaxAmt { get; set; } - - /// - /// Gets or sets the property value for 'Freight'. - /// - /// - /// The property value for 'Freight'. - /// - public decimal Freight { get; set; } - - /// - /// Gets or sets the property value for 'TotalDue'. - /// - /// - /// The property value for 'TotalDue'. - /// - public decimal TotalDue { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Validation/PurchaseOrderHeaderCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Validation/PurchaseOrderHeaderCreateModelValidator.cs deleted file mode 100644 index 968c35f..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Validation/PurchaseOrderHeaderCreateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class PurchaseOrderHeaderCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public PurchaseOrderHeaderCreateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Validation/PurchaseOrderHeaderUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Validation/PurchaseOrderHeaderUpdateModelValidator.cs deleted file mode 100644 index 8d7595a..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Validation/PurchaseOrderHeaderUpdateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class PurchaseOrderHeaderUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public PurchaseOrderHeaderUpdateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Mapping/SalesOrderDetailProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Mapping/SalesOrderDetailProfile.cs deleted file mode 100644 index 6e21bdd..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Mapping/SalesOrderDetailProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class SalesOrderDetailProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public SalesOrderDetailProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailCreateModel.cs deleted file mode 100644 index bb8653d..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailCreateModel.cs +++ /dev/null @@ -1,100 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SalesOrderDetailCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'SalesOrderId'. - /// - /// - /// The property value for 'SalesOrderId'. - /// - public int SalesOrderId { get; set; } - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'CarrierTrackingNumber'. - /// - /// - /// The property value for 'CarrierTrackingNumber'. - /// - public string? CarrierTrackingNumber { get; set; } - - /// - /// Gets or sets the property value for 'OrderQty'. - /// - /// - /// The property value for 'OrderQty'. - /// - public short OrderQty { get; set; } - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'SpecialOfferId'. - /// - /// - /// The property value for 'SpecialOfferId'. - /// - public int SpecialOfferId { get; set; } - - /// - /// Gets or sets the property value for 'UnitPrice'. - /// - /// - /// The property value for 'UnitPrice'. - /// - public decimal UnitPrice { get; set; } - - /// - /// Gets or sets the property value for 'UnitPriceDiscount'. - /// - /// - /// The property value for 'UnitPriceDiscount'. - /// - public decimal UnitPriceDiscount { get; set; } - - /// - /// Gets or sets the property value for 'LineTotal'. - /// - /// - /// The property value for 'LineTotal'. - /// - public decimal LineTotal { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailReadModel.cs deleted file mode 100644 index 5762801..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailReadModel.cs +++ /dev/null @@ -1,100 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SalesOrderDetailReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'SalesOrderId'. - /// - /// - /// The property value for 'SalesOrderId'. - /// - public int SalesOrderId { get; set; } - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'CarrierTrackingNumber'. - /// - /// - /// The property value for 'CarrierTrackingNumber'. - /// - public string? CarrierTrackingNumber { get; set; } - - /// - /// Gets or sets the property value for 'OrderQty'. - /// - /// - /// The property value for 'OrderQty'. - /// - public short OrderQty { get; set; } - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'SpecialOfferId'. - /// - /// - /// The property value for 'SpecialOfferId'. - /// - public int SpecialOfferId { get; set; } - - /// - /// Gets or sets the property value for 'UnitPrice'. - /// - /// - /// The property value for 'UnitPrice'. - /// - public decimal UnitPrice { get; set; } - - /// - /// Gets or sets the property value for 'UnitPriceDiscount'. - /// - /// - /// The property value for 'UnitPriceDiscount'. - /// - public decimal UnitPriceDiscount { get; set; } - - /// - /// Gets or sets the property value for 'LineTotal'. - /// - /// - /// The property value for 'LineTotal'. - /// - public decimal LineTotal { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailUpdateModel.cs deleted file mode 100644 index d45820d..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailUpdateModel.cs +++ /dev/null @@ -1,100 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SalesOrderDetailUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'SalesOrderId'. - /// - /// - /// The property value for 'SalesOrderId'. - /// - public int SalesOrderId { get; set; } - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'CarrierTrackingNumber'. - /// - /// - /// The property value for 'CarrierTrackingNumber'. - /// - public string? CarrierTrackingNumber { get; set; } - - /// - /// Gets or sets the property value for 'OrderQty'. - /// - /// - /// The property value for 'OrderQty'. - /// - public short OrderQty { get; set; } - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'SpecialOfferId'. - /// - /// - /// The property value for 'SpecialOfferId'. - /// - public int SpecialOfferId { get; set; } - - /// - /// Gets or sets the property value for 'UnitPrice'. - /// - /// - /// The property value for 'UnitPrice'. - /// - public decimal UnitPrice { get; set; } - - /// - /// Gets or sets the property value for 'UnitPriceDiscount'. - /// - /// - /// The property value for 'UnitPriceDiscount'. - /// - public decimal UnitPriceDiscount { get; set; } - - /// - /// Gets or sets the property value for 'LineTotal'. - /// - /// - /// The property value for 'LineTotal'. - /// - public decimal LineTotal { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Validation/SalesOrderDetailCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Validation/SalesOrderDetailCreateModelValidator.cs deleted file mode 100644 index c7a8f55..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Validation/SalesOrderDetailCreateModelValidator.cs +++ /dev/null @@ -1,24 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class SalesOrderDetailCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public SalesOrderDetailCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.CarrierTrackingNumber).MaximumLength(25); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Validation/SalesOrderDetailUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Validation/SalesOrderDetailUpdateModelValidator.cs deleted file mode 100644 index 95b22ff..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Validation/SalesOrderDetailUpdateModelValidator.cs +++ /dev/null @@ -1,24 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class SalesOrderDetailUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public SalesOrderDetailUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.CarrierTrackingNumber).MaximumLength(25); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Mapping/SalesOrderHeaderProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Mapping/SalesOrderHeaderProfile.cs deleted file mode 100644 index 2fbaeef..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Mapping/SalesOrderHeaderProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class SalesOrderHeaderProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public SalesOrderHeaderProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Models/SalesOrderHeaderCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Models/SalesOrderHeaderCreateModel.cs deleted file mode 100644 index a685b15..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Models/SalesOrderHeaderCreateModel.cs +++ /dev/null @@ -1,220 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SalesOrderHeaderCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'RevisionNumber'. - /// - /// - /// The property value for 'RevisionNumber'. - /// - public byte RevisionNumber { get; set; } - - /// - /// Gets or sets the property value for 'OrderDate'. - /// - /// - /// The property value for 'OrderDate'. - /// - public DateTime OrderDate { get; set; } - - /// - /// Gets or sets the property value for 'DueDate'. - /// - /// - /// The property value for 'DueDate'. - /// - public DateTime DueDate { get; set; } - - /// - /// Gets or sets the property value for 'ShipDate'. - /// - /// - /// The property value for 'ShipDate'. - /// - public DateTime? ShipDate { get; set; } - - /// - /// Gets or sets the property value for 'Status'. - /// - /// - /// The property value for 'Status'. - /// - public byte Status { get; set; } - - /// - /// Gets or sets the property value for 'OnlineOrderFlag'. - /// - /// - /// The property value for 'OnlineOrderFlag'. - /// - public bool OnlineOrderFlag { get; set; } - - /// - /// Gets or sets the property value for 'SalesOrderNumber'. - /// - /// - /// The property value for 'SalesOrderNumber'. - /// - public string SalesOrderNumber { get; set; } = null!; - - /// - /// Gets or sets the property value for 'PurchaseOrderNumber'. - /// - /// - /// The property value for 'PurchaseOrderNumber'. - /// - public string? PurchaseOrderNumber { get; set; } - - /// - /// Gets or sets the property value for 'AccountNumber'. - /// - /// - /// The property value for 'AccountNumber'. - /// - public string? AccountNumber { get; set; } - - /// - /// Gets or sets the property value for 'CustomerId'. - /// - /// - /// The property value for 'CustomerId'. - /// - public int CustomerId { get; set; } - - /// - /// Gets or sets the property value for 'SalesPersonId'. - /// - /// - /// The property value for 'SalesPersonId'. - /// - public int? SalesPersonId { get; set; } - - /// - /// Gets or sets the property value for 'TerritoryId'. - /// - /// - /// The property value for 'TerritoryId'. - /// - public int? TerritoryId { get; set; } - - /// - /// Gets or sets the property value for 'BillToAddressId'. - /// - /// - /// The property value for 'BillToAddressId'. - /// - public int BillToAddressId { get; set; } - - /// - /// Gets or sets the property value for 'ShipToAddressId'. - /// - /// - /// The property value for 'ShipToAddressId'. - /// - public int ShipToAddressId { get; set; } - - /// - /// Gets or sets the property value for 'ShipMethodId'. - /// - /// - /// The property value for 'ShipMethodId'. - /// - public int ShipMethodId { get; set; } - - /// - /// Gets or sets the property value for 'CreditCardId'. - /// - /// - /// The property value for 'CreditCardId'. - /// - public int? CreditCardId { get; set; } - - /// - /// Gets or sets the property value for 'CreditCardApprovalCode'. - /// - /// - /// The property value for 'CreditCardApprovalCode'. - /// - public string? CreditCardApprovalCode { get; set; } - - /// - /// Gets or sets the property value for 'CurrencyRateId'. - /// - /// - /// The property value for 'CurrencyRateId'. - /// - public int? CurrencyRateId { get; set; } - - /// - /// Gets or sets the property value for 'SubTotal'. - /// - /// - /// The property value for 'SubTotal'. - /// - public decimal SubTotal { get; set; } - - /// - /// Gets or sets the property value for 'TaxAmt'. - /// - /// - /// The property value for 'TaxAmt'. - /// - public decimal TaxAmt { get; set; } - - /// - /// Gets or sets the property value for 'Freight'. - /// - /// - /// The property value for 'Freight'. - /// - public decimal Freight { get; set; } - - /// - /// Gets or sets the property value for 'TotalDue'. - /// - /// - /// The property value for 'TotalDue'. - /// - public decimal TotalDue { get; set; } - - /// - /// Gets or sets the property value for 'Comment'. - /// - /// - /// The property value for 'Comment'. - /// - public string? Comment { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Models/SalesOrderHeaderReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Models/SalesOrderHeaderReadModel.cs deleted file mode 100644 index 9870853..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Models/SalesOrderHeaderReadModel.cs +++ /dev/null @@ -1,220 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SalesOrderHeaderReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'RevisionNumber'. - /// - /// - /// The property value for 'RevisionNumber'. - /// - public byte RevisionNumber { get; set; } - - /// - /// Gets or sets the property value for 'OrderDate'. - /// - /// - /// The property value for 'OrderDate'. - /// - public DateTime OrderDate { get; set; } - - /// - /// Gets or sets the property value for 'DueDate'. - /// - /// - /// The property value for 'DueDate'. - /// - public DateTime DueDate { get; set; } - - /// - /// Gets or sets the property value for 'ShipDate'. - /// - /// - /// The property value for 'ShipDate'. - /// - public DateTime? ShipDate { get; set; } - - /// - /// Gets or sets the property value for 'Status'. - /// - /// - /// The property value for 'Status'. - /// - public byte Status { get; set; } - - /// - /// Gets or sets the property value for 'OnlineOrderFlag'. - /// - /// - /// The property value for 'OnlineOrderFlag'. - /// - public bool OnlineOrderFlag { get; set; } - - /// - /// Gets or sets the property value for 'SalesOrderNumber'. - /// - /// - /// The property value for 'SalesOrderNumber'. - /// - public string SalesOrderNumber { get; set; } = null!; - - /// - /// Gets or sets the property value for 'PurchaseOrderNumber'. - /// - /// - /// The property value for 'PurchaseOrderNumber'. - /// - public string? PurchaseOrderNumber { get; set; } - - /// - /// Gets or sets the property value for 'AccountNumber'. - /// - /// - /// The property value for 'AccountNumber'. - /// - public string? AccountNumber { get; set; } - - /// - /// Gets or sets the property value for 'CustomerId'. - /// - /// - /// The property value for 'CustomerId'. - /// - public int CustomerId { get; set; } - - /// - /// Gets or sets the property value for 'SalesPersonId'. - /// - /// - /// The property value for 'SalesPersonId'. - /// - public int? SalesPersonId { get; set; } - - /// - /// Gets or sets the property value for 'TerritoryId'. - /// - /// - /// The property value for 'TerritoryId'. - /// - public int? TerritoryId { get; set; } - - /// - /// Gets or sets the property value for 'BillToAddressId'. - /// - /// - /// The property value for 'BillToAddressId'. - /// - public int BillToAddressId { get; set; } - - /// - /// Gets or sets the property value for 'ShipToAddressId'. - /// - /// - /// The property value for 'ShipToAddressId'. - /// - public int ShipToAddressId { get; set; } - - /// - /// Gets or sets the property value for 'ShipMethodId'. - /// - /// - /// The property value for 'ShipMethodId'. - /// - public int ShipMethodId { get; set; } - - /// - /// Gets or sets the property value for 'CreditCardId'. - /// - /// - /// The property value for 'CreditCardId'. - /// - public int? CreditCardId { get; set; } - - /// - /// Gets or sets the property value for 'CreditCardApprovalCode'. - /// - /// - /// The property value for 'CreditCardApprovalCode'. - /// - public string? CreditCardApprovalCode { get; set; } - - /// - /// Gets or sets the property value for 'CurrencyRateId'. - /// - /// - /// The property value for 'CurrencyRateId'. - /// - public int? CurrencyRateId { get; set; } - - /// - /// Gets or sets the property value for 'SubTotal'. - /// - /// - /// The property value for 'SubTotal'. - /// - public decimal SubTotal { get; set; } - - /// - /// Gets or sets the property value for 'TaxAmt'. - /// - /// - /// The property value for 'TaxAmt'. - /// - public decimal TaxAmt { get; set; } - - /// - /// Gets or sets the property value for 'Freight'. - /// - /// - /// The property value for 'Freight'. - /// - public decimal Freight { get; set; } - - /// - /// Gets or sets the property value for 'TotalDue'. - /// - /// - /// The property value for 'TotalDue'. - /// - public decimal TotalDue { get; set; } - - /// - /// Gets or sets the property value for 'Comment'. - /// - /// - /// The property value for 'Comment'. - /// - public string? Comment { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Models/SalesOrderHeaderUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Models/SalesOrderHeaderUpdateModel.cs deleted file mode 100644 index 718759e..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Models/SalesOrderHeaderUpdateModel.cs +++ /dev/null @@ -1,220 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SalesOrderHeaderUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'RevisionNumber'. - /// - /// - /// The property value for 'RevisionNumber'. - /// - public byte RevisionNumber { get; set; } - - /// - /// Gets or sets the property value for 'OrderDate'. - /// - /// - /// The property value for 'OrderDate'. - /// - public DateTime OrderDate { get; set; } - - /// - /// Gets or sets the property value for 'DueDate'. - /// - /// - /// The property value for 'DueDate'. - /// - public DateTime DueDate { get; set; } - - /// - /// Gets or sets the property value for 'ShipDate'. - /// - /// - /// The property value for 'ShipDate'. - /// - public DateTime? ShipDate { get; set; } - - /// - /// Gets or sets the property value for 'Status'. - /// - /// - /// The property value for 'Status'. - /// - public byte Status { get; set; } - - /// - /// Gets or sets the property value for 'OnlineOrderFlag'. - /// - /// - /// The property value for 'OnlineOrderFlag'. - /// - public bool OnlineOrderFlag { get; set; } - - /// - /// Gets or sets the property value for 'SalesOrderNumber'. - /// - /// - /// The property value for 'SalesOrderNumber'. - /// - public string SalesOrderNumber { get; set; } = null!; - - /// - /// Gets or sets the property value for 'PurchaseOrderNumber'. - /// - /// - /// The property value for 'PurchaseOrderNumber'. - /// - public string? PurchaseOrderNumber { get; set; } - - /// - /// Gets or sets the property value for 'AccountNumber'. - /// - /// - /// The property value for 'AccountNumber'. - /// - public string? AccountNumber { get; set; } - - /// - /// Gets or sets the property value for 'CustomerId'. - /// - /// - /// The property value for 'CustomerId'. - /// - public int CustomerId { get; set; } - - /// - /// Gets or sets the property value for 'SalesPersonId'. - /// - /// - /// The property value for 'SalesPersonId'. - /// - public int? SalesPersonId { get; set; } - - /// - /// Gets or sets the property value for 'TerritoryId'. - /// - /// - /// The property value for 'TerritoryId'. - /// - public int? TerritoryId { get; set; } - - /// - /// Gets or sets the property value for 'BillToAddressId'. - /// - /// - /// The property value for 'BillToAddressId'. - /// - public int BillToAddressId { get; set; } - - /// - /// Gets or sets the property value for 'ShipToAddressId'. - /// - /// - /// The property value for 'ShipToAddressId'. - /// - public int ShipToAddressId { get; set; } - - /// - /// Gets or sets the property value for 'ShipMethodId'. - /// - /// - /// The property value for 'ShipMethodId'. - /// - public int ShipMethodId { get; set; } - - /// - /// Gets or sets the property value for 'CreditCardId'. - /// - /// - /// The property value for 'CreditCardId'. - /// - public int? CreditCardId { get; set; } - - /// - /// Gets or sets the property value for 'CreditCardApprovalCode'. - /// - /// - /// The property value for 'CreditCardApprovalCode'. - /// - public string? CreditCardApprovalCode { get; set; } - - /// - /// Gets or sets the property value for 'CurrencyRateId'. - /// - /// - /// The property value for 'CurrencyRateId'. - /// - public int? CurrencyRateId { get; set; } - - /// - /// Gets or sets the property value for 'SubTotal'. - /// - /// - /// The property value for 'SubTotal'. - /// - public decimal SubTotal { get; set; } - - /// - /// Gets or sets the property value for 'TaxAmt'. - /// - /// - /// The property value for 'TaxAmt'. - /// - public decimal TaxAmt { get; set; } - - /// - /// Gets or sets the property value for 'Freight'. - /// - /// - /// The property value for 'Freight'. - /// - public decimal Freight { get; set; } - - /// - /// Gets or sets the property value for 'TotalDue'. - /// - /// - /// The property value for 'TotalDue'. - /// - public decimal TotalDue { get; set; } - - /// - /// Gets or sets the property value for 'Comment'. - /// - /// - /// The property value for 'Comment'. - /// - public string? Comment { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Validation/SalesOrderHeaderCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Validation/SalesOrderHeaderCreateModelValidator.cs deleted file mode 100644 index ce2daf7..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Validation/SalesOrderHeaderCreateModelValidator.cs +++ /dev/null @@ -1,27 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class SalesOrderHeaderCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public SalesOrderHeaderCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.PurchaseOrderNumber).MaximumLength(25); - RuleFor(p => p.AccountNumber).MaximumLength(15); - RuleFor(p => p.CreditCardApprovalCode).MaximumLength(15); - RuleFor(p => p.Comment).MaximumLength(128); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Validation/SalesOrderHeaderUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Validation/SalesOrderHeaderUpdateModelValidator.cs deleted file mode 100644 index b53f738..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Validation/SalesOrderHeaderUpdateModelValidator.cs +++ /dev/null @@ -1,27 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class SalesOrderHeaderUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public SalesOrderHeaderUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.PurchaseOrderNumber).MaximumLength(25); - RuleFor(p => p.AccountNumber).MaximumLength(15); - RuleFor(p => p.CreditCardApprovalCode).MaximumLength(15); - RuleFor(p => p.Comment).MaximumLength(128); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Mapping/SalesOrderHeaderSalesReasonProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Mapping/SalesOrderHeaderSalesReasonProfile.cs deleted file mode 100644 index 0c9ab02..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Mapping/SalesOrderHeaderSalesReasonProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class SalesOrderHeaderSalesReasonProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public SalesOrderHeaderSalesReasonProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonCreateModel.cs deleted file mode 100644 index f215e53..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonCreateModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SalesOrderHeaderSalesReasonCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'SalesOrderId'. - /// - /// - /// The property value for 'SalesOrderId'. - /// - public int SalesOrderId { get; set; } - - /// - /// Gets or sets the property value for 'SalesReasonId'. - /// - /// - /// The property value for 'SalesReasonId'. - /// - public int SalesReasonId { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonReadModel.cs deleted file mode 100644 index bbd89ca..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonReadModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SalesOrderHeaderSalesReasonReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'SalesOrderId'. - /// - /// - /// The property value for 'SalesOrderId'. - /// - public int SalesOrderId { get; set; } - - /// - /// Gets or sets the property value for 'SalesReasonId'. - /// - /// - /// The property value for 'SalesReasonId'. - /// - public int SalesReasonId { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonUpdateModel.cs deleted file mode 100644 index cbcc883..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonUpdateModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SalesOrderHeaderSalesReasonUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'SalesOrderId'. - /// - /// - /// The property value for 'SalesOrderId'. - /// - public int SalesOrderId { get; set; } - - /// - /// Gets or sets the property value for 'SalesReasonId'. - /// - /// - /// The property value for 'SalesReasonId'. - /// - public int SalesReasonId { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Validation/SalesOrderHeaderSalesReasonCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Validation/SalesOrderHeaderSalesReasonCreateModelValidator.cs deleted file mode 100644 index 9220b77..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Validation/SalesOrderHeaderSalesReasonCreateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class SalesOrderHeaderSalesReasonCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public SalesOrderHeaderSalesReasonCreateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Validation/SalesOrderHeaderSalesReasonUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Validation/SalesOrderHeaderSalesReasonUpdateModelValidator.cs deleted file mode 100644 index 196de86..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Validation/SalesOrderHeaderSalesReasonUpdateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class SalesOrderHeaderSalesReasonUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public SalesOrderHeaderSalesReasonUpdateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Mapping/SalesPersonProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Mapping/SalesPersonProfile.cs deleted file mode 100644 index 85d6730..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Mapping/SalesPersonProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class SalesPersonProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public SalesPersonProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonCreateModel.cs deleted file mode 100644 index 3fd4d90..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonCreateModel.cs +++ /dev/null @@ -1,84 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SalesPersonCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'TerritoryId'. - /// - /// - /// The property value for 'TerritoryId'. - /// - public int? TerritoryId { get; set; } - - /// - /// Gets or sets the property value for 'SalesQuota'. - /// - /// - /// The property value for 'SalesQuota'. - /// - public decimal? SalesQuota { get; set; } - - /// - /// Gets or sets the property value for 'Bonus'. - /// - /// - /// The property value for 'Bonus'. - /// - public decimal Bonus { get; set; } - - /// - /// Gets or sets the property value for 'CommissionPct'. - /// - /// - /// The property value for 'CommissionPct'. - /// - public decimal CommissionPct { get; set; } - - /// - /// Gets or sets the property value for 'SalesYTD'. - /// - /// - /// The property value for 'SalesYTD'. - /// - public decimal SalesYTD { get; set; } - - /// - /// Gets or sets the property value for 'SalesLastYear'. - /// - /// - /// The property value for 'SalesLastYear'. - /// - public decimal SalesLastYear { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonReadModel.cs deleted file mode 100644 index 8dd612f..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonReadModel.cs +++ /dev/null @@ -1,84 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SalesPersonReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'TerritoryId'. - /// - /// - /// The property value for 'TerritoryId'. - /// - public int? TerritoryId { get; set; } - - /// - /// Gets or sets the property value for 'SalesQuota'. - /// - /// - /// The property value for 'SalesQuota'. - /// - public decimal? SalesQuota { get; set; } - - /// - /// Gets or sets the property value for 'Bonus'. - /// - /// - /// The property value for 'Bonus'. - /// - public decimal Bonus { get; set; } - - /// - /// Gets or sets the property value for 'CommissionPct'. - /// - /// - /// The property value for 'CommissionPct'. - /// - public decimal CommissionPct { get; set; } - - /// - /// Gets or sets the property value for 'SalesYTD'. - /// - /// - /// The property value for 'SalesYTD'. - /// - public decimal SalesYTD { get; set; } - - /// - /// Gets or sets the property value for 'SalesLastYear'. - /// - /// - /// The property value for 'SalesLastYear'. - /// - public decimal SalesLastYear { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonUpdateModel.cs deleted file mode 100644 index f06f402..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonUpdateModel.cs +++ /dev/null @@ -1,84 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SalesPersonUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'TerritoryId'. - /// - /// - /// The property value for 'TerritoryId'. - /// - public int? TerritoryId { get; set; } - - /// - /// Gets or sets the property value for 'SalesQuota'. - /// - /// - /// The property value for 'SalesQuota'. - /// - public decimal? SalesQuota { get; set; } - - /// - /// Gets or sets the property value for 'Bonus'. - /// - /// - /// The property value for 'Bonus'. - /// - public decimal Bonus { get; set; } - - /// - /// Gets or sets the property value for 'CommissionPct'. - /// - /// - /// The property value for 'CommissionPct'. - /// - public decimal CommissionPct { get; set; } - - /// - /// Gets or sets the property value for 'SalesYTD'. - /// - /// - /// The property value for 'SalesYTD'. - /// - public decimal SalesYTD { get; set; } - - /// - /// Gets or sets the property value for 'SalesLastYear'. - /// - /// - /// The property value for 'SalesLastYear'. - /// - public decimal SalesLastYear { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Validation/SalesPersonCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Validation/SalesPersonCreateModelValidator.cs deleted file mode 100644 index bfc1900..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Validation/SalesPersonCreateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class SalesPersonCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public SalesPersonCreateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Validation/SalesPersonUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Validation/SalesPersonUpdateModelValidator.cs deleted file mode 100644 index 76dce7e..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Validation/SalesPersonUpdateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class SalesPersonUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public SalesPersonUpdateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Mapping/SalesPersonQuotaHistoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Mapping/SalesPersonQuotaHistoryProfile.cs deleted file mode 100644 index 25268bf..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Mapping/SalesPersonQuotaHistoryProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class SalesPersonQuotaHistoryProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public SalesPersonQuotaHistoryProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Models/SalesPersonQuotaHistoryCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Models/SalesPersonQuotaHistoryCreateModel.cs deleted file mode 100644 index 9dbd130..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Models/SalesPersonQuotaHistoryCreateModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SalesPersonQuotaHistoryCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'QuotaDate'. - /// - /// - /// The property value for 'QuotaDate'. - /// - public DateTime QuotaDate { get; set; } - - /// - /// Gets or sets the property value for 'SalesQuota'. - /// - /// - /// The property value for 'SalesQuota'. - /// - public decimal SalesQuota { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Models/SalesPersonQuotaHistoryReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Models/SalesPersonQuotaHistoryReadModel.cs deleted file mode 100644 index 19dd04f..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Models/SalesPersonQuotaHistoryReadModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SalesPersonQuotaHistoryReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'QuotaDate'. - /// - /// - /// The property value for 'QuotaDate'. - /// - public DateTime QuotaDate { get; set; } - - /// - /// Gets or sets the property value for 'SalesQuota'. - /// - /// - /// The property value for 'SalesQuota'. - /// - public decimal SalesQuota { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Models/SalesPersonQuotaHistoryUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Models/SalesPersonQuotaHistoryUpdateModel.cs deleted file mode 100644 index dddb865..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Models/SalesPersonQuotaHistoryUpdateModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SalesPersonQuotaHistoryUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'QuotaDate'. - /// - /// - /// The property value for 'QuotaDate'. - /// - public DateTime QuotaDate { get; set; } - - /// - /// Gets or sets the property value for 'SalesQuota'. - /// - /// - /// The property value for 'SalesQuota'. - /// - public decimal SalesQuota { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Validation/SalesPersonQuotaHistoryCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Validation/SalesPersonQuotaHistoryCreateModelValidator.cs deleted file mode 100644 index eec5124..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Validation/SalesPersonQuotaHistoryCreateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class SalesPersonQuotaHistoryCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public SalesPersonQuotaHistoryCreateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Validation/SalesPersonQuotaHistoryUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Validation/SalesPersonQuotaHistoryUpdateModelValidator.cs deleted file mode 100644 index ff72b5f..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Validation/SalesPersonQuotaHistoryUpdateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class SalesPersonQuotaHistoryUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public SalesPersonQuotaHistoryUpdateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Mapping/SalesReasonProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Mapping/SalesReasonProfile.cs deleted file mode 100644 index 035f1a2..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Mapping/SalesReasonProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class SalesReasonProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public SalesReasonProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonCreateModel.cs deleted file mode 100644 index 0a02c6c..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonCreateModel.cs +++ /dev/null @@ -1,44 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SalesReasonCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ReasonType'. - /// - /// - /// The property value for 'ReasonType'. - /// - public string ReasonType { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonReadModel.cs deleted file mode 100644 index d45501d..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonReadModel.cs +++ /dev/null @@ -1,44 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SalesReasonReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ReasonType'. - /// - /// - /// The property value for 'ReasonType'. - /// - public string ReasonType { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonUpdateModel.cs deleted file mode 100644 index 3a5018d..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonUpdateModel.cs +++ /dev/null @@ -1,44 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SalesReasonUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ReasonType'. - /// - /// - /// The property value for 'ReasonType'. - /// - public string ReasonType { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Validation/SalesReasonCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Validation/SalesReasonCreateModelValidator.cs deleted file mode 100644 index c4e45ce..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Validation/SalesReasonCreateModelValidator.cs +++ /dev/null @@ -1,27 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class SalesReasonCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public SalesReasonCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - RuleFor(p => p.ReasonType).NotEmpty(); - RuleFor(p => p.ReasonType).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Validation/SalesReasonUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Validation/SalesReasonUpdateModelValidator.cs deleted file mode 100644 index 1bc0d27..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Validation/SalesReasonUpdateModelValidator.cs +++ /dev/null @@ -1,27 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class SalesReasonUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public SalesReasonUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - RuleFor(p => p.ReasonType).NotEmpty(); - RuleFor(p => p.ReasonType).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Mapping/SalesTaxRateProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Mapping/SalesTaxRateProfile.cs deleted file mode 100644 index 4b727e9..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Mapping/SalesTaxRateProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class SalesTaxRateProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public SalesTaxRateProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateCreateModel.cs deleted file mode 100644 index 62c584e..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateCreateModel.cs +++ /dev/null @@ -1,68 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SalesTaxRateCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'StateProvinceId'. - /// - /// - /// The property value for 'StateProvinceId'. - /// - public int StateProvinceId { get; set; } - - /// - /// Gets or sets the property value for 'TaxType'. - /// - /// - /// The property value for 'TaxType'. - /// - public byte TaxType { get; set; } - - /// - /// Gets or sets the property value for 'TaxRate'. - /// - /// - /// The property value for 'TaxRate'. - /// - public decimal TaxRate { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateReadModel.cs deleted file mode 100644 index ea25a99..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateReadModel.cs +++ /dev/null @@ -1,68 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SalesTaxRateReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'StateProvinceId'. - /// - /// - /// The property value for 'StateProvinceId'. - /// - public int StateProvinceId { get; set; } - - /// - /// Gets or sets the property value for 'TaxType'. - /// - /// - /// The property value for 'TaxType'. - /// - public byte TaxType { get; set; } - - /// - /// Gets or sets the property value for 'TaxRate'. - /// - /// - /// The property value for 'TaxRate'. - /// - public decimal TaxRate { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateUpdateModel.cs deleted file mode 100644 index baa5e16..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateUpdateModel.cs +++ /dev/null @@ -1,68 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SalesTaxRateUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'StateProvinceId'. - /// - /// - /// The property value for 'StateProvinceId'. - /// - public int StateProvinceId { get; set; } - - /// - /// Gets or sets the property value for 'TaxType'. - /// - /// - /// The property value for 'TaxType'. - /// - public byte TaxType { get; set; } - - /// - /// Gets or sets the property value for 'TaxRate'. - /// - /// - /// The property value for 'TaxRate'. - /// - public decimal TaxRate { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Validation/SalesTaxRateCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Validation/SalesTaxRateCreateModelValidator.cs deleted file mode 100644 index 4ce57d9..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Validation/SalesTaxRateCreateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class SalesTaxRateCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public SalesTaxRateCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Validation/SalesTaxRateUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Validation/SalesTaxRateUpdateModelValidator.cs deleted file mode 100644 index 34fe3dd..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Validation/SalesTaxRateUpdateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class SalesTaxRateUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public SalesTaxRateUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Mapping/SalesTerritoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Mapping/SalesTerritoryProfile.cs deleted file mode 100644 index 748e27b..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Mapping/SalesTerritoryProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class SalesTerritoryProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public SalesTerritoryProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryCreateModel.cs deleted file mode 100644 index 1ba08c7..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryCreateModel.cs +++ /dev/null @@ -1,92 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SalesTerritoryCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CountryRegionCode'. - /// - /// - /// The property value for 'CountryRegionCode'. - /// - public string CountryRegionCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Group'. - /// - /// - /// The property value for 'Group'. - /// - public string Group { get; set; } = null!; - - /// - /// Gets or sets the property value for 'SalesYTD'. - /// - /// - /// The property value for 'SalesYTD'. - /// - public decimal SalesYTD { get; set; } - - /// - /// Gets or sets the property value for 'SalesLastYear'. - /// - /// - /// The property value for 'SalesLastYear'. - /// - public decimal SalesLastYear { get; set; } - - /// - /// Gets or sets the property value for 'CostYTD'. - /// - /// - /// The property value for 'CostYTD'. - /// - public decimal CostYTD { get; set; } - - /// - /// Gets or sets the property value for 'CostLastYear'. - /// - /// - /// The property value for 'CostLastYear'. - /// - public decimal CostLastYear { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryReadModel.cs deleted file mode 100644 index 12ccb78..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryReadModel.cs +++ /dev/null @@ -1,92 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SalesTerritoryReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CountryRegionCode'. - /// - /// - /// The property value for 'CountryRegionCode'. - /// - public string CountryRegionCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Group'. - /// - /// - /// The property value for 'Group'. - /// - public string Group { get; set; } = null!; - - /// - /// Gets or sets the property value for 'SalesYTD'. - /// - /// - /// The property value for 'SalesYTD'. - /// - public decimal SalesYTD { get; set; } - - /// - /// Gets or sets the property value for 'SalesLastYear'. - /// - /// - /// The property value for 'SalesLastYear'. - /// - public decimal SalesLastYear { get; set; } - - /// - /// Gets or sets the property value for 'CostYTD'. - /// - /// - /// The property value for 'CostYTD'. - /// - public decimal CostYTD { get; set; } - - /// - /// Gets or sets the property value for 'CostLastYear'. - /// - /// - /// The property value for 'CostLastYear'. - /// - public decimal CostLastYear { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryUpdateModel.cs deleted file mode 100644 index c0f9a9b..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryUpdateModel.cs +++ /dev/null @@ -1,92 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SalesTerritoryUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CountryRegionCode'. - /// - /// - /// The property value for 'CountryRegionCode'. - /// - public string CountryRegionCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Group'. - /// - /// - /// The property value for 'Group'. - /// - public string Group { get; set; } = null!; - - /// - /// Gets or sets the property value for 'SalesYTD'. - /// - /// - /// The property value for 'SalesYTD'. - /// - public decimal SalesYTD { get; set; } - - /// - /// Gets or sets the property value for 'SalesLastYear'. - /// - /// - /// The property value for 'SalesLastYear'. - /// - public decimal SalesLastYear { get; set; } - - /// - /// Gets or sets the property value for 'CostYTD'. - /// - /// - /// The property value for 'CostYTD'. - /// - public decimal CostYTD { get; set; } - - /// - /// Gets or sets the property value for 'CostLastYear'. - /// - /// - /// The property value for 'CostLastYear'. - /// - public decimal CostLastYear { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Validation/SalesTerritoryCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Validation/SalesTerritoryCreateModelValidator.cs deleted file mode 100644 index 0f0ba24..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Validation/SalesTerritoryCreateModelValidator.cs +++ /dev/null @@ -1,29 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class SalesTerritoryCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public SalesTerritoryCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - RuleFor(p => p.CountryRegionCode).NotEmpty(); - RuleFor(p => p.CountryRegionCode).MaximumLength(3); - RuleFor(p => p.Group).NotEmpty(); - RuleFor(p => p.Group).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Validation/SalesTerritoryUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Validation/SalesTerritoryUpdateModelValidator.cs deleted file mode 100644 index dfd59f3..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Validation/SalesTerritoryUpdateModelValidator.cs +++ /dev/null @@ -1,29 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class SalesTerritoryUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public SalesTerritoryUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - RuleFor(p => p.CountryRegionCode).NotEmpty(); - RuleFor(p => p.CountryRegionCode).MaximumLength(3); - RuleFor(p => p.Group).NotEmpty(); - RuleFor(p => p.Group).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Mapping/SalesTerritoryHistoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Mapping/SalesTerritoryHistoryProfile.cs deleted file mode 100644 index 3a3d844..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Mapping/SalesTerritoryHistoryProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class SalesTerritoryHistoryProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public SalesTerritoryHistoryProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Models/SalesTerritoryHistoryCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Models/SalesTerritoryHistoryCreateModel.cs deleted file mode 100644 index c675177..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Models/SalesTerritoryHistoryCreateModel.cs +++ /dev/null @@ -1,60 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SalesTerritoryHistoryCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'TerritoryId'. - /// - /// - /// The property value for 'TerritoryId'. - /// - public int TerritoryId { get; set; } - - /// - /// Gets or sets the property value for 'StartDate'. - /// - /// - /// The property value for 'StartDate'. - /// - public DateTime StartDate { get; set; } - - /// - /// Gets or sets the property value for 'EndDate'. - /// - /// - /// The property value for 'EndDate'. - /// - public DateTime? EndDate { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Models/SalesTerritoryHistoryReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Models/SalesTerritoryHistoryReadModel.cs deleted file mode 100644 index 5664f10..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Models/SalesTerritoryHistoryReadModel.cs +++ /dev/null @@ -1,60 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SalesTerritoryHistoryReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'TerritoryId'. - /// - /// - /// The property value for 'TerritoryId'. - /// - public int TerritoryId { get; set; } - - /// - /// Gets or sets the property value for 'StartDate'. - /// - /// - /// The property value for 'StartDate'. - /// - public DateTime StartDate { get; set; } - - /// - /// Gets or sets the property value for 'EndDate'. - /// - /// - /// The property value for 'EndDate'. - /// - public DateTime? EndDate { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Models/SalesTerritoryHistoryUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Models/SalesTerritoryHistoryUpdateModel.cs deleted file mode 100644 index 31e4888..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Models/SalesTerritoryHistoryUpdateModel.cs +++ /dev/null @@ -1,60 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SalesTerritoryHistoryUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'TerritoryId'. - /// - /// - /// The property value for 'TerritoryId'. - /// - public int TerritoryId { get; set; } - - /// - /// Gets or sets the property value for 'StartDate'. - /// - /// - /// The property value for 'StartDate'. - /// - public DateTime StartDate { get; set; } - - /// - /// Gets or sets the property value for 'EndDate'. - /// - /// - /// The property value for 'EndDate'. - /// - public DateTime? EndDate { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Validation/SalesTerritoryHistoryCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Validation/SalesTerritoryHistoryCreateModelValidator.cs deleted file mode 100644 index fcf5447..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Validation/SalesTerritoryHistoryCreateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class SalesTerritoryHistoryCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public SalesTerritoryHistoryCreateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Validation/SalesTerritoryHistoryUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Validation/SalesTerritoryHistoryUpdateModelValidator.cs deleted file mode 100644 index 6deb0e0..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Validation/SalesTerritoryHistoryUpdateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class SalesTerritoryHistoryUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public SalesTerritoryHistoryUpdateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Mapping/ScrapReasonProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Mapping/ScrapReasonProfile.cs deleted file mode 100644 index e71e01d..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Mapping/ScrapReasonProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class ScrapReasonProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public ScrapReasonProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonCreateModel.cs deleted file mode 100644 index 27fb131..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonCreateModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ScrapReasonCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public short Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonReadModel.cs deleted file mode 100644 index 9d9df7e..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonReadModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ScrapReasonReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public short Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonUpdateModel.cs deleted file mode 100644 index c8a9ea4..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonUpdateModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ScrapReasonUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public short Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Validation/ScrapReasonCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Validation/ScrapReasonCreateModelValidator.cs deleted file mode 100644 index 8d5c9b8..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Validation/ScrapReasonCreateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ScrapReasonCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ScrapReasonCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Validation/ScrapReasonUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Validation/ScrapReasonUpdateModelValidator.cs deleted file mode 100644 index b5c0023..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Validation/ScrapReasonUpdateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ScrapReasonUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ScrapReasonUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Shift/Mapping/ShiftProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Shift/Mapping/ShiftProfile.cs deleted file mode 100644 index 9000675..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Shift/Mapping/ShiftProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class ShiftProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public ShiftProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Shift/Models/ShiftCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Shift/Models/ShiftCreateModel.cs deleted file mode 100644 index e9788d0..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Shift/Models/ShiftCreateModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ShiftCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public byte Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'StartTime'. - /// - /// - /// The property value for 'StartTime'. - /// - public TimeOnly StartTime { get; set; } - - /// - /// Gets or sets the property value for 'EndTime'. - /// - /// - /// The property value for 'EndTime'. - /// - public TimeOnly EndTime { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Shift/Models/ShiftReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Shift/Models/ShiftReadModel.cs deleted file mode 100644 index b79bdaa..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Shift/Models/ShiftReadModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ShiftReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public byte Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'StartTime'. - /// - /// - /// The property value for 'StartTime'. - /// - public TimeOnly StartTime { get; set; } - - /// - /// Gets or sets the property value for 'EndTime'. - /// - /// - /// The property value for 'EndTime'. - /// - public TimeOnly EndTime { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Shift/Models/ShiftUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Shift/Models/ShiftUpdateModel.cs deleted file mode 100644 index f0dff3a..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Shift/Models/ShiftUpdateModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ShiftUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public byte Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'StartTime'. - /// - /// - /// The property value for 'StartTime'. - /// - public TimeOnly StartTime { get; set; } - - /// - /// Gets or sets the property value for 'EndTime'. - /// - /// - /// The property value for 'EndTime'. - /// - public TimeOnly EndTime { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Shift/Validation/ShiftCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Shift/Validation/ShiftCreateModelValidator.cs deleted file mode 100644 index cc92ffb..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Shift/Validation/ShiftCreateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ShiftCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ShiftCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Shift/Validation/ShiftUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Shift/Validation/ShiftUpdateModelValidator.cs deleted file mode 100644 index ad5adc0..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Shift/Validation/ShiftUpdateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ShiftUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ShiftUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Mapping/ShipMethodProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Mapping/ShipMethodProfile.cs deleted file mode 100644 index 5616469..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Mapping/ShipMethodProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class ShipMethodProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public ShipMethodProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Models/ShipMethodCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Models/ShipMethodCreateModel.cs deleted file mode 100644 index 166750a..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Models/ShipMethodCreateModel.cs +++ /dev/null @@ -1,60 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ShipMethodCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ShipBase'. - /// - /// - /// The property value for 'ShipBase'. - /// - public decimal ShipBase { get; set; } - - /// - /// Gets or sets the property value for 'ShipRate'. - /// - /// - /// The property value for 'ShipRate'. - /// - public decimal ShipRate { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Models/ShipMethodReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Models/ShipMethodReadModel.cs deleted file mode 100644 index a959458..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Models/ShipMethodReadModel.cs +++ /dev/null @@ -1,60 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ShipMethodReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ShipBase'. - /// - /// - /// The property value for 'ShipBase'. - /// - public decimal ShipBase { get; set; } - - /// - /// Gets or sets the property value for 'ShipRate'. - /// - /// - /// The property value for 'ShipRate'. - /// - public decimal ShipRate { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Models/ShipMethodUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Models/ShipMethodUpdateModel.cs deleted file mode 100644 index e4e240e..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Models/ShipMethodUpdateModel.cs +++ /dev/null @@ -1,60 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ShipMethodUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ShipBase'. - /// - /// - /// The property value for 'ShipBase'. - /// - public decimal ShipBase { get; set; } - - /// - /// Gets or sets the property value for 'ShipRate'. - /// - /// - /// The property value for 'ShipRate'. - /// - public decimal ShipRate { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Validation/ShipMethodCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Validation/ShipMethodCreateModelValidator.cs deleted file mode 100644 index 9dde2f2..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Validation/ShipMethodCreateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ShipMethodCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ShipMethodCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Validation/ShipMethodUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Validation/ShipMethodUpdateModelValidator.cs deleted file mode 100644 index 23aec32..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Validation/ShipMethodUpdateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ShipMethodUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ShipMethodUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Mapping/ShoppingCartItemProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Mapping/ShoppingCartItemProfile.cs deleted file mode 100644 index aa093e5..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Mapping/ShoppingCartItemProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class ShoppingCartItemProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public ShoppingCartItemProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Models/ShoppingCartItemCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Models/ShoppingCartItemCreateModel.cs deleted file mode 100644 index bc78580..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Models/ShoppingCartItemCreateModel.cs +++ /dev/null @@ -1,60 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ShoppingCartItemCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'ShoppingCartId'. - /// - /// - /// The property value for 'ShoppingCartId'. - /// - public string ShoppingCartId { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Quantity'. - /// - /// - /// The property value for 'Quantity'. - /// - public int Quantity { get; set; } - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'DateCreated'. - /// - /// - /// The property value for 'DateCreated'. - /// - public DateTime DateCreated { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Models/ShoppingCartItemReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Models/ShoppingCartItemReadModel.cs deleted file mode 100644 index aafb591..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Models/ShoppingCartItemReadModel.cs +++ /dev/null @@ -1,60 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ShoppingCartItemReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'ShoppingCartId'. - /// - /// - /// The property value for 'ShoppingCartId'. - /// - public string ShoppingCartId { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Quantity'. - /// - /// - /// The property value for 'Quantity'. - /// - public int Quantity { get; set; } - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'DateCreated'. - /// - /// - /// The property value for 'DateCreated'. - /// - public DateTime DateCreated { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Models/ShoppingCartItemUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Models/ShoppingCartItemUpdateModel.cs deleted file mode 100644 index 1b3259f..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Models/ShoppingCartItemUpdateModel.cs +++ /dev/null @@ -1,60 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class ShoppingCartItemUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'ShoppingCartId'. - /// - /// - /// The property value for 'ShoppingCartId'. - /// - public string ShoppingCartId { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Quantity'. - /// - /// - /// The property value for 'Quantity'. - /// - public int Quantity { get; set; } - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'DateCreated'. - /// - /// - /// The property value for 'DateCreated'. - /// - public DateTime DateCreated { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Validation/ShoppingCartItemCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Validation/ShoppingCartItemCreateModelValidator.cs deleted file mode 100644 index 2daf165..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Validation/ShoppingCartItemCreateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ShoppingCartItemCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ShoppingCartItemCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.ShoppingCartId).NotEmpty(); - RuleFor(p => p.ShoppingCartId).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Validation/ShoppingCartItemUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Validation/ShoppingCartItemUpdateModelValidator.cs deleted file mode 100644 index 26c76c3..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Validation/ShoppingCartItemUpdateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class ShoppingCartItemUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public ShoppingCartItemUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.ShoppingCartId).NotEmpty(); - RuleFor(p => p.ShoppingCartId).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Mapping/SpecialOfferProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Mapping/SpecialOfferProfile.cs deleted file mode 100644 index 27735d5..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Mapping/SpecialOfferProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class SpecialOfferProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public SpecialOfferProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferCreateModel.cs deleted file mode 100644 index c75e382..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferCreateModel.cs +++ /dev/null @@ -1,100 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SpecialOfferCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Description'. - /// - /// - /// The property value for 'Description'. - /// - public string Description { get; set; } = null!; - - /// - /// Gets or sets the property value for 'DiscountPct'. - /// - /// - /// The property value for 'DiscountPct'. - /// - public decimal DiscountPct { get; set; } - - /// - /// Gets or sets the property value for 'Type'. - /// - /// - /// The property value for 'Type'. - /// - public string Type { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Category'. - /// - /// - /// The property value for 'Category'. - /// - public string Category { get; set; } = null!; - - /// - /// Gets or sets the property value for 'StartDate'. - /// - /// - /// The property value for 'StartDate'. - /// - public DateTime StartDate { get; set; } - - /// - /// Gets or sets the property value for 'EndDate'. - /// - /// - /// The property value for 'EndDate'. - /// - public DateTime EndDate { get; set; } - - /// - /// Gets or sets the property value for 'MinQty'. - /// - /// - /// The property value for 'MinQty'. - /// - public int MinQty { get; set; } - - /// - /// Gets or sets the property value for 'MaxQty'. - /// - /// - /// The property value for 'MaxQty'. - /// - public int? MaxQty { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferReadModel.cs deleted file mode 100644 index 9035a45..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferReadModel.cs +++ /dev/null @@ -1,100 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SpecialOfferReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Description'. - /// - /// - /// The property value for 'Description'. - /// - public string Description { get; set; } = null!; - - /// - /// Gets or sets the property value for 'DiscountPct'. - /// - /// - /// The property value for 'DiscountPct'. - /// - public decimal DiscountPct { get; set; } - - /// - /// Gets or sets the property value for 'Type'. - /// - /// - /// The property value for 'Type'. - /// - public string Type { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Category'. - /// - /// - /// The property value for 'Category'. - /// - public string Category { get; set; } = null!; - - /// - /// Gets or sets the property value for 'StartDate'. - /// - /// - /// The property value for 'StartDate'. - /// - public DateTime StartDate { get; set; } - - /// - /// Gets or sets the property value for 'EndDate'. - /// - /// - /// The property value for 'EndDate'. - /// - public DateTime EndDate { get; set; } - - /// - /// Gets or sets the property value for 'MinQty'. - /// - /// - /// The property value for 'MinQty'. - /// - public int MinQty { get; set; } - - /// - /// Gets or sets the property value for 'MaxQty'. - /// - /// - /// The property value for 'MaxQty'. - /// - public int? MaxQty { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferUpdateModel.cs deleted file mode 100644 index 8a97e93..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferUpdateModel.cs +++ /dev/null @@ -1,100 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SpecialOfferUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Description'. - /// - /// - /// The property value for 'Description'. - /// - public string Description { get; set; } = null!; - - /// - /// Gets or sets the property value for 'DiscountPct'. - /// - /// - /// The property value for 'DiscountPct'. - /// - public decimal DiscountPct { get; set; } - - /// - /// Gets or sets the property value for 'Type'. - /// - /// - /// The property value for 'Type'. - /// - public string Type { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Category'. - /// - /// - /// The property value for 'Category'. - /// - public string Category { get; set; } = null!; - - /// - /// Gets or sets the property value for 'StartDate'. - /// - /// - /// The property value for 'StartDate'. - /// - public DateTime StartDate { get; set; } - - /// - /// Gets or sets the property value for 'EndDate'. - /// - /// - /// The property value for 'EndDate'. - /// - public DateTime EndDate { get; set; } - - /// - /// Gets or sets the property value for 'MinQty'. - /// - /// - /// The property value for 'MinQty'. - /// - public int MinQty { get; set; } - - /// - /// Gets or sets the property value for 'MaxQty'. - /// - /// - /// The property value for 'MaxQty'. - /// - public int? MaxQty { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Validation/SpecialOfferCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Validation/SpecialOfferCreateModelValidator.cs deleted file mode 100644 index 3b9693a..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Validation/SpecialOfferCreateModelValidator.cs +++ /dev/null @@ -1,29 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class SpecialOfferCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public SpecialOfferCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Description).NotEmpty(); - RuleFor(p => p.Description).MaximumLength(255); - RuleFor(p => p.Type).NotEmpty(); - RuleFor(p => p.Type).MaximumLength(50); - RuleFor(p => p.Category).NotEmpty(); - RuleFor(p => p.Category).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Validation/SpecialOfferUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Validation/SpecialOfferUpdateModelValidator.cs deleted file mode 100644 index 331dca0..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Validation/SpecialOfferUpdateModelValidator.cs +++ /dev/null @@ -1,29 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class SpecialOfferUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public SpecialOfferUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Description).NotEmpty(); - RuleFor(p => p.Description).MaximumLength(255); - RuleFor(p => p.Type).NotEmpty(); - RuleFor(p => p.Type).MaximumLength(50); - RuleFor(p => p.Category).NotEmpty(); - RuleFor(p => p.Category).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Mapping/SpecialOfferProductProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Mapping/SpecialOfferProductProfile.cs deleted file mode 100644 index 632fdff..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Mapping/SpecialOfferProductProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class SpecialOfferProductProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public SpecialOfferProductProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductCreateModel.cs deleted file mode 100644 index a913d86..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductCreateModel.cs +++ /dev/null @@ -1,44 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SpecialOfferProductCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'SpecialOfferId'. - /// - /// - /// The property value for 'SpecialOfferId'. - /// - public int SpecialOfferId { get; set; } - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductReadModel.cs deleted file mode 100644 index 1f0ea56..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductReadModel.cs +++ /dev/null @@ -1,44 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SpecialOfferProductReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'SpecialOfferId'. - /// - /// - /// The property value for 'SpecialOfferId'. - /// - public int SpecialOfferId { get; set; } - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductUpdateModel.cs deleted file mode 100644 index 294f964..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductUpdateModel.cs +++ /dev/null @@ -1,44 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class SpecialOfferProductUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'SpecialOfferId'. - /// - /// - /// The property value for 'SpecialOfferId'. - /// - public int SpecialOfferId { get; set; } - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Validation/SpecialOfferProductCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Validation/SpecialOfferProductCreateModelValidator.cs deleted file mode 100644 index 6205f4c..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Validation/SpecialOfferProductCreateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class SpecialOfferProductCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public SpecialOfferProductCreateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Validation/SpecialOfferProductUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Validation/SpecialOfferProductUpdateModelValidator.cs deleted file mode 100644 index 5055c4b..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Validation/SpecialOfferProductUpdateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class SpecialOfferProductUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public SpecialOfferProductUpdateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Mapping/StateProvinceProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Mapping/StateProvinceProfile.cs deleted file mode 100644 index 57ad99d..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Mapping/StateProvinceProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class StateProvinceProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public StateProvinceProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceCreateModel.cs deleted file mode 100644 index b7fa103..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceCreateModel.cs +++ /dev/null @@ -1,76 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class StateProvinceCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'StateProvinceCode'. - /// - /// - /// The property value for 'StateProvinceCode'. - /// - public string StateProvinceCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CountryRegionCode'. - /// - /// - /// The property value for 'CountryRegionCode'. - /// - public string CountryRegionCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'IsOnlyStateProvinceFlag'. - /// - /// - /// The property value for 'IsOnlyStateProvinceFlag'. - /// - public bool IsOnlyStateProvinceFlag { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'TerritoryId'. - /// - /// - /// The property value for 'TerritoryId'. - /// - public int TerritoryId { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceReadModel.cs deleted file mode 100644 index 3ffd8d8..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceReadModel.cs +++ /dev/null @@ -1,76 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class StateProvinceReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'StateProvinceCode'. - /// - /// - /// The property value for 'StateProvinceCode'. - /// - public string StateProvinceCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CountryRegionCode'. - /// - /// - /// The property value for 'CountryRegionCode'. - /// - public string CountryRegionCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'IsOnlyStateProvinceFlag'. - /// - /// - /// The property value for 'IsOnlyStateProvinceFlag'. - /// - public bool IsOnlyStateProvinceFlag { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'TerritoryId'. - /// - /// - /// The property value for 'TerritoryId'. - /// - public int TerritoryId { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceUpdateModel.cs deleted file mode 100644 index 80fc474..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceUpdateModel.cs +++ /dev/null @@ -1,76 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class StateProvinceUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'StateProvinceCode'. - /// - /// - /// The property value for 'StateProvinceCode'. - /// - public string StateProvinceCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CountryRegionCode'. - /// - /// - /// The property value for 'CountryRegionCode'. - /// - public string CountryRegionCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'IsOnlyStateProvinceFlag'. - /// - /// - /// The property value for 'IsOnlyStateProvinceFlag'. - /// - public bool IsOnlyStateProvinceFlag { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'TerritoryId'. - /// - /// - /// The property value for 'TerritoryId'. - /// - public int TerritoryId { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Validation/StateProvinceCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Validation/StateProvinceCreateModelValidator.cs deleted file mode 100644 index e1f2377..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Validation/StateProvinceCreateModelValidator.cs +++ /dev/null @@ -1,29 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class StateProvinceCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public StateProvinceCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.StateProvinceCode).NotEmpty(); - RuleFor(p => p.StateProvinceCode).MaximumLength(3); - RuleFor(p => p.CountryRegionCode).NotEmpty(); - RuleFor(p => p.CountryRegionCode).MaximumLength(3); - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Validation/StateProvinceUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Validation/StateProvinceUpdateModelValidator.cs deleted file mode 100644 index 5f3fd49..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Validation/StateProvinceUpdateModelValidator.cs +++ /dev/null @@ -1,29 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class StateProvinceUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public StateProvinceUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.StateProvinceCode).NotEmpty(); - RuleFor(p => p.StateProvinceCode).MaximumLength(3); - RuleFor(p => p.CountryRegionCode).NotEmpty(); - RuleFor(p => p.CountryRegionCode).MaximumLength(3); - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Store/Mapping/StoreProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Store/Mapping/StoreProfile.cs deleted file mode 100644 index fe0e8b4..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Store/Mapping/StoreProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class StoreProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public StoreProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Store/Models/StoreCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Store/Models/StoreCreateModel.cs deleted file mode 100644 index a6f92cc..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Store/Models/StoreCreateModel.cs +++ /dev/null @@ -1,60 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class StoreCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'SalesPersonId'. - /// - /// - /// The property value for 'SalesPersonId'. - /// - public int? SalesPersonId { get; set; } - - /// - /// Gets or sets the property value for 'Demographics'. - /// - /// - /// The property value for 'Demographics'. - /// - public string? Demographics { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Store/Models/StoreReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Store/Models/StoreReadModel.cs deleted file mode 100644 index 9869a61..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Store/Models/StoreReadModel.cs +++ /dev/null @@ -1,60 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class StoreReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'SalesPersonId'. - /// - /// - /// The property value for 'SalesPersonId'. - /// - public int? SalesPersonId { get; set; } - - /// - /// Gets or sets the property value for 'Demographics'. - /// - /// - /// The property value for 'Demographics'. - /// - public string? Demographics { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Store/Models/StoreUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Store/Models/StoreUpdateModel.cs deleted file mode 100644 index 9e2f9f9..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Store/Models/StoreUpdateModel.cs +++ /dev/null @@ -1,60 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class StoreUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'SalesPersonId'. - /// - /// - /// The property value for 'SalesPersonId'. - /// - public int? SalesPersonId { get; set; } - - /// - /// Gets or sets the property value for 'Demographics'. - /// - /// - /// The property value for 'Demographics'. - /// - public string? Demographics { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Store/Validation/StoreCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Store/Validation/StoreCreateModelValidator.cs deleted file mode 100644 index ab753c1..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Store/Validation/StoreCreateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class StoreCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public StoreCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Store/Validation/StoreUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Store/Validation/StoreUpdateModelValidator.cs deleted file mode 100644 index 2c6c4d7..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Store/Validation/StoreUpdateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class StoreUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public StoreUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Mapping/TransactionHistoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Mapping/TransactionHistoryProfile.cs deleted file mode 100644 index 4e4d4c3..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Mapping/TransactionHistoryProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class TransactionHistoryProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public TransactionHistoryProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryCreateModel.cs deleted file mode 100644 index 329b89d..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryCreateModel.cs +++ /dev/null @@ -1,84 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class TransactionHistoryCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'ReferenceOrderId'. - /// - /// - /// The property value for 'ReferenceOrderId'. - /// - public int ReferenceOrderId { get; set; } - - /// - /// Gets or sets the property value for 'ReferenceOrderLineId'. - /// - /// - /// The property value for 'ReferenceOrderLineId'. - /// - public int ReferenceOrderLineId { get; set; } - - /// - /// Gets or sets the property value for 'TransactionDate'. - /// - /// - /// The property value for 'TransactionDate'. - /// - public DateTime TransactionDate { get; set; } - - /// - /// Gets or sets the property value for 'TransactionType'. - /// - /// - /// The property value for 'TransactionType'. - /// - public string TransactionType { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Quantity'. - /// - /// - /// The property value for 'Quantity'. - /// - public int Quantity { get; set; } - - /// - /// Gets or sets the property value for 'ActualCost'. - /// - /// - /// The property value for 'ActualCost'. - /// - public decimal ActualCost { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryReadModel.cs deleted file mode 100644 index ee13921..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryReadModel.cs +++ /dev/null @@ -1,84 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class TransactionHistoryReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'ReferenceOrderId'. - /// - /// - /// The property value for 'ReferenceOrderId'. - /// - public int ReferenceOrderId { get; set; } - - /// - /// Gets or sets the property value for 'ReferenceOrderLineId'. - /// - /// - /// The property value for 'ReferenceOrderLineId'. - /// - public int ReferenceOrderLineId { get; set; } - - /// - /// Gets or sets the property value for 'TransactionDate'. - /// - /// - /// The property value for 'TransactionDate'. - /// - public DateTime TransactionDate { get; set; } - - /// - /// Gets or sets the property value for 'TransactionType'. - /// - /// - /// The property value for 'TransactionType'. - /// - public string TransactionType { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Quantity'. - /// - /// - /// The property value for 'Quantity'. - /// - public int Quantity { get; set; } - - /// - /// Gets or sets the property value for 'ActualCost'. - /// - /// - /// The property value for 'ActualCost'. - /// - public decimal ActualCost { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryUpdateModel.cs deleted file mode 100644 index fc8cbd0..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryUpdateModel.cs +++ /dev/null @@ -1,84 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class TransactionHistoryUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'ReferenceOrderId'. - /// - /// - /// The property value for 'ReferenceOrderId'. - /// - public int ReferenceOrderId { get; set; } - - /// - /// Gets or sets the property value for 'ReferenceOrderLineId'. - /// - /// - /// The property value for 'ReferenceOrderLineId'. - /// - public int ReferenceOrderLineId { get; set; } - - /// - /// Gets or sets the property value for 'TransactionDate'. - /// - /// - /// The property value for 'TransactionDate'. - /// - public DateTime TransactionDate { get; set; } - - /// - /// Gets or sets the property value for 'TransactionType'. - /// - /// - /// The property value for 'TransactionType'. - /// - public string TransactionType { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Quantity'. - /// - /// - /// The property value for 'Quantity'. - /// - public int Quantity { get; set; } - - /// - /// Gets or sets the property value for 'ActualCost'. - /// - /// - /// The property value for 'ActualCost'. - /// - public decimal ActualCost { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Validation/TransactionHistoryCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Validation/TransactionHistoryCreateModelValidator.cs deleted file mode 100644 index 8df86cb..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Validation/TransactionHistoryCreateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class TransactionHistoryCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public TransactionHistoryCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.TransactionType).NotEmpty(); - RuleFor(p => p.TransactionType).MaximumLength(1); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Validation/TransactionHistoryUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Validation/TransactionHistoryUpdateModelValidator.cs deleted file mode 100644 index 5f63e95..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Validation/TransactionHistoryUpdateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class TransactionHistoryUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public TransactionHistoryUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.TransactionType).NotEmpty(); - RuleFor(p => p.TransactionType).MaximumLength(1); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Mapping/TransactionHistoryArchiveProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Mapping/TransactionHistoryArchiveProfile.cs deleted file mode 100644 index 8760883..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Mapping/TransactionHistoryArchiveProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class TransactionHistoryArchiveProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public TransactionHistoryArchiveProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveCreateModel.cs deleted file mode 100644 index fe0df0d..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveCreateModel.cs +++ /dev/null @@ -1,84 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class TransactionHistoryArchiveCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'TransactionId'. - /// - /// - /// The property value for 'TransactionId'. - /// - public int TransactionId { get; set; } - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'ReferenceOrderId'. - /// - /// - /// The property value for 'ReferenceOrderId'. - /// - public int ReferenceOrderId { get; set; } - - /// - /// Gets or sets the property value for 'ReferenceOrderLineId'. - /// - /// - /// The property value for 'ReferenceOrderLineId'. - /// - public int ReferenceOrderLineId { get; set; } - - /// - /// Gets or sets the property value for 'TransactionDate'. - /// - /// - /// The property value for 'TransactionDate'. - /// - public DateTime TransactionDate { get; set; } - - /// - /// Gets or sets the property value for 'TransactionType'. - /// - /// - /// The property value for 'TransactionType'. - /// - public string TransactionType { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Quantity'. - /// - /// - /// The property value for 'Quantity'. - /// - public int Quantity { get; set; } - - /// - /// Gets or sets the property value for 'ActualCost'. - /// - /// - /// The property value for 'ActualCost'. - /// - public decimal ActualCost { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveReadModel.cs deleted file mode 100644 index 5d9dc19..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveReadModel.cs +++ /dev/null @@ -1,84 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class TransactionHistoryArchiveReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'TransactionId'. - /// - /// - /// The property value for 'TransactionId'. - /// - public int TransactionId { get; set; } - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'ReferenceOrderId'. - /// - /// - /// The property value for 'ReferenceOrderId'. - /// - public int ReferenceOrderId { get; set; } - - /// - /// Gets or sets the property value for 'ReferenceOrderLineId'. - /// - /// - /// The property value for 'ReferenceOrderLineId'. - /// - public int ReferenceOrderLineId { get; set; } - - /// - /// Gets or sets the property value for 'TransactionDate'. - /// - /// - /// The property value for 'TransactionDate'. - /// - public DateTime TransactionDate { get; set; } - - /// - /// Gets or sets the property value for 'TransactionType'. - /// - /// - /// The property value for 'TransactionType'. - /// - public string TransactionType { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Quantity'. - /// - /// - /// The property value for 'Quantity'. - /// - public int Quantity { get; set; } - - /// - /// Gets or sets the property value for 'ActualCost'. - /// - /// - /// The property value for 'ActualCost'. - /// - public decimal ActualCost { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveUpdateModel.cs deleted file mode 100644 index 6fd0fd0..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveUpdateModel.cs +++ /dev/null @@ -1,84 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class TransactionHistoryArchiveUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'TransactionId'. - /// - /// - /// The property value for 'TransactionId'. - /// - public int TransactionId { get; set; } - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'ReferenceOrderId'. - /// - /// - /// The property value for 'ReferenceOrderId'. - /// - public int ReferenceOrderId { get; set; } - - /// - /// Gets or sets the property value for 'ReferenceOrderLineId'. - /// - /// - /// The property value for 'ReferenceOrderLineId'. - /// - public int ReferenceOrderLineId { get; set; } - - /// - /// Gets or sets the property value for 'TransactionDate'. - /// - /// - /// The property value for 'TransactionDate'. - /// - public DateTime TransactionDate { get; set; } - - /// - /// Gets or sets the property value for 'TransactionType'. - /// - /// - /// The property value for 'TransactionType'. - /// - public string TransactionType { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Quantity'. - /// - /// - /// The property value for 'Quantity'. - /// - public int Quantity { get; set; } - - /// - /// Gets or sets the property value for 'ActualCost'. - /// - /// - /// The property value for 'ActualCost'. - /// - public decimal ActualCost { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Validation/TransactionHistoryArchiveCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Validation/TransactionHistoryArchiveCreateModelValidator.cs deleted file mode 100644 index 3ff31fa..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Validation/TransactionHistoryArchiveCreateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class TransactionHistoryArchiveCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public TransactionHistoryArchiveCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.TransactionType).NotEmpty(); - RuleFor(p => p.TransactionType).MaximumLength(1); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Validation/TransactionHistoryArchiveUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Validation/TransactionHistoryArchiveUpdateModelValidator.cs deleted file mode 100644 index be214c6..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Validation/TransactionHistoryArchiveUpdateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class TransactionHistoryArchiveUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public TransactionHistoryArchiveUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.TransactionType).NotEmpty(); - RuleFor(p => p.TransactionType).MaximumLength(1); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Mapping/UnitMeasureProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Mapping/UnitMeasureProfile.cs deleted file mode 100644 index ecdb818..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Mapping/UnitMeasureProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class UnitMeasureProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public UnitMeasureProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureCreateModel.cs deleted file mode 100644 index 75d02a6..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureCreateModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class UnitMeasureCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'UnitMeasureCode'. - /// - /// - /// The property value for 'UnitMeasureCode'. - /// - public string UnitMeasureCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureReadModel.cs deleted file mode 100644 index ee733e5..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureReadModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class UnitMeasureReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'UnitMeasureCode'. - /// - /// - /// The property value for 'UnitMeasureCode'. - /// - public string UnitMeasureCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureUpdateModel.cs deleted file mode 100644 index 3ad840f..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureUpdateModel.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class UnitMeasureUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'UnitMeasureCode'. - /// - /// - /// The property value for 'UnitMeasureCode'. - /// - public string UnitMeasureCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Validation/UnitMeasureCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Validation/UnitMeasureCreateModelValidator.cs deleted file mode 100644 index 1e61caf..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Validation/UnitMeasureCreateModelValidator.cs +++ /dev/null @@ -1,27 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class UnitMeasureCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public UnitMeasureCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.UnitMeasureCode).NotEmpty(); - RuleFor(p => p.UnitMeasureCode).MaximumLength(3); - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Validation/UnitMeasureUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Validation/UnitMeasureUpdateModelValidator.cs deleted file mode 100644 index 1e51cc5..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Validation/UnitMeasureUpdateModelValidator.cs +++ /dev/null @@ -1,27 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class UnitMeasureUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public UnitMeasureUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.UnitMeasureCode).NotEmpty(); - RuleFor(p => p.UnitMeasureCode).MaximumLength(3); - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Mapping/VAdditionalContactInfoProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Mapping/VAdditionalContactInfoProfile.cs deleted file mode 100644 index d19ba20..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Mapping/VAdditionalContactInfoProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class VAdditionalContactInfoProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public VAdditionalContactInfoProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Models/VAdditionalContactInfoCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Models/VAdditionalContactInfoCreateModel.cs deleted file mode 100644 index f382972..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Models/VAdditionalContactInfoCreateModel.cs +++ /dev/null @@ -1,148 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VAdditionalContactInfoCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'FirstName'. - /// - /// - /// The property value for 'FirstName'. - /// - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'MiddleName'. - /// - /// - /// The property value for 'MiddleName'. - /// - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value for 'LastName'. - /// - /// - /// The property value for 'LastName'. - /// - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'TelephoneNumber'. - /// - /// - /// The property value for 'TelephoneNumber'. - /// - public string? TelephoneNumber { get; set; } - - /// - /// Gets or sets the property value for 'TelephoneSpecialInstructions'. - /// - /// - /// The property value for 'TelephoneSpecialInstructions'. - /// - public string? TelephoneSpecialInstructions { get; set; } - - /// - /// Gets or sets the property value for 'Street'. - /// - /// - /// The property value for 'Street'. - /// - public string? Street { get; set; } - - /// - /// Gets or sets the property value for 'City'. - /// - /// - /// The property value for 'City'. - /// - public string? City { get; set; } - - /// - /// Gets or sets the property value for 'StateProvince'. - /// - /// - /// The property value for 'StateProvince'. - /// - public string? StateProvince { get; set; } - - /// - /// Gets or sets the property value for 'PostalCode'. - /// - /// - /// The property value for 'PostalCode'. - /// - public string? PostalCode { get; set; } - - /// - /// Gets or sets the property value for 'CountryRegion'. - /// - /// - /// The property value for 'CountryRegion'. - /// - public string? CountryRegion { get; set; } - - /// - /// Gets or sets the property value for 'HomeAddressSpecialInstructions'. - /// - /// - /// The property value for 'HomeAddressSpecialInstructions'. - /// - public string? HomeAddressSpecialInstructions { get; set; } - - /// - /// Gets or sets the property value for 'EMailAddress'. - /// - /// - /// The property value for 'EMailAddress'. - /// - public string? EMailAddress { get; set; } - - /// - /// Gets or sets the property value for 'EMailSpecialInstructions'. - /// - /// - /// The property value for 'EMailSpecialInstructions'. - /// - public string? EMailSpecialInstructions { get; set; } - - /// - /// Gets or sets the property value for 'EMailTelephoneNumber'. - /// - /// - /// The property value for 'EMailTelephoneNumber'. - /// - public string? EMailTelephoneNumber { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Models/VAdditionalContactInfoReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Models/VAdditionalContactInfoReadModel.cs deleted file mode 100644 index e6f929c..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Models/VAdditionalContactInfoReadModel.cs +++ /dev/null @@ -1,148 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VAdditionalContactInfoReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'FirstName'. - /// - /// - /// The property value for 'FirstName'. - /// - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'MiddleName'. - /// - /// - /// The property value for 'MiddleName'. - /// - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value for 'LastName'. - /// - /// - /// The property value for 'LastName'. - /// - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'TelephoneNumber'. - /// - /// - /// The property value for 'TelephoneNumber'. - /// - public string? TelephoneNumber { get; set; } - - /// - /// Gets or sets the property value for 'TelephoneSpecialInstructions'. - /// - /// - /// The property value for 'TelephoneSpecialInstructions'. - /// - public string? TelephoneSpecialInstructions { get; set; } - - /// - /// Gets or sets the property value for 'Street'. - /// - /// - /// The property value for 'Street'. - /// - public string? Street { get; set; } - - /// - /// Gets or sets the property value for 'City'. - /// - /// - /// The property value for 'City'. - /// - public string? City { get; set; } - - /// - /// Gets or sets the property value for 'StateProvince'. - /// - /// - /// The property value for 'StateProvince'. - /// - public string? StateProvince { get; set; } - - /// - /// Gets or sets the property value for 'PostalCode'. - /// - /// - /// The property value for 'PostalCode'. - /// - public string? PostalCode { get; set; } - - /// - /// Gets or sets the property value for 'CountryRegion'. - /// - /// - /// The property value for 'CountryRegion'. - /// - public string? CountryRegion { get; set; } - - /// - /// Gets or sets the property value for 'HomeAddressSpecialInstructions'. - /// - /// - /// The property value for 'HomeAddressSpecialInstructions'. - /// - public string? HomeAddressSpecialInstructions { get; set; } - - /// - /// Gets or sets the property value for 'EMailAddress'. - /// - /// - /// The property value for 'EMailAddress'. - /// - public string? EMailAddress { get; set; } - - /// - /// Gets or sets the property value for 'EMailSpecialInstructions'. - /// - /// - /// The property value for 'EMailSpecialInstructions'. - /// - public string? EMailSpecialInstructions { get; set; } - - /// - /// Gets or sets the property value for 'EMailTelephoneNumber'. - /// - /// - /// The property value for 'EMailTelephoneNumber'. - /// - public string? EMailTelephoneNumber { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Models/VAdditionalContactInfoUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Models/VAdditionalContactInfoUpdateModel.cs deleted file mode 100644 index bfcd3cc..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Models/VAdditionalContactInfoUpdateModel.cs +++ /dev/null @@ -1,148 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VAdditionalContactInfoUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'FirstName'. - /// - /// - /// The property value for 'FirstName'. - /// - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'MiddleName'. - /// - /// - /// The property value for 'MiddleName'. - /// - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value for 'LastName'. - /// - /// - /// The property value for 'LastName'. - /// - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'TelephoneNumber'. - /// - /// - /// The property value for 'TelephoneNumber'. - /// - public string? TelephoneNumber { get; set; } - - /// - /// Gets or sets the property value for 'TelephoneSpecialInstructions'. - /// - /// - /// The property value for 'TelephoneSpecialInstructions'. - /// - public string? TelephoneSpecialInstructions { get; set; } - - /// - /// Gets or sets the property value for 'Street'. - /// - /// - /// The property value for 'Street'. - /// - public string? Street { get; set; } - - /// - /// Gets or sets the property value for 'City'. - /// - /// - /// The property value for 'City'. - /// - public string? City { get; set; } - - /// - /// Gets or sets the property value for 'StateProvince'. - /// - /// - /// The property value for 'StateProvince'. - /// - public string? StateProvince { get; set; } - - /// - /// Gets or sets the property value for 'PostalCode'. - /// - /// - /// The property value for 'PostalCode'. - /// - public string? PostalCode { get; set; } - - /// - /// Gets or sets the property value for 'CountryRegion'. - /// - /// - /// The property value for 'CountryRegion'. - /// - public string? CountryRegion { get; set; } - - /// - /// Gets or sets the property value for 'HomeAddressSpecialInstructions'. - /// - /// - /// The property value for 'HomeAddressSpecialInstructions'. - /// - public string? HomeAddressSpecialInstructions { get; set; } - - /// - /// Gets or sets the property value for 'EMailAddress'. - /// - /// - /// The property value for 'EMailAddress'. - /// - public string? EMailAddress { get; set; } - - /// - /// Gets or sets the property value for 'EMailSpecialInstructions'. - /// - /// - /// The property value for 'EMailSpecialInstructions'. - /// - public string? EMailSpecialInstructions { get; set; } - - /// - /// Gets or sets the property value for 'EMailTelephoneNumber'. - /// - /// - /// The property value for 'EMailTelephoneNumber'. - /// - public string? EMailTelephoneNumber { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Validation/VAdditionalContactInfoCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Validation/VAdditionalContactInfoCreateModelValidator.cs deleted file mode 100644 index 41e6dbb..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Validation/VAdditionalContactInfoCreateModelValidator.cs +++ /dev/null @@ -1,36 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VAdditionalContactInfoCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VAdditionalContactInfoCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.FirstName).NotEmpty(); - RuleFor(p => p.FirstName).MaximumLength(50); - RuleFor(p => p.MiddleName).MaximumLength(50); - RuleFor(p => p.LastName).NotEmpty(); - RuleFor(p => p.LastName).MaximumLength(50); - RuleFor(p => p.TelephoneNumber).MaximumLength(50); - RuleFor(p => p.Street).MaximumLength(50); - RuleFor(p => p.City).MaximumLength(50); - RuleFor(p => p.StateProvince).MaximumLength(50); - RuleFor(p => p.PostalCode).MaximumLength(50); - RuleFor(p => p.CountryRegion).MaximumLength(50); - RuleFor(p => p.EMailAddress).MaximumLength(128); - RuleFor(p => p.EMailTelephoneNumber).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Validation/VAdditionalContactInfoUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Validation/VAdditionalContactInfoUpdateModelValidator.cs deleted file mode 100644 index 8d6a873..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Validation/VAdditionalContactInfoUpdateModelValidator.cs +++ /dev/null @@ -1,36 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VAdditionalContactInfoUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VAdditionalContactInfoUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.FirstName).NotEmpty(); - RuleFor(p => p.FirstName).MaximumLength(50); - RuleFor(p => p.MiddleName).MaximumLength(50); - RuleFor(p => p.LastName).NotEmpty(); - RuleFor(p => p.LastName).MaximumLength(50); - RuleFor(p => p.TelephoneNumber).MaximumLength(50); - RuleFor(p => p.Street).MaximumLength(50); - RuleFor(p => p.City).MaximumLength(50); - RuleFor(p => p.StateProvince).MaximumLength(50); - RuleFor(p => p.PostalCode).MaximumLength(50); - RuleFor(p => p.CountryRegion).MaximumLength(50); - RuleFor(p => p.EMailAddress).MaximumLength(128); - RuleFor(p => p.EMailTelephoneNumber).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Mapping/VEmployeeProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Mapping/VEmployeeProfile.cs deleted file mode 100644 index c4c1713..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Mapping/VEmployeeProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class VEmployeeProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public VEmployeeProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Models/VEmployeeCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Models/VEmployeeCreateModel.cs deleted file mode 100644 index f46a852..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Models/VEmployeeCreateModel.cs +++ /dev/null @@ -1,156 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VEmployeeCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Title'. - /// - /// - /// The property value for 'Title'. - /// - public string? Title { get; set; } - - /// - /// Gets or sets the property value for 'FirstName'. - /// - /// - /// The property value for 'FirstName'. - /// - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'MiddleName'. - /// - /// - /// The property value for 'MiddleName'. - /// - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value for 'LastName'. - /// - /// - /// The property value for 'LastName'. - /// - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Suffix'. - /// - /// - /// The property value for 'Suffix'. - /// - public string? Suffix { get; set; } - - /// - /// Gets or sets the property value for 'JobTitle'. - /// - /// - /// The property value for 'JobTitle'. - /// - public string JobTitle { get; set; } = null!; - - /// - /// Gets or sets the property value for 'PhoneNumber'. - /// - /// - /// The property value for 'PhoneNumber'. - /// - public string? PhoneNumber { get; set; } - - /// - /// Gets or sets the property value for 'PhoneNumberType'. - /// - /// - /// The property value for 'PhoneNumberType'. - /// - public string? PhoneNumberType { get; set; } - - /// - /// Gets or sets the property value for 'EmailAddress'. - /// - /// - /// The property value for 'EmailAddress'. - /// - public string? EmailAddress { get; set; } - - /// - /// Gets or sets the property value for 'EmailPromotion'. - /// - /// - /// The property value for 'EmailPromotion'. - /// - public int EmailPromotion { get; set; } - - /// - /// Gets or sets the property value for 'AddressLine1'. - /// - /// - /// The property value for 'AddressLine1'. - /// - public string AddressLine1 { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressLine2'. - /// - /// - /// The property value for 'AddressLine2'. - /// - public string? AddressLine2 { get; set; } - - /// - /// Gets or sets the property value for 'City'. - /// - /// - /// The property value for 'City'. - /// - public string City { get; set; } = null!; - - /// - /// Gets or sets the property value for 'StateProvinceName'. - /// - /// - /// The property value for 'StateProvinceName'. - /// - public string StateProvinceName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'PostalCode'. - /// - /// - /// The property value for 'PostalCode'. - /// - public string PostalCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CountryRegionName'. - /// - /// - /// The property value for 'CountryRegionName'. - /// - public string CountryRegionName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AdditionalContactInfo'. - /// - /// - /// The property value for 'AdditionalContactInfo'. - /// - public string? AdditionalContactInfo { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Models/VEmployeeReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Models/VEmployeeReadModel.cs deleted file mode 100644 index 14395de..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Models/VEmployeeReadModel.cs +++ /dev/null @@ -1,156 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VEmployeeReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Title'. - /// - /// - /// The property value for 'Title'. - /// - public string? Title { get; set; } - - /// - /// Gets or sets the property value for 'FirstName'. - /// - /// - /// The property value for 'FirstName'. - /// - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'MiddleName'. - /// - /// - /// The property value for 'MiddleName'. - /// - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value for 'LastName'. - /// - /// - /// The property value for 'LastName'. - /// - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Suffix'. - /// - /// - /// The property value for 'Suffix'. - /// - public string? Suffix { get; set; } - - /// - /// Gets or sets the property value for 'JobTitle'. - /// - /// - /// The property value for 'JobTitle'. - /// - public string JobTitle { get; set; } = null!; - - /// - /// Gets or sets the property value for 'PhoneNumber'. - /// - /// - /// The property value for 'PhoneNumber'. - /// - public string? PhoneNumber { get; set; } - - /// - /// Gets or sets the property value for 'PhoneNumberType'. - /// - /// - /// The property value for 'PhoneNumberType'. - /// - public string? PhoneNumberType { get; set; } - - /// - /// Gets or sets the property value for 'EmailAddress'. - /// - /// - /// The property value for 'EmailAddress'. - /// - public string? EmailAddress { get; set; } - - /// - /// Gets or sets the property value for 'EmailPromotion'. - /// - /// - /// The property value for 'EmailPromotion'. - /// - public int EmailPromotion { get; set; } - - /// - /// Gets or sets the property value for 'AddressLine1'. - /// - /// - /// The property value for 'AddressLine1'. - /// - public string AddressLine1 { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressLine2'. - /// - /// - /// The property value for 'AddressLine2'. - /// - public string? AddressLine2 { get; set; } - - /// - /// Gets or sets the property value for 'City'. - /// - /// - /// The property value for 'City'. - /// - public string City { get; set; } = null!; - - /// - /// Gets or sets the property value for 'StateProvinceName'. - /// - /// - /// The property value for 'StateProvinceName'. - /// - public string StateProvinceName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'PostalCode'. - /// - /// - /// The property value for 'PostalCode'. - /// - public string PostalCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CountryRegionName'. - /// - /// - /// The property value for 'CountryRegionName'. - /// - public string CountryRegionName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AdditionalContactInfo'. - /// - /// - /// The property value for 'AdditionalContactInfo'. - /// - public string? AdditionalContactInfo { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Models/VEmployeeUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Models/VEmployeeUpdateModel.cs deleted file mode 100644 index 01891e3..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Models/VEmployeeUpdateModel.cs +++ /dev/null @@ -1,156 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VEmployeeUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Title'. - /// - /// - /// The property value for 'Title'. - /// - public string? Title { get; set; } - - /// - /// Gets or sets the property value for 'FirstName'. - /// - /// - /// The property value for 'FirstName'. - /// - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'MiddleName'. - /// - /// - /// The property value for 'MiddleName'. - /// - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value for 'LastName'. - /// - /// - /// The property value for 'LastName'. - /// - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Suffix'. - /// - /// - /// The property value for 'Suffix'. - /// - public string? Suffix { get; set; } - - /// - /// Gets or sets the property value for 'JobTitle'. - /// - /// - /// The property value for 'JobTitle'. - /// - public string JobTitle { get; set; } = null!; - - /// - /// Gets or sets the property value for 'PhoneNumber'. - /// - /// - /// The property value for 'PhoneNumber'. - /// - public string? PhoneNumber { get; set; } - - /// - /// Gets or sets the property value for 'PhoneNumberType'. - /// - /// - /// The property value for 'PhoneNumberType'. - /// - public string? PhoneNumberType { get; set; } - - /// - /// Gets or sets the property value for 'EmailAddress'. - /// - /// - /// The property value for 'EmailAddress'. - /// - public string? EmailAddress { get; set; } - - /// - /// Gets or sets the property value for 'EmailPromotion'. - /// - /// - /// The property value for 'EmailPromotion'. - /// - public int EmailPromotion { get; set; } - - /// - /// Gets or sets the property value for 'AddressLine1'. - /// - /// - /// The property value for 'AddressLine1'. - /// - public string AddressLine1 { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressLine2'. - /// - /// - /// The property value for 'AddressLine2'. - /// - public string? AddressLine2 { get; set; } - - /// - /// Gets or sets the property value for 'City'. - /// - /// - /// The property value for 'City'. - /// - public string City { get; set; } = null!; - - /// - /// Gets or sets the property value for 'StateProvinceName'. - /// - /// - /// The property value for 'StateProvinceName'. - /// - public string StateProvinceName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'PostalCode'. - /// - /// - /// The property value for 'PostalCode'. - /// - public string PostalCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CountryRegionName'. - /// - /// - /// The property value for 'CountryRegionName'. - /// - public string CountryRegionName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AdditionalContactInfo'. - /// - /// - /// The property value for 'AdditionalContactInfo'. - /// - public string? AdditionalContactInfo { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Validation/VEmployeeCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Validation/VEmployeeCreateModelValidator.cs deleted file mode 100644 index dc0ea72..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Validation/VEmployeeCreateModelValidator.cs +++ /dev/null @@ -1,46 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VEmployeeCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VEmployeeCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Title).MaximumLength(8); - RuleFor(p => p.FirstName).NotEmpty(); - RuleFor(p => p.FirstName).MaximumLength(50); - RuleFor(p => p.MiddleName).MaximumLength(50); - RuleFor(p => p.LastName).NotEmpty(); - RuleFor(p => p.LastName).MaximumLength(50); - RuleFor(p => p.Suffix).MaximumLength(10); - RuleFor(p => p.JobTitle).NotEmpty(); - RuleFor(p => p.JobTitle).MaximumLength(50); - RuleFor(p => p.PhoneNumber).MaximumLength(25); - RuleFor(p => p.PhoneNumberType).MaximumLength(50); - RuleFor(p => p.EmailAddress).MaximumLength(50); - RuleFor(p => p.AddressLine1).NotEmpty(); - RuleFor(p => p.AddressLine1).MaximumLength(60); - RuleFor(p => p.AddressLine2).MaximumLength(60); - RuleFor(p => p.City).NotEmpty(); - RuleFor(p => p.City).MaximumLength(30); - RuleFor(p => p.StateProvinceName).NotEmpty(); - RuleFor(p => p.StateProvinceName).MaximumLength(50); - RuleFor(p => p.PostalCode).NotEmpty(); - RuleFor(p => p.PostalCode).MaximumLength(15); - RuleFor(p => p.CountryRegionName).NotEmpty(); - RuleFor(p => p.CountryRegionName).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Validation/VEmployeeUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Validation/VEmployeeUpdateModelValidator.cs deleted file mode 100644 index c9d2700..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Validation/VEmployeeUpdateModelValidator.cs +++ /dev/null @@ -1,46 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VEmployeeUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VEmployeeUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Title).MaximumLength(8); - RuleFor(p => p.FirstName).NotEmpty(); - RuleFor(p => p.FirstName).MaximumLength(50); - RuleFor(p => p.MiddleName).MaximumLength(50); - RuleFor(p => p.LastName).NotEmpty(); - RuleFor(p => p.LastName).MaximumLength(50); - RuleFor(p => p.Suffix).MaximumLength(10); - RuleFor(p => p.JobTitle).NotEmpty(); - RuleFor(p => p.JobTitle).MaximumLength(50); - RuleFor(p => p.PhoneNumber).MaximumLength(25); - RuleFor(p => p.PhoneNumberType).MaximumLength(50); - RuleFor(p => p.EmailAddress).MaximumLength(50); - RuleFor(p => p.AddressLine1).NotEmpty(); - RuleFor(p => p.AddressLine1).MaximumLength(60); - RuleFor(p => p.AddressLine2).MaximumLength(60); - RuleFor(p => p.City).NotEmpty(); - RuleFor(p => p.City).MaximumLength(30); - RuleFor(p => p.StateProvinceName).NotEmpty(); - RuleFor(p => p.StateProvinceName).MaximumLength(50); - RuleFor(p => p.PostalCode).NotEmpty(); - RuleFor(p => p.PostalCode).MaximumLength(15); - RuleFor(p => p.CountryRegionName).NotEmpty(); - RuleFor(p => p.CountryRegionName).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Mapping/VEmployeeDepartmentProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Mapping/VEmployeeDepartmentProfile.cs deleted file mode 100644 index 0b23cf6..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Mapping/VEmployeeDepartmentProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class VEmployeeDepartmentProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public VEmployeeDepartmentProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentCreateModel.cs deleted file mode 100644 index b7523f2..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentCreateModel.cs +++ /dev/null @@ -1,92 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VEmployeeDepartmentCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Title'. - /// - /// - /// The property value for 'Title'. - /// - public string? Title { get; set; } - - /// - /// Gets or sets the property value for 'FirstName'. - /// - /// - /// The property value for 'FirstName'. - /// - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'MiddleName'. - /// - /// - /// The property value for 'MiddleName'. - /// - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value for 'LastName'. - /// - /// - /// The property value for 'LastName'. - /// - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Suffix'. - /// - /// - /// The property value for 'Suffix'. - /// - public string? Suffix { get; set; } - - /// - /// Gets or sets the property value for 'JobTitle'. - /// - /// - /// The property value for 'JobTitle'. - /// - public string JobTitle { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Department'. - /// - /// - /// The property value for 'Department'. - /// - public string Department { get; set; } = null!; - - /// - /// Gets or sets the property value for 'GroupName'. - /// - /// - /// The property value for 'GroupName'. - /// - public string GroupName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'StartDate'. - /// - /// - /// The property value for 'StartDate'. - /// - public DateOnly StartDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentReadModel.cs deleted file mode 100644 index 0f4cbf5..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentReadModel.cs +++ /dev/null @@ -1,92 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VEmployeeDepartmentReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Title'. - /// - /// - /// The property value for 'Title'. - /// - public string? Title { get; set; } - - /// - /// Gets or sets the property value for 'FirstName'. - /// - /// - /// The property value for 'FirstName'. - /// - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'MiddleName'. - /// - /// - /// The property value for 'MiddleName'. - /// - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value for 'LastName'. - /// - /// - /// The property value for 'LastName'. - /// - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Suffix'. - /// - /// - /// The property value for 'Suffix'. - /// - public string? Suffix { get; set; } - - /// - /// Gets or sets the property value for 'JobTitle'. - /// - /// - /// The property value for 'JobTitle'. - /// - public string JobTitle { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Department'. - /// - /// - /// The property value for 'Department'. - /// - public string Department { get; set; } = null!; - - /// - /// Gets or sets the property value for 'GroupName'. - /// - /// - /// The property value for 'GroupName'. - /// - public string GroupName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'StartDate'. - /// - /// - /// The property value for 'StartDate'. - /// - public DateOnly StartDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentUpdateModel.cs deleted file mode 100644 index 77f7a79..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentUpdateModel.cs +++ /dev/null @@ -1,92 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VEmployeeDepartmentUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Title'. - /// - /// - /// The property value for 'Title'. - /// - public string? Title { get; set; } - - /// - /// Gets or sets the property value for 'FirstName'. - /// - /// - /// The property value for 'FirstName'. - /// - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'MiddleName'. - /// - /// - /// The property value for 'MiddleName'. - /// - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value for 'LastName'. - /// - /// - /// The property value for 'LastName'. - /// - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Suffix'. - /// - /// - /// The property value for 'Suffix'. - /// - public string? Suffix { get; set; } - - /// - /// Gets or sets the property value for 'JobTitle'. - /// - /// - /// The property value for 'JobTitle'. - /// - public string JobTitle { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Department'. - /// - /// - /// The property value for 'Department'. - /// - public string Department { get; set; } = null!; - - /// - /// Gets or sets the property value for 'GroupName'. - /// - /// - /// The property value for 'GroupName'. - /// - public string GroupName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'StartDate'. - /// - /// - /// The property value for 'StartDate'. - /// - public DateOnly StartDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Validation/VEmployeeDepartmentCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Validation/VEmployeeDepartmentCreateModelValidator.cs deleted file mode 100644 index 0445ca2..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Validation/VEmployeeDepartmentCreateModelValidator.cs +++ /dev/null @@ -1,36 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VEmployeeDepartmentCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VEmployeeDepartmentCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Title).MaximumLength(8); - RuleFor(p => p.FirstName).NotEmpty(); - RuleFor(p => p.FirstName).MaximumLength(50); - RuleFor(p => p.MiddleName).MaximumLength(50); - RuleFor(p => p.LastName).NotEmpty(); - RuleFor(p => p.LastName).MaximumLength(50); - RuleFor(p => p.Suffix).MaximumLength(10); - RuleFor(p => p.JobTitle).NotEmpty(); - RuleFor(p => p.JobTitle).MaximumLength(50); - RuleFor(p => p.Department).NotEmpty(); - RuleFor(p => p.Department).MaximumLength(50); - RuleFor(p => p.GroupName).NotEmpty(); - RuleFor(p => p.GroupName).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Validation/VEmployeeDepartmentUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Validation/VEmployeeDepartmentUpdateModelValidator.cs deleted file mode 100644 index 635b7db..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Validation/VEmployeeDepartmentUpdateModelValidator.cs +++ /dev/null @@ -1,36 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VEmployeeDepartmentUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VEmployeeDepartmentUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Title).MaximumLength(8); - RuleFor(p => p.FirstName).NotEmpty(); - RuleFor(p => p.FirstName).MaximumLength(50); - RuleFor(p => p.MiddleName).MaximumLength(50); - RuleFor(p => p.LastName).NotEmpty(); - RuleFor(p => p.LastName).MaximumLength(50); - RuleFor(p => p.Suffix).MaximumLength(10); - RuleFor(p => p.JobTitle).NotEmpty(); - RuleFor(p => p.JobTitle).MaximumLength(50); - RuleFor(p => p.Department).NotEmpty(); - RuleFor(p => p.Department).MaximumLength(50); - RuleFor(p => p.GroupName).NotEmpty(); - RuleFor(p => p.GroupName).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Mapping/VEmployeeDepartmentHistoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Mapping/VEmployeeDepartmentHistoryProfile.cs deleted file mode 100644 index 1bcb36a..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Mapping/VEmployeeDepartmentHistoryProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class VEmployeeDepartmentHistoryProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public VEmployeeDepartmentHistoryProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryCreateModel.cs deleted file mode 100644 index 3185078..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryCreateModel.cs +++ /dev/null @@ -1,100 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VEmployeeDepartmentHistoryCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Title'. - /// - /// - /// The property value for 'Title'. - /// - public string? Title { get; set; } - - /// - /// Gets or sets the property value for 'FirstName'. - /// - /// - /// The property value for 'FirstName'. - /// - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'MiddleName'. - /// - /// - /// The property value for 'MiddleName'. - /// - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value for 'LastName'. - /// - /// - /// The property value for 'LastName'. - /// - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Suffix'. - /// - /// - /// The property value for 'Suffix'. - /// - public string? Suffix { get; set; } - - /// - /// Gets or sets the property value for 'Shift'. - /// - /// - /// The property value for 'Shift'. - /// - public string Shift { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Department'. - /// - /// - /// The property value for 'Department'. - /// - public string Department { get; set; } = null!; - - /// - /// Gets or sets the property value for 'GroupName'. - /// - /// - /// The property value for 'GroupName'. - /// - public string GroupName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'StartDate'. - /// - /// - /// The property value for 'StartDate'. - /// - public DateOnly StartDate { get; set; } - - /// - /// Gets or sets the property value for 'EndDate'. - /// - /// - /// The property value for 'EndDate'. - /// - public DateOnly? EndDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryReadModel.cs deleted file mode 100644 index cfa21e2..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryReadModel.cs +++ /dev/null @@ -1,100 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VEmployeeDepartmentHistoryReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Title'. - /// - /// - /// The property value for 'Title'. - /// - public string? Title { get; set; } - - /// - /// Gets or sets the property value for 'FirstName'. - /// - /// - /// The property value for 'FirstName'. - /// - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'MiddleName'. - /// - /// - /// The property value for 'MiddleName'. - /// - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value for 'LastName'. - /// - /// - /// The property value for 'LastName'. - /// - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Suffix'. - /// - /// - /// The property value for 'Suffix'. - /// - public string? Suffix { get; set; } - - /// - /// Gets or sets the property value for 'Shift'. - /// - /// - /// The property value for 'Shift'. - /// - public string Shift { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Department'. - /// - /// - /// The property value for 'Department'. - /// - public string Department { get; set; } = null!; - - /// - /// Gets or sets the property value for 'GroupName'. - /// - /// - /// The property value for 'GroupName'. - /// - public string GroupName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'StartDate'. - /// - /// - /// The property value for 'StartDate'. - /// - public DateOnly StartDate { get; set; } - - /// - /// Gets or sets the property value for 'EndDate'. - /// - /// - /// The property value for 'EndDate'. - /// - public DateOnly? EndDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryUpdateModel.cs deleted file mode 100644 index c75e04b..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryUpdateModel.cs +++ /dev/null @@ -1,100 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VEmployeeDepartmentHistoryUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Title'. - /// - /// - /// The property value for 'Title'. - /// - public string? Title { get; set; } - - /// - /// Gets or sets the property value for 'FirstName'. - /// - /// - /// The property value for 'FirstName'. - /// - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'MiddleName'. - /// - /// - /// The property value for 'MiddleName'. - /// - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value for 'LastName'. - /// - /// - /// The property value for 'LastName'. - /// - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Suffix'. - /// - /// - /// The property value for 'Suffix'. - /// - public string? Suffix { get; set; } - - /// - /// Gets or sets the property value for 'Shift'. - /// - /// - /// The property value for 'Shift'. - /// - public string Shift { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Department'. - /// - /// - /// The property value for 'Department'. - /// - public string Department { get; set; } = null!; - - /// - /// Gets or sets the property value for 'GroupName'. - /// - /// - /// The property value for 'GroupName'. - /// - public string GroupName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'StartDate'. - /// - /// - /// The property value for 'StartDate'. - /// - public DateOnly StartDate { get; set; } - - /// - /// Gets or sets the property value for 'EndDate'. - /// - /// - /// The property value for 'EndDate'. - /// - public DateOnly? EndDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Validation/VEmployeeDepartmentHistoryCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Validation/VEmployeeDepartmentHistoryCreateModelValidator.cs deleted file mode 100644 index cf3dcf0..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Validation/VEmployeeDepartmentHistoryCreateModelValidator.cs +++ /dev/null @@ -1,36 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VEmployeeDepartmentHistoryCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VEmployeeDepartmentHistoryCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Title).MaximumLength(8); - RuleFor(p => p.FirstName).NotEmpty(); - RuleFor(p => p.FirstName).MaximumLength(50); - RuleFor(p => p.MiddleName).MaximumLength(50); - RuleFor(p => p.LastName).NotEmpty(); - RuleFor(p => p.LastName).MaximumLength(50); - RuleFor(p => p.Suffix).MaximumLength(10); - RuleFor(p => p.Shift).NotEmpty(); - RuleFor(p => p.Shift).MaximumLength(50); - RuleFor(p => p.Department).NotEmpty(); - RuleFor(p => p.Department).MaximumLength(50); - RuleFor(p => p.GroupName).NotEmpty(); - RuleFor(p => p.GroupName).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Validation/VEmployeeDepartmentHistoryUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Validation/VEmployeeDepartmentHistoryUpdateModelValidator.cs deleted file mode 100644 index b9e2c63..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Validation/VEmployeeDepartmentHistoryUpdateModelValidator.cs +++ /dev/null @@ -1,36 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VEmployeeDepartmentHistoryUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VEmployeeDepartmentHistoryUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Title).MaximumLength(8); - RuleFor(p => p.FirstName).NotEmpty(); - RuleFor(p => p.FirstName).MaximumLength(50); - RuleFor(p => p.MiddleName).MaximumLength(50); - RuleFor(p => p.LastName).NotEmpty(); - RuleFor(p => p.LastName).MaximumLength(50); - RuleFor(p => p.Suffix).MaximumLength(10); - RuleFor(p => p.Shift).NotEmpty(); - RuleFor(p => p.Shift).MaximumLength(50); - RuleFor(p => p.Department).NotEmpty(); - RuleFor(p => p.Department).MaximumLength(50); - RuleFor(p => p.GroupName).NotEmpty(); - RuleFor(p => p.GroupName).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Mapping/VIndividualCustomerProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Mapping/VIndividualCustomerProfile.cs deleted file mode 100644 index 0bdbffd..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Mapping/VIndividualCustomerProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class VIndividualCustomerProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public VIndividualCustomerProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Models/VIndividualCustomerCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Models/VIndividualCustomerCreateModel.cs deleted file mode 100644 index 0289943..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Models/VIndividualCustomerCreateModel.cs +++ /dev/null @@ -1,156 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VIndividualCustomerCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Title'. - /// - /// - /// The property value for 'Title'. - /// - public string? Title { get; set; } - - /// - /// Gets or sets the property value for 'FirstName'. - /// - /// - /// The property value for 'FirstName'. - /// - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'MiddleName'. - /// - /// - /// The property value for 'MiddleName'. - /// - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value for 'LastName'. - /// - /// - /// The property value for 'LastName'. - /// - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Suffix'. - /// - /// - /// The property value for 'Suffix'. - /// - public string? Suffix { get; set; } - - /// - /// Gets or sets the property value for 'PhoneNumber'. - /// - /// - /// The property value for 'PhoneNumber'. - /// - public string? PhoneNumber { get; set; } - - /// - /// Gets or sets the property value for 'PhoneNumberType'. - /// - /// - /// The property value for 'PhoneNumberType'. - /// - public string? PhoneNumberType { get; set; } - - /// - /// Gets or sets the property value for 'EmailAddress'. - /// - /// - /// The property value for 'EmailAddress'. - /// - public string? EmailAddress { get; set; } - - /// - /// Gets or sets the property value for 'EmailPromotion'. - /// - /// - /// The property value for 'EmailPromotion'. - /// - public int EmailPromotion { get; set; } - - /// - /// Gets or sets the property value for 'AddressType'. - /// - /// - /// The property value for 'AddressType'. - /// - public string AddressType { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressLine1'. - /// - /// - /// The property value for 'AddressLine1'. - /// - public string AddressLine1 { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressLine2'. - /// - /// - /// The property value for 'AddressLine2'. - /// - public string? AddressLine2 { get; set; } - - /// - /// Gets or sets the property value for 'City'. - /// - /// - /// The property value for 'City'. - /// - public string City { get; set; } = null!; - - /// - /// Gets or sets the property value for 'StateProvinceName'. - /// - /// - /// The property value for 'StateProvinceName'. - /// - public string StateProvinceName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'PostalCode'. - /// - /// - /// The property value for 'PostalCode'. - /// - public string PostalCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CountryRegionName'. - /// - /// - /// The property value for 'CountryRegionName'. - /// - public string CountryRegionName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Demographics'. - /// - /// - /// The property value for 'Demographics'. - /// - public string? Demographics { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Models/VIndividualCustomerReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Models/VIndividualCustomerReadModel.cs deleted file mode 100644 index 1505bae..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Models/VIndividualCustomerReadModel.cs +++ /dev/null @@ -1,156 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VIndividualCustomerReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Title'. - /// - /// - /// The property value for 'Title'. - /// - public string? Title { get; set; } - - /// - /// Gets or sets the property value for 'FirstName'. - /// - /// - /// The property value for 'FirstName'. - /// - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'MiddleName'. - /// - /// - /// The property value for 'MiddleName'. - /// - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value for 'LastName'. - /// - /// - /// The property value for 'LastName'. - /// - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Suffix'. - /// - /// - /// The property value for 'Suffix'. - /// - public string? Suffix { get; set; } - - /// - /// Gets or sets the property value for 'PhoneNumber'. - /// - /// - /// The property value for 'PhoneNumber'. - /// - public string? PhoneNumber { get; set; } - - /// - /// Gets or sets the property value for 'PhoneNumberType'. - /// - /// - /// The property value for 'PhoneNumberType'. - /// - public string? PhoneNumberType { get; set; } - - /// - /// Gets or sets the property value for 'EmailAddress'. - /// - /// - /// The property value for 'EmailAddress'. - /// - public string? EmailAddress { get; set; } - - /// - /// Gets or sets the property value for 'EmailPromotion'. - /// - /// - /// The property value for 'EmailPromotion'. - /// - public int EmailPromotion { get; set; } - - /// - /// Gets or sets the property value for 'AddressType'. - /// - /// - /// The property value for 'AddressType'. - /// - public string AddressType { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressLine1'. - /// - /// - /// The property value for 'AddressLine1'. - /// - public string AddressLine1 { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressLine2'. - /// - /// - /// The property value for 'AddressLine2'. - /// - public string? AddressLine2 { get; set; } - - /// - /// Gets or sets the property value for 'City'. - /// - /// - /// The property value for 'City'. - /// - public string City { get; set; } = null!; - - /// - /// Gets or sets the property value for 'StateProvinceName'. - /// - /// - /// The property value for 'StateProvinceName'. - /// - public string StateProvinceName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'PostalCode'. - /// - /// - /// The property value for 'PostalCode'. - /// - public string PostalCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CountryRegionName'. - /// - /// - /// The property value for 'CountryRegionName'. - /// - public string CountryRegionName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Demographics'. - /// - /// - /// The property value for 'Demographics'. - /// - public string? Demographics { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Models/VIndividualCustomerUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Models/VIndividualCustomerUpdateModel.cs deleted file mode 100644 index 40f8c6f..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Models/VIndividualCustomerUpdateModel.cs +++ /dev/null @@ -1,156 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VIndividualCustomerUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Title'. - /// - /// - /// The property value for 'Title'. - /// - public string? Title { get; set; } - - /// - /// Gets or sets the property value for 'FirstName'. - /// - /// - /// The property value for 'FirstName'. - /// - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'MiddleName'. - /// - /// - /// The property value for 'MiddleName'. - /// - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value for 'LastName'. - /// - /// - /// The property value for 'LastName'. - /// - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Suffix'. - /// - /// - /// The property value for 'Suffix'. - /// - public string? Suffix { get; set; } - - /// - /// Gets or sets the property value for 'PhoneNumber'. - /// - /// - /// The property value for 'PhoneNumber'. - /// - public string? PhoneNumber { get; set; } - - /// - /// Gets or sets the property value for 'PhoneNumberType'. - /// - /// - /// The property value for 'PhoneNumberType'. - /// - public string? PhoneNumberType { get; set; } - - /// - /// Gets or sets the property value for 'EmailAddress'. - /// - /// - /// The property value for 'EmailAddress'. - /// - public string? EmailAddress { get; set; } - - /// - /// Gets or sets the property value for 'EmailPromotion'. - /// - /// - /// The property value for 'EmailPromotion'. - /// - public int EmailPromotion { get; set; } - - /// - /// Gets or sets the property value for 'AddressType'. - /// - /// - /// The property value for 'AddressType'. - /// - public string AddressType { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressLine1'. - /// - /// - /// The property value for 'AddressLine1'. - /// - public string AddressLine1 { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressLine2'. - /// - /// - /// The property value for 'AddressLine2'. - /// - public string? AddressLine2 { get; set; } - - /// - /// Gets or sets the property value for 'City'. - /// - /// - /// The property value for 'City'. - /// - public string City { get; set; } = null!; - - /// - /// Gets or sets the property value for 'StateProvinceName'. - /// - /// - /// The property value for 'StateProvinceName'. - /// - public string StateProvinceName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'PostalCode'. - /// - /// - /// The property value for 'PostalCode'. - /// - public string PostalCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CountryRegionName'. - /// - /// - /// The property value for 'CountryRegionName'. - /// - public string CountryRegionName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Demographics'. - /// - /// - /// The property value for 'Demographics'. - /// - public string? Demographics { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Validation/VIndividualCustomerCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Validation/VIndividualCustomerCreateModelValidator.cs deleted file mode 100644 index 7bd93fd..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Validation/VIndividualCustomerCreateModelValidator.cs +++ /dev/null @@ -1,46 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VIndividualCustomerCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VIndividualCustomerCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Title).MaximumLength(8); - RuleFor(p => p.FirstName).NotEmpty(); - RuleFor(p => p.FirstName).MaximumLength(50); - RuleFor(p => p.MiddleName).MaximumLength(50); - RuleFor(p => p.LastName).NotEmpty(); - RuleFor(p => p.LastName).MaximumLength(50); - RuleFor(p => p.Suffix).MaximumLength(10); - RuleFor(p => p.PhoneNumber).MaximumLength(25); - RuleFor(p => p.PhoneNumberType).MaximumLength(50); - RuleFor(p => p.EmailAddress).MaximumLength(50); - RuleFor(p => p.AddressType).NotEmpty(); - RuleFor(p => p.AddressType).MaximumLength(50); - RuleFor(p => p.AddressLine1).NotEmpty(); - RuleFor(p => p.AddressLine1).MaximumLength(60); - RuleFor(p => p.AddressLine2).MaximumLength(60); - RuleFor(p => p.City).NotEmpty(); - RuleFor(p => p.City).MaximumLength(30); - RuleFor(p => p.StateProvinceName).NotEmpty(); - RuleFor(p => p.StateProvinceName).MaximumLength(50); - RuleFor(p => p.PostalCode).NotEmpty(); - RuleFor(p => p.PostalCode).MaximumLength(15); - RuleFor(p => p.CountryRegionName).NotEmpty(); - RuleFor(p => p.CountryRegionName).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Validation/VIndividualCustomerUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Validation/VIndividualCustomerUpdateModelValidator.cs deleted file mode 100644 index 4099980..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Validation/VIndividualCustomerUpdateModelValidator.cs +++ /dev/null @@ -1,46 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VIndividualCustomerUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VIndividualCustomerUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Title).MaximumLength(8); - RuleFor(p => p.FirstName).NotEmpty(); - RuleFor(p => p.FirstName).MaximumLength(50); - RuleFor(p => p.MiddleName).MaximumLength(50); - RuleFor(p => p.LastName).NotEmpty(); - RuleFor(p => p.LastName).MaximumLength(50); - RuleFor(p => p.Suffix).MaximumLength(10); - RuleFor(p => p.PhoneNumber).MaximumLength(25); - RuleFor(p => p.PhoneNumberType).MaximumLength(50); - RuleFor(p => p.EmailAddress).MaximumLength(50); - RuleFor(p => p.AddressType).NotEmpty(); - RuleFor(p => p.AddressType).MaximumLength(50); - RuleFor(p => p.AddressLine1).NotEmpty(); - RuleFor(p => p.AddressLine1).MaximumLength(60); - RuleFor(p => p.AddressLine2).MaximumLength(60); - RuleFor(p => p.City).NotEmpty(); - RuleFor(p => p.City).MaximumLength(30); - RuleFor(p => p.StateProvinceName).NotEmpty(); - RuleFor(p => p.StateProvinceName).MaximumLength(50); - RuleFor(p => p.PostalCode).NotEmpty(); - RuleFor(p => p.PostalCode).MaximumLength(15); - RuleFor(p => p.CountryRegionName).NotEmpty(); - RuleFor(p => p.CountryRegionName).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Mapping/VJobCandidateProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Mapping/VJobCandidateProfile.cs deleted file mode 100644 index d696b76..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Mapping/VJobCandidateProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class VJobCandidateProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public VJobCandidateProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Models/VJobCandidateCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Models/VJobCandidateCreateModel.cs deleted file mode 100644 index ceeb670..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Models/VJobCandidateCreateModel.cs +++ /dev/null @@ -1,140 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VJobCandidateCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int? BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'NamePrefix'. - /// - /// - /// The property value for 'NamePrefix'. - /// - public string? NamePrefix { get; set; } - - /// - /// Gets or sets the property value for 'NameFirst'. - /// - /// - /// The property value for 'NameFirst'. - /// - public string? NameFirst { get; set; } - - /// - /// Gets or sets the property value for 'NameMiddle'. - /// - /// - /// The property value for 'NameMiddle'. - /// - public string? NameMiddle { get; set; } - - /// - /// Gets or sets the property value for 'NameLast'. - /// - /// - /// The property value for 'NameLast'. - /// - public string? NameLast { get; set; } - - /// - /// Gets or sets the property value for 'NameSuffix'. - /// - /// - /// The property value for 'NameSuffix'. - /// - public string? NameSuffix { get; set; } - - /// - /// Gets or sets the property value for 'Skills'. - /// - /// - /// The property value for 'Skills'. - /// - public string? Skills { get; set; } - - /// - /// Gets or sets the property value for 'AddrType'. - /// - /// - /// The property value for 'AddrType'. - /// - public string? AddrType { get; set; } - - /// - /// Gets or sets the property value for 'AddrLocCountryRegion'. - /// - /// - /// The property value for 'AddrLocCountryRegion'. - /// - public string? AddrLocCountryRegion { get; set; } - - /// - /// Gets or sets the property value for 'AddrLocState'. - /// - /// - /// The property value for 'AddrLocState'. - /// - public string? AddrLocState { get; set; } - - /// - /// Gets or sets the property value for 'AddrLocCity'. - /// - /// - /// The property value for 'AddrLocCity'. - /// - public string? AddrLocCity { get; set; } - - /// - /// Gets or sets the property value for 'AddrPostalCode'. - /// - /// - /// The property value for 'AddrPostalCode'. - /// - public string? AddrPostalCode { get; set; } - - /// - /// Gets or sets the property value for 'EMail'. - /// - /// - /// The property value for 'EMail'. - /// - public string? EMail { get; set; } - - /// - /// Gets or sets the property value for 'WebSite'. - /// - /// - /// The property value for 'WebSite'. - /// - public string? WebSite { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Models/VJobCandidateReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Models/VJobCandidateReadModel.cs deleted file mode 100644 index 6e8e501..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Models/VJobCandidateReadModel.cs +++ /dev/null @@ -1,140 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VJobCandidateReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int? BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'NamePrefix'. - /// - /// - /// The property value for 'NamePrefix'. - /// - public string? NamePrefix { get; set; } - - /// - /// Gets or sets the property value for 'NameFirst'. - /// - /// - /// The property value for 'NameFirst'. - /// - public string? NameFirst { get; set; } - - /// - /// Gets or sets the property value for 'NameMiddle'. - /// - /// - /// The property value for 'NameMiddle'. - /// - public string? NameMiddle { get; set; } - - /// - /// Gets or sets the property value for 'NameLast'. - /// - /// - /// The property value for 'NameLast'. - /// - public string? NameLast { get; set; } - - /// - /// Gets or sets the property value for 'NameSuffix'. - /// - /// - /// The property value for 'NameSuffix'. - /// - public string? NameSuffix { get; set; } - - /// - /// Gets or sets the property value for 'Skills'. - /// - /// - /// The property value for 'Skills'. - /// - public string? Skills { get; set; } - - /// - /// Gets or sets the property value for 'AddrType'. - /// - /// - /// The property value for 'AddrType'. - /// - public string? AddrType { get; set; } - - /// - /// Gets or sets the property value for 'AddrLocCountryRegion'. - /// - /// - /// The property value for 'AddrLocCountryRegion'. - /// - public string? AddrLocCountryRegion { get; set; } - - /// - /// Gets or sets the property value for 'AddrLocState'. - /// - /// - /// The property value for 'AddrLocState'. - /// - public string? AddrLocState { get; set; } - - /// - /// Gets or sets the property value for 'AddrLocCity'. - /// - /// - /// The property value for 'AddrLocCity'. - /// - public string? AddrLocCity { get; set; } - - /// - /// Gets or sets the property value for 'AddrPostalCode'. - /// - /// - /// The property value for 'AddrPostalCode'. - /// - public string? AddrPostalCode { get; set; } - - /// - /// Gets or sets the property value for 'EMail'. - /// - /// - /// The property value for 'EMail'. - /// - public string? EMail { get; set; } - - /// - /// Gets or sets the property value for 'WebSite'. - /// - /// - /// The property value for 'WebSite'. - /// - public string? WebSite { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Models/VJobCandidateUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Models/VJobCandidateUpdateModel.cs deleted file mode 100644 index acd241d..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Models/VJobCandidateUpdateModel.cs +++ /dev/null @@ -1,140 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VJobCandidateUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int? BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'NamePrefix'. - /// - /// - /// The property value for 'NamePrefix'. - /// - public string? NamePrefix { get; set; } - - /// - /// Gets or sets the property value for 'NameFirst'. - /// - /// - /// The property value for 'NameFirst'. - /// - public string? NameFirst { get; set; } - - /// - /// Gets or sets the property value for 'NameMiddle'. - /// - /// - /// The property value for 'NameMiddle'. - /// - public string? NameMiddle { get; set; } - - /// - /// Gets or sets the property value for 'NameLast'. - /// - /// - /// The property value for 'NameLast'. - /// - public string? NameLast { get; set; } - - /// - /// Gets or sets the property value for 'NameSuffix'. - /// - /// - /// The property value for 'NameSuffix'. - /// - public string? NameSuffix { get; set; } - - /// - /// Gets or sets the property value for 'Skills'. - /// - /// - /// The property value for 'Skills'. - /// - public string? Skills { get; set; } - - /// - /// Gets or sets the property value for 'AddrType'. - /// - /// - /// The property value for 'AddrType'. - /// - public string? AddrType { get; set; } - - /// - /// Gets or sets the property value for 'AddrLocCountryRegion'. - /// - /// - /// The property value for 'AddrLocCountryRegion'. - /// - public string? AddrLocCountryRegion { get; set; } - - /// - /// Gets or sets the property value for 'AddrLocState'. - /// - /// - /// The property value for 'AddrLocState'. - /// - public string? AddrLocState { get; set; } - - /// - /// Gets or sets the property value for 'AddrLocCity'. - /// - /// - /// The property value for 'AddrLocCity'. - /// - public string? AddrLocCity { get; set; } - - /// - /// Gets or sets the property value for 'AddrPostalCode'. - /// - /// - /// The property value for 'AddrPostalCode'. - /// - public string? AddrPostalCode { get; set; } - - /// - /// Gets or sets the property value for 'EMail'. - /// - /// - /// The property value for 'EMail'. - /// - public string? EMail { get; set; } - - /// - /// Gets or sets the property value for 'WebSite'. - /// - /// - /// The property value for 'WebSite'. - /// - public string? WebSite { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Validation/VJobCandidateCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Validation/VJobCandidateCreateModelValidator.cs deleted file mode 100644 index 806913f..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Validation/VJobCandidateCreateModelValidator.cs +++ /dev/null @@ -1,33 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VJobCandidateCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VJobCandidateCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.NamePrefix).MaximumLength(30); - RuleFor(p => p.NameFirst).MaximumLength(30); - RuleFor(p => p.NameMiddle).MaximumLength(30); - RuleFor(p => p.NameLast).MaximumLength(30); - RuleFor(p => p.NameSuffix).MaximumLength(30); - RuleFor(p => p.AddrType).MaximumLength(30); - RuleFor(p => p.AddrLocCountryRegion).MaximumLength(100); - RuleFor(p => p.AddrLocState).MaximumLength(100); - RuleFor(p => p.AddrLocCity).MaximumLength(100); - RuleFor(p => p.AddrPostalCode).MaximumLength(20); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Validation/VJobCandidateUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Validation/VJobCandidateUpdateModelValidator.cs deleted file mode 100644 index 1bb8d44..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Validation/VJobCandidateUpdateModelValidator.cs +++ /dev/null @@ -1,33 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VJobCandidateUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VJobCandidateUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.NamePrefix).MaximumLength(30); - RuleFor(p => p.NameFirst).MaximumLength(30); - RuleFor(p => p.NameMiddle).MaximumLength(30); - RuleFor(p => p.NameLast).MaximumLength(30); - RuleFor(p => p.NameSuffix).MaximumLength(30); - RuleFor(p => p.AddrType).MaximumLength(30); - RuleFor(p => p.AddrLocCountryRegion).MaximumLength(100); - RuleFor(p => p.AddrLocState).MaximumLength(100); - RuleFor(p => p.AddrLocCity).MaximumLength(100); - RuleFor(p => p.AddrPostalCode).MaximumLength(20); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Mapping/VJobCandidateEducationProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Mapping/VJobCandidateEducationProfile.cs deleted file mode 100644 index af74c8a..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Mapping/VJobCandidateEducationProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class VJobCandidateEducationProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public VJobCandidateEducationProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Models/VJobCandidateEducationCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Models/VJobCandidateEducationCreateModel.cs deleted file mode 100644 index bf000c3..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Models/VJobCandidateEducationCreateModel.cs +++ /dev/null @@ -1,116 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VJobCandidateEducationCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'EduLevel'. - /// - /// - /// The property value for 'EduLevel'. - /// - public string? EduLevel { get; set; } - - /// - /// Gets or sets the property value for 'EduStartDate'. - /// - /// - /// The property value for 'EduStartDate'. - /// - public DateTime? EduStartDate { get; set; } - - /// - /// Gets or sets the property value for 'EduEndDate'. - /// - /// - /// The property value for 'EduEndDate'. - /// - public DateTime? EduEndDate { get; set; } - - /// - /// Gets or sets the property value for 'EduDegree'. - /// - /// - /// The property value for 'EduDegree'. - /// - public string? EduDegree { get; set; } - - /// - /// Gets or sets the property value for 'EduMajor'. - /// - /// - /// The property value for 'EduMajor'. - /// - public string? EduMajor { get; set; } - - /// - /// Gets or sets the property value for 'EduMinor'. - /// - /// - /// The property value for 'EduMinor'. - /// - public string? EduMinor { get; set; } - - /// - /// Gets or sets the property value for 'EduGPA'. - /// - /// - /// The property value for 'EduGPA'. - /// - public string? EduGPA { get; set; } - - /// - /// Gets or sets the property value for 'EduGPAScale'. - /// - /// - /// The property value for 'EduGPAScale'. - /// - public string? EduGPAScale { get; set; } - - /// - /// Gets or sets the property value for 'EduSchool'. - /// - /// - /// The property value for 'EduSchool'. - /// - public string? EduSchool { get; set; } - - /// - /// Gets or sets the property value for 'EduLocCountryRegion'. - /// - /// - /// The property value for 'EduLocCountryRegion'. - /// - public string? EduLocCountryRegion { get; set; } - - /// - /// Gets or sets the property value for 'EduLocState'. - /// - /// - /// The property value for 'EduLocState'. - /// - public string? EduLocState { get; set; } - - /// - /// Gets or sets the property value for 'EduLocCity'. - /// - /// - /// The property value for 'EduLocCity'. - /// - public string? EduLocCity { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Models/VJobCandidateEducationReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Models/VJobCandidateEducationReadModel.cs deleted file mode 100644 index 3931a6c..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Models/VJobCandidateEducationReadModel.cs +++ /dev/null @@ -1,116 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VJobCandidateEducationReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'EduLevel'. - /// - /// - /// The property value for 'EduLevel'. - /// - public string? EduLevel { get; set; } - - /// - /// Gets or sets the property value for 'EduStartDate'. - /// - /// - /// The property value for 'EduStartDate'. - /// - public DateTime? EduStartDate { get; set; } - - /// - /// Gets or sets the property value for 'EduEndDate'. - /// - /// - /// The property value for 'EduEndDate'. - /// - public DateTime? EduEndDate { get; set; } - - /// - /// Gets or sets the property value for 'EduDegree'. - /// - /// - /// The property value for 'EduDegree'. - /// - public string? EduDegree { get; set; } - - /// - /// Gets or sets the property value for 'EduMajor'. - /// - /// - /// The property value for 'EduMajor'. - /// - public string? EduMajor { get; set; } - - /// - /// Gets or sets the property value for 'EduMinor'. - /// - /// - /// The property value for 'EduMinor'. - /// - public string? EduMinor { get; set; } - - /// - /// Gets or sets the property value for 'EduGPA'. - /// - /// - /// The property value for 'EduGPA'. - /// - public string? EduGPA { get; set; } - - /// - /// Gets or sets the property value for 'EduGPAScale'. - /// - /// - /// The property value for 'EduGPAScale'. - /// - public string? EduGPAScale { get; set; } - - /// - /// Gets or sets the property value for 'EduSchool'. - /// - /// - /// The property value for 'EduSchool'. - /// - public string? EduSchool { get; set; } - - /// - /// Gets or sets the property value for 'EduLocCountryRegion'. - /// - /// - /// The property value for 'EduLocCountryRegion'. - /// - public string? EduLocCountryRegion { get; set; } - - /// - /// Gets or sets the property value for 'EduLocState'. - /// - /// - /// The property value for 'EduLocState'. - /// - public string? EduLocState { get; set; } - - /// - /// Gets or sets the property value for 'EduLocCity'. - /// - /// - /// The property value for 'EduLocCity'. - /// - public string? EduLocCity { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Models/VJobCandidateEducationUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Models/VJobCandidateEducationUpdateModel.cs deleted file mode 100644 index b59e5c8..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Models/VJobCandidateEducationUpdateModel.cs +++ /dev/null @@ -1,116 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VJobCandidateEducationUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'EduLevel'. - /// - /// - /// The property value for 'EduLevel'. - /// - public string? EduLevel { get; set; } - - /// - /// Gets or sets the property value for 'EduStartDate'. - /// - /// - /// The property value for 'EduStartDate'. - /// - public DateTime? EduStartDate { get; set; } - - /// - /// Gets or sets the property value for 'EduEndDate'. - /// - /// - /// The property value for 'EduEndDate'. - /// - public DateTime? EduEndDate { get; set; } - - /// - /// Gets or sets the property value for 'EduDegree'. - /// - /// - /// The property value for 'EduDegree'. - /// - public string? EduDegree { get; set; } - - /// - /// Gets or sets the property value for 'EduMajor'. - /// - /// - /// The property value for 'EduMajor'. - /// - public string? EduMajor { get; set; } - - /// - /// Gets or sets the property value for 'EduMinor'. - /// - /// - /// The property value for 'EduMinor'. - /// - public string? EduMinor { get; set; } - - /// - /// Gets or sets the property value for 'EduGPA'. - /// - /// - /// The property value for 'EduGPA'. - /// - public string? EduGPA { get; set; } - - /// - /// Gets or sets the property value for 'EduGPAScale'. - /// - /// - /// The property value for 'EduGPAScale'. - /// - public string? EduGPAScale { get; set; } - - /// - /// Gets or sets the property value for 'EduSchool'. - /// - /// - /// The property value for 'EduSchool'. - /// - public string? EduSchool { get; set; } - - /// - /// Gets or sets the property value for 'EduLocCountryRegion'. - /// - /// - /// The property value for 'EduLocCountryRegion'. - /// - public string? EduLocCountryRegion { get; set; } - - /// - /// Gets or sets the property value for 'EduLocState'. - /// - /// - /// The property value for 'EduLocState'. - /// - public string? EduLocState { get; set; } - - /// - /// Gets or sets the property value for 'EduLocCity'. - /// - /// - /// The property value for 'EduLocCity'. - /// - public string? EduLocCity { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Validation/VJobCandidateEducationCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Validation/VJobCandidateEducationCreateModelValidator.cs deleted file mode 100644 index a8a71ff..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Validation/VJobCandidateEducationCreateModelValidator.cs +++ /dev/null @@ -1,32 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VJobCandidateEducationCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VJobCandidateEducationCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.EduDegree).MaximumLength(50); - RuleFor(p => p.EduMajor).MaximumLength(50); - RuleFor(p => p.EduMinor).MaximumLength(50); - RuleFor(p => p.EduGPA).MaximumLength(5); - RuleFor(p => p.EduGPAScale).MaximumLength(5); - RuleFor(p => p.EduSchool).MaximumLength(100); - RuleFor(p => p.EduLocCountryRegion).MaximumLength(100); - RuleFor(p => p.EduLocState).MaximumLength(100); - RuleFor(p => p.EduLocCity).MaximumLength(100); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Validation/VJobCandidateEducationUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Validation/VJobCandidateEducationUpdateModelValidator.cs deleted file mode 100644 index 4a109fc..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Validation/VJobCandidateEducationUpdateModelValidator.cs +++ /dev/null @@ -1,32 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VJobCandidateEducationUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VJobCandidateEducationUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.EduDegree).MaximumLength(50); - RuleFor(p => p.EduMajor).MaximumLength(50); - RuleFor(p => p.EduMinor).MaximumLength(50); - RuleFor(p => p.EduGPA).MaximumLength(5); - RuleFor(p => p.EduGPAScale).MaximumLength(5); - RuleFor(p => p.EduSchool).MaximumLength(100); - RuleFor(p => p.EduLocCountryRegion).MaximumLength(100); - RuleFor(p => p.EduLocState).MaximumLength(100); - RuleFor(p => p.EduLocCity).MaximumLength(100); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Mapping/VJobCandidateEmploymentProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Mapping/VJobCandidateEmploymentProfile.cs deleted file mode 100644 index 6e708f9..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Mapping/VJobCandidateEmploymentProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class VJobCandidateEmploymentProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public VJobCandidateEmploymentProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentCreateModel.cs deleted file mode 100644 index 41add54..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentCreateModel.cs +++ /dev/null @@ -1,100 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VJobCandidateEmploymentCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'EmpStartDate'. - /// - /// - /// The property value for 'EmpStartDate'. - /// - public DateTime? EmpStartDate { get; set; } - - /// - /// Gets or sets the property value for 'EmpEndDate'. - /// - /// - /// The property value for 'EmpEndDate'. - /// - public DateTime? EmpEndDate { get; set; } - - /// - /// Gets or sets the property value for 'EmpOrgName'. - /// - /// - /// The property value for 'EmpOrgName'. - /// - public string? EmpOrgName { get; set; } - - /// - /// Gets or sets the property value for 'EmpJobTitle'. - /// - /// - /// The property value for 'EmpJobTitle'. - /// - public string? EmpJobTitle { get; set; } - - /// - /// Gets or sets the property value for 'EmpResponsibility'. - /// - /// - /// The property value for 'EmpResponsibility'. - /// - public string? EmpResponsibility { get; set; } - - /// - /// Gets or sets the property value for 'EmpFunctionCategory'. - /// - /// - /// The property value for 'EmpFunctionCategory'. - /// - public string? EmpFunctionCategory { get; set; } - - /// - /// Gets or sets the property value for 'EmpIndustryCategory'. - /// - /// - /// The property value for 'EmpIndustryCategory'. - /// - public string? EmpIndustryCategory { get; set; } - - /// - /// Gets or sets the property value for 'EmpLocCountryRegion'. - /// - /// - /// The property value for 'EmpLocCountryRegion'. - /// - public string? EmpLocCountryRegion { get; set; } - - /// - /// Gets or sets the property value for 'EmpLocState'. - /// - /// - /// The property value for 'EmpLocState'. - /// - public string? EmpLocState { get; set; } - - /// - /// Gets or sets the property value for 'EmpLocCity'. - /// - /// - /// The property value for 'EmpLocCity'. - /// - public string? EmpLocCity { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentReadModel.cs deleted file mode 100644 index 59e6e07..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentReadModel.cs +++ /dev/null @@ -1,100 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VJobCandidateEmploymentReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'EmpStartDate'. - /// - /// - /// The property value for 'EmpStartDate'. - /// - public DateTime? EmpStartDate { get; set; } - - /// - /// Gets or sets the property value for 'EmpEndDate'. - /// - /// - /// The property value for 'EmpEndDate'. - /// - public DateTime? EmpEndDate { get; set; } - - /// - /// Gets or sets the property value for 'EmpOrgName'. - /// - /// - /// The property value for 'EmpOrgName'. - /// - public string? EmpOrgName { get; set; } - - /// - /// Gets or sets the property value for 'EmpJobTitle'. - /// - /// - /// The property value for 'EmpJobTitle'. - /// - public string? EmpJobTitle { get; set; } - - /// - /// Gets or sets the property value for 'EmpResponsibility'. - /// - /// - /// The property value for 'EmpResponsibility'. - /// - public string? EmpResponsibility { get; set; } - - /// - /// Gets or sets the property value for 'EmpFunctionCategory'. - /// - /// - /// The property value for 'EmpFunctionCategory'. - /// - public string? EmpFunctionCategory { get; set; } - - /// - /// Gets or sets the property value for 'EmpIndustryCategory'. - /// - /// - /// The property value for 'EmpIndustryCategory'. - /// - public string? EmpIndustryCategory { get; set; } - - /// - /// Gets or sets the property value for 'EmpLocCountryRegion'. - /// - /// - /// The property value for 'EmpLocCountryRegion'. - /// - public string? EmpLocCountryRegion { get; set; } - - /// - /// Gets or sets the property value for 'EmpLocState'. - /// - /// - /// The property value for 'EmpLocState'. - /// - public string? EmpLocState { get; set; } - - /// - /// Gets or sets the property value for 'EmpLocCity'. - /// - /// - /// The property value for 'EmpLocCity'. - /// - public string? EmpLocCity { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentUpdateModel.cs deleted file mode 100644 index 6848510..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentUpdateModel.cs +++ /dev/null @@ -1,100 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VJobCandidateEmploymentUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'EmpStartDate'. - /// - /// - /// The property value for 'EmpStartDate'. - /// - public DateTime? EmpStartDate { get; set; } - - /// - /// Gets or sets the property value for 'EmpEndDate'. - /// - /// - /// The property value for 'EmpEndDate'. - /// - public DateTime? EmpEndDate { get; set; } - - /// - /// Gets or sets the property value for 'EmpOrgName'. - /// - /// - /// The property value for 'EmpOrgName'. - /// - public string? EmpOrgName { get; set; } - - /// - /// Gets or sets the property value for 'EmpJobTitle'. - /// - /// - /// The property value for 'EmpJobTitle'. - /// - public string? EmpJobTitle { get; set; } - - /// - /// Gets or sets the property value for 'EmpResponsibility'. - /// - /// - /// The property value for 'EmpResponsibility'. - /// - public string? EmpResponsibility { get; set; } - - /// - /// Gets or sets the property value for 'EmpFunctionCategory'. - /// - /// - /// The property value for 'EmpFunctionCategory'. - /// - public string? EmpFunctionCategory { get; set; } - - /// - /// Gets or sets the property value for 'EmpIndustryCategory'. - /// - /// - /// The property value for 'EmpIndustryCategory'. - /// - public string? EmpIndustryCategory { get; set; } - - /// - /// Gets or sets the property value for 'EmpLocCountryRegion'. - /// - /// - /// The property value for 'EmpLocCountryRegion'. - /// - public string? EmpLocCountryRegion { get; set; } - - /// - /// Gets or sets the property value for 'EmpLocState'. - /// - /// - /// The property value for 'EmpLocState'. - /// - public string? EmpLocState { get; set; } - - /// - /// Gets or sets the property value for 'EmpLocCity'. - /// - /// - /// The property value for 'EmpLocCity'. - /// - public string? EmpLocCity { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Validation/VJobCandidateEmploymentCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Validation/VJobCandidateEmploymentCreateModelValidator.cs deleted file mode 100644 index 9795043..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Validation/VJobCandidateEmploymentCreateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VJobCandidateEmploymentCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VJobCandidateEmploymentCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.EmpOrgName).MaximumLength(100); - RuleFor(p => p.EmpJobTitle).MaximumLength(100); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Validation/VJobCandidateEmploymentUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Validation/VJobCandidateEmploymentUpdateModelValidator.cs deleted file mode 100644 index 69285bb..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Validation/VJobCandidateEmploymentUpdateModelValidator.cs +++ /dev/null @@ -1,25 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VJobCandidateEmploymentUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VJobCandidateEmploymentUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.EmpOrgName).MaximumLength(100); - RuleFor(p => p.EmpJobTitle).MaximumLength(100); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Mapping/VPersonDemographicsProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Mapping/VPersonDemographicsProfile.cs deleted file mode 100644 index a5b3370..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Mapping/VPersonDemographicsProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class VPersonDemographicsProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public VPersonDemographicsProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Models/VPersonDemographicsCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Models/VPersonDemographicsCreateModel.cs deleted file mode 100644 index b44e2d8..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Models/VPersonDemographicsCreateModel.cs +++ /dev/null @@ -1,116 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VPersonDemographicsCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'TotalPurchaseYTD'. - /// - /// - /// The property value for 'TotalPurchaseYTD'. - /// - public decimal? TotalPurchaseYTD { get; set; } - - /// - /// Gets or sets the property value for 'DateFirstPurchase'. - /// - /// - /// The property value for 'DateFirstPurchase'. - /// - public DateTime? DateFirstPurchase { get; set; } - - /// - /// Gets or sets the property value for 'BirthDate'. - /// - /// - /// The property value for 'BirthDate'. - /// - public DateTime? BirthDate { get; set; } - - /// - /// Gets or sets the property value for 'MaritalStatus'. - /// - /// - /// The property value for 'MaritalStatus'. - /// - public string? MaritalStatus { get; set; } - - /// - /// Gets or sets the property value for 'YearlyIncome'. - /// - /// - /// The property value for 'YearlyIncome'. - /// - public string? YearlyIncome { get; set; } - - /// - /// Gets or sets the property value for 'Gender'. - /// - /// - /// The property value for 'Gender'. - /// - public string? Gender { get; set; } - - /// - /// Gets or sets the property value for 'TotalChildren'. - /// - /// - /// The property value for 'TotalChildren'. - /// - public int? TotalChildren { get; set; } - - /// - /// Gets or sets the property value for 'NumberChildrenAtHome'. - /// - /// - /// The property value for 'NumberChildrenAtHome'. - /// - public int? NumberChildrenAtHome { get; set; } - - /// - /// Gets or sets the property value for 'Education'. - /// - /// - /// The property value for 'Education'. - /// - public string? Education { get; set; } - - /// - /// Gets or sets the property value for 'Occupation'. - /// - /// - /// The property value for 'Occupation'. - /// - public string? Occupation { get; set; } - - /// - /// Gets or sets the property value for 'HomeOwnerFlag'. - /// - /// - /// The property value for 'HomeOwnerFlag'. - /// - public bool? HomeOwnerFlag { get; set; } - - /// - /// Gets or sets the property value for 'NumberCarsOwned'. - /// - /// - /// The property value for 'NumberCarsOwned'. - /// - public int? NumberCarsOwned { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Models/VPersonDemographicsReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Models/VPersonDemographicsReadModel.cs deleted file mode 100644 index f409c0f..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Models/VPersonDemographicsReadModel.cs +++ /dev/null @@ -1,116 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VPersonDemographicsReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'TotalPurchaseYTD'. - /// - /// - /// The property value for 'TotalPurchaseYTD'. - /// - public decimal? TotalPurchaseYTD { get; set; } - - /// - /// Gets or sets the property value for 'DateFirstPurchase'. - /// - /// - /// The property value for 'DateFirstPurchase'. - /// - public DateTime? DateFirstPurchase { get; set; } - - /// - /// Gets or sets the property value for 'BirthDate'. - /// - /// - /// The property value for 'BirthDate'. - /// - public DateTime? BirthDate { get; set; } - - /// - /// Gets or sets the property value for 'MaritalStatus'. - /// - /// - /// The property value for 'MaritalStatus'. - /// - public string? MaritalStatus { get; set; } - - /// - /// Gets or sets the property value for 'YearlyIncome'. - /// - /// - /// The property value for 'YearlyIncome'. - /// - public string? YearlyIncome { get; set; } - - /// - /// Gets or sets the property value for 'Gender'. - /// - /// - /// The property value for 'Gender'. - /// - public string? Gender { get; set; } - - /// - /// Gets or sets the property value for 'TotalChildren'. - /// - /// - /// The property value for 'TotalChildren'. - /// - public int? TotalChildren { get; set; } - - /// - /// Gets or sets the property value for 'NumberChildrenAtHome'. - /// - /// - /// The property value for 'NumberChildrenAtHome'. - /// - public int? NumberChildrenAtHome { get; set; } - - /// - /// Gets or sets the property value for 'Education'. - /// - /// - /// The property value for 'Education'. - /// - public string? Education { get; set; } - - /// - /// Gets or sets the property value for 'Occupation'. - /// - /// - /// The property value for 'Occupation'. - /// - public string? Occupation { get; set; } - - /// - /// Gets or sets the property value for 'HomeOwnerFlag'. - /// - /// - /// The property value for 'HomeOwnerFlag'. - /// - public bool? HomeOwnerFlag { get; set; } - - /// - /// Gets or sets the property value for 'NumberCarsOwned'. - /// - /// - /// The property value for 'NumberCarsOwned'. - /// - public int? NumberCarsOwned { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Models/VPersonDemographicsUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Models/VPersonDemographicsUpdateModel.cs deleted file mode 100644 index 784087a..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Models/VPersonDemographicsUpdateModel.cs +++ /dev/null @@ -1,116 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VPersonDemographicsUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'TotalPurchaseYTD'. - /// - /// - /// The property value for 'TotalPurchaseYTD'. - /// - public decimal? TotalPurchaseYTD { get; set; } - - /// - /// Gets or sets the property value for 'DateFirstPurchase'. - /// - /// - /// The property value for 'DateFirstPurchase'. - /// - public DateTime? DateFirstPurchase { get; set; } - - /// - /// Gets or sets the property value for 'BirthDate'. - /// - /// - /// The property value for 'BirthDate'. - /// - public DateTime? BirthDate { get; set; } - - /// - /// Gets or sets the property value for 'MaritalStatus'. - /// - /// - /// The property value for 'MaritalStatus'. - /// - public string? MaritalStatus { get; set; } - - /// - /// Gets or sets the property value for 'YearlyIncome'. - /// - /// - /// The property value for 'YearlyIncome'. - /// - public string? YearlyIncome { get; set; } - - /// - /// Gets or sets the property value for 'Gender'. - /// - /// - /// The property value for 'Gender'. - /// - public string? Gender { get; set; } - - /// - /// Gets or sets the property value for 'TotalChildren'. - /// - /// - /// The property value for 'TotalChildren'. - /// - public int? TotalChildren { get; set; } - - /// - /// Gets or sets the property value for 'NumberChildrenAtHome'. - /// - /// - /// The property value for 'NumberChildrenAtHome'. - /// - public int? NumberChildrenAtHome { get; set; } - - /// - /// Gets or sets the property value for 'Education'. - /// - /// - /// The property value for 'Education'. - /// - public string? Education { get; set; } - - /// - /// Gets or sets the property value for 'Occupation'. - /// - /// - /// The property value for 'Occupation'. - /// - public string? Occupation { get; set; } - - /// - /// Gets or sets the property value for 'HomeOwnerFlag'. - /// - /// - /// The property value for 'HomeOwnerFlag'. - /// - public bool? HomeOwnerFlag { get; set; } - - /// - /// Gets or sets the property value for 'NumberCarsOwned'. - /// - /// - /// The property value for 'NumberCarsOwned'. - /// - public int? NumberCarsOwned { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Validation/VPersonDemographicsCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Validation/VPersonDemographicsCreateModelValidator.cs deleted file mode 100644 index 5945cb9..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Validation/VPersonDemographicsCreateModelValidator.cs +++ /dev/null @@ -1,28 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VPersonDemographicsCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VPersonDemographicsCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.MaritalStatus).MaximumLength(1); - RuleFor(p => p.YearlyIncome).MaximumLength(30); - RuleFor(p => p.Gender).MaximumLength(1); - RuleFor(p => p.Education).MaximumLength(30); - RuleFor(p => p.Occupation).MaximumLength(30); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Validation/VPersonDemographicsUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Validation/VPersonDemographicsUpdateModelValidator.cs deleted file mode 100644 index 7d62f40..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Validation/VPersonDemographicsUpdateModelValidator.cs +++ /dev/null @@ -1,28 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VPersonDemographicsUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VPersonDemographicsUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.MaritalStatus).MaximumLength(1); - RuleFor(p => p.YearlyIncome).MaximumLength(30); - RuleFor(p => p.Gender).MaximumLength(1); - RuleFor(p => p.Education).MaximumLength(30); - RuleFor(p => p.Occupation).MaximumLength(30); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Mapping/VProductAndDescriptionProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Mapping/VProductAndDescriptionProfile.cs deleted file mode 100644 index 328423c..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Mapping/VProductAndDescriptionProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class VProductAndDescriptionProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public VProductAndDescriptionProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Models/VProductAndDescriptionCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Models/VProductAndDescriptionCreateModel.cs deleted file mode 100644 index cdfb5e0..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Models/VProductAndDescriptionCreateModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VProductAndDescriptionCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ProductModel'. - /// - /// - /// The property value for 'ProductModel'. - /// - public string ProductModel { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CultureId'. - /// - /// - /// The property value for 'CultureId'. - /// - public string CultureId { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Description'. - /// - /// - /// The property value for 'Description'. - /// - public string Description { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Models/VProductAndDescriptionReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Models/VProductAndDescriptionReadModel.cs deleted file mode 100644 index d236a4c..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Models/VProductAndDescriptionReadModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VProductAndDescriptionReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ProductModel'. - /// - /// - /// The property value for 'ProductModel'. - /// - public string ProductModel { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CultureId'. - /// - /// - /// The property value for 'CultureId'. - /// - public string CultureId { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Description'. - /// - /// - /// The property value for 'Description'. - /// - public string Description { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Models/VProductAndDescriptionUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Models/VProductAndDescriptionUpdateModel.cs deleted file mode 100644 index 3eaefe5..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Models/VProductAndDescriptionUpdateModel.cs +++ /dev/null @@ -1,52 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VProductAndDescriptionUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ProductModel'. - /// - /// - /// The property value for 'ProductModel'. - /// - public string ProductModel { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CultureId'. - /// - /// - /// The property value for 'CultureId'. - /// - public string CultureId { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Description'. - /// - /// - /// The property value for 'Description'. - /// - public string Description { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Validation/VProductAndDescriptionCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Validation/VProductAndDescriptionCreateModelValidator.cs deleted file mode 100644 index 108c82c..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Validation/VProductAndDescriptionCreateModelValidator.cs +++ /dev/null @@ -1,31 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VProductAndDescriptionCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VProductAndDescriptionCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - RuleFor(p => p.ProductModel).NotEmpty(); - RuleFor(p => p.ProductModel).MaximumLength(50); - RuleFor(p => p.CultureId).NotEmpty(); - RuleFor(p => p.CultureId).MaximumLength(6); - RuleFor(p => p.Description).NotEmpty(); - RuleFor(p => p.Description).MaximumLength(400); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Validation/VProductAndDescriptionUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Validation/VProductAndDescriptionUpdateModelValidator.cs deleted file mode 100644 index c92c997..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Validation/VProductAndDescriptionUpdateModelValidator.cs +++ /dev/null @@ -1,31 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VProductAndDescriptionUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VProductAndDescriptionUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - RuleFor(p => p.ProductModel).NotEmpty(); - RuleFor(p => p.ProductModel).MaximumLength(50); - RuleFor(p => p.CultureId).NotEmpty(); - RuleFor(p => p.CultureId).MaximumLength(6); - RuleFor(p => p.Description).NotEmpty(); - RuleFor(p => p.Description).MaximumLength(400); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Mapping/VProductModelCatalogDescriptionProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Mapping/VProductModelCatalogDescriptionProfile.cs deleted file mode 100644 index 992c5be..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Mapping/VProductModelCatalogDescriptionProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class VProductModelCatalogDescriptionProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public VProductModelCatalogDescriptionProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Models/VProductModelCatalogDescriptionCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Models/VProductModelCatalogDescriptionCreateModel.cs deleted file mode 100644 index a5f8e5e..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Models/VProductModelCatalogDescriptionCreateModel.cs +++ /dev/null @@ -1,212 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VProductModelCatalogDescriptionCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Summary'. - /// - /// - /// The property value for 'Summary'. - /// - public string? Summary { get; set; } - - /// - /// Gets or sets the property value for 'Manufacturer'. - /// - /// - /// The property value for 'Manufacturer'. - /// - public string? Manufacturer { get; set; } - - /// - /// Gets or sets the property value for 'Copyright'. - /// - /// - /// The property value for 'Copyright'. - /// - public string? Copyright { get; set; } - - /// - /// Gets or sets the property value for 'ProductURL'. - /// - /// - /// The property value for 'ProductURL'. - /// - public string? ProductURL { get; set; } - - /// - /// Gets or sets the property value for 'WarrantyPeriod'. - /// - /// - /// The property value for 'WarrantyPeriod'. - /// - public string? WarrantyPeriod { get; set; } - - /// - /// Gets or sets the property value for 'WarrantyDescription'. - /// - /// - /// The property value for 'WarrantyDescription'. - /// - public string? WarrantyDescription { get; set; } - - /// - /// Gets or sets the property value for 'NoOfYears'. - /// - /// - /// The property value for 'NoOfYears'. - /// - public string? NoOfYears { get; set; } - - /// - /// Gets or sets the property value for 'MaintenanceDescription'. - /// - /// - /// The property value for 'MaintenanceDescription'. - /// - public string? MaintenanceDescription { get; set; } - - /// - /// Gets or sets the property value for 'Wheel'. - /// - /// - /// The property value for 'Wheel'. - /// - public string? Wheel { get; set; } - - /// - /// Gets or sets the property value for 'Saddle'. - /// - /// - /// The property value for 'Saddle'. - /// - public string? Saddle { get; set; } - - /// - /// Gets or sets the property value for 'Pedal'. - /// - /// - /// The property value for 'Pedal'. - /// - public string? Pedal { get; set; } - - /// - /// Gets or sets the property value for 'BikeFrame'. - /// - /// - /// The property value for 'BikeFrame'. - /// - public string? BikeFrame { get; set; } - - /// - /// Gets or sets the property value for 'Crankset'. - /// - /// - /// The property value for 'Crankset'. - /// - public string? Crankset { get; set; } - - /// - /// Gets or sets the property value for 'PictureAngle'. - /// - /// - /// The property value for 'PictureAngle'. - /// - public string? PictureAngle { get; set; } - - /// - /// Gets or sets the property value for 'PictureSize'. - /// - /// - /// The property value for 'PictureSize'. - /// - public string? PictureSize { get; set; } - - /// - /// Gets or sets the property value for 'ProductPhotoId'. - /// - /// - /// The property value for 'ProductPhotoId'. - /// - public string? ProductPhotoId { get; set; } - - /// - /// Gets or sets the property value for 'Material'. - /// - /// - /// The property value for 'Material'. - /// - public string? Material { get; set; } - - /// - /// Gets or sets the property value for 'Color'. - /// - /// - /// The property value for 'Color'. - /// - public string? Color { get; set; } - - /// - /// Gets or sets the property value for 'ProductLine'. - /// - /// - /// The property value for 'ProductLine'. - /// - public string? ProductLine { get; set; } - - /// - /// Gets or sets the property value for 'Style'. - /// - /// - /// The property value for 'Style'. - /// - public string? Style { get; set; } - - /// - /// Gets or sets the property value for 'RiderExperience'. - /// - /// - /// The property value for 'RiderExperience'. - /// - public string? RiderExperience { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Models/VProductModelCatalogDescriptionReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Models/VProductModelCatalogDescriptionReadModel.cs deleted file mode 100644 index 9c4a574..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Models/VProductModelCatalogDescriptionReadModel.cs +++ /dev/null @@ -1,212 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VProductModelCatalogDescriptionReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Summary'. - /// - /// - /// The property value for 'Summary'. - /// - public string? Summary { get; set; } - - /// - /// Gets or sets the property value for 'Manufacturer'. - /// - /// - /// The property value for 'Manufacturer'. - /// - public string? Manufacturer { get; set; } - - /// - /// Gets or sets the property value for 'Copyright'. - /// - /// - /// The property value for 'Copyright'. - /// - public string? Copyright { get; set; } - - /// - /// Gets or sets the property value for 'ProductURL'. - /// - /// - /// The property value for 'ProductURL'. - /// - public string? ProductURL { get; set; } - - /// - /// Gets or sets the property value for 'WarrantyPeriod'. - /// - /// - /// The property value for 'WarrantyPeriod'. - /// - public string? WarrantyPeriod { get; set; } - - /// - /// Gets or sets the property value for 'WarrantyDescription'. - /// - /// - /// The property value for 'WarrantyDescription'. - /// - public string? WarrantyDescription { get; set; } - - /// - /// Gets or sets the property value for 'NoOfYears'. - /// - /// - /// The property value for 'NoOfYears'. - /// - public string? NoOfYears { get; set; } - - /// - /// Gets or sets the property value for 'MaintenanceDescription'. - /// - /// - /// The property value for 'MaintenanceDescription'. - /// - public string? MaintenanceDescription { get; set; } - - /// - /// Gets or sets the property value for 'Wheel'. - /// - /// - /// The property value for 'Wheel'. - /// - public string? Wheel { get; set; } - - /// - /// Gets or sets the property value for 'Saddle'. - /// - /// - /// The property value for 'Saddle'. - /// - public string? Saddle { get; set; } - - /// - /// Gets or sets the property value for 'Pedal'. - /// - /// - /// The property value for 'Pedal'. - /// - public string? Pedal { get; set; } - - /// - /// Gets or sets the property value for 'BikeFrame'. - /// - /// - /// The property value for 'BikeFrame'. - /// - public string? BikeFrame { get; set; } - - /// - /// Gets or sets the property value for 'Crankset'. - /// - /// - /// The property value for 'Crankset'. - /// - public string? Crankset { get; set; } - - /// - /// Gets or sets the property value for 'PictureAngle'. - /// - /// - /// The property value for 'PictureAngle'. - /// - public string? PictureAngle { get; set; } - - /// - /// Gets or sets the property value for 'PictureSize'. - /// - /// - /// The property value for 'PictureSize'. - /// - public string? PictureSize { get; set; } - - /// - /// Gets or sets the property value for 'ProductPhotoId'. - /// - /// - /// The property value for 'ProductPhotoId'. - /// - public string? ProductPhotoId { get; set; } - - /// - /// Gets or sets the property value for 'Material'. - /// - /// - /// The property value for 'Material'. - /// - public string? Material { get; set; } - - /// - /// Gets or sets the property value for 'Color'. - /// - /// - /// The property value for 'Color'. - /// - public string? Color { get; set; } - - /// - /// Gets or sets the property value for 'ProductLine'. - /// - /// - /// The property value for 'ProductLine'. - /// - public string? ProductLine { get; set; } - - /// - /// Gets or sets the property value for 'Style'. - /// - /// - /// The property value for 'Style'. - /// - public string? Style { get; set; } - - /// - /// Gets or sets the property value for 'RiderExperience'. - /// - /// - /// The property value for 'RiderExperience'. - /// - public string? RiderExperience { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Models/VProductModelCatalogDescriptionUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Models/VProductModelCatalogDescriptionUpdateModel.cs deleted file mode 100644 index e168e85..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Models/VProductModelCatalogDescriptionUpdateModel.cs +++ /dev/null @@ -1,212 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VProductModelCatalogDescriptionUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Summary'. - /// - /// - /// The property value for 'Summary'. - /// - public string? Summary { get; set; } - - /// - /// Gets or sets the property value for 'Manufacturer'. - /// - /// - /// The property value for 'Manufacturer'. - /// - public string? Manufacturer { get; set; } - - /// - /// Gets or sets the property value for 'Copyright'. - /// - /// - /// The property value for 'Copyright'. - /// - public string? Copyright { get; set; } - - /// - /// Gets or sets the property value for 'ProductURL'. - /// - /// - /// The property value for 'ProductURL'. - /// - public string? ProductURL { get; set; } - - /// - /// Gets or sets the property value for 'WarrantyPeriod'. - /// - /// - /// The property value for 'WarrantyPeriod'. - /// - public string? WarrantyPeriod { get; set; } - - /// - /// Gets or sets the property value for 'WarrantyDescription'. - /// - /// - /// The property value for 'WarrantyDescription'. - /// - public string? WarrantyDescription { get; set; } - - /// - /// Gets or sets the property value for 'NoOfYears'. - /// - /// - /// The property value for 'NoOfYears'. - /// - public string? NoOfYears { get; set; } - - /// - /// Gets or sets the property value for 'MaintenanceDescription'. - /// - /// - /// The property value for 'MaintenanceDescription'. - /// - public string? MaintenanceDescription { get; set; } - - /// - /// Gets or sets the property value for 'Wheel'. - /// - /// - /// The property value for 'Wheel'. - /// - public string? Wheel { get; set; } - - /// - /// Gets or sets the property value for 'Saddle'. - /// - /// - /// The property value for 'Saddle'. - /// - public string? Saddle { get; set; } - - /// - /// Gets or sets the property value for 'Pedal'. - /// - /// - /// The property value for 'Pedal'. - /// - public string? Pedal { get; set; } - - /// - /// Gets or sets the property value for 'BikeFrame'. - /// - /// - /// The property value for 'BikeFrame'. - /// - public string? BikeFrame { get; set; } - - /// - /// Gets or sets the property value for 'Crankset'. - /// - /// - /// The property value for 'Crankset'. - /// - public string? Crankset { get; set; } - - /// - /// Gets or sets the property value for 'PictureAngle'. - /// - /// - /// The property value for 'PictureAngle'. - /// - public string? PictureAngle { get; set; } - - /// - /// Gets or sets the property value for 'PictureSize'. - /// - /// - /// The property value for 'PictureSize'. - /// - public string? PictureSize { get; set; } - - /// - /// Gets or sets the property value for 'ProductPhotoId'. - /// - /// - /// The property value for 'ProductPhotoId'. - /// - public string? ProductPhotoId { get; set; } - - /// - /// Gets or sets the property value for 'Material'. - /// - /// - /// The property value for 'Material'. - /// - public string? Material { get; set; } - - /// - /// Gets or sets the property value for 'Color'. - /// - /// - /// The property value for 'Color'. - /// - public string? Color { get; set; } - - /// - /// Gets or sets the property value for 'ProductLine'. - /// - /// - /// The property value for 'ProductLine'. - /// - public string? ProductLine { get; set; } - - /// - /// Gets or sets the property value for 'Style'. - /// - /// - /// The property value for 'Style'. - /// - public string? Style { get; set; } - - /// - /// Gets or sets the property value for 'RiderExperience'. - /// - /// - /// The property value for 'RiderExperience'. - /// - public string? RiderExperience { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Validation/VProductModelCatalogDescriptionCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Validation/VProductModelCatalogDescriptionCreateModelValidator.cs deleted file mode 100644 index 17bbc17..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Validation/VProductModelCatalogDescriptionCreateModelValidator.cs +++ /dev/null @@ -1,43 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VProductModelCatalogDescriptionCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VProductModelCatalogDescriptionCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - RuleFor(p => p.Copyright).MaximumLength(30); - RuleFor(p => p.ProductURL).MaximumLength(256); - RuleFor(p => p.WarrantyPeriod).MaximumLength(256); - RuleFor(p => p.WarrantyDescription).MaximumLength(256); - RuleFor(p => p.NoOfYears).MaximumLength(256); - RuleFor(p => p.MaintenanceDescription).MaximumLength(256); - RuleFor(p => p.Wheel).MaximumLength(256); - RuleFor(p => p.Saddle).MaximumLength(256); - RuleFor(p => p.Pedal).MaximumLength(256); - RuleFor(p => p.Crankset).MaximumLength(256); - RuleFor(p => p.PictureAngle).MaximumLength(256); - RuleFor(p => p.PictureSize).MaximumLength(256); - RuleFor(p => p.ProductPhotoId).MaximumLength(256); - RuleFor(p => p.Material).MaximumLength(256); - RuleFor(p => p.Color).MaximumLength(256); - RuleFor(p => p.ProductLine).MaximumLength(256); - RuleFor(p => p.Style).MaximumLength(256); - RuleFor(p => p.RiderExperience).MaximumLength(1024); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Validation/VProductModelCatalogDescriptionUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Validation/VProductModelCatalogDescriptionUpdateModelValidator.cs deleted file mode 100644 index e3c0f89..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Validation/VProductModelCatalogDescriptionUpdateModelValidator.cs +++ /dev/null @@ -1,43 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VProductModelCatalogDescriptionUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VProductModelCatalogDescriptionUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - RuleFor(p => p.Copyright).MaximumLength(30); - RuleFor(p => p.ProductURL).MaximumLength(256); - RuleFor(p => p.WarrantyPeriod).MaximumLength(256); - RuleFor(p => p.WarrantyDescription).MaximumLength(256); - RuleFor(p => p.NoOfYears).MaximumLength(256); - RuleFor(p => p.MaintenanceDescription).MaximumLength(256); - RuleFor(p => p.Wheel).MaximumLength(256); - RuleFor(p => p.Saddle).MaximumLength(256); - RuleFor(p => p.Pedal).MaximumLength(256); - RuleFor(p => p.Crankset).MaximumLength(256); - RuleFor(p => p.PictureAngle).MaximumLength(256); - RuleFor(p => p.PictureSize).MaximumLength(256); - RuleFor(p => p.ProductPhotoId).MaximumLength(256); - RuleFor(p => p.Material).MaximumLength(256); - RuleFor(p => p.Color).MaximumLength(256); - RuleFor(p => p.ProductLine).MaximumLength(256); - RuleFor(p => p.Style).MaximumLength(256); - RuleFor(p => p.RiderExperience).MaximumLength(1024); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Mapping/VProductModelInstructionsProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Mapping/VProductModelInstructionsProfile.cs deleted file mode 100644 index 1bcf098..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Mapping/VProductModelInstructionsProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class VProductModelInstructionsProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public VProductModelInstructionsProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsCreateModel.cs deleted file mode 100644 index af10ef7..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsCreateModel.cs +++ /dev/null @@ -1,100 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VProductModelInstructionsCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Instructions'. - /// - /// - /// The property value for 'Instructions'. - /// - public string? Instructions { get; set; } - - /// - /// Gets or sets the property value for 'LocationId'. - /// - /// - /// The property value for 'LocationId'. - /// - public int? LocationId { get; set; } - - /// - /// Gets or sets the property value for 'SetupHours'. - /// - /// - /// The property value for 'SetupHours'. - /// - public decimal? SetupHours { get; set; } - - /// - /// Gets or sets the property value for 'MachineHours'. - /// - /// - /// The property value for 'MachineHours'. - /// - public decimal? MachineHours { get; set; } - - /// - /// Gets or sets the property value for 'LaborHours'. - /// - /// - /// The property value for 'LaborHours'. - /// - public decimal? LaborHours { get; set; } - - /// - /// Gets or sets the property value for 'LotSize'. - /// - /// - /// The property value for 'LotSize'. - /// - public int? LotSize { get; set; } - - /// - /// Gets or sets the property value for 'Step'. - /// - /// - /// The property value for 'Step'. - /// - public string? Step { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsReadModel.cs deleted file mode 100644 index f6d8a91..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsReadModel.cs +++ /dev/null @@ -1,100 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VProductModelInstructionsReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Instructions'. - /// - /// - /// The property value for 'Instructions'. - /// - public string? Instructions { get; set; } - - /// - /// Gets or sets the property value for 'LocationId'. - /// - /// - /// The property value for 'LocationId'. - /// - public int? LocationId { get; set; } - - /// - /// Gets or sets the property value for 'SetupHours'. - /// - /// - /// The property value for 'SetupHours'. - /// - public decimal? SetupHours { get; set; } - - /// - /// Gets or sets the property value for 'MachineHours'. - /// - /// - /// The property value for 'MachineHours'. - /// - public decimal? MachineHours { get; set; } - - /// - /// Gets or sets the property value for 'LaborHours'. - /// - /// - /// The property value for 'LaborHours'. - /// - public decimal? LaborHours { get; set; } - - /// - /// Gets or sets the property value for 'LotSize'. - /// - /// - /// The property value for 'LotSize'. - /// - public int? LotSize { get; set; } - - /// - /// Gets or sets the property value for 'Step'. - /// - /// - /// The property value for 'Step'. - /// - public string? Step { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsUpdateModel.cs deleted file mode 100644 index f993b72..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsUpdateModel.cs +++ /dev/null @@ -1,100 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VProductModelInstructionsUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Instructions'. - /// - /// - /// The property value for 'Instructions'. - /// - public string? Instructions { get; set; } - - /// - /// Gets or sets the property value for 'LocationId'. - /// - /// - /// The property value for 'LocationId'. - /// - public int? LocationId { get; set; } - - /// - /// Gets or sets the property value for 'SetupHours'. - /// - /// - /// The property value for 'SetupHours'. - /// - public decimal? SetupHours { get; set; } - - /// - /// Gets or sets the property value for 'MachineHours'. - /// - /// - /// The property value for 'MachineHours'. - /// - public decimal? MachineHours { get; set; } - - /// - /// Gets or sets the property value for 'LaborHours'. - /// - /// - /// The property value for 'LaborHours'. - /// - public decimal? LaborHours { get; set; } - - /// - /// Gets or sets the property value for 'LotSize'. - /// - /// - /// The property value for 'LotSize'. - /// - public int? LotSize { get; set; } - - /// - /// Gets or sets the property value for 'Step'. - /// - /// - /// The property value for 'Step'. - /// - public string? Step { get; set; } - - /// - /// Gets or sets the property value for 'Rowguid'. - /// - /// - /// The property value for 'Rowguid'. - /// - public Guid Rowguid { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Validation/VProductModelInstructionsCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Validation/VProductModelInstructionsCreateModelValidator.cs deleted file mode 100644 index 5cace11..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Validation/VProductModelInstructionsCreateModelValidator.cs +++ /dev/null @@ -1,26 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VProductModelInstructionsCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VProductModelInstructionsCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - RuleFor(p => p.Step).MaximumLength(1024); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Validation/VProductModelInstructionsUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Validation/VProductModelInstructionsUpdateModelValidator.cs deleted file mode 100644 index 1a84da1..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Validation/VProductModelInstructionsUpdateModelValidator.cs +++ /dev/null @@ -1,26 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VProductModelInstructionsUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VProductModelInstructionsUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - RuleFor(p => p.Step).MaximumLength(1024); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Mapping/VSalesPersonProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Mapping/VSalesPersonProfile.cs deleted file mode 100644 index 054c5ef..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Mapping/VSalesPersonProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class VSalesPersonProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public VSalesPersonProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Models/VSalesPersonCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Models/VSalesPersonCreateModel.cs deleted file mode 100644 index e7e19b5..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Models/VSalesPersonCreateModel.cs +++ /dev/null @@ -1,188 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VSalesPersonCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Title'. - /// - /// - /// The property value for 'Title'. - /// - public string? Title { get; set; } - - /// - /// Gets or sets the property value for 'FirstName'. - /// - /// - /// The property value for 'FirstName'. - /// - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'MiddleName'. - /// - /// - /// The property value for 'MiddleName'. - /// - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value for 'LastName'. - /// - /// - /// The property value for 'LastName'. - /// - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Suffix'. - /// - /// - /// The property value for 'Suffix'. - /// - public string? Suffix { get; set; } - - /// - /// Gets or sets the property value for 'JobTitle'. - /// - /// - /// The property value for 'JobTitle'. - /// - public string JobTitle { get; set; } = null!; - - /// - /// Gets or sets the property value for 'PhoneNumber'. - /// - /// - /// The property value for 'PhoneNumber'. - /// - public string? PhoneNumber { get; set; } - - /// - /// Gets or sets the property value for 'PhoneNumberType'. - /// - /// - /// The property value for 'PhoneNumberType'. - /// - public string? PhoneNumberType { get; set; } - - /// - /// Gets or sets the property value for 'EmailAddress'. - /// - /// - /// The property value for 'EmailAddress'. - /// - public string? EmailAddress { get; set; } - - /// - /// Gets or sets the property value for 'EmailPromotion'. - /// - /// - /// The property value for 'EmailPromotion'. - /// - public int EmailPromotion { get; set; } - - /// - /// Gets or sets the property value for 'AddressLine1'. - /// - /// - /// The property value for 'AddressLine1'. - /// - public string AddressLine1 { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressLine2'. - /// - /// - /// The property value for 'AddressLine2'. - /// - public string? AddressLine2 { get; set; } - - /// - /// Gets or sets the property value for 'City'. - /// - /// - /// The property value for 'City'. - /// - public string City { get; set; } = null!; - - /// - /// Gets or sets the property value for 'StateProvinceName'. - /// - /// - /// The property value for 'StateProvinceName'. - /// - public string StateProvinceName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'PostalCode'. - /// - /// - /// The property value for 'PostalCode'. - /// - public string PostalCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CountryRegionName'. - /// - /// - /// The property value for 'CountryRegionName'. - /// - public string CountryRegionName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'TerritoryName'. - /// - /// - /// The property value for 'TerritoryName'. - /// - public string? TerritoryName { get; set; } - - /// - /// Gets or sets the property value for 'TerritoryGroup'. - /// - /// - /// The property value for 'TerritoryGroup'. - /// - public string? TerritoryGroup { get; set; } - - /// - /// Gets or sets the property value for 'SalesQuota'. - /// - /// - /// The property value for 'SalesQuota'. - /// - public decimal? SalesQuota { get; set; } - - /// - /// Gets or sets the property value for 'SalesYTD'. - /// - /// - /// The property value for 'SalesYTD'. - /// - public decimal SalesYTD { get; set; } - - /// - /// Gets or sets the property value for 'SalesLastYear'. - /// - /// - /// The property value for 'SalesLastYear'. - /// - public decimal SalesLastYear { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Models/VSalesPersonReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Models/VSalesPersonReadModel.cs deleted file mode 100644 index ac11e35..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Models/VSalesPersonReadModel.cs +++ /dev/null @@ -1,188 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VSalesPersonReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Title'. - /// - /// - /// The property value for 'Title'. - /// - public string? Title { get; set; } - - /// - /// Gets or sets the property value for 'FirstName'. - /// - /// - /// The property value for 'FirstName'. - /// - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'MiddleName'. - /// - /// - /// The property value for 'MiddleName'. - /// - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value for 'LastName'. - /// - /// - /// The property value for 'LastName'. - /// - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Suffix'. - /// - /// - /// The property value for 'Suffix'. - /// - public string? Suffix { get; set; } - - /// - /// Gets or sets the property value for 'JobTitle'. - /// - /// - /// The property value for 'JobTitle'. - /// - public string JobTitle { get; set; } = null!; - - /// - /// Gets or sets the property value for 'PhoneNumber'. - /// - /// - /// The property value for 'PhoneNumber'. - /// - public string? PhoneNumber { get; set; } - - /// - /// Gets or sets the property value for 'PhoneNumberType'. - /// - /// - /// The property value for 'PhoneNumberType'. - /// - public string? PhoneNumberType { get; set; } - - /// - /// Gets or sets the property value for 'EmailAddress'. - /// - /// - /// The property value for 'EmailAddress'. - /// - public string? EmailAddress { get; set; } - - /// - /// Gets or sets the property value for 'EmailPromotion'. - /// - /// - /// The property value for 'EmailPromotion'. - /// - public int EmailPromotion { get; set; } - - /// - /// Gets or sets the property value for 'AddressLine1'. - /// - /// - /// The property value for 'AddressLine1'. - /// - public string AddressLine1 { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressLine2'. - /// - /// - /// The property value for 'AddressLine2'. - /// - public string? AddressLine2 { get; set; } - - /// - /// Gets or sets the property value for 'City'. - /// - /// - /// The property value for 'City'. - /// - public string City { get; set; } = null!; - - /// - /// Gets or sets the property value for 'StateProvinceName'. - /// - /// - /// The property value for 'StateProvinceName'. - /// - public string StateProvinceName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'PostalCode'. - /// - /// - /// The property value for 'PostalCode'. - /// - public string PostalCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CountryRegionName'. - /// - /// - /// The property value for 'CountryRegionName'. - /// - public string CountryRegionName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'TerritoryName'. - /// - /// - /// The property value for 'TerritoryName'. - /// - public string? TerritoryName { get; set; } - - /// - /// Gets or sets the property value for 'TerritoryGroup'. - /// - /// - /// The property value for 'TerritoryGroup'. - /// - public string? TerritoryGroup { get; set; } - - /// - /// Gets or sets the property value for 'SalesQuota'. - /// - /// - /// The property value for 'SalesQuota'. - /// - public decimal? SalesQuota { get; set; } - - /// - /// Gets or sets the property value for 'SalesYTD'. - /// - /// - /// The property value for 'SalesYTD'. - /// - public decimal SalesYTD { get; set; } - - /// - /// Gets or sets the property value for 'SalesLastYear'. - /// - /// - /// The property value for 'SalesLastYear'. - /// - public decimal SalesLastYear { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Models/VSalesPersonUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Models/VSalesPersonUpdateModel.cs deleted file mode 100644 index 3edab88..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Models/VSalesPersonUpdateModel.cs +++ /dev/null @@ -1,188 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VSalesPersonUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Title'. - /// - /// - /// The property value for 'Title'. - /// - public string? Title { get; set; } - - /// - /// Gets or sets the property value for 'FirstName'. - /// - /// - /// The property value for 'FirstName'. - /// - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'MiddleName'. - /// - /// - /// The property value for 'MiddleName'. - /// - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value for 'LastName'. - /// - /// - /// The property value for 'LastName'. - /// - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Suffix'. - /// - /// - /// The property value for 'Suffix'. - /// - public string? Suffix { get; set; } - - /// - /// Gets or sets the property value for 'JobTitle'. - /// - /// - /// The property value for 'JobTitle'. - /// - public string JobTitle { get; set; } = null!; - - /// - /// Gets or sets the property value for 'PhoneNumber'. - /// - /// - /// The property value for 'PhoneNumber'. - /// - public string? PhoneNumber { get; set; } - - /// - /// Gets or sets the property value for 'PhoneNumberType'. - /// - /// - /// The property value for 'PhoneNumberType'. - /// - public string? PhoneNumberType { get; set; } - - /// - /// Gets or sets the property value for 'EmailAddress'. - /// - /// - /// The property value for 'EmailAddress'. - /// - public string? EmailAddress { get; set; } - - /// - /// Gets or sets the property value for 'EmailPromotion'. - /// - /// - /// The property value for 'EmailPromotion'. - /// - public int EmailPromotion { get; set; } - - /// - /// Gets or sets the property value for 'AddressLine1'. - /// - /// - /// The property value for 'AddressLine1'. - /// - public string AddressLine1 { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressLine2'. - /// - /// - /// The property value for 'AddressLine2'. - /// - public string? AddressLine2 { get; set; } - - /// - /// Gets or sets the property value for 'City'. - /// - /// - /// The property value for 'City'. - /// - public string City { get; set; } = null!; - - /// - /// Gets or sets the property value for 'StateProvinceName'. - /// - /// - /// The property value for 'StateProvinceName'. - /// - public string StateProvinceName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'PostalCode'. - /// - /// - /// The property value for 'PostalCode'. - /// - public string PostalCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CountryRegionName'. - /// - /// - /// The property value for 'CountryRegionName'. - /// - public string CountryRegionName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'TerritoryName'. - /// - /// - /// The property value for 'TerritoryName'. - /// - public string? TerritoryName { get; set; } - - /// - /// Gets or sets the property value for 'TerritoryGroup'. - /// - /// - /// The property value for 'TerritoryGroup'. - /// - public string? TerritoryGroup { get; set; } - - /// - /// Gets or sets the property value for 'SalesQuota'. - /// - /// - /// The property value for 'SalesQuota'. - /// - public decimal? SalesQuota { get; set; } - - /// - /// Gets or sets the property value for 'SalesYTD'. - /// - /// - /// The property value for 'SalesYTD'. - /// - public decimal SalesYTD { get; set; } - - /// - /// Gets or sets the property value for 'SalesLastYear'. - /// - /// - /// The property value for 'SalesLastYear'. - /// - public decimal SalesLastYear { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Validation/VSalesPersonCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Validation/VSalesPersonCreateModelValidator.cs deleted file mode 100644 index d0871c6..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Validation/VSalesPersonCreateModelValidator.cs +++ /dev/null @@ -1,48 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VSalesPersonCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VSalesPersonCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Title).MaximumLength(8); - RuleFor(p => p.FirstName).NotEmpty(); - RuleFor(p => p.FirstName).MaximumLength(50); - RuleFor(p => p.MiddleName).MaximumLength(50); - RuleFor(p => p.LastName).NotEmpty(); - RuleFor(p => p.LastName).MaximumLength(50); - RuleFor(p => p.Suffix).MaximumLength(10); - RuleFor(p => p.JobTitle).NotEmpty(); - RuleFor(p => p.JobTitle).MaximumLength(50); - RuleFor(p => p.PhoneNumber).MaximumLength(25); - RuleFor(p => p.PhoneNumberType).MaximumLength(50); - RuleFor(p => p.EmailAddress).MaximumLength(50); - RuleFor(p => p.AddressLine1).NotEmpty(); - RuleFor(p => p.AddressLine1).MaximumLength(60); - RuleFor(p => p.AddressLine2).MaximumLength(60); - RuleFor(p => p.City).NotEmpty(); - RuleFor(p => p.City).MaximumLength(30); - RuleFor(p => p.StateProvinceName).NotEmpty(); - RuleFor(p => p.StateProvinceName).MaximumLength(50); - RuleFor(p => p.PostalCode).NotEmpty(); - RuleFor(p => p.PostalCode).MaximumLength(15); - RuleFor(p => p.CountryRegionName).NotEmpty(); - RuleFor(p => p.CountryRegionName).MaximumLength(50); - RuleFor(p => p.TerritoryName).MaximumLength(50); - RuleFor(p => p.TerritoryGroup).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Validation/VSalesPersonUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Validation/VSalesPersonUpdateModelValidator.cs deleted file mode 100644 index afa7fce..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Validation/VSalesPersonUpdateModelValidator.cs +++ /dev/null @@ -1,48 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VSalesPersonUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VSalesPersonUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Title).MaximumLength(8); - RuleFor(p => p.FirstName).NotEmpty(); - RuleFor(p => p.FirstName).MaximumLength(50); - RuleFor(p => p.MiddleName).MaximumLength(50); - RuleFor(p => p.LastName).NotEmpty(); - RuleFor(p => p.LastName).MaximumLength(50); - RuleFor(p => p.Suffix).MaximumLength(10); - RuleFor(p => p.JobTitle).NotEmpty(); - RuleFor(p => p.JobTitle).MaximumLength(50); - RuleFor(p => p.PhoneNumber).MaximumLength(25); - RuleFor(p => p.PhoneNumberType).MaximumLength(50); - RuleFor(p => p.EmailAddress).MaximumLength(50); - RuleFor(p => p.AddressLine1).NotEmpty(); - RuleFor(p => p.AddressLine1).MaximumLength(60); - RuleFor(p => p.AddressLine2).MaximumLength(60); - RuleFor(p => p.City).NotEmpty(); - RuleFor(p => p.City).MaximumLength(30); - RuleFor(p => p.StateProvinceName).NotEmpty(); - RuleFor(p => p.StateProvinceName).MaximumLength(50); - RuleFor(p => p.PostalCode).NotEmpty(); - RuleFor(p => p.PostalCode).MaximumLength(15); - RuleFor(p => p.CountryRegionName).NotEmpty(); - RuleFor(p => p.CountryRegionName).MaximumLength(50); - RuleFor(p => p.TerritoryName).MaximumLength(50); - RuleFor(p => p.TerritoryGroup).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Mapping/VSalesPersonSalesByFiscalYearsProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Mapping/VSalesPersonSalesByFiscalYearsProfile.cs deleted file mode 100644 index c5dd838..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Mapping/VSalesPersonSalesByFiscalYearsProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class VSalesPersonSalesByFiscalYearsProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public VSalesPersonSalesByFiscalYearsProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsCreateModel.cs deleted file mode 100644 index 94330d0..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsCreateModel.cs +++ /dev/null @@ -1,68 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VSalesPersonSalesByFiscalYearsCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'SalesPersonId'. - /// - /// - /// The property value for 'SalesPersonId'. - /// - public int? SalesPersonId { get; set; } - - /// - /// Gets or sets the property value for 'FullName'. - /// - /// - /// The property value for 'FullName'. - /// - public string? FullName { get; set; } - - /// - /// Gets or sets the property value for 'JobTitle'. - /// - /// - /// The property value for 'JobTitle'. - /// - public string JobTitle { get; set; } = null!; - - /// - /// Gets or sets the property value for 'SalesTerritory'. - /// - /// - /// The property value for 'SalesTerritory'. - /// - public string SalesTerritory { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Number2002'. - /// - /// - /// The property value for 'Number2002'. - /// - public decimal? Number2002 { get; set; } - - /// - /// Gets or sets the property value for 'Number2003'. - /// - /// - /// The property value for 'Number2003'. - /// - public decimal? Number2003 { get; set; } - - /// - /// Gets or sets the property value for 'Number2004'. - /// - /// - /// The property value for 'Number2004'. - /// - public decimal? Number2004 { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsReadModel.cs deleted file mode 100644 index 90ba064..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsReadModel.cs +++ /dev/null @@ -1,68 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VSalesPersonSalesByFiscalYearsReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'SalesPersonId'. - /// - /// - /// The property value for 'SalesPersonId'. - /// - public int? SalesPersonId { get; set; } - - /// - /// Gets or sets the property value for 'FullName'. - /// - /// - /// The property value for 'FullName'. - /// - public string? FullName { get; set; } - - /// - /// Gets or sets the property value for 'JobTitle'. - /// - /// - /// The property value for 'JobTitle'. - /// - public string JobTitle { get; set; } = null!; - - /// - /// Gets or sets the property value for 'SalesTerritory'. - /// - /// - /// The property value for 'SalesTerritory'. - /// - public string SalesTerritory { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Number2002'. - /// - /// - /// The property value for 'Number2002'. - /// - public decimal? Number2002 { get; set; } - - /// - /// Gets or sets the property value for 'Number2003'. - /// - /// - /// The property value for 'Number2003'. - /// - public decimal? Number2003 { get; set; } - - /// - /// Gets or sets the property value for 'Number2004'. - /// - /// - /// The property value for 'Number2004'. - /// - public decimal? Number2004 { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsUpdateModel.cs deleted file mode 100644 index 78848d7..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsUpdateModel.cs +++ /dev/null @@ -1,68 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VSalesPersonSalesByFiscalYearsUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'SalesPersonId'. - /// - /// - /// The property value for 'SalesPersonId'. - /// - public int? SalesPersonId { get; set; } - - /// - /// Gets or sets the property value for 'FullName'. - /// - /// - /// The property value for 'FullName'. - /// - public string? FullName { get; set; } - - /// - /// Gets or sets the property value for 'JobTitle'. - /// - /// - /// The property value for 'JobTitle'. - /// - public string JobTitle { get; set; } = null!; - - /// - /// Gets or sets the property value for 'SalesTerritory'. - /// - /// - /// The property value for 'SalesTerritory'. - /// - public string SalesTerritory { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Number2002'. - /// - /// - /// The property value for 'Number2002'. - /// - public decimal? Number2002 { get; set; } - - /// - /// Gets or sets the property value for 'Number2003'. - /// - /// - /// The property value for 'Number2003'. - /// - public decimal? Number2003 { get; set; } - - /// - /// Gets or sets the property value for 'Number2004'. - /// - /// - /// The property value for 'Number2004'. - /// - public decimal? Number2004 { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Validation/VSalesPersonSalesByFiscalYearsCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Validation/VSalesPersonSalesByFiscalYearsCreateModelValidator.cs deleted file mode 100644 index 1db0872..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Validation/VSalesPersonSalesByFiscalYearsCreateModelValidator.cs +++ /dev/null @@ -1,28 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VSalesPersonSalesByFiscalYearsCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VSalesPersonSalesByFiscalYearsCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.FullName).MaximumLength(152); - RuleFor(p => p.JobTitle).NotEmpty(); - RuleFor(p => p.JobTitle).MaximumLength(50); - RuleFor(p => p.SalesTerritory).NotEmpty(); - RuleFor(p => p.SalesTerritory).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Validation/VSalesPersonSalesByFiscalYearsUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Validation/VSalesPersonSalesByFiscalYearsUpdateModelValidator.cs deleted file mode 100644 index f8eea3b..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Validation/VSalesPersonSalesByFiscalYearsUpdateModelValidator.cs +++ /dev/null @@ -1,28 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VSalesPersonSalesByFiscalYearsUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VSalesPersonSalesByFiscalYearsUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.FullName).MaximumLength(152); - RuleFor(p => p.JobTitle).NotEmpty(); - RuleFor(p => p.JobTitle).MaximumLength(50); - RuleFor(p => p.SalesTerritory).NotEmpty(); - RuleFor(p => p.SalesTerritory).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Mapping/VStateProvinceCountryRegionProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Mapping/VStateProvinceCountryRegionProfile.cs deleted file mode 100644 index 1a13eeb..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Mapping/VStateProvinceCountryRegionProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class VStateProvinceCountryRegionProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public VStateProvinceCountryRegionProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionCreateModel.cs deleted file mode 100644 index 3703ddf..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionCreateModel.cs +++ /dev/null @@ -1,68 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VStateProvinceCountryRegionCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'StateProvinceId'. - /// - /// - /// The property value for 'StateProvinceId'. - /// - public int StateProvinceId { get; set; } - - /// - /// Gets or sets the property value for 'StateProvinceCode'. - /// - /// - /// The property value for 'StateProvinceCode'. - /// - public string StateProvinceCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'IsOnlyStateProvinceFlag'. - /// - /// - /// The property value for 'IsOnlyStateProvinceFlag'. - /// - public bool IsOnlyStateProvinceFlag { get; set; } - - /// - /// Gets or sets the property value for 'StateProvinceName'. - /// - /// - /// The property value for 'StateProvinceName'. - /// - public string StateProvinceName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'TerritoryId'. - /// - /// - /// The property value for 'TerritoryId'. - /// - public int TerritoryId { get; set; } - - /// - /// Gets or sets the property value for 'CountryRegionCode'. - /// - /// - /// The property value for 'CountryRegionCode'. - /// - public string CountryRegionCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CountryRegionName'. - /// - /// - /// The property value for 'CountryRegionName'. - /// - public string CountryRegionName { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionReadModel.cs deleted file mode 100644 index e0e40f4..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionReadModel.cs +++ /dev/null @@ -1,68 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VStateProvinceCountryRegionReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'StateProvinceId'. - /// - /// - /// The property value for 'StateProvinceId'. - /// - public int StateProvinceId { get; set; } - - /// - /// Gets or sets the property value for 'StateProvinceCode'. - /// - /// - /// The property value for 'StateProvinceCode'. - /// - public string StateProvinceCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'IsOnlyStateProvinceFlag'. - /// - /// - /// The property value for 'IsOnlyStateProvinceFlag'. - /// - public bool IsOnlyStateProvinceFlag { get; set; } - - /// - /// Gets or sets the property value for 'StateProvinceName'. - /// - /// - /// The property value for 'StateProvinceName'. - /// - public string StateProvinceName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'TerritoryId'. - /// - /// - /// The property value for 'TerritoryId'. - /// - public int TerritoryId { get; set; } - - /// - /// Gets or sets the property value for 'CountryRegionCode'. - /// - /// - /// The property value for 'CountryRegionCode'. - /// - public string CountryRegionCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CountryRegionName'. - /// - /// - /// The property value for 'CountryRegionName'. - /// - public string CountryRegionName { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionUpdateModel.cs deleted file mode 100644 index 7a313d6..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionUpdateModel.cs +++ /dev/null @@ -1,68 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VStateProvinceCountryRegionUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'StateProvinceId'. - /// - /// - /// The property value for 'StateProvinceId'. - /// - public int StateProvinceId { get; set; } - - /// - /// Gets or sets the property value for 'StateProvinceCode'. - /// - /// - /// The property value for 'StateProvinceCode'. - /// - public string StateProvinceCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'IsOnlyStateProvinceFlag'. - /// - /// - /// The property value for 'IsOnlyStateProvinceFlag'. - /// - public bool IsOnlyStateProvinceFlag { get; set; } - - /// - /// Gets or sets the property value for 'StateProvinceName'. - /// - /// - /// The property value for 'StateProvinceName'. - /// - public string StateProvinceName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'TerritoryId'. - /// - /// - /// The property value for 'TerritoryId'. - /// - public int TerritoryId { get; set; } - - /// - /// Gets or sets the property value for 'CountryRegionCode'. - /// - /// - /// The property value for 'CountryRegionCode'. - /// - public string CountryRegionCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CountryRegionName'. - /// - /// - /// The property value for 'CountryRegionName'. - /// - public string CountryRegionName { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Validation/VStateProvinceCountryRegionCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Validation/VStateProvinceCountryRegionCreateModelValidator.cs deleted file mode 100644 index ed5a2f8..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Validation/VStateProvinceCountryRegionCreateModelValidator.cs +++ /dev/null @@ -1,31 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VStateProvinceCountryRegionCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VStateProvinceCountryRegionCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.StateProvinceCode).NotEmpty(); - RuleFor(p => p.StateProvinceCode).MaximumLength(3); - RuleFor(p => p.StateProvinceName).NotEmpty(); - RuleFor(p => p.StateProvinceName).MaximumLength(50); - RuleFor(p => p.CountryRegionCode).NotEmpty(); - RuleFor(p => p.CountryRegionCode).MaximumLength(3); - RuleFor(p => p.CountryRegionName).NotEmpty(); - RuleFor(p => p.CountryRegionName).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Validation/VStateProvinceCountryRegionUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Validation/VStateProvinceCountryRegionUpdateModelValidator.cs deleted file mode 100644 index 77957a6..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Validation/VStateProvinceCountryRegionUpdateModelValidator.cs +++ /dev/null @@ -1,31 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VStateProvinceCountryRegionUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VStateProvinceCountryRegionUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.StateProvinceCode).NotEmpty(); - RuleFor(p => p.StateProvinceCode).MaximumLength(3); - RuleFor(p => p.StateProvinceName).NotEmpty(); - RuleFor(p => p.StateProvinceName).MaximumLength(50); - RuleFor(p => p.CountryRegionCode).NotEmpty(); - RuleFor(p => p.CountryRegionCode).MaximumLength(3); - RuleFor(p => p.CountryRegionName).NotEmpty(); - RuleFor(p => p.CountryRegionName).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Mapping/VStoreWithAddressesProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Mapping/VStoreWithAddressesProfile.cs deleted file mode 100644 index fa8b415..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Mapping/VStoreWithAddressesProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class VStoreWithAddressesProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public VStoreWithAddressesProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesCreateModel.cs deleted file mode 100644 index fb5ba2b..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesCreateModel.cs +++ /dev/null @@ -1,84 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VStoreWithAddressesCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressType'. - /// - /// - /// The property value for 'AddressType'. - /// - public string AddressType { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressLine1'. - /// - /// - /// The property value for 'AddressLine1'. - /// - public string AddressLine1 { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressLine2'. - /// - /// - /// The property value for 'AddressLine2'. - /// - public string? AddressLine2 { get; set; } - - /// - /// Gets or sets the property value for 'City'. - /// - /// - /// The property value for 'City'. - /// - public string City { get; set; } = null!; - - /// - /// Gets or sets the property value for 'StateProvinceName'. - /// - /// - /// The property value for 'StateProvinceName'. - /// - public string StateProvinceName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'PostalCode'. - /// - /// - /// The property value for 'PostalCode'. - /// - public string PostalCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CountryRegionName'. - /// - /// - /// The property value for 'CountryRegionName'. - /// - public string CountryRegionName { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesReadModel.cs deleted file mode 100644 index e1287bc..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesReadModel.cs +++ /dev/null @@ -1,84 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VStoreWithAddressesReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressType'. - /// - /// - /// The property value for 'AddressType'. - /// - public string AddressType { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressLine1'. - /// - /// - /// The property value for 'AddressLine1'. - /// - public string AddressLine1 { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressLine2'. - /// - /// - /// The property value for 'AddressLine2'. - /// - public string? AddressLine2 { get; set; } - - /// - /// Gets or sets the property value for 'City'. - /// - /// - /// The property value for 'City'. - /// - public string City { get; set; } = null!; - - /// - /// Gets or sets the property value for 'StateProvinceName'. - /// - /// - /// The property value for 'StateProvinceName'. - /// - public string StateProvinceName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'PostalCode'. - /// - /// - /// The property value for 'PostalCode'. - /// - public string PostalCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CountryRegionName'. - /// - /// - /// The property value for 'CountryRegionName'. - /// - public string CountryRegionName { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesUpdateModel.cs deleted file mode 100644 index 3fd9a40..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesUpdateModel.cs +++ /dev/null @@ -1,84 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VStoreWithAddressesUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressType'. - /// - /// - /// The property value for 'AddressType'. - /// - public string AddressType { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressLine1'. - /// - /// - /// The property value for 'AddressLine1'. - /// - public string AddressLine1 { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressLine2'. - /// - /// - /// The property value for 'AddressLine2'. - /// - public string? AddressLine2 { get; set; } - - /// - /// Gets or sets the property value for 'City'. - /// - /// - /// The property value for 'City'. - /// - public string City { get; set; } = null!; - - /// - /// Gets or sets the property value for 'StateProvinceName'. - /// - /// - /// The property value for 'StateProvinceName'. - /// - public string StateProvinceName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'PostalCode'. - /// - /// - /// The property value for 'PostalCode'. - /// - public string PostalCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CountryRegionName'. - /// - /// - /// The property value for 'CountryRegionName'. - /// - public string CountryRegionName { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Validation/VStoreWithAddressesCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Validation/VStoreWithAddressesCreateModelValidator.cs deleted file mode 100644 index 104a959..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Validation/VStoreWithAddressesCreateModelValidator.cs +++ /dev/null @@ -1,38 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VStoreWithAddressesCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VStoreWithAddressesCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - RuleFor(p => p.AddressType).NotEmpty(); - RuleFor(p => p.AddressType).MaximumLength(50); - RuleFor(p => p.AddressLine1).NotEmpty(); - RuleFor(p => p.AddressLine1).MaximumLength(60); - RuleFor(p => p.AddressLine2).MaximumLength(60); - RuleFor(p => p.City).NotEmpty(); - RuleFor(p => p.City).MaximumLength(30); - RuleFor(p => p.StateProvinceName).NotEmpty(); - RuleFor(p => p.StateProvinceName).MaximumLength(50); - RuleFor(p => p.PostalCode).NotEmpty(); - RuleFor(p => p.PostalCode).MaximumLength(15); - RuleFor(p => p.CountryRegionName).NotEmpty(); - RuleFor(p => p.CountryRegionName).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Validation/VStoreWithAddressesUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Validation/VStoreWithAddressesUpdateModelValidator.cs deleted file mode 100644 index 495c380..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Validation/VStoreWithAddressesUpdateModelValidator.cs +++ /dev/null @@ -1,38 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VStoreWithAddressesUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VStoreWithAddressesUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - RuleFor(p => p.AddressType).NotEmpty(); - RuleFor(p => p.AddressType).MaximumLength(50); - RuleFor(p => p.AddressLine1).NotEmpty(); - RuleFor(p => p.AddressLine1).MaximumLength(60); - RuleFor(p => p.AddressLine2).MaximumLength(60); - RuleFor(p => p.City).NotEmpty(); - RuleFor(p => p.City).MaximumLength(30); - RuleFor(p => p.StateProvinceName).NotEmpty(); - RuleFor(p => p.StateProvinceName).MaximumLength(50); - RuleFor(p => p.PostalCode).NotEmpty(); - RuleFor(p => p.PostalCode).MaximumLength(15); - RuleFor(p => p.CountryRegionName).NotEmpty(); - RuleFor(p => p.CountryRegionName).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Mapping/VStoreWithContactsProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Mapping/VStoreWithContactsProfile.cs deleted file mode 100644 index 3ecb971..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Mapping/VStoreWithContactsProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class VStoreWithContactsProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public VStoreWithContactsProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsCreateModel.cs deleted file mode 100644 index 6502304..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsCreateModel.cs +++ /dev/null @@ -1,108 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VStoreWithContactsCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ContactType'. - /// - /// - /// The property value for 'ContactType'. - /// - public string ContactType { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Title'. - /// - /// - /// The property value for 'Title'. - /// - public string? Title { get; set; } - - /// - /// Gets or sets the property value for 'FirstName'. - /// - /// - /// The property value for 'FirstName'. - /// - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'MiddleName'. - /// - /// - /// The property value for 'MiddleName'. - /// - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value for 'LastName'. - /// - /// - /// The property value for 'LastName'. - /// - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Suffix'. - /// - /// - /// The property value for 'Suffix'. - /// - public string? Suffix { get; set; } - - /// - /// Gets or sets the property value for 'PhoneNumber'. - /// - /// - /// The property value for 'PhoneNumber'. - /// - public string? PhoneNumber { get; set; } - - /// - /// Gets or sets the property value for 'PhoneNumberType'. - /// - /// - /// The property value for 'PhoneNumberType'. - /// - public string? PhoneNumberType { get; set; } - - /// - /// Gets or sets the property value for 'EmailAddress'. - /// - /// - /// The property value for 'EmailAddress'. - /// - public string? EmailAddress { get; set; } - - /// - /// Gets or sets the property value for 'EmailPromotion'. - /// - /// - /// The property value for 'EmailPromotion'. - /// - public int EmailPromotion { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsReadModel.cs deleted file mode 100644 index 54a17dc..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsReadModel.cs +++ /dev/null @@ -1,108 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VStoreWithContactsReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ContactType'. - /// - /// - /// The property value for 'ContactType'. - /// - public string ContactType { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Title'. - /// - /// - /// The property value for 'Title'. - /// - public string? Title { get; set; } - - /// - /// Gets or sets the property value for 'FirstName'. - /// - /// - /// The property value for 'FirstName'. - /// - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'MiddleName'. - /// - /// - /// The property value for 'MiddleName'. - /// - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value for 'LastName'. - /// - /// - /// The property value for 'LastName'. - /// - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Suffix'. - /// - /// - /// The property value for 'Suffix'. - /// - public string? Suffix { get; set; } - - /// - /// Gets or sets the property value for 'PhoneNumber'. - /// - /// - /// The property value for 'PhoneNumber'. - /// - public string? PhoneNumber { get; set; } - - /// - /// Gets or sets the property value for 'PhoneNumberType'. - /// - /// - /// The property value for 'PhoneNumberType'. - /// - public string? PhoneNumberType { get; set; } - - /// - /// Gets or sets the property value for 'EmailAddress'. - /// - /// - /// The property value for 'EmailAddress'. - /// - public string? EmailAddress { get; set; } - - /// - /// Gets or sets the property value for 'EmailPromotion'. - /// - /// - /// The property value for 'EmailPromotion'. - /// - public int EmailPromotion { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsUpdateModel.cs deleted file mode 100644 index 25b5a5f..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsUpdateModel.cs +++ /dev/null @@ -1,108 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VStoreWithContactsUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ContactType'. - /// - /// - /// The property value for 'ContactType'. - /// - public string ContactType { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Title'. - /// - /// - /// The property value for 'Title'. - /// - public string? Title { get; set; } - - /// - /// Gets or sets the property value for 'FirstName'. - /// - /// - /// The property value for 'FirstName'. - /// - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'MiddleName'. - /// - /// - /// The property value for 'MiddleName'. - /// - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value for 'LastName'. - /// - /// - /// The property value for 'LastName'. - /// - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Suffix'. - /// - /// - /// The property value for 'Suffix'. - /// - public string? Suffix { get; set; } - - /// - /// Gets or sets the property value for 'PhoneNumber'. - /// - /// - /// The property value for 'PhoneNumber'. - /// - public string? PhoneNumber { get; set; } - - /// - /// Gets or sets the property value for 'PhoneNumberType'. - /// - /// - /// The property value for 'PhoneNumberType'. - /// - public string? PhoneNumberType { get; set; } - - /// - /// Gets or sets the property value for 'EmailAddress'. - /// - /// - /// The property value for 'EmailAddress'. - /// - public string? EmailAddress { get; set; } - - /// - /// Gets or sets the property value for 'EmailPromotion'. - /// - /// - /// The property value for 'EmailPromotion'. - /// - public int EmailPromotion { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Validation/VStoreWithContactsCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Validation/VStoreWithContactsCreateModelValidator.cs deleted file mode 100644 index 3c51e3a..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Validation/VStoreWithContactsCreateModelValidator.cs +++ /dev/null @@ -1,37 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VStoreWithContactsCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VStoreWithContactsCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - RuleFor(p => p.ContactType).NotEmpty(); - RuleFor(p => p.ContactType).MaximumLength(50); - RuleFor(p => p.Title).MaximumLength(8); - RuleFor(p => p.FirstName).NotEmpty(); - RuleFor(p => p.FirstName).MaximumLength(50); - RuleFor(p => p.MiddleName).MaximumLength(50); - RuleFor(p => p.LastName).NotEmpty(); - RuleFor(p => p.LastName).MaximumLength(50); - RuleFor(p => p.Suffix).MaximumLength(10); - RuleFor(p => p.PhoneNumber).MaximumLength(25); - RuleFor(p => p.PhoneNumberType).MaximumLength(50); - RuleFor(p => p.EmailAddress).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Validation/VStoreWithContactsUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Validation/VStoreWithContactsUpdateModelValidator.cs deleted file mode 100644 index f6e7a18..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Validation/VStoreWithContactsUpdateModelValidator.cs +++ /dev/null @@ -1,37 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VStoreWithContactsUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VStoreWithContactsUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - RuleFor(p => p.ContactType).NotEmpty(); - RuleFor(p => p.ContactType).MaximumLength(50); - RuleFor(p => p.Title).MaximumLength(8); - RuleFor(p => p.FirstName).NotEmpty(); - RuleFor(p => p.FirstName).MaximumLength(50); - RuleFor(p => p.MiddleName).MaximumLength(50); - RuleFor(p => p.LastName).NotEmpty(); - RuleFor(p => p.LastName).MaximumLength(50); - RuleFor(p => p.Suffix).MaximumLength(10); - RuleFor(p => p.PhoneNumber).MaximumLength(25); - RuleFor(p => p.PhoneNumberType).MaximumLength(50); - RuleFor(p => p.EmailAddress).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Mapping/VStoreWithDemographicsProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Mapping/VStoreWithDemographicsProfile.cs deleted file mode 100644 index bb36ab9..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Mapping/VStoreWithDemographicsProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class VStoreWithDemographicsProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public VStoreWithDemographicsProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsCreateModel.cs deleted file mode 100644 index b2e1e0e..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsCreateModel.cs +++ /dev/null @@ -1,108 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VStoreWithDemographicsCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AnnualSales'. - /// - /// - /// The property value for 'AnnualSales'. - /// - public decimal? AnnualSales { get; set; } - - /// - /// Gets or sets the property value for 'AnnualRevenue'. - /// - /// - /// The property value for 'AnnualRevenue'. - /// - public decimal? AnnualRevenue { get; set; } - - /// - /// Gets or sets the property value for 'BankName'. - /// - /// - /// The property value for 'BankName'. - /// - public string? BankName { get; set; } - - /// - /// Gets or sets the property value for 'BusinessType'. - /// - /// - /// The property value for 'BusinessType'. - /// - public string? BusinessType { get; set; } - - /// - /// Gets or sets the property value for 'YearOpened'. - /// - /// - /// The property value for 'YearOpened'. - /// - public int? YearOpened { get; set; } - - /// - /// Gets or sets the property value for 'Specialty'. - /// - /// - /// The property value for 'Specialty'. - /// - public string? Specialty { get; set; } - - /// - /// Gets or sets the property value for 'SquareFeet'. - /// - /// - /// The property value for 'SquareFeet'. - /// - public int? SquareFeet { get; set; } - - /// - /// Gets or sets the property value for 'Brands'. - /// - /// - /// The property value for 'Brands'. - /// - public string? Brands { get; set; } - - /// - /// Gets or sets the property value for 'Internet'. - /// - /// - /// The property value for 'Internet'. - /// - public string? Internet { get; set; } - - /// - /// Gets or sets the property value for 'NumberEmployees'. - /// - /// - /// The property value for 'NumberEmployees'. - /// - public int? NumberEmployees { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsReadModel.cs deleted file mode 100644 index 6da1cb0..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsReadModel.cs +++ /dev/null @@ -1,108 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VStoreWithDemographicsReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AnnualSales'. - /// - /// - /// The property value for 'AnnualSales'. - /// - public decimal? AnnualSales { get; set; } - - /// - /// Gets or sets the property value for 'AnnualRevenue'. - /// - /// - /// The property value for 'AnnualRevenue'. - /// - public decimal? AnnualRevenue { get; set; } - - /// - /// Gets or sets the property value for 'BankName'. - /// - /// - /// The property value for 'BankName'. - /// - public string? BankName { get; set; } - - /// - /// Gets or sets the property value for 'BusinessType'. - /// - /// - /// The property value for 'BusinessType'. - /// - public string? BusinessType { get; set; } - - /// - /// Gets or sets the property value for 'YearOpened'. - /// - /// - /// The property value for 'YearOpened'. - /// - public int? YearOpened { get; set; } - - /// - /// Gets or sets the property value for 'Specialty'. - /// - /// - /// The property value for 'Specialty'. - /// - public string? Specialty { get; set; } - - /// - /// Gets or sets the property value for 'SquareFeet'. - /// - /// - /// The property value for 'SquareFeet'. - /// - public int? SquareFeet { get; set; } - - /// - /// Gets or sets the property value for 'Brands'. - /// - /// - /// The property value for 'Brands'. - /// - public string? Brands { get; set; } - - /// - /// Gets or sets the property value for 'Internet'. - /// - /// - /// The property value for 'Internet'. - /// - public string? Internet { get; set; } - - /// - /// Gets or sets the property value for 'NumberEmployees'. - /// - /// - /// The property value for 'NumberEmployees'. - /// - public int? NumberEmployees { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsUpdateModel.cs deleted file mode 100644 index d278b25..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsUpdateModel.cs +++ /dev/null @@ -1,108 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VStoreWithDemographicsUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AnnualSales'. - /// - /// - /// The property value for 'AnnualSales'. - /// - public decimal? AnnualSales { get; set; } - - /// - /// Gets or sets the property value for 'AnnualRevenue'. - /// - /// - /// The property value for 'AnnualRevenue'. - /// - public decimal? AnnualRevenue { get; set; } - - /// - /// Gets or sets the property value for 'BankName'. - /// - /// - /// The property value for 'BankName'. - /// - public string? BankName { get; set; } - - /// - /// Gets or sets the property value for 'BusinessType'. - /// - /// - /// The property value for 'BusinessType'. - /// - public string? BusinessType { get; set; } - - /// - /// Gets or sets the property value for 'YearOpened'. - /// - /// - /// The property value for 'YearOpened'. - /// - public int? YearOpened { get; set; } - - /// - /// Gets or sets the property value for 'Specialty'. - /// - /// - /// The property value for 'Specialty'. - /// - public string? Specialty { get; set; } - - /// - /// Gets or sets the property value for 'SquareFeet'. - /// - /// - /// The property value for 'SquareFeet'. - /// - public int? SquareFeet { get; set; } - - /// - /// Gets or sets the property value for 'Brands'. - /// - /// - /// The property value for 'Brands'. - /// - public string? Brands { get; set; } - - /// - /// Gets or sets the property value for 'Internet'. - /// - /// - /// The property value for 'Internet'. - /// - public string? Internet { get; set; } - - /// - /// Gets or sets the property value for 'NumberEmployees'. - /// - /// - /// The property value for 'NumberEmployees'. - /// - public int? NumberEmployees { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Validation/VStoreWithDemographicsCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Validation/VStoreWithDemographicsCreateModelValidator.cs deleted file mode 100644 index ec0c070..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Validation/VStoreWithDemographicsCreateModelValidator.cs +++ /dev/null @@ -1,30 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VStoreWithDemographicsCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VStoreWithDemographicsCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - RuleFor(p => p.BankName).MaximumLength(50); - RuleFor(p => p.BusinessType).MaximumLength(5); - RuleFor(p => p.Specialty).MaximumLength(50); - RuleFor(p => p.Brands).MaximumLength(30); - RuleFor(p => p.Internet).MaximumLength(30); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Validation/VStoreWithDemographicsUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Validation/VStoreWithDemographicsUpdateModelValidator.cs deleted file mode 100644 index 33b3a41..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Validation/VStoreWithDemographicsUpdateModelValidator.cs +++ /dev/null @@ -1,30 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VStoreWithDemographicsUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VStoreWithDemographicsUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - RuleFor(p => p.BankName).MaximumLength(50); - RuleFor(p => p.BusinessType).MaximumLength(5); - RuleFor(p => p.Specialty).MaximumLength(50); - RuleFor(p => p.Brands).MaximumLength(30); - RuleFor(p => p.Internet).MaximumLength(30); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Mapping/VVendorWithAddressesProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Mapping/VVendorWithAddressesProfile.cs deleted file mode 100644 index baeeda3..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Mapping/VVendorWithAddressesProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class VVendorWithAddressesProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public VVendorWithAddressesProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesCreateModel.cs deleted file mode 100644 index 2b99cb7..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesCreateModel.cs +++ /dev/null @@ -1,84 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VVendorWithAddressesCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressType'. - /// - /// - /// The property value for 'AddressType'. - /// - public string AddressType { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressLine1'. - /// - /// - /// The property value for 'AddressLine1'. - /// - public string AddressLine1 { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressLine2'. - /// - /// - /// The property value for 'AddressLine2'. - /// - public string? AddressLine2 { get; set; } - - /// - /// Gets or sets the property value for 'City'. - /// - /// - /// The property value for 'City'. - /// - public string City { get; set; } = null!; - - /// - /// Gets or sets the property value for 'StateProvinceName'. - /// - /// - /// The property value for 'StateProvinceName'. - /// - public string StateProvinceName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'PostalCode'. - /// - /// - /// The property value for 'PostalCode'. - /// - public string PostalCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CountryRegionName'. - /// - /// - /// The property value for 'CountryRegionName'. - /// - public string CountryRegionName { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesReadModel.cs deleted file mode 100644 index 04fcd97..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesReadModel.cs +++ /dev/null @@ -1,84 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VVendorWithAddressesReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressType'. - /// - /// - /// The property value for 'AddressType'. - /// - public string AddressType { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressLine1'. - /// - /// - /// The property value for 'AddressLine1'. - /// - public string AddressLine1 { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressLine2'. - /// - /// - /// The property value for 'AddressLine2'. - /// - public string? AddressLine2 { get; set; } - - /// - /// Gets or sets the property value for 'City'. - /// - /// - /// The property value for 'City'. - /// - public string City { get; set; } = null!; - - /// - /// Gets or sets the property value for 'StateProvinceName'. - /// - /// - /// The property value for 'StateProvinceName'. - /// - public string StateProvinceName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'PostalCode'. - /// - /// - /// The property value for 'PostalCode'. - /// - public string PostalCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CountryRegionName'. - /// - /// - /// The property value for 'CountryRegionName'. - /// - public string CountryRegionName { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesUpdateModel.cs deleted file mode 100644 index ac75415..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesUpdateModel.cs +++ /dev/null @@ -1,84 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VVendorWithAddressesUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressType'. - /// - /// - /// The property value for 'AddressType'. - /// - public string AddressType { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressLine1'. - /// - /// - /// The property value for 'AddressLine1'. - /// - public string AddressLine1 { get; set; } = null!; - - /// - /// Gets or sets the property value for 'AddressLine2'. - /// - /// - /// The property value for 'AddressLine2'. - /// - public string? AddressLine2 { get; set; } - - /// - /// Gets or sets the property value for 'City'. - /// - /// - /// The property value for 'City'. - /// - public string City { get; set; } = null!; - - /// - /// Gets or sets the property value for 'StateProvinceName'. - /// - /// - /// The property value for 'StateProvinceName'. - /// - public string StateProvinceName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'PostalCode'. - /// - /// - /// The property value for 'PostalCode'. - /// - public string PostalCode { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CountryRegionName'. - /// - /// - /// The property value for 'CountryRegionName'. - /// - public string CountryRegionName { get; set; } = null!; - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Validation/VVendorWithAddressesCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Validation/VVendorWithAddressesCreateModelValidator.cs deleted file mode 100644 index 5f88fea..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Validation/VVendorWithAddressesCreateModelValidator.cs +++ /dev/null @@ -1,38 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VVendorWithAddressesCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VVendorWithAddressesCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - RuleFor(p => p.AddressType).NotEmpty(); - RuleFor(p => p.AddressType).MaximumLength(50); - RuleFor(p => p.AddressLine1).NotEmpty(); - RuleFor(p => p.AddressLine1).MaximumLength(60); - RuleFor(p => p.AddressLine2).MaximumLength(60); - RuleFor(p => p.City).NotEmpty(); - RuleFor(p => p.City).MaximumLength(30); - RuleFor(p => p.StateProvinceName).NotEmpty(); - RuleFor(p => p.StateProvinceName).MaximumLength(50); - RuleFor(p => p.PostalCode).NotEmpty(); - RuleFor(p => p.PostalCode).MaximumLength(15); - RuleFor(p => p.CountryRegionName).NotEmpty(); - RuleFor(p => p.CountryRegionName).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Validation/VVendorWithAddressesUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Validation/VVendorWithAddressesUpdateModelValidator.cs deleted file mode 100644 index 260dea4..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Validation/VVendorWithAddressesUpdateModelValidator.cs +++ /dev/null @@ -1,38 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VVendorWithAddressesUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VVendorWithAddressesUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - RuleFor(p => p.AddressType).NotEmpty(); - RuleFor(p => p.AddressType).MaximumLength(50); - RuleFor(p => p.AddressLine1).NotEmpty(); - RuleFor(p => p.AddressLine1).MaximumLength(60); - RuleFor(p => p.AddressLine2).MaximumLength(60); - RuleFor(p => p.City).NotEmpty(); - RuleFor(p => p.City).MaximumLength(30); - RuleFor(p => p.StateProvinceName).NotEmpty(); - RuleFor(p => p.StateProvinceName).MaximumLength(50); - RuleFor(p => p.PostalCode).NotEmpty(); - RuleFor(p => p.PostalCode).MaximumLength(15); - RuleFor(p => p.CountryRegionName).NotEmpty(); - RuleFor(p => p.CountryRegionName).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Mapping/VVendorWithContactsProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Mapping/VVendorWithContactsProfile.cs deleted file mode 100644 index bed9a9e..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Mapping/VVendorWithContactsProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class VVendorWithContactsProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public VVendorWithContactsProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsCreateModel.cs deleted file mode 100644 index 3029875..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsCreateModel.cs +++ /dev/null @@ -1,108 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VVendorWithContactsCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ContactType'. - /// - /// - /// The property value for 'ContactType'. - /// - public string ContactType { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Title'. - /// - /// - /// The property value for 'Title'. - /// - public string? Title { get; set; } - - /// - /// Gets or sets the property value for 'FirstName'. - /// - /// - /// The property value for 'FirstName'. - /// - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'MiddleName'. - /// - /// - /// The property value for 'MiddleName'. - /// - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value for 'LastName'. - /// - /// - /// The property value for 'LastName'. - /// - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Suffix'. - /// - /// - /// The property value for 'Suffix'. - /// - public string? Suffix { get; set; } - - /// - /// Gets or sets the property value for 'PhoneNumber'. - /// - /// - /// The property value for 'PhoneNumber'. - /// - public string? PhoneNumber { get; set; } - - /// - /// Gets or sets the property value for 'PhoneNumberType'. - /// - /// - /// The property value for 'PhoneNumberType'. - /// - public string? PhoneNumberType { get; set; } - - /// - /// Gets or sets the property value for 'EmailAddress'. - /// - /// - /// The property value for 'EmailAddress'. - /// - public string? EmailAddress { get; set; } - - /// - /// Gets or sets the property value for 'EmailPromotion'. - /// - /// - /// The property value for 'EmailPromotion'. - /// - public int EmailPromotion { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsReadModel.cs deleted file mode 100644 index 937c0c9..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsReadModel.cs +++ /dev/null @@ -1,108 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VVendorWithContactsReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ContactType'. - /// - /// - /// The property value for 'ContactType'. - /// - public string ContactType { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Title'. - /// - /// - /// The property value for 'Title'. - /// - public string? Title { get; set; } - - /// - /// Gets or sets the property value for 'FirstName'. - /// - /// - /// The property value for 'FirstName'. - /// - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'MiddleName'. - /// - /// - /// The property value for 'MiddleName'. - /// - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value for 'LastName'. - /// - /// - /// The property value for 'LastName'. - /// - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Suffix'. - /// - /// - /// The property value for 'Suffix'. - /// - public string? Suffix { get; set; } - - /// - /// Gets or sets the property value for 'PhoneNumber'. - /// - /// - /// The property value for 'PhoneNumber'. - /// - public string? PhoneNumber { get; set; } - - /// - /// Gets or sets the property value for 'PhoneNumberType'. - /// - /// - /// The property value for 'PhoneNumberType'. - /// - public string? PhoneNumberType { get; set; } - - /// - /// Gets or sets the property value for 'EmailAddress'. - /// - /// - /// The property value for 'EmailAddress'. - /// - public string? EmailAddress { get; set; } - - /// - /// Gets or sets the property value for 'EmailPromotion'. - /// - /// - /// The property value for 'EmailPromotion'. - /// - public int EmailPromotion { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsUpdateModel.cs deleted file mode 100644 index f145292..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsUpdateModel.cs +++ /dev/null @@ -1,108 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VVendorWithContactsUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'ContactType'. - /// - /// - /// The property value for 'ContactType'. - /// - public string ContactType { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Title'. - /// - /// - /// The property value for 'Title'. - /// - public string? Title { get; set; } - - /// - /// Gets or sets the property value for 'FirstName'. - /// - /// - /// The property value for 'FirstName'. - /// - public string FirstName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'MiddleName'. - /// - /// - /// The property value for 'MiddleName'. - /// - public string? MiddleName { get; set; } - - /// - /// Gets or sets the property value for 'LastName'. - /// - /// - /// The property value for 'LastName'. - /// - public string LastName { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Suffix'. - /// - /// - /// The property value for 'Suffix'. - /// - public string? Suffix { get; set; } - - /// - /// Gets or sets the property value for 'PhoneNumber'. - /// - /// - /// The property value for 'PhoneNumber'. - /// - public string? PhoneNumber { get; set; } - - /// - /// Gets or sets the property value for 'PhoneNumberType'. - /// - /// - /// The property value for 'PhoneNumberType'. - /// - public string? PhoneNumberType { get; set; } - - /// - /// Gets or sets the property value for 'EmailAddress'. - /// - /// - /// The property value for 'EmailAddress'. - /// - public string? EmailAddress { get; set; } - - /// - /// Gets or sets the property value for 'EmailPromotion'. - /// - /// - /// The property value for 'EmailPromotion'. - /// - public int EmailPromotion { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Validation/VVendorWithContactsCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Validation/VVendorWithContactsCreateModelValidator.cs deleted file mode 100644 index 8bddaaa..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Validation/VVendorWithContactsCreateModelValidator.cs +++ /dev/null @@ -1,37 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VVendorWithContactsCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VVendorWithContactsCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - RuleFor(p => p.ContactType).NotEmpty(); - RuleFor(p => p.ContactType).MaximumLength(50); - RuleFor(p => p.Title).MaximumLength(8); - RuleFor(p => p.FirstName).NotEmpty(); - RuleFor(p => p.FirstName).MaximumLength(50); - RuleFor(p => p.MiddleName).MaximumLength(50); - RuleFor(p => p.LastName).NotEmpty(); - RuleFor(p => p.LastName).MaximumLength(50); - RuleFor(p => p.Suffix).MaximumLength(10); - RuleFor(p => p.PhoneNumber).MaximumLength(25); - RuleFor(p => p.PhoneNumberType).MaximumLength(50); - RuleFor(p => p.EmailAddress).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Validation/VVendorWithContactsUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Validation/VVendorWithContactsUpdateModelValidator.cs deleted file mode 100644 index 9e4da8c..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Validation/VVendorWithContactsUpdateModelValidator.cs +++ /dev/null @@ -1,37 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VVendorWithContactsUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VVendorWithContactsUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - RuleFor(p => p.ContactType).NotEmpty(); - RuleFor(p => p.ContactType).MaximumLength(50); - RuleFor(p => p.Title).MaximumLength(8); - RuleFor(p => p.FirstName).NotEmpty(); - RuleFor(p => p.FirstName).MaximumLength(50); - RuleFor(p => p.MiddleName).MaximumLength(50); - RuleFor(p => p.LastName).NotEmpty(); - RuleFor(p => p.LastName).MaximumLength(50); - RuleFor(p => p.Suffix).MaximumLength(10); - RuleFor(p => p.PhoneNumber).MaximumLength(25); - RuleFor(p => p.PhoneNumberType).MaximumLength(50); - RuleFor(p => p.EmailAddress).MaximumLength(50); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Vendor/Mapping/VendorProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Vendor/Mapping/VendorProfile.cs deleted file mode 100644 index 550ba38..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Vendor/Mapping/VendorProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class VendorProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public VendorProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorCreateModel.cs deleted file mode 100644 index 8e42a44..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorCreateModel.cs +++ /dev/null @@ -1,76 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VendorCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'AccountNumber'. - /// - /// - /// The property value for 'AccountNumber'. - /// - public string AccountNumber { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CreditRating'. - /// - /// - /// The property value for 'CreditRating'. - /// - public byte CreditRating { get; set; } - - /// - /// Gets or sets the property value for 'PreferredVendorStatus'. - /// - /// - /// The property value for 'PreferredVendorStatus'. - /// - public bool PreferredVendorStatus { get; set; } - - /// - /// Gets or sets the property value for 'ActiveFlag'. - /// - /// - /// The property value for 'ActiveFlag'. - /// - public bool ActiveFlag { get; set; } - - /// - /// Gets or sets the property value for 'PurchasingWebServiceURL'. - /// - /// - /// The property value for 'PurchasingWebServiceURL'. - /// - public string? PurchasingWebServiceURL { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorReadModel.cs deleted file mode 100644 index 60eb3b9..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorReadModel.cs +++ /dev/null @@ -1,76 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VendorReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'AccountNumber'. - /// - /// - /// The property value for 'AccountNumber'. - /// - public string AccountNumber { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CreditRating'. - /// - /// - /// The property value for 'CreditRating'. - /// - public byte CreditRating { get; set; } - - /// - /// Gets or sets the property value for 'PreferredVendorStatus'. - /// - /// - /// The property value for 'PreferredVendorStatus'. - /// - public bool PreferredVendorStatus { get; set; } - - /// - /// Gets or sets the property value for 'ActiveFlag'. - /// - /// - /// The property value for 'ActiveFlag'. - /// - public bool ActiveFlag { get; set; } - - /// - /// Gets or sets the property value for 'PurchasingWebServiceURL'. - /// - /// - /// The property value for 'PurchasingWebServiceURL'. - /// - public string? PurchasingWebServiceURL { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorUpdateModel.cs deleted file mode 100644 index cc43300..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorUpdateModel.cs +++ /dev/null @@ -1,76 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class VendorUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'BusinessEntityId'. - /// - /// - /// The property value for 'BusinessEntityId'. - /// - public int BusinessEntityId { get; set; } - - /// - /// Gets or sets the property value for 'AccountNumber'. - /// - /// - /// The property value for 'AccountNumber'. - /// - public string AccountNumber { get; set; } = null!; - - /// - /// Gets or sets the property value for 'Name'. - /// - /// - /// The property value for 'Name'. - /// - public string Name { get; set; } = null!; - - /// - /// Gets or sets the property value for 'CreditRating'. - /// - /// - /// The property value for 'CreditRating'. - /// - public byte CreditRating { get; set; } - - /// - /// Gets or sets the property value for 'PreferredVendorStatus'. - /// - /// - /// The property value for 'PreferredVendorStatus'. - /// - public bool PreferredVendorStatus { get; set; } - - /// - /// Gets or sets the property value for 'ActiveFlag'. - /// - /// - /// The property value for 'ActiveFlag'. - /// - public bool ActiveFlag { get; set; } - - /// - /// Gets or sets the property value for 'PurchasingWebServiceURL'. - /// - /// - /// The property value for 'PurchasingWebServiceURL'. - /// - public string? PurchasingWebServiceURL { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Vendor/Validation/VendorCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Vendor/Validation/VendorCreateModelValidator.cs deleted file mode 100644 index a944cc1..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Vendor/Validation/VendorCreateModelValidator.cs +++ /dev/null @@ -1,28 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VendorCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VendorCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.AccountNumber).NotEmpty(); - RuleFor(p => p.AccountNumber).MaximumLength(15); - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - RuleFor(p => p.PurchasingWebServiceURL).MaximumLength(1024); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Vendor/Validation/VendorUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Vendor/Validation/VendorUpdateModelValidator.cs deleted file mode 100644 index 65cd376..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/Vendor/Validation/VendorUpdateModelValidator.cs +++ /dev/null @@ -1,28 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class VendorUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public VendorUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.AccountNumber).NotEmpty(); - RuleFor(p => p.AccountNumber).MaximumLength(15); - RuleFor(p => p.Name).NotEmpty(); - RuleFor(p => p.Name).MaximumLength(50); - RuleFor(p => p.PurchasingWebServiceURL).MaximumLength(1024); - - #endregion - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Mapping/WorkOrderProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Mapping/WorkOrderProfile.cs deleted file mode 100644 index acbf6f4..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Mapping/WorkOrderProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class WorkOrderProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public WorkOrderProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderCreateModel.cs deleted file mode 100644 index cfdebbc..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderCreateModel.cs +++ /dev/null @@ -1,92 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class WorkOrderCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'OrderQty'. - /// - /// - /// The property value for 'OrderQty'. - /// - public int OrderQty { get; set; } - - /// - /// Gets or sets the property value for 'StockedQty'. - /// - /// - /// The property value for 'StockedQty'. - /// - public int StockedQty { get; set; } - - /// - /// Gets or sets the property value for 'ScrappedQty'. - /// - /// - /// The property value for 'ScrappedQty'. - /// - public short ScrappedQty { get; set; } - - /// - /// Gets or sets the property value for 'StartDate'. - /// - /// - /// The property value for 'StartDate'. - /// - public DateTime StartDate { get; set; } - - /// - /// Gets or sets the property value for 'EndDate'. - /// - /// - /// The property value for 'EndDate'. - /// - public DateTime? EndDate { get; set; } - - /// - /// Gets or sets the property value for 'DueDate'. - /// - /// - /// The property value for 'DueDate'. - /// - public DateTime DueDate { get; set; } - - /// - /// Gets or sets the property value for 'ScrapReasonId'. - /// - /// - /// The property value for 'ScrapReasonId'. - /// - public short? ScrapReasonId { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderReadModel.cs deleted file mode 100644 index d1a9ff2..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderReadModel.cs +++ /dev/null @@ -1,92 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class WorkOrderReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'OrderQty'. - /// - /// - /// The property value for 'OrderQty'. - /// - public int OrderQty { get; set; } - - /// - /// Gets or sets the property value for 'StockedQty'. - /// - /// - /// The property value for 'StockedQty'. - /// - public int StockedQty { get; set; } - - /// - /// Gets or sets the property value for 'ScrappedQty'. - /// - /// - /// The property value for 'ScrappedQty'. - /// - public short ScrappedQty { get; set; } - - /// - /// Gets or sets the property value for 'StartDate'. - /// - /// - /// The property value for 'StartDate'. - /// - public DateTime StartDate { get; set; } - - /// - /// Gets or sets the property value for 'EndDate'. - /// - /// - /// The property value for 'EndDate'. - /// - public DateTime? EndDate { get; set; } - - /// - /// Gets or sets the property value for 'DueDate'. - /// - /// - /// The property value for 'DueDate'. - /// - public DateTime DueDate { get; set; } - - /// - /// Gets or sets the property value for 'ScrapReasonId'. - /// - /// - /// The property value for 'ScrapReasonId'. - /// - public short? ScrapReasonId { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderUpdateModel.cs deleted file mode 100644 index 389ea7b..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderUpdateModel.cs +++ /dev/null @@ -1,92 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class WorkOrderUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'Id'. - /// - /// - /// The property value for 'Id'. - /// - public int Id { get; set; } - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'OrderQty'. - /// - /// - /// The property value for 'OrderQty'. - /// - public int OrderQty { get; set; } - - /// - /// Gets or sets the property value for 'StockedQty'. - /// - /// - /// The property value for 'StockedQty'. - /// - public int StockedQty { get; set; } - - /// - /// Gets or sets the property value for 'ScrappedQty'. - /// - /// - /// The property value for 'ScrappedQty'. - /// - public short ScrappedQty { get; set; } - - /// - /// Gets or sets the property value for 'StartDate'. - /// - /// - /// The property value for 'StartDate'. - /// - public DateTime StartDate { get; set; } - - /// - /// Gets or sets the property value for 'EndDate'. - /// - /// - /// The property value for 'EndDate'. - /// - public DateTime? EndDate { get; set; } - - /// - /// Gets or sets the property value for 'DueDate'. - /// - /// - /// The property value for 'DueDate'. - /// - public DateTime DueDate { get; set; } - - /// - /// Gets or sets the property value for 'ScrapReasonId'. - /// - /// - /// The property value for 'ScrapReasonId'. - /// - public short? ScrapReasonId { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Validation/WorkOrderCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Validation/WorkOrderCreateModelValidator.cs deleted file mode 100644 index ba19304..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Validation/WorkOrderCreateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class WorkOrderCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public WorkOrderCreateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Validation/WorkOrderUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Validation/WorkOrderUpdateModelValidator.cs deleted file mode 100644 index cbc3e33..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Validation/WorkOrderUpdateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class WorkOrderUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public WorkOrderUpdateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Mapping/WorkOrderRoutingProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Mapping/WorkOrderRoutingProfile.cs deleted file mode 100644 index 5c019fe..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Mapping/WorkOrderRoutingProfile.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Mapping; - -/// -/// Mapper class for entity . -/// -public class WorkOrderRoutingProfile - : Profile -{ - /// - /// Initializes a new instance of the class. - /// - public WorkOrderRoutingProfile() - { - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - - CreateMap(); - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingCreateModel.cs deleted file mode 100644 index b1ee3f2..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingCreateModel.cs +++ /dev/null @@ -1,108 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class WorkOrderRoutingCreateModel - : IEntityCreateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'WorkOrderId'. - /// - /// - /// The property value for 'WorkOrderId'. - /// - public int WorkOrderId { get; set; } - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'OperationSequence'. - /// - /// - /// The property value for 'OperationSequence'. - /// - public short OperationSequence { get; set; } - - /// - /// Gets or sets the property value for 'LocationId'. - /// - /// - /// The property value for 'LocationId'. - /// - public short LocationId { get; set; } - - /// - /// Gets or sets the property value for 'ScheduledStartDate'. - /// - /// - /// The property value for 'ScheduledStartDate'. - /// - public DateTime ScheduledStartDate { get; set; } - - /// - /// Gets or sets the property value for 'ScheduledEndDate'. - /// - /// - /// The property value for 'ScheduledEndDate'. - /// - public DateTime ScheduledEndDate { get; set; } - - /// - /// Gets or sets the property value for 'ActualStartDate'. - /// - /// - /// The property value for 'ActualStartDate'. - /// - public DateTime? ActualStartDate { get; set; } - - /// - /// Gets or sets the property value for 'ActualEndDate'. - /// - /// - /// The property value for 'ActualEndDate'. - /// - public DateTime? ActualEndDate { get; set; } - - /// - /// Gets or sets the property value for 'ActualResourceHrs'. - /// - /// - /// The property value for 'ActualResourceHrs'. - /// - public decimal? ActualResourceHrs { get; set; } - - /// - /// Gets or sets the property value for 'PlannedCost'. - /// - /// - /// The property value for 'PlannedCost'. - /// - public decimal PlannedCost { get; set; } - - /// - /// Gets or sets the property value for 'ActualCost'. - /// - /// - /// The property value for 'ActualCost'. - /// - public decimal? ActualCost { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingReadModel.cs deleted file mode 100644 index eab9d49..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingReadModel.cs +++ /dev/null @@ -1,108 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class WorkOrderRoutingReadModel - : IEntityReadModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'WorkOrderId'. - /// - /// - /// The property value for 'WorkOrderId'. - /// - public int WorkOrderId { get; set; } - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'OperationSequence'. - /// - /// - /// The property value for 'OperationSequence'. - /// - public short OperationSequence { get; set; } - - /// - /// Gets or sets the property value for 'LocationId'. - /// - /// - /// The property value for 'LocationId'. - /// - public short LocationId { get; set; } - - /// - /// Gets or sets the property value for 'ScheduledStartDate'. - /// - /// - /// The property value for 'ScheduledStartDate'. - /// - public DateTime ScheduledStartDate { get; set; } - - /// - /// Gets or sets the property value for 'ScheduledEndDate'. - /// - /// - /// The property value for 'ScheduledEndDate'. - /// - public DateTime ScheduledEndDate { get; set; } - - /// - /// Gets or sets the property value for 'ActualStartDate'. - /// - /// - /// The property value for 'ActualStartDate'. - /// - public DateTime? ActualStartDate { get; set; } - - /// - /// Gets or sets the property value for 'ActualEndDate'. - /// - /// - /// The property value for 'ActualEndDate'. - /// - public DateTime? ActualEndDate { get; set; } - - /// - /// Gets or sets the property value for 'ActualResourceHrs'. - /// - /// - /// The property value for 'ActualResourceHrs'. - /// - public decimal? ActualResourceHrs { get; set; } - - /// - /// Gets or sets the property value for 'PlannedCost'. - /// - /// - /// The property value for 'PlannedCost'. - /// - public decimal PlannedCost { get; set; } - - /// - /// Gets or sets the property value for 'ActualCost'. - /// - /// - /// The property value for 'ActualCost'. - /// - public decimal? ActualCost { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingUpdateModel.cs deleted file mode 100644 index e0bcca2..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingUpdateModel.cs +++ /dev/null @@ -1,108 +0,0 @@ -namespace Platy.AdventureWorks.Repository.Domain.Models; - -/// -/// View Model class -/// -public class WorkOrderRoutingUpdateModel - : IEntityUpdateModel -{ - #region Generated Properties - - /// - /// Gets or sets the property value for 'WorkOrderId'. - /// - /// - /// The property value for 'WorkOrderId'. - /// - public int WorkOrderId { get; set; } - - /// - /// Gets or sets the property value for 'ProductId'. - /// - /// - /// The property value for 'ProductId'. - /// - public int ProductId { get; set; } - - /// - /// Gets or sets the property value for 'OperationSequence'. - /// - /// - /// The property value for 'OperationSequence'. - /// - public short OperationSequence { get; set; } - - /// - /// Gets or sets the property value for 'LocationId'. - /// - /// - /// The property value for 'LocationId'. - /// - public short LocationId { get; set; } - - /// - /// Gets or sets the property value for 'ScheduledStartDate'. - /// - /// - /// The property value for 'ScheduledStartDate'. - /// - public DateTime ScheduledStartDate { get; set; } - - /// - /// Gets or sets the property value for 'ScheduledEndDate'. - /// - /// - /// The property value for 'ScheduledEndDate'. - /// - public DateTime ScheduledEndDate { get; set; } - - /// - /// Gets or sets the property value for 'ActualStartDate'. - /// - /// - /// The property value for 'ActualStartDate'. - /// - public DateTime? ActualStartDate { get; set; } - - /// - /// Gets or sets the property value for 'ActualEndDate'. - /// - /// - /// The property value for 'ActualEndDate'. - /// - public DateTime? ActualEndDate { get; set; } - - /// - /// Gets or sets the property value for 'ActualResourceHrs'. - /// - /// - /// The property value for 'ActualResourceHrs'. - /// - public decimal? ActualResourceHrs { get; set; } - - /// - /// Gets or sets the property value for 'PlannedCost'. - /// - /// - /// The property value for 'PlannedCost'. - /// - public decimal PlannedCost { get; set; } - - /// - /// Gets or sets the property value for 'ActualCost'. - /// - /// - /// The property value for 'ActualCost'. - /// - public decimal? ActualCost { get; set; } - - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } - - #endregion -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Validation/WorkOrderRoutingCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Validation/WorkOrderRoutingCreateModelValidator.cs deleted file mode 100644 index 0840cb2..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Validation/WorkOrderRoutingCreateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class WorkOrderRoutingCreateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public WorkOrderRoutingCreateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Validation/WorkOrderRoutingUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Validation/WorkOrderRoutingUpdateModelValidator.cs deleted file mode 100644 index dfd3f7d..0000000 --- a/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Validation/WorkOrderRoutingUpdateModelValidator.cs +++ /dev/null @@ -1,19 +0,0 @@ -using FluentValidation; -using Platy.AdventureWorks.Repository.Domain.Models; - -namespace Platy.AdventureWorks.Repository.Domain.Validation; - -/// -/// Validator class for . -/// -[RegisterSingleton>] -public class WorkOrderRoutingUpdateModelValidator - : AbstractValidator -{ - /// - /// Initializes a new instance of the class. - /// - public WorkOrderRoutingUpdateModelValidator() - { - } -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/AddressCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/AddressCreatedEvent.cs deleted file mode 100644 index 939ac2e..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/AddressCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'Address'. -/// -public class AddressCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/AddressTypeCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/AddressTypeCreatedEvent.cs deleted file mode 100644 index 01539e3..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/AddressTypeCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'AddressType'. -/// -public class AddressTypeCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/BillOfMaterialsCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/BillOfMaterialsCreatedEvent.cs deleted file mode 100644 index ac74049..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/BillOfMaterialsCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'BillOfMaterials'. -/// -public class BillOfMaterialsCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/BusinessEntityCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/BusinessEntityCreatedEvent.cs deleted file mode 100644 index e4fda1e..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/BusinessEntityCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'BusinessEntity'. -/// -public class BusinessEntityCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ContactTypeCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ContactTypeCreatedEvent.cs deleted file mode 100644 index 6576722..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/ContactTypeCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'ContactType'. -/// -public class ContactTypeCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/CreditCardCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/CreditCardCreatedEvent.cs deleted file mode 100644 index 0629181..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/CreditCardCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'CreditCard'. -/// -public class CreditCardCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/CurrencyRateCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/CurrencyRateCreatedEvent.cs deleted file mode 100644 index 54f8024..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/CurrencyRateCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'CurrencyRate'. -/// -public class CurrencyRateCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/CustomerCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/CustomerCreatedEvent.cs deleted file mode 100644 index 9a67fb5..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/CustomerCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'Customer'. -/// -public class CustomerCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/DepartmentCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/DepartmentCreatedEvent.cs deleted file mode 100644 index bed7644..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/DepartmentCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'Department'. -/// -public class DepartmentCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/EmailAddressCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/EmailAddressCreatedEvent.cs deleted file mode 100644 index 96f63b3..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/EmailAddressCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'EmailAddress'. -/// -public class EmailAddressCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/IllustrationCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/IllustrationCreatedEvent.cs deleted file mode 100644 index 81c898c..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/IllustrationCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'Illustration'. -/// -public class IllustrationCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/JobCandidateCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/JobCandidateCreatedEvent.cs deleted file mode 100644 index 4291c91..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/JobCandidateCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'JobCandidate'. -/// -public class JobCandidateCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/LocationCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/LocationCreatedEvent.cs deleted file mode 100644 index 2f1d80d..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/LocationCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'Location'. -/// -public class LocationCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/PhoneNumberTypeCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/PhoneNumberTypeCreatedEvent.cs deleted file mode 100644 index dbe85f9..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/PhoneNumberTypeCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'PhoneNumberType'. -/// -public class PhoneNumberTypeCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ProductCategoryCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ProductCategoryCreatedEvent.cs deleted file mode 100644 index a1cc9e3..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/ProductCategoryCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'ProductCategory'. -/// -public class ProductCategoryCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ProductCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ProductCreatedEvent.cs deleted file mode 100644 index 44b9d7b..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/ProductCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'Product'. -/// -public class ProductCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ProductDescriptionCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ProductDescriptionCreatedEvent.cs deleted file mode 100644 index c4a56cc..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/ProductDescriptionCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'ProductDescription'. -/// -public class ProductDescriptionCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ProductModelCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ProductModelCreatedEvent.cs deleted file mode 100644 index e14f977..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/ProductModelCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'ProductModel'. -/// -public class ProductModelCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ProductPhotoCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ProductPhotoCreatedEvent.cs deleted file mode 100644 index 0628649..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/ProductPhotoCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'ProductPhoto'. -/// -public class ProductPhotoCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ProductReviewCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ProductReviewCreatedEvent.cs deleted file mode 100644 index e31a0c8..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/ProductReviewCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'ProductReview'. -/// -public class ProductReviewCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ProductSubcategoryCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ProductSubcategoryCreatedEvent.cs deleted file mode 100644 index 3f1e284..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/ProductSubcategoryCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'ProductSubcategory'. -/// -public class ProductSubcategoryCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/PurchaseOrderDetailCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/PurchaseOrderDetailCreatedEvent.cs deleted file mode 100644 index d1a6a17..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/PurchaseOrderDetailCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'PurchaseOrderDetail'. -/// -public class PurchaseOrderDetailCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/PurchaseOrderHeaderCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/PurchaseOrderHeaderCreatedEvent.cs deleted file mode 100644 index 1f75fd8..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/PurchaseOrderHeaderCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'PurchaseOrderHeader'. -/// -public class PurchaseOrderHeaderCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/SalesOrderDetailCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/SalesOrderDetailCreatedEvent.cs deleted file mode 100644 index f23a758..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/SalesOrderDetailCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'SalesOrderDetail'. -/// -public class SalesOrderDetailCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/SalesOrderHeaderCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/SalesOrderHeaderCreatedEvent.cs deleted file mode 100644 index 9cd0bc9..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/SalesOrderHeaderCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'SalesOrderHeader'. -/// -public class SalesOrderHeaderCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/SalesReasonCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/SalesReasonCreatedEvent.cs deleted file mode 100644 index ba18a84..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/SalesReasonCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'SalesReason'. -/// -public class SalesReasonCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/SalesTaxRateCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/SalesTaxRateCreatedEvent.cs deleted file mode 100644 index 7de94ed..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/SalesTaxRateCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'SalesTaxRate'. -/// -public class SalesTaxRateCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/SalesTerritoryCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/SalesTerritoryCreatedEvent.cs deleted file mode 100644 index 126b896..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/SalesTerritoryCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'SalesTerritory'. -/// -public class SalesTerritoryCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ScrapReasonCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ScrapReasonCreatedEvent.cs deleted file mode 100644 index d7831a1..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/ScrapReasonCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'ScrapReason'. -/// -public class ScrapReasonCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ShiftCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ShiftCreatedEvent.cs deleted file mode 100644 index 80bf685..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/ShiftCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'Shift'. -/// -public class ShiftCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ShipMethodCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ShipMethodCreatedEvent.cs deleted file mode 100644 index 48c4bda..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/ShipMethodCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'ShipMethod'. -/// -public class ShipMethodCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ShoppingCartItemCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ShoppingCartItemCreatedEvent.cs deleted file mode 100644 index 219f71f..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/ShoppingCartItemCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'ShoppingCartItem'. -/// -public class ShoppingCartItemCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/SpecialOfferCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/SpecialOfferCreatedEvent.cs deleted file mode 100644 index bc2a28f..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/SpecialOfferCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'SpecialOffer'. -/// -public class SpecialOfferCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/StateProvinceCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/StateProvinceCreatedEvent.cs deleted file mode 100644 index c942856..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/StateProvinceCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'StateProvince'. -/// -public class StateProvinceCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/TransactionHistoryCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/TransactionHistoryCreatedEvent.cs deleted file mode 100644 index c115544..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/TransactionHistoryCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'TransactionHistory'. -/// -public class TransactionHistoryCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateCreatedEvent.cs deleted file mode 100644 index bbdbcf5..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'vJobCandidate'. -/// -public class VJobCandidateCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateEducationCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateEducationCreatedEvent.cs deleted file mode 100644 index 0e5d13e..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateEducationCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'vJobCandidateEducation'. -/// -public class VJobCandidateEducationCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateEmploymentCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateEmploymentCreatedEvent.cs deleted file mode 100644 index 0781389..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateEmploymentCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'vJobCandidateEmployment'. -/// -public class VJobCandidateEmploymentCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/VProductModelCatalogDescriptionCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/VProductModelCatalogDescriptionCreatedEvent.cs deleted file mode 100644 index f540074..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/VProductModelCatalogDescriptionCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'vProductModelCatalogDescription'. -/// -public class VProductModelCatalogDescriptionCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/VProductModelInstructionsCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/VProductModelInstructionsCreatedEvent.cs deleted file mode 100644 index 415d98b..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/VProductModelInstructionsCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'vProductModelInstructions'. -/// -public class VProductModelInstructionsCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/WorkOrderCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/WorkOrderCreatedEvent.cs deleted file mode 100644 index a2a59c1..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Create/WorkOrderCreatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'WorkOrder'. -/// -public class WorkOrderCreatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/AddressDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/AddressDeletedEvent.cs deleted file mode 100644 index f9fc532..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/AddressDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'Address'. -/// -public class AddressDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/AddressTypeDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/AddressTypeDeletedEvent.cs deleted file mode 100644 index b222432..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/AddressTypeDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'AddressType'. -/// -public class AddressTypeDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/BillOfMaterialsDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/BillOfMaterialsDeletedEvent.cs deleted file mode 100644 index 09a21a2..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/BillOfMaterialsDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'BillOfMaterials'. -/// -public class BillOfMaterialsDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/BusinessEntityDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/BusinessEntityDeletedEvent.cs deleted file mode 100644 index 7acba94..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/BusinessEntityDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'BusinessEntity'. -/// -public class BusinessEntityDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ContactTypeDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ContactTypeDeletedEvent.cs deleted file mode 100644 index 5fee5e4..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/ContactTypeDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'ContactType'. -/// -public class ContactTypeDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/CreditCardDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/CreditCardDeletedEvent.cs deleted file mode 100644 index 6e2bd61..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/CreditCardDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'CreditCard'. -/// -public class CreditCardDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/CurrencyRateDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/CurrencyRateDeletedEvent.cs deleted file mode 100644 index 12919f5..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/CurrencyRateDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'CurrencyRate'. -/// -public class CurrencyRateDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/CustomerDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/CustomerDeletedEvent.cs deleted file mode 100644 index 2be4fdf..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/CustomerDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'Customer'. -/// -public class CustomerDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/DepartmentDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/DepartmentDeletedEvent.cs deleted file mode 100644 index 8d5d7ee..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/DepartmentDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'Department'. -/// -public class DepartmentDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/EmailAddressDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/EmailAddressDeletedEvent.cs deleted file mode 100644 index a9360f3..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/EmailAddressDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'EmailAddress'. -/// -public class EmailAddressDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/IllustrationDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/IllustrationDeletedEvent.cs deleted file mode 100644 index 8ed761f..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/IllustrationDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'Illustration'. -/// -public class IllustrationDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/JobCandidateDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/JobCandidateDeletedEvent.cs deleted file mode 100644 index dfeba49..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/JobCandidateDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'JobCandidate'. -/// -public class JobCandidateDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/LocationDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/LocationDeletedEvent.cs deleted file mode 100644 index 7954644..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/LocationDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'Location'. -/// -public class LocationDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/PhoneNumberTypeDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/PhoneNumberTypeDeletedEvent.cs deleted file mode 100644 index 80e8f14..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/PhoneNumberTypeDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'PhoneNumberType'. -/// -public class PhoneNumberTypeDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductCategoryDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductCategoryDeletedEvent.cs deleted file mode 100644 index 3874803..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductCategoryDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'ProductCategory'. -/// -public class ProductCategoryDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductDeletedEvent.cs deleted file mode 100644 index 3e836f6..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'Product'. -/// -public class ProductDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductDescriptionDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductDescriptionDeletedEvent.cs deleted file mode 100644 index 90cf8e3..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductDescriptionDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'ProductDescription'. -/// -public class ProductDescriptionDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductModelDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductModelDeletedEvent.cs deleted file mode 100644 index 564294a..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductModelDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'ProductModel'. -/// -public class ProductModelDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductPhotoDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductPhotoDeletedEvent.cs deleted file mode 100644 index 38c5f88..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductPhotoDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'ProductPhoto'. -/// -public class ProductPhotoDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductReviewDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductReviewDeletedEvent.cs deleted file mode 100644 index f0469a6..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductReviewDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'ProductReview'. -/// -public class ProductReviewDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductSubcategoryDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductSubcategoryDeletedEvent.cs deleted file mode 100644 index 3fc4c70..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductSubcategoryDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'ProductSubcategory'. -/// -public class ProductSubcategoryDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/PurchaseOrderDetailDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/PurchaseOrderDetailDeletedEvent.cs deleted file mode 100644 index f33512a..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/PurchaseOrderDetailDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'PurchaseOrderDetail'. -/// -public class PurchaseOrderDetailDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/PurchaseOrderHeaderDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/PurchaseOrderHeaderDeletedEvent.cs deleted file mode 100644 index 3ee57fc..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/PurchaseOrderHeaderDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'PurchaseOrderHeader'. -/// -public class PurchaseOrderHeaderDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/SalesOrderDetailDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/SalesOrderDetailDeletedEvent.cs deleted file mode 100644 index 704e3d4..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/SalesOrderDetailDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'SalesOrderDetail'. -/// -public class SalesOrderDetailDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/SalesOrderHeaderDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/SalesOrderHeaderDeletedEvent.cs deleted file mode 100644 index 0448a18..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/SalesOrderHeaderDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'SalesOrderHeader'. -/// -public class SalesOrderHeaderDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/SalesReasonDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/SalesReasonDeletedEvent.cs deleted file mode 100644 index 1fe5e02..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/SalesReasonDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'SalesReason'. -/// -public class SalesReasonDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/SalesTaxRateDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/SalesTaxRateDeletedEvent.cs deleted file mode 100644 index 926ee76..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/SalesTaxRateDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'SalesTaxRate'. -/// -public class SalesTaxRateDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/SalesTerritoryDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/SalesTerritoryDeletedEvent.cs deleted file mode 100644 index f03f2bd..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/SalesTerritoryDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'SalesTerritory'. -/// -public class SalesTerritoryDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ScrapReasonDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ScrapReasonDeletedEvent.cs deleted file mode 100644 index 652b00a..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/ScrapReasonDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'ScrapReason'. -/// -public class ScrapReasonDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ShiftDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ShiftDeletedEvent.cs deleted file mode 100644 index 1c52f0b..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/ShiftDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'Shift'. -/// -public class ShiftDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ShipMethodDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ShipMethodDeletedEvent.cs deleted file mode 100644 index 0359248..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/ShipMethodDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'ShipMethod'. -/// -public class ShipMethodDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ShoppingCartItemDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ShoppingCartItemDeletedEvent.cs deleted file mode 100644 index c43cc10..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/ShoppingCartItemDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'ShoppingCartItem'. -/// -public class ShoppingCartItemDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/SpecialOfferDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/SpecialOfferDeletedEvent.cs deleted file mode 100644 index eded095..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/SpecialOfferDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'SpecialOffer'. -/// -public class SpecialOfferDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/StateProvinceDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/StateProvinceDeletedEvent.cs deleted file mode 100644 index 4d5ae5e..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/StateProvinceDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'StateProvince'. -/// -public class StateProvinceDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/TransactionHistoryDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/TransactionHistoryDeletedEvent.cs deleted file mode 100644 index a08751d..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/TransactionHistoryDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'TransactionHistory'. -/// -public class TransactionHistoryDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateDeletedEvent.cs deleted file mode 100644 index 243cb47..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'vJobCandidate'. -/// -public class VJobCandidateDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateEducationDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateEducationDeletedEvent.cs deleted file mode 100644 index c98ff92..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateEducationDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'vJobCandidateEducation'. -/// -public class VJobCandidateEducationDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateEmploymentDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateEmploymentDeletedEvent.cs deleted file mode 100644 index 85b6e74..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateEmploymentDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'vJobCandidateEmployment'. -/// -public class VJobCandidateEmploymentDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/VProductModelCatalogDescriptionDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/VProductModelCatalogDescriptionDeletedEvent.cs deleted file mode 100644 index eb4c69f..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/VProductModelCatalogDescriptionDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'vProductModelCatalogDescription'. -/// -public class VProductModelCatalogDescriptionDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/VProductModelInstructionsDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/VProductModelInstructionsDeletedEvent.cs deleted file mode 100644 index 770b508..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/VProductModelInstructionsDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'vProductModelInstructions'. -/// -public class VProductModelInstructionsDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/WorkOrderDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/WorkOrderDeletedEvent.cs deleted file mode 100644 index 44344ee..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/WorkOrderDeletedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'WorkOrder'. -/// -public class WorkOrderDeletedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/AddressTypeUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/AddressTypeUpdatedEvent.cs deleted file mode 100644 index 8a10ef9..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/AddressTypeUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'AddressType'. -/// -public class AddressTypeUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/AddressUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/AddressUpdatedEvent.cs deleted file mode 100644 index f7778a2..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/AddressUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'Address'. -/// -public class AddressUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/BillOfMaterialsUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/BillOfMaterialsUpdatedEvent.cs deleted file mode 100644 index 2110110..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/BillOfMaterialsUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'BillOfMaterials'. -/// -public class BillOfMaterialsUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/BusinessEntityUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/BusinessEntityUpdatedEvent.cs deleted file mode 100644 index 7547fd7..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/BusinessEntityUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'BusinessEntity'. -/// -public class BusinessEntityUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ContactTypeUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ContactTypeUpdatedEvent.cs deleted file mode 100644 index 75480e0..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/ContactTypeUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'ContactType'. -/// -public class ContactTypeUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/CreditCardUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/CreditCardUpdatedEvent.cs deleted file mode 100644 index 67426a9..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/CreditCardUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'CreditCard'. -/// -public class CreditCardUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/CurrencyRateUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/CurrencyRateUpdatedEvent.cs deleted file mode 100644 index c61e938..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/CurrencyRateUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'CurrencyRate'. -/// -public class CurrencyRateUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/CustomerUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/CustomerUpdatedEvent.cs deleted file mode 100644 index f76d75c..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/CustomerUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'Customer'. -/// -public class CustomerUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/DepartmentUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/DepartmentUpdatedEvent.cs deleted file mode 100644 index 91a21dc..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/DepartmentUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'Department'. -/// -public class DepartmentUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/EmailAddressUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/EmailAddressUpdatedEvent.cs deleted file mode 100644 index 429c7a8..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/EmailAddressUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'EmailAddress'. -/// -public class EmailAddressUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/IllustrationUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/IllustrationUpdatedEvent.cs deleted file mode 100644 index 65ab497..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/IllustrationUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'Illustration'. -/// -public class IllustrationUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/JobCandidateUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/JobCandidateUpdatedEvent.cs deleted file mode 100644 index 5c42ea0..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/JobCandidateUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'JobCandidate'. -/// -public class JobCandidateUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/LocationUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/LocationUpdatedEvent.cs deleted file mode 100644 index 8971936..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/LocationUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'Location'. -/// -public class LocationUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/PhoneNumberTypeUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/PhoneNumberTypeUpdatedEvent.cs deleted file mode 100644 index 4a75d68..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/PhoneNumberTypeUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'PhoneNumberType'. -/// -public class PhoneNumberTypeUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ProductCategoryUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ProductCategoryUpdatedEvent.cs deleted file mode 100644 index dc794a0..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/ProductCategoryUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'ProductCategory'. -/// -public class ProductCategoryUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ProductDescriptionUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ProductDescriptionUpdatedEvent.cs deleted file mode 100644 index 7e8df6a..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/ProductDescriptionUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'ProductDescription'. -/// -public class ProductDescriptionUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ProductModelUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ProductModelUpdatedEvent.cs deleted file mode 100644 index b397f01..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/ProductModelUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'ProductModel'. -/// -public class ProductModelUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ProductPhotoUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ProductPhotoUpdatedEvent.cs deleted file mode 100644 index 23d2579..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/ProductPhotoUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'ProductPhoto'. -/// -public class ProductPhotoUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ProductReviewUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ProductReviewUpdatedEvent.cs deleted file mode 100644 index aa196a5..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/ProductReviewUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'ProductReview'. -/// -public class ProductReviewUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ProductSubcategoryUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ProductSubcategoryUpdatedEvent.cs deleted file mode 100644 index 22c21bc..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/ProductSubcategoryUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'ProductSubcategory'. -/// -public class ProductSubcategoryUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ProductUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ProductUpdatedEvent.cs deleted file mode 100644 index 14a95df..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/ProductUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'Product'. -/// -public class ProductUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/PurchaseOrderDetailUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/PurchaseOrderDetailUpdatedEvent.cs deleted file mode 100644 index 039ae9f..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/PurchaseOrderDetailUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'PurchaseOrderDetail'. -/// -public class PurchaseOrderDetailUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/PurchaseOrderHeaderUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/PurchaseOrderHeaderUpdatedEvent.cs deleted file mode 100644 index 3fd6649..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/PurchaseOrderHeaderUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'PurchaseOrderHeader'. -/// -public class PurchaseOrderHeaderUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/SalesOrderDetailUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/SalesOrderDetailUpdatedEvent.cs deleted file mode 100644 index c43fb6f..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/SalesOrderDetailUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'SalesOrderDetail'. -/// -public class SalesOrderDetailUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/SalesOrderHeaderUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/SalesOrderHeaderUpdatedEvent.cs deleted file mode 100644 index 6774901..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/SalesOrderHeaderUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'SalesOrderHeader'. -/// -public class SalesOrderHeaderUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/SalesReasonUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/SalesReasonUpdatedEvent.cs deleted file mode 100644 index b0725ec..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/SalesReasonUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'SalesReason'. -/// -public class SalesReasonUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/SalesTaxRateUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/SalesTaxRateUpdatedEvent.cs deleted file mode 100644 index 5c5eac6..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/SalesTaxRateUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'SalesTaxRate'. -/// -public class SalesTaxRateUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/SalesTerritoryUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/SalesTerritoryUpdatedEvent.cs deleted file mode 100644 index 23adf57..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/SalesTerritoryUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'SalesTerritory'. -/// -public class SalesTerritoryUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ScrapReasonUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ScrapReasonUpdatedEvent.cs deleted file mode 100644 index fff07dc..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/ScrapReasonUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'ScrapReason'. -/// -public class ScrapReasonUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ShiftUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ShiftUpdatedEvent.cs deleted file mode 100644 index 5f5e612..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/ShiftUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'Shift'. -/// -public class ShiftUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ShipMethodUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ShipMethodUpdatedEvent.cs deleted file mode 100644 index 6c27c2c..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/ShipMethodUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'ShipMethod'. -/// -public class ShipMethodUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ShoppingCartItemUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ShoppingCartItemUpdatedEvent.cs deleted file mode 100644 index be9d1e9..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/ShoppingCartItemUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'ShoppingCartItem'. -/// -public class ShoppingCartItemUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/SpecialOfferUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/SpecialOfferUpdatedEvent.cs deleted file mode 100644 index d72c121..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/SpecialOfferUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'SpecialOffer'. -/// -public class SpecialOfferUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/StateProvinceUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/StateProvinceUpdatedEvent.cs deleted file mode 100644 index fc692ce..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/StateProvinceUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'StateProvince'. -/// -public class StateProvinceUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/TransactionHistoryUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/TransactionHistoryUpdatedEvent.cs deleted file mode 100644 index dd5eb5b..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/TransactionHistoryUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'TransactionHistory'. -/// -public class TransactionHistoryUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateEducationUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateEducationUpdatedEvent.cs deleted file mode 100644 index 06d794d..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateEducationUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'vJobCandidateEducation'. -/// -public class VJobCandidateEducationUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateEmploymentUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateEmploymentUpdatedEvent.cs deleted file mode 100644 index ec312f3..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateEmploymentUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'vJobCandidateEmployment'. -/// -public class VJobCandidateEmploymentUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateUpdatedEvent.cs deleted file mode 100644 index a955814..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'vJobCandidate'. -/// -public class VJobCandidateUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/VProductModelCatalogDescriptionUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/VProductModelCatalogDescriptionUpdatedEvent.cs deleted file mode 100644 index 254b7ef..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/VProductModelCatalogDescriptionUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'vProductModelCatalogDescription'. -/// -public class VProductModelCatalogDescriptionUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/VProductModelInstructionsUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/VProductModelInstructionsUpdatedEvent.cs deleted file mode 100644 index 6fbaa48..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/VProductModelInstructionsUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'vProductModelInstructions'. -/// -public class VProductModelInstructionsUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/WorkOrderUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/WorkOrderUpdatedEvent.cs deleted file mode 100644 index a2469dc..0000000 --- a/src/Platy.AdventureWorks.Repository/Events/Update/WorkOrderUpdatedEvent.cs +++ /dev/null @@ -1,11 +0,0 @@ -using Platy.AdventureWorks.Repository.BaseEvent; - -namespace Platy.AdventureWorks.Repository.Events; - -/// -/// Event class representing the data when changes are made to the table 'WorkOrder'. -/// -public class WorkOrderUpdatedEvent - : EntityEventBase -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Platy.AdventureWorks.Repository.csproj b/src/Platy.AdventureWorks.Repository/Platy.AdventureWorks.Repository.csproj index 8380556..b3c8cfd 100644 --- a/src/Platy.AdventureWorks.Repository/Platy.AdventureWorks.Repository.csproj +++ b/src/Platy.AdventureWorks.Repository/Platy.AdventureWorks.Repository.csproj @@ -60,4 +60,8 @@ + + + + diff --git a/src/Platy.AdventureWorks.Repository/Repository/AddressRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/AddressRepository.cs deleted file mode 100644 index 50d3c8f..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/AddressRepository.cs +++ /dev/null @@ -1,98 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'Address'. -/// -[RegisterScoped] -public class AddressRepository - : EntityRepository, IAddressRepository -{ - /// - /// Initializes a new instance of the class. - /// - public AddressRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - AddressCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new AddressCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - AddressUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new AddressUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new AddressDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface IAddressRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/AddressTypeRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/AddressTypeRepository.cs deleted file mode 100644 index 5c5bb6e..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/AddressTypeRepository.cs +++ /dev/null @@ -1,99 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'AddressType'. -/// -[RegisterScoped] -public class AddressTypeRepository - : EntityRepository, - IAddressTypeRepository -{ - /// - /// Initializes a new instance of the class. - /// - public AddressTypeRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - AddressTypeCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new AddressTypeCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - AddressTypeUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new AddressTypeUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new AddressTypeDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface IAddressTypeRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/BillOfMaterialsRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/BillOfMaterialsRepository.cs deleted file mode 100644 index 2dd6ee5..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/BillOfMaterialsRepository.cs +++ /dev/null @@ -1,99 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'BillOfMaterials'. -/// -[RegisterScoped] -public class BillOfMaterialsRepository - : EntityRepository, IBillOfMaterialsRepository -{ - /// - /// Initializes a new instance of the class. - /// - public BillOfMaterialsRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - BillOfMaterialsCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new BillOfMaterialsCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - BillOfMaterialsUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new BillOfMaterialsUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new BillOfMaterialsDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface IBillOfMaterialsRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/BusinessEntityRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/BusinessEntityRepository.cs deleted file mode 100644 index 8191355..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/BusinessEntityRepository.cs +++ /dev/null @@ -1,99 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'BusinessEntity'. -/// -[RegisterScoped] -public class BusinessEntityRepository - : EntityRepository, IBusinessEntityRepository -{ - /// - /// Initializes a new instance of the class. - /// - public BusinessEntityRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - BusinessEntityCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new BusinessEntityCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - BusinessEntityUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new BusinessEntityUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new BusinessEntityDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface IBusinessEntityRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/ContactTypeRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ContactTypeRepository.cs deleted file mode 100644 index 191f88e..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/ContactTypeRepository.cs +++ /dev/null @@ -1,99 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'ContactType'. -/// -[RegisterScoped] -public class ContactTypeRepository - : EntityRepository, - IContactTypeRepository -{ - /// - /// Initializes a new instance of the class. - /// - public ContactTypeRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - ContactTypeCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new ContactTypeCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - ContactTypeUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new ContactTypeUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new ContactTypeDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface IContactTypeRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/CreditCardRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/CreditCardRepository.cs deleted file mode 100644 index 0329265..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/CreditCardRepository.cs +++ /dev/null @@ -1,99 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'CreditCard'. -/// -[RegisterScoped] -public class CreditCardRepository - : EntityRepository, - ICreditCardRepository -{ - /// - /// Initializes a new instance of the class. - /// - public CreditCardRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - CreditCardCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new CreditCardCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - CreditCardUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new CreditCardUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new CreditCardDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface ICreditCardRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/CurrencyRateRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/CurrencyRateRepository.cs deleted file mode 100644 index e2be023..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/CurrencyRateRepository.cs +++ /dev/null @@ -1,99 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'CurrencyRate'. -/// -[RegisterScoped] -public class CurrencyRateRepository - : EntityRepository, - ICurrencyRateRepository -{ - /// - /// Initializes a new instance of the class. - /// - public CurrencyRateRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - CurrencyRateCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new CurrencyRateCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - CurrencyRateUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new CurrencyRateUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new CurrencyRateDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface ICurrencyRateRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/CustomerRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/CustomerRepository.cs deleted file mode 100644 index b39ce55..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/CustomerRepository.cs +++ /dev/null @@ -1,98 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'Customer'. -/// -[RegisterScoped] -public class CustomerRepository - : EntityRepository, ICustomerRepository -{ - /// - /// Initializes a new instance of the class. - /// - public CustomerRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - CustomerCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new CustomerCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - CustomerUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new CustomerUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new CustomerDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface ICustomerRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/DepartmentRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/DepartmentRepository.cs deleted file mode 100644 index 0b886c6..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/DepartmentRepository.cs +++ /dev/null @@ -1,99 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'Department'. -/// -[RegisterScoped] -public class DepartmentRepository - : EntityRepository, - IDepartmentRepository -{ - /// - /// Initializes a new instance of the class. - /// - public DepartmentRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(short id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - DepartmentCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new DepartmentCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - short id, - DepartmentUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new DepartmentUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - short id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new DepartmentDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface IDepartmentRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/EmailAddressRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/EmailAddressRepository.cs deleted file mode 100644 index cfbf3a7..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/EmailAddressRepository.cs +++ /dev/null @@ -1,99 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'EmailAddress'. -/// -[RegisterScoped] -public class EmailAddressRepository - : EntityRepository, - IEmailAddressRepository -{ - /// - /// Initializes a new instance of the class. - /// - public EmailAddressRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - EmailAddressCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new EmailAddressCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - EmailAddressUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new EmailAddressUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new EmailAddressDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface IEmailAddressRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/IllustrationRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/IllustrationRepository.cs deleted file mode 100644 index 3883c14..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/IllustrationRepository.cs +++ /dev/null @@ -1,99 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'Illustration'. -/// -[RegisterScoped] -public class IllustrationRepository - : EntityRepository, - IIllustrationRepository -{ - /// - /// Initializes a new instance of the class. - /// - public IllustrationRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - IllustrationCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new IllustrationCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - IllustrationUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new IllustrationUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new IllustrationDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface IIllustrationRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/JobCandidateRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/JobCandidateRepository.cs deleted file mode 100644 index e616d31..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/JobCandidateRepository.cs +++ /dev/null @@ -1,99 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'JobCandidate'. -/// -[RegisterScoped] -public class JobCandidateRepository - : EntityRepository, - IJobCandidateRepository -{ - /// - /// Initializes a new instance of the class. - /// - public JobCandidateRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - JobCandidateCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new JobCandidateCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - JobCandidateUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new JobCandidateUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new JobCandidateDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface IJobCandidateRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/LocationRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/LocationRepository.cs deleted file mode 100644 index 9b78800..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/LocationRepository.cs +++ /dev/null @@ -1,98 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'Location'. -/// -[RegisterScoped] -public class LocationRepository - : EntityRepository, ILocationRepository -{ - /// - /// Initializes a new instance of the class. - /// - public LocationRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(short id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - LocationCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new LocationCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - short id, - LocationUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new LocationUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - short id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new LocationDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface ILocationRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/PhoneNumberTypeRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/PhoneNumberTypeRepository.cs deleted file mode 100644 index b20fed1..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/PhoneNumberTypeRepository.cs +++ /dev/null @@ -1,99 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'PhoneNumberType'. -/// -[RegisterScoped] -public class PhoneNumberTypeRepository - : EntityRepository, IPhoneNumberTypeRepository -{ - /// - /// Initializes a new instance of the class. - /// - public PhoneNumberTypeRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - PhoneNumberTypeCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new PhoneNumberTypeCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - PhoneNumberTypeUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new PhoneNumberTypeUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new PhoneNumberTypeDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface IPhoneNumberTypeRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/ProductCategoryRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ProductCategoryRepository.cs deleted file mode 100644 index 1359ba0..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/ProductCategoryRepository.cs +++ /dev/null @@ -1,99 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'ProductCategory'. -/// -[RegisterScoped] -public class ProductCategoryRepository - : EntityRepository, IProductCategoryRepository -{ - /// - /// Initializes a new instance of the class. - /// - public ProductCategoryRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - ProductCategoryCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new ProductCategoryCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - ProductCategoryUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new ProductCategoryUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new ProductCategoryDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface IProductCategoryRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/ProductDescriptionRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ProductDescriptionRepository.cs deleted file mode 100644 index 779773e..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/ProductDescriptionRepository.cs +++ /dev/null @@ -1,100 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'ProductDescription'. -/// -[RegisterScoped] -public class ProductDescriptionRepository - : EntityRepository, IProductDescriptionRepository -{ - /// - /// Initializes a new instance of the class. - /// - public ProductDescriptionRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - ProductDescriptionCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new ProductDescriptionCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - ProductDescriptionUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new ProductDescriptionUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new ProductDescriptionDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface IProductDescriptionRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/ProductModelRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ProductModelRepository.cs deleted file mode 100644 index da5b9e2..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/ProductModelRepository.cs +++ /dev/null @@ -1,99 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'ProductModel'. -/// -[RegisterScoped] -public class ProductModelRepository - : EntityRepository, - IProductModelRepository -{ - /// - /// Initializes a new instance of the class. - /// - public ProductModelRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - ProductModelCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new ProductModelCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - ProductModelUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new ProductModelUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new ProductModelDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface IProductModelRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/ProductPhotoRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ProductPhotoRepository.cs deleted file mode 100644 index 1e84c3f..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/ProductPhotoRepository.cs +++ /dev/null @@ -1,99 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'ProductPhoto'. -/// -[RegisterScoped] -public class ProductPhotoRepository - : EntityRepository, - IProductPhotoRepository -{ - /// - /// Initializes a new instance of the class. - /// - public ProductPhotoRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - ProductPhotoCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new ProductPhotoCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - ProductPhotoUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new ProductPhotoUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new ProductPhotoDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface IProductPhotoRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/ProductRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ProductRepository.cs deleted file mode 100644 index b5336ea..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/ProductRepository.cs +++ /dev/null @@ -1,98 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'Product'. -/// -[RegisterScoped] -public class ProductRepository - : EntityRepository, IProductRepository -{ - /// - /// Initializes a new instance of the class. - /// - public ProductRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - ProductCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new ProductCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - ProductUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new ProductUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new ProductDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface IProductRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/ProductReviewRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ProductReviewRepository.cs deleted file mode 100644 index 79c5c9b..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/ProductReviewRepository.cs +++ /dev/null @@ -1,99 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'ProductReview'. -/// -[RegisterScoped] -public class ProductReviewRepository - : EntityRepository, - IProductReviewRepository -{ - /// - /// Initializes a new instance of the class. - /// - public ProductReviewRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - ProductReviewCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new ProductReviewCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - ProductReviewUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new ProductReviewUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new ProductReviewDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface IProductReviewRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/ProductSubcategoryRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ProductSubcategoryRepository.cs deleted file mode 100644 index f72fef5..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/ProductSubcategoryRepository.cs +++ /dev/null @@ -1,100 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'ProductSubcategory'. -/// -[RegisterScoped] -public class ProductSubcategoryRepository - : EntityRepository, IProductSubcategoryRepository -{ - /// - /// Initializes a new instance of the class. - /// - public ProductSubcategoryRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - ProductSubcategoryCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new ProductSubcategoryCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - ProductSubcategoryUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new ProductSubcategoryUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new ProductSubcategoryDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface IProductSubcategoryRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/PurchaseOrderDetailRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/PurchaseOrderDetailRepository.cs deleted file mode 100644 index ecdb555..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/PurchaseOrderDetailRepository.cs +++ /dev/null @@ -1,100 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'PurchaseOrderDetail'. -/// -[RegisterScoped] -public class PurchaseOrderDetailRepository - : EntityRepository, IPurchaseOrderDetailRepository -{ - /// - /// Initializes a new instance of the class. - /// - public PurchaseOrderDetailRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - PurchaseOrderDetailCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new PurchaseOrderDetailCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - PurchaseOrderDetailUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new PurchaseOrderDetailUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new PurchaseOrderDetailDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface IPurchaseOrderDetailRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/PurchaseOrderHeaderRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/PurchaseOrderHeaderRepository.cs deleted file mode 100644 index d02d1b7..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/PurchaseOrderHeaderRepository.cs +++ /dev/null @@ -1,100 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'PurchaseOrderHeader'. -/// -[RegisterScoped] -public class PurchaseOrderHeaderRepository - : EntityRepository, IPurchaseOrderHeaderRepository -{ - /// - /// Initializes a new instance of the class. - /// - public PurchaseOrderHeaderRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - PurchaseOrderHeaderCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new PurchaseOrderHeaderCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - PurchaseOrderHeaderUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new PurchaseOrderHeaderUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new PurchaseOrderHeaderDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface IPurchaseOrderHeaderRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/SalesOrderDetailRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/SalesOrderDetailRepository.cs deleted file mode 100644 index 9b97cae..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/SalesOrderDetailRepository.cs +++ /dev/null @@ -1,100 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'SalesOrderDetail'. -/// -[RegisterScoped] -public class SalesOrderDetailRepository - : EntityRepository, ISalesOrderDetailRepository -{ - /// - /// Initializes a new instance of the class. - /// - public SalesOrderDetailRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - SalesOrderDetailCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new SalesOrderDetailCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - SalesOrderDetailUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new SalesOrderDetailUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new SalesOrderDetailDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface ISalesOrderDetailRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/SalesOrderHeaderRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/SalesOrderHeaderRepository.cs deleted file mode 100644 index a48bb7a..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/SalesOrderHeaderRepository.cs +++ /dev/null @@ -1,100 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'SalesOrderHeader'. -/// -[RegisterScoped] -public class SalesOrderHeaderRepository - : EntityRepository, ISalesOrderHeaderRepository -{ - /// - /// Initializes a new instance of the class. - /// - public SalesOrderHeaderRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - SalesOrderHeaderCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new SalesOrderHeaderCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - SalesOrderHeaderUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new SalesOrderHeaderUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new SalesOrderHeaderDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface ISalesOrderHeaderRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/SalesReasonRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/SalesReasonRepository.cs deleted file mode 100644 index da886c5..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/SalesReasonRepository.cs +++ /dev/null @@ -1,99 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'SalesReason'. -/// -[RegisterScoped] -public class SalesReasonRepository - : EntityRepository, - ISalesReasonRepository -{ - /// - /// Initializes a new instance of the class. - /// - public SalesReasonRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - SalesReasonCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new SalesReasonCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - SalesReasonUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new SalesReasonUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new SalesReasonDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface ISalesReasonRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/SalesTaxRateRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/SalesTaxRateRepository.cs deleted file mode 100644 index a1d2df0..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/SalesTaxRateRepository.cs +++ /dev/null @@ -1,99 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'SalesTaxRate'. -/// -[RegisterScoped] -public class SalesTaxRateRepository - : EntityRepository, - ISalesTaxRateRepository -{ - /// - /// Initializes a new instance of the class. - /// - public SalesTaxRateRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - SalesTaxRateCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new SalesTaxRateCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - SalesTaxRateUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new SalesTaxRateUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new SalesTaxRateDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface ISalesTaxRateRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/SalesTerritoryRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/SalesTerritoryRepository.cs deleted file mode 100644 index 27070c7..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/SalesTerritoryRepository.cs +++ /dev/null @@ -1,99 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'SalesTerritory'. -/// -[RegisterScoped] -public class SalesTerritoryRepository - : EntityRepository, ISalesTerritoryRepository -{ - /// - /// Initializes a new instance of the class. - /// - public SalesTerritoryRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - SalesTerritoryCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new SalesTerritoryCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - SalesTerritoryUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new SalesTerritoryUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new SalesTerritoryDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface ISalesTerritoryRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/ScrapReasonRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ScrapReasonRepository.cs deleted file mode 100644 index 218cc65..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/ScrapReasonRepository.cs +++ /dev/null @@ -1,99 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'ScrapReason'. -/// -[RegisterScoped] -public class ScrapReasonRepository - : EntityRepository, - IScrapReasonRepository -{ - /// - /// Initializes a new instance of the class. - /// - public ScrapReasonRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(short id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - ScrapReasonCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new ScrapReasonCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - short id, - ScrapReasonUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new ScrapReasonUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - short id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new ScrapReasonDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface IScrapReasonRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/ShiftRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ShiftRepository.cs deleted file mode 100644 index c177a85..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/ShiftRepository.cs +++ /dev/null @@ -1,98 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'Shift'. -/// -[RegisterScoped] -public class ShiftRepository - : EntityRepository, IShiftRepository -{ - /// - /// Initializes a new instance of the class. - /// - public ShiftRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(byte id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - ShiftCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new ShiftCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - byte id, - ShiftUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new ShiftUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - byte id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new ShiftDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface IShiftRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/ShipMethodRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ShipMethodRepository.cs deleted file mode 100644 index 2b71ee7..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/ShipMethodRepository.cs +++ /dev/null @@ -1,99 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'ShipMethod'. -/// -[RegisterScoped] -public class ShipMethodRepository - : EntityRepository, - IShipMethodRepository -{ - /// - /// Initializes a new instance of the class. - /// - public ShipMethodRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - ShipMethodCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new ShipMethodCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - ShipMethodUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new ShipMethodUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new ShipMethodDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface IShipMethodRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/ShoppingCartItemRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ShoppingCartItemRepository.cs deleted file mode 100644 index fb5dc77..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/ShoppingCartItemRepository.cs +++ /dev/null @@ -1,100 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'ShoppingCartItem'. -/// -[RegisterScoped] -public class ShoppingCartItemRepository - : EntityRepository, IShoppingCartItemRepository -{ - /// - /// Initializes a new instance of the class. - /// - public ShoppingCartItemRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - ShoppingCartItemCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new ShoppingCartItemCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - ShoppingCartItemUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new ShoppingCartItemUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new ShoppingCartItemDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface IShoppingCartItemRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/SpecialOfferRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/SpecialOfferRepository.cs deleted file mode 100644 index 4a2583e..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/SpecialOfferRepository.cs +++ /dev/null @@ -1,99 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'SpecialOffer'. -/// -[RegisterScoped] -public class SpecialOfferRepository - : EntityRepository, - ISpecialOfferRepository -{ - /// - /// Initializes a new instance of the class. - /// - public SpecialOfferRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - SpecialOfferCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new SpecialOfferCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - SpecialOfferUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new SpecialOfferUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new SpecialOfferDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface ISpecialOfferRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/StateProvinceRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/StateProvinceRepository.cs deleted file mode 100644 index 83ae032..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/StateProvinceRepository.cs +++ /dev/null @@ -1,99 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'StateProvince'. -/// -[RegisterScoped] -public class StateProvinceRepository - : EntityRepository, - IStateProvinceRepository -{ - /// - /// Initializes a new instance of the class. - /// - public StateProvinceRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - StateProvinceCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new StateProvinceCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - StateProvinceUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new StateProvinceUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new StateProvinceDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface IStateProvinceRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/TransactionHistoryRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/TransactionHistoryRepository.cs deleted file mode 100644 index af7e890..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/TransactionHistoryRepository.cs +++ /dev/null @@ -1,100 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'TransactionHistory'. -/// -[RegisterScoped] -public class TransactionHistoryRepository - : EntityRepository, ITransactionHistoryRepository -{ - /// - /// Initializes a new instance of the class. - /// - public TransactionHistoryRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - TransactionHistoryCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new TransactionHistoryCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - TransactionHistoryUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new TransactionHistoryUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new TransactionHistoryDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface ITransactionHistoryRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/VJobCandidateEducationRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/VJobCandidateEducationRepository.cs deleted file mode 100644 index df46d20..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/VJobCandidateEducationRepository.cs +++ /dev/null @@ -1,100 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'vJobCandidateEducation'. -/// -[RegisterScoped] -public class VJobCandidateEducationRepository - : EntityRepository, IVJobCandidateEducationRepository -{ - /// - /// Initializes a new instance of the class. - /// - public VJobCandidateEducationRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - VJobCandidateEducationCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new VJobCandidateEducationCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - VJobCandidateEducationUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new VJobCandidateEducationUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new VJobCandidateEducationDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface IVJobCandidateEducationRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/VJobCandidateEmploymentRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/VJobCandidateEmploymentRepository.cs deleted file mode 100644 index 7f62295..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/VJobCandidateEmploymentRepository.cs +++ /dev/null @@ -1,100 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'vJobCandidateEmployment'. -/// -[RegisterScoped] -public class VJobCandidateEmploymentRepository - : EntityRepository, IVJobCandidateEmploymentRepository -{ - /// - /// Initializes a new instance of the class. - /// - public VJobCandidateEmploymentRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - VJobCandidateEmploymentCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new VJobCandidateEmploymentCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - VJobCandidateEmploymentUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new VJobCandidateEmploymentUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new VJobCandidateEmploymentDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface IVJobCandidateEmploymentRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/VJobCandidateRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/VJobCandidateRepository.cs deleted file mode 100644 index 2b4e8c9..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/VJobCandidateRepository.cs +++ /dev/null @@ -1,99 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'vJobCandidate'. -/// -[RegisterScoped] -public class VJobCandidateRepository - : EntityRepository, - IVJobCandidateRepository -{ - /// - /// Initializes a new instance of the class. - /// - public VJobCandidateRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - VJobCandidateCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new VJobCandidateCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - VJobCandidateUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new VJobCandidateUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new VJobCandidateDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface IVJobCandidateRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/VProductModelCatalogDescriptionRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/VProductModelCatalogDescriptionRepository.cs deleted file mode 100644 index f4e24db..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/VProductModelCatalogDescriptionRepository.cs +++ /dev/null @@ -1,101 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'vProductModelCatalogDescription'. -/// -[RegisterScoped] -public class VProductModelCatalogDescriptionRepository - : EntityRepository, - IVProductModelCatalogDescriptionRepository -{ - /// - /// Initializes a new instance of the class. - /// - public VProductModelCatalogDescriptionRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - VProductModelCatalogDescriptionCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new VProductModelCatalogDescriptionCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - VProductModelCatalogDescriptionUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new VProductModelCatalogDescriptionUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new VProductModelCatalogDescriptionDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface IVProductModelCatalogDescriptionRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/VProductModelInstructionsRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/VProductModelInstructionsRepository.cs deleted file mode 100644 index e4feadf..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/VProductModelInstructionsRepository.cs +++ /dev/null @@ -1,100 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'vProductModelInstructions'. -/// -[RegisterScoped] -public class VProductModelInstructionsRepository - : EntityRepository, IVProductModelInstructionsRepository -{ - /// - /// Initializes a new instance of the class. - /// - public VProductModelInstructionsRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - VProductModelInstructionsCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new VProductModelInstructionsCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - VProductModelInstructionsUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new VProductModelInstructionsUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new VProductModelInstructionsDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface IVProductModelInstructionsRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Repository/WorkOrderRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/WorkOrderRepository.cs deleted file mode 100644 index 257a357..0000000 --- a/src/Platy.AdventureWorks.Repository/Repository/WorkOrderRepository.cs +++ /dev/null @@ -1,99 +0,0 @@ -using System.Linq.Expressions; -using Ardalis.Result; -using FluentValidation; -using MediatR; -using Platy.AdventureWorks.Repository.BaseRepository; -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Domain.Models; -using Platy.AdventureWorks.Repository.Events; - -namespace Platy.AdventureWorks.Repository; - -/// -/// Repository class representing data for table 'WorkOrder'. -/// -[RegisterScoped] -public class WorkOrderRepository - : EntityRepository, - IWorkOrderRepository -{ - /// - /// Initializes a new instance of the class. - /// - public WorkOrderRepository(IServiceProvider serviceProvider, - IMapper mapper, - IMediator mediator, - ILogger logger, - IValidator createValidator, - IValidator updateValidator) - : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) - { - } - - #region Generated methods - - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } - - /// - /// Returns a list of . - /// - public async Task>> ListAsync( - Expression>? predicate, - CancellationToken cancellationToken) - { - return await QueryModel(predicate, cancellationToken); - } - - /// - /// Creates an . - /// - public async Task> CreateAsync( - WorkOrderCreateModel createModel, - CancellationToken cancellationToken) - { - return await CreateModel(createModel, - new WorkOrderCreatedEvent(), - cancellationToken); - } - - /// - /// Updates a . - /// - public async Task> UpdateAsync( - int id, - WorkOrderUpdateModel updateModel, - CancellationToken cancellationToken) - { - return await UpdateModel(id, - updateModel, - new WorkOrderUpdatedEvent(), - cancellationToken); - } - - /// - /// Deletes a . - /// - public virtual async Task> DeleteAsync( - int id, - CancellationToken cancellationToken) - { - return await DeleteModel(id, - new WorkOrderDeletedEvent(), - cancellationToken); - } - - #endregion -} - -public interface IWorkOrderRepository - : IRepository -{ -} diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/AddressScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/AddressScript.yml deleted file mode 100644 index edd7d68..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/AddressScript.yml +++ /dev/null @@ -1,109 +0,0 @@ -EntityClass: Address -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: Addresses -TableSchema: 'Person' -TableName: 'Address' -MappingClass: AddressConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: AddressProfile -MapperNamespace: 'AddressProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'AddressID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: AddressLine1 - ColumnName: 'AddressLine1' - StoreType: nvarchar(60) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 60 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: AddressLine2 - ColumnName: 'AddressLine2' - StoreType: nvarchar(60) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 60 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: City - ColumnName: 'City' - StoreType: nvarchar(30) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 30 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: StateProvinceId - ColumnName: 'StateProvinceID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: True - - PropertyName: PostalCode - ColumnName: 'PostalCode' - StoreType: nvarchar(15) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 15 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: Rowguid - ColumnName: 'rowguid' - StoreType: uniqueidentifier - NativeType: 'uniqueidentifier' - DataType: Guid - SystemType: Guid - Default: '(newid())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/AddressTypeScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/AddressTypeScript.yml deleted file mode 100644 index 6bdfa4b..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/AddressTypeScript.yml +++ /dev/null @@ -1,62 +0,0 @@ -EntityClass: AddressType -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: AddressTypes -TableSchema: 'Person' -TableName: 'AddressType' -MappingClass: AddressTypeConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: AddressTypeProfile -MapperNamespace: 'AddressTypeProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'AddressTypeID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Name - ColumnName: 'Name' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: Rowguid - ColumnName: 'rowguid' - StoreType: uniqueidentifier - NativeType: 'uniqueidentifier' - DataType: Guid - SystemType: Guid - Default: '(newid())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/BillOfMaterialsScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/BillOfMaterialsScript.yml deleted file mode 100644 index d994f4b..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/BillOfMaterialsScript.yml +++ /dev/null @@ -1,118 +0,0 @@ -EntityClass: BillOfMaterials -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: BillOfMaterials -TableSchema: 'Production' -TableName: 'BillOfMaterials' -MappingClass: BillOfMaterialsConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: BillOfMaterialsProfile -MapperNamespace: 'BillOfMaterialsProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'BillOfMaterialsID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ProductAssemblyId - ColumnName: 'ProductAssemblyID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: True - - PropertyName: ComponentId - ColumnName: 'ComponentID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: True - - PropertyName: StartDate - ColumnName: 'StartDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: EndDate - ColumnName: 'EndDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: UnitMeasureCode - ColumnName: 'UnitMeasureCode' - StoreType: nchar(3) - NativeType: 'nchar' - DataType: StringFixedLength - SystemType: String - Size: 3 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: BOMLevel - ColumnName: 'BOMLevel' - StoreType: smallint - NativeType: 'smallint' - DataType: Int16 - SystemType: Int16 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: PerAssemblyQty - ColumnName: 'PerAssemblyQty' - StoreType: decimal(8,2) - NativeType: '@decimal' - DataType: Decimal - SystemType: Decimal - Default: '((1.00))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/BusinessEntityAddressScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/BusinessEntityAddressScript.yml deleted file mode 100644 index 7b834d9..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/BusinessEntityAddressScript.yml +++ /dev/null @@ -1,71 +0,0 @@ -EntityClass: BusinessEntityAddress -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: BusinessEntityAddresses -TableSchema: 'Person' -TableName: 'BusinessEntityAddress' -MappingClass: BusinessEntityAddressConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: BusinessEntityAddressProfile -MapperNamespace: 'BusinessEntityAddressProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: BusinessEntityId - ColumnName: 'BusinessEntityID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: AddressId - ColumnName: 'AddressID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: AddressTypeId - ColumnName: 'AddressTypeID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: Rowguid - ColumnName: 'rowguid' - StoreType: uniqueidentifier - NativeType: 'uniqueidentifier' - DataType: Guid - SystemType: Guid - Default: '(newid())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/BusinessEntityContactScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/BusinessEntityContactScript.yml deleted file mode 100644 index c88dcfe..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/BusinessEntityContactScript.yml +++ /dev/null @@ -1,71 +0,0 @@ -EntityClass: BusinessEntityContact -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: BusinessEntityContacts -TableSchema: 'Person' -TableName: 'BusinessEntityContact' -MappingClass: BusinessEntityContactConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: BusinessEntityContactProfile -MapperNamespace: 'BusinessEntityContactProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: BusinessEntityId - ColumnName: 'BusinessEntityID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: PersonId - ColumnName: 'PersonID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: ContactTypeId - ColumnName: 'ContactTypeID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: Rowguid - ColumnName: 'rowguid' - StoreType: uniqueidentifier - NativeType: 'uniqueidentifier' - DataType: Guid - SystemType: Guid - Default: '(newid())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/BusinessEntityScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/BusinessEntityScript.yml deleted file mode 100644 index 0881c61..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/BusinessEntityScript.yml +++ /dev/null @@ -1,50 +0,0 @@ -EntityClass: BusinessEntity -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: BusinessEntities -TableSchema: 'Person' -TableName: 'BusinessEntity' -MappingClass: BusinessEntityConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: BusinessEntityProfile -MapperNamespace: 'BusinessEntityProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'BusinessEntityID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Rowguid - ColumnName: 'rowguid' - StoreType: uniqueidentifier - NativeType: 'uniqueidentifier' - DataType: Guid - SystemType: Guid - Default: '(newid())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ContactTypeScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ContactTypeScript.yml deleted file mode 100644 index 53edfda..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ContactTypeScript.yml +++ /dev/null @@ -1,50 +0,0 @@ -EntityClass: ContactType -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: ContactTypes -TableSchema: 'Person' -TableName: 'ContactType' -MappingClass: ContactTypeConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: ContactTypeProfile -MapperNamespace: 'ContactTypeProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'ContactTypeID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Name - ColumnName: 'Name' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/CountryRegionCurrencyScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/CountryRegionCurrencyScript.yml deleted file mode 100644 index b79a2a1..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/CountryRegionCurrencyScript.yml +++ /dev/null @@ -1,50 +0,0 @@ -EntityClass: CountryRegionCurrency -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: CountryRegionCurrencies -TableSchema: 'Sales' -TableName: 'CountryRegionCurrency' -MappingClass: CountryRegionCurrencyConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: CountryRegionCurrencyProfile -MapperNamespace: 'CountryRegionCurrencyProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: CountryRegionCode - ColumnName: 'CountryRegionCode' - StoreType: nvarchar(3) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 3 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: CurrencyCode - ColumnName: 'CurrencyCode' - StoreType: nchar(3) - NativeType: 'nchar' - DataType: StringFixedLength - SystemType: String - Size: 3 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/CountryRegionScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/CountryRegionScript.yml deleted file mode 100644 index b04f4c9..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/CountryRegionScript.yml +++ /dev/null @@ -1,50 +0,0 @@ -EntityClass: CountryRegion -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: CountryRegions -TableSchema: 'Person' -TableName: 'CountryRegion' -MappingClass: CountryRegionConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: CountryRegionProfile -MapperNamespace: 'CountryRegionProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: CountryRegionCode - ColumnName: 'CountryRegionCode' - StoreType: nvarchar(3) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 3 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Name - ColumnName: 'Name' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/CreditCardScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/CreditCardScript.yml deleted file mode 100644 index 4615936..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/CreditCardScript.yml +++ /dev/null @@ -1,84 +0,0 @@ -EntityClass: CreditCard -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: CreditCards -TableSchema: 'Sales' -TableName: 'CreditCard' -MappingClass: CreditCardConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: CreditCardProfile -MapperNamespace: 'CreditCardProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'CreditCardID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: CardType - ColumnName: 'CardType' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: CardNumber - ColumnName: 'CardNumber' - StoreType: nvarchar(25) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 25 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ExpMonth - ColumnName: 'ExpMonth' - StoreType: tinyint - NativeType: 'tinyint' - DataType: Byte - SystemType: Byte - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ExpYear - ColumnName: 'ExpYear' - StoreType: smallint - NativeType: 'smallint' - DataType: Int16 - SystemType: Int16 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/CultureScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/CultureScript.yml deleted file mode 100644 index 452d1e2..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/CultureScript.yml +++ /dev/null @@ -1,50 +0,0 @@ -EntityClass: Culture -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: Cultures -TableSchema: 'Production' -TableName: 'Culture' -MappingClass: CultureConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: CultureProfile -MapperNamespace: 'CultureProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'CultureID' - StoreType: nchar(6) - NativeType: 'nchar' - DataType: StringFixedLength - SystemType: String - Size: 6 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Name - ColumnName: 'Name' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/CurrencyRateScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/CurrencyRateScript.yml deleted file mode 100644 index 3be33c9..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/CurrencyRateScript.yml +++ /dev/null @@ -1,95 +0,0 @@ -EntityClass: CurrencyRate -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: CurrencyRates -TableSchema: 'Sales' -TableName: 'CurrencyRate' -MappingClass: CurrencyRateConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: CurrencyRateProfile -MapperNamespace: 'CurrencyRateProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'CurrencyRateID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: CurrencyRateDate - ColumnName: 'CurrencyRateDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: FromCurrencyCode - ColumnName: 'FromCurrencyCode' - StoreType: nchar(3) - NativeType: 'nchar' - DataType: StringFixedLength - SystemType: String - Size: 3 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: True - - PropertyName: ToCurrencyCode - ColumnName: 'ToCurrencyCode' - StoreType: nchar(3) - NativeType: 'nchar' - DataType: StringFixedLength - SystemType: String - Size: 3 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: True - - PropertyName: AverageRate - ColumnName: 'AverageRate' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EndOfDayRate - ColumnName: 'EndOfDayRate' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/CurrencyScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/CurrencyScript.yml deleted file mode 100644 index 16a64cd..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/CurrencyScript.yml +++ /dev/null @@ -1,50 +0,0 @@ -EntityClass: Currency -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: Currencies -TableSchema: 'Sales' -TableName: 'Currency' -MappingClass: CurrencyConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: CurrencyProfile -MapperNamespace: 'CurrencyProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: CurrencyCode - ColumnName: 'CurrencyCode' - StoreType: nchar(3) - NativeType: 'nchar' - DataType: StringFixedLength - SystemType: String - Size: 3 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Name - ColumnName: 'Name' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/CustomerScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/CustomerScript.yml deleted file mode 100644 index cb213a3..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/CustomerScript.yml +++ /dev/null @@ -1,96 +0,0 @@ -EntityClass: Customer -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: Customers -TableSchema: 'Sales' -TableName: 'Customer' -MappingClass: CustomerConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: CustomerProfile -MapperNamespace: 'CustomerProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'CustomerID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: PersonId - ColumnName: 'PersonID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: StoreId - ColumnName: 'StoreID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: TerritoryId - ColumnName: 'TerritoryID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: AccountNumber - ColumnName: 'AccountNumber' - StoreType: varchar(10) - NativeType: 'varchar' - DataType: AnsiString - SystemType: String - Size: 10 - ValueGenerated: OnAddOrUpdate - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: Rowguid - ColumnName: 'rowguid' - StoreType: uniqueidentifier - NativeType: 'uniqueidentifier' - DataType: Guid - SystemType: Guid - Default: '(newid())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/DepartmentScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/DepartmentScript.yml deleted file mode 100644 index 9097bee..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/DepartmentScript.yml +++ /dev/null @@ -1,62 +0,0 @@ -EntityClass: Department -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: Departments -TableSchema: 'HumanResources' -TableName: 'Department' -MappingClass: DepartmentConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: DepartmentProfile -MapperNamespace: 'DepartmentProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'DepartmentID' - StoreType: smallint - NativeType: 'smallint' - DataType: Int16 - SystemType: Int16 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Name - ColumnName: 'Name' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: GroupName - ColumnName: 'GroupName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/DocumentScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/DocumentScript.yml deleted file mode 100644 index 932511f..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/DocumentScript.yml +++ /dev/null @@ -1,168 +0,0 @@ -EntityClass: Document -EntityNamespace: 'AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: Documents -TableSchema: 'Production' -TableName: 'Document' -MappingClass: DocumentConfiguration -MappingNamespace: 'AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: DocumentProfile -MapperNamespace: 'DocumentProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: DocumentLevel - ColumnName: 'DocumentLevel' - StoreType: smallint - NativeType: 'smallint' - DataType: Int16 - SystemType: Int16 - ValueGenerated: OnAddOrUpdate - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: Title - ColumnName: 'Title' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Owner - ColumnName: 'Owner' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: FolderFlag - ColumnName: 'FolderFlag' - StoreType: bit - NativeType: 'bit' - DataType: Boolean - SystemType: Boolean - Default: '((0))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: FileName - ColumnName: 'FileName' - StoreType: nvarchar(400) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 400 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: FileExtension - ColumnName: 'FileExtension' - StoreType: nvarchar(8) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 8 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Revision - ColumnName: 'Revision' - StoreType: nchar(5) - NativeType: 'nchar' - DataType: StringFixedLength - SystemType: String - Size: 5 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ChangeNumber - ColumnName: 'ChangeNumber' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - Default: '((0))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Status - ColumnName: 'Status' - StoreType: tinyint - NativeType: 'tinyint' - DataType: Byte - SystemType: Byte - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: DocumentSummary - ColumnName: 'DocumentSummary' - StoreType: nvarchar(max) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: -1 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: DocumentMember - ColumnName: 'Document' - StoreType: varbinary(max) - NativeType: 'varbinary' - DataType: Binary - SystemType: Byte[] - Size: -1 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Rowguid - ColumnName: 'rowguid' - StoreType: uniqueidentifier - NativeType: 'uniqueidentifier' - DataType: Guid - SystemType: Guid - Default: '(newid())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/EmailAddressScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/EmailAddressScript.yml deleted file mode 100644 index f5bc751..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/EmailAddressScript.yml +++ /dev/null @@ -1,73 +0,0 @@ -EntityClass: EmailAddress -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: EmailAddresses -TableSchema: 'Person' -TableName: 'EmailAddress' -MappingClass: EmailAddressConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: EmailAddressProfile -MapperNamespace: 'EmailAddressProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: BusinessEntityId - ColumnName: 'BusinessEntityID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: Id - ColumnName: 'EmailAddressID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EmailAddressMember - ColumnName: 'EmailAddress' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Rowguid - ColumnName: 'rowguid' - StoreType: uniqueidentifier - NativeType: 'uniqueidentifier' - DataType: Guid - SystemType: Guid - Default: '(newid())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/EmployeeDepartmentHistoryScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/EmployeeDepartmentHistoryScript.yml deleted file mode 100644 index b47a33e..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/EmployeeDepartmentHistoryScript.yml +++ /dev/null @@ -1,81 +0,0 @@ -EntityClass: EmployeeDepartmentHistory -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: EmployeeDepartmentHistories -TableSchema: 'HumanResources' -TableName: 'EmployeeDepartmentHistory' -MappingClass: EmployeeDepartmentHistoryConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: EmployeeDepartmentHistoryProfile -MapperNamespace: 'EmployeeDepartmentHistoryProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: BusinessEntityId - ColumnName: 'BusinessEntityID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: DepartmentId - ColumnName: 'DepartmentID' - StoreType: smallint - NativeType: 'smallint' - DataType: Int16 - SystemType: Int16 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: ShiftId - ColumnName: 'ShiftID' - StoreType: tinyint - NativeType: 'tinyint' - DataType: Byte - SystemType: Byte - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: StartDate - ColumnName: 'StartDate' - StoreType: date - NativeType: 'date' - DataType: Date - SystemType: DateOnly - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EndDate - ColumnName: 'EndDate' - StoreType: date - NativeType: 'date' - DataType: Date - SystemType: DateOnly - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/EmployeePayHistoryScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/EmployeePayHistoryScript.yml deleted file mode 100644 index 81f6558..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/EmployeePayHistoryScript.yml +++ /dev/null @@ -1,70 +0,0 @@ -EntityClass: EmployeePayHistory -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: EmployeePayHistories -TableSchema: 'HumanResources' -TableName: 'EmployeePayHistory' -MappingClass: EmployeePayHistoryConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: EmployeePayHistoryProfile -MapperNamespace: 'EmployeePayHistoryProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: BusinessEntityId - ColumnName: 'BusinessEntityID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: RateChangeDate - ColumnName: 'RateChangeDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Rate - ColumnName: 'Rate' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: PayFrequency - ColumnName: 'PayFrequency' - StoreType: tinyint - NativeType: 'tinyint' - DataType: Byte - SystemType: Byte - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/EmployeeScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/EmployeeScript.yml deleted file mode 100644 index eb92f4b..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/EmployeeScript.yml +++ /dev/null @@ -1,191 +0,0 @@ -EntityClass: Employee -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: Employees -TableSchema: 'HumanResources' -TableName: 'Employee' -MappingClass: EmployeeConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: EmployeeProfile -MapperNamespace: 'EmployeeProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: BusinessEntityId - ColumnName: 'BusinessEntityID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: NationalIdNumber - ColumnName: 'NationalIDNumber' - StoreType: nvarchar(15) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 15 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: LoginId - ColumnName: 'LoginID' - StoreType: nvarchar(256) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 256 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: OrganizationLevel - ColumnName: 'OrganizationLevel' - StoreType: smallint - NativeType: 'smallint' - DataType: Int16 - SystemType: Int16 - ValueGenerated: OnAddOrUpdate - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: JobTitle - ColumnName: 'JobTitle' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: BirthDate - ColumnName: 'BirthDate' - StoreType: date - NativeType: 'date' - DataType: Date - SystemType: DateOnly - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: MaritalStatus - ColumnName: 'MaritalStatus' - StoreType: nchar(1) - NativeType: 'nchar' - DataType: StringFixedLength - SystemType: String - Size: 1 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Gender - ColumnName: 'Gender' - StoreType: nchar(1) - NativeType: 'nchar' - DataType: StringFixedLength - SystemType: String - Size: 1 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: HireDate - ColumnName: 'HireDate' - StoreType: date - NativeType: 'date' - DataType: Date - SystemType: DateOnly - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: SalariedFlag - ColumnName: 'SalariedFlag' - StoreType: bit - NativeType: 'bit' - DataType: Boolean - SystemType: Boolean - Default: '((1))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: VacationHours - ColumnName: 'VacationHours' - StoreType: smallint - NativeType: 'smallint' - DataType: Int16 - SystemType: Int16 - Default: '((0))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: SickLeaveHours - ColumnName: 'SickLeaveHours' - StoreType: smallint - NativeType: 'smallint' - DataType: Int16 - SystemType: Int16 - Default: '((0))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: CurrentFlag - ColumnName: 'CurrentFlag' - StoreType: bit - NativeType: 'bit' - DataType: Boolean - SystemType: Boolean - Default: '((1))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Rowguid - ColumnName: 'rowguid' - StoreType: uniqueidentifier - NativeType: 'uniqueidentifier' - DataType: Guid - SystemType: Guid - Default: '(newid())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/IllustrationScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/IllustrationScript.yml deleted file mode 100644 index ab1026f..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/IllustrationScript.yml +++ /dev/null @@ -1,49 +0,0 @@ -EntityClass: Illustration -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: Illustrations -TableSchema: 'Production' -TableName: 'Illustration' -MappingClass: IllustrationConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: IllustrationProfile -MapperNamespace: 'IllustrationProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'IllustrationID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Diagram - ColumnName: 'Diagram' - StoreType: xml - NativeType: 'xml' - DataType: String - SystemType: String - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/JobCandidateScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/JobCandidateScript.yml deleted file mode 100644 index d481f9f..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/JobCandidateScript.yml +++ /dev/null @@ -1,60 +0,0 @@ -EntityClass: JobCandidate -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: JobCandidates -TableSchema: 'HumanResources' -TableName: 'JobCandidate' -MappingClass: JobCandidateConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: JobCandidateProfile -MapperNamespace: 'JobCandidateProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'JobCandidateID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: BusinessEntityId - ColumnName: 'BusinessEntityID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: Resume - ColumnName: 'Resume' - StoreType: xml - NativeType: 'xml' - DataType: String - SystemType: String - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/LocationScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/LocationScript.yml deleted file mode 100644 index 99a6c26..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/LocationScript.yml +++ /dev/null @@ -1,74 +0,0 @@ -EntityClass: Location -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: Locations -TableSchema: 'Production' -TableName: 'Location' -MappingClass: LocationConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: LocationProfile -MapperNamespace: 'LocationProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'LocationID' - StoreType: smallint - NativeType: 'smallint' - DataType: Int16 - SystemType: Int16 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Name - ColumnName: 'Name' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: CostRate - ColumnName: 'CostRate' - StoreType: smallmoney - NativeType: 'smallmoney' - DataType: Currency - SystemType: Decimal - Default: '((0.00))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Availability - ColumnName: 'Availability' - StoreType: decimal(8,2) - NativeType: '@decimal' - DataType: Decimal - SystemType: Decimal - Default: '((0.00))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/PasswordScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/PasswordScript.yml deleted file mode 100644 index 04a0994..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/PasswordScript.yml +++ /dev/null @@ -1,73 +0,0 @@ -EntityClass: Password -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: Passwords -TableSchema: 'Person' -TableName: 'Password' -MappingClass: PasswordConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: PasswordProfile -MapperNamespace: 'PasswordProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: BusinessEntityId - ColumnName: 'BusinessEntityID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: PasswordHash - ColumnName: 'PasswordHash' - StoreType: varchar(128) - NativeType: 'varchar' - DataType: AnsiString - SystemType: String - Size: 128 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: PasswordSalt - ColumnName: 'PasswordSalt' - StoreType: varchar(10) - NativeType: 'varchar' - DataType: AnsiString - SystemType: String - Size: 10 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Rowguid - ColumnName: 'rowguid' - StoreType: uniqueidentifier - NativeType: 'uniqueidentifier' - DataType: Guid - SystemType: Guid - Default: '(newid())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/PersonCreditCardScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/PersonCreditCardScript.yml deleted file mode 100644 index 4b6a070..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/PersonCreditCardScript.yml +++ /dev/null @@ -1,48 +0,0 @@ -EntityClass: PersonCreditCard -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: PersonCreditCards -TableSchema: 'Sales' -TableName: 'PersonCreditCard' -MappingClass: PersonCreditCardConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: PersonCreditCardProfile -MapperNamespace: 'PersonCreditCardProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: BusinessEntityId - ColumnName: 'BusinessEntityID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: CreditCardId - ColumnName: 'CreditCardID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/PersonPhoneScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/PersonPhoneScript.yml deleted file mode 100644 index c953043..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/PersonPhoneScript.yml +++ /dev/null @@ -1,60 +0,0 @@ -EntityClass: PersonPhone -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: PersonPhones -TableSchema: 'Person' -TableName: 'PersonPhone' -MappingClass: PersonPhoneConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: PersonPhoneProfile -MapperNamespace: 'PersonPhoneProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: BusinessEntityId - ColumnName: 'BusinessEntityID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: PhoneNumber - ColumnName: 'PhoneNumber' - StoreType: nvarchar(25) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 25 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: PhoneNumberTypeId - ColumnName: 'PhoneNumberTypeID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/PersonScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/PersonScript.yml deleted file mode 100644 index fb1837d..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/PersonScript.yml +++ /dev/null @@ -1,167 +0,0 @@ -EntityClass: Person -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: People -TableSchema: 'Person' -TableName: 'Person' -MappingClass: PersonConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: PersonProfile -MapperNamespace: 'PersonProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: BusinessEntityId - ColumnName: 'BusinessEntityID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: PersonType - ColumnName: 'PersonType' - StoreType: nchar(2) - NativeType: 'nchar' - DataType: StringFixedLength - SystemType: String - Size: 2 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: NameStyle - ColumnName: 'NameStyle' - StoreType: bit - NativeType: 'bit' - DataType: Boolean - SystemType: Boolean - Default: '((0))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Title - ColumnName: 'Title' - StoreType: nvarchar(8) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 8 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: FirstName - ColumnName: 'FirstName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: MiddleName - ColumnName: 'MiddleName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: LastName - ColumnName: 'LastName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Suffix - ColumnName: 'Suffix' - StoreType: nvarchar(10) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 10 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EmailPromotion - ColumnName: 'EmailPromotion' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - Default: '((0))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: AdditionalContactInfo - ColumnName: 'AdditionalContactInfo' - StoreType: xml - NativeType: 'xml' - DataType: String - SystemType: String - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Demographics - ColumnName: 'Demographics' - StoreType: xml - NativeType: 'xml' - DataType: String - SystemType: String - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Rowguid - ColumnName: 'rowguid' - StoreType: uniqueidentifier - NativeType: 'uniqueidentifier' - DataType: Guid - SystemType: Guid - Default: '(newid())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/PhoneNumberTypeScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/PhoneNumberTypeScript.yml deleted file mode 100644 index 672764b..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/PhoneNumberTypeScript.yml +++ /dev/null @@ -1,50 +0,0 @@ -EntityClass: PhoneNumberType -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: PhoneNumberTypes -TableSchema: 'Person' -TableName: 'PhoneNumberType' -MappingClass: PhoneNumberTypeConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: PhoneNumberTypeProfile -MapperNamespace: 'PhoneNumberTypeProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'PhoneNumberTypeID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Name - ColumnName: 'Name' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductCategoryScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductCategoryScript.yml deleted file mode 100644 index 16a0501..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductCategoryScript.yml +++ /dev/null @@ -1,62 +0,0 @@ -EntityClass: ProductCategory -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: ProductCategories -TableSchema: 'Production' -TableName: 'ProductCategory' -MappingClass: ProductCategoryConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: ProductCategoryProfile -MapperNamespace: 'ProductCategoryProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'ProductCategoryID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Name - ColumnName: 'Name' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: Rowguid - ColumnName: 'rowguid' - StoreType: uniqueidentifier - NativeType: 'uniqueidentifier' - DataType: Guid - SystemType: Guid - Default: '(newid())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductCostHistoryScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductCostHistoryScript.yml deleted file mode 100644 index e944edf..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductCostHistoryScript.yml +++ /dev/null @@ -1,70 +0,0 @@ -EntityClass: ProductCostHistory -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: ProductCostHistories -TableSchema: 'Production' -TableName: 'ProductCostHistory' -MappingClass: ProductCostHistoryConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: ProductCostHistoryProfile -MapperNamespace: 'ProductCostHistoryProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: ProductId - ColumnName: 'ProductID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: StartDate - ColumnName: 'StartDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EndDate - ColumnName: 'EndDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: StandardCost - ColumnName: 'StandardCost' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductDescriptionScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductDescriptionScript.yml deleted file mode 100644 index f62f60e..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductDescriptionScript.yml +++ /dev/null @@ -1,62 +0,0 @@ -EntityClass: ProductDescription -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: ProductDescriptions -TableSchema: 'Production' -TableName: 'ProductDescription' -MappingClass: ProductDescriptionConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: ProductDescriptionProfile -MapperNamespace: 'ProductDescriptionProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'ProductDescriptionID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Description - ColumnName: 'Description' - StoreType: nvarchar(400) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 400 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Rowguid - ColumnName: 'rowguid' - StoreType: uniqueidentifier - NativeType: 'uniqueidentifier' - DataType: Guid - SystemType: Guid - Default: '(newid())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductDocumentScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductDocumentScript.yml deleted file mode 100644 index ca2987e..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductDocumentScript.yml +++ /dev/null @@ -1,37 +0,0 @@ -EntityClass: ProductDocument -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: ProductDocuments -TableSchema: 'Production' -TableName: 'ProductDocument' -MappingClass: ProductDocumentConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: ProductDocumentProfile -MapperNamespace: 'ProductDocumentProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: ProductId - ColumnName: 'ProductID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductInventoryScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductInventoryScript.yml deleted file mode 100644 index e38a425..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductInventoryScript.yml +++ /dev/null @@ -1,95 +0,0 @@ -EntityClass: ProductInventory -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: ProductInventories -TableSchema: 'Production' -TableName: 'ProductInventory' -MappingClass: ProductInventoryConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: ProductInventoryProfile -MapperNamespace: 'ProductInventoryProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: ProductId - ColumnName: 'ProductID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: LocationId - ColumnName: 'LocationID' - StoreType: smallint - NativeType: 'smallint' - DataType: Int16 - SystemType: Int16 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: Shelf - ColumnName: 'Shelf' - StoreType: nvarchar(10) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 10 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Bin - ColumnName: 'Bin' - StoreType: tinyint - NativeType: 'tinyint' - DataType: Byte - SystemType: Byte - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Quantity - ColumnName: 'Quantity' - StoreType: smallint - NativeType: 'smallint' - DataType: Int16 - SystemType: Int16 - Default: '((0))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Rowguid - ColumnName: 'rowguid' - StoreType: uniqueidentifier - NativeType: 'uniqueidentifier' - DataType: Guid - SystemType: Guid - Default: '(newid())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductListPriceHistoryScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductListPriceHistoryScript.yml deleted file mode 100644 index 4ee1b5a..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductListPriceHistoryScript.yml +++ /dev/null @@ -1,70 +0,0 @@ -EntityClass: ProductListPriceHistory -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: ProductListPriceHistories -TableSchema: 'Production' -TableName: 'ProductListPriceHistory' -MappingClass: ProductListPriceHistoryConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: ProductListPriceHistoryProfile -MapperNamespace: 'ProductListPriceHistoryProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: ProductId - ColumnName: 'ProductID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: StartDate - ColumnName: 'StartDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EndDate - ColumnName: 'EndDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ListPrice - ColumnName: 'ListPrice' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductModelIllustrationScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductModelIllustrationScript.yml deleted file mode 100644 index 7d4903b..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductModelIllustrationScript.yml +++ /dev/null @@ -1,48 +0,0 @@ -EntityClass: ProductModelIllustration -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: ProductModelIllustrations -TableSchema: 'Production' -TableName: 'ProductModelIllustration' -MappingClass: ProductModelIllustrationConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: ProductModelIllustrationProfile -MapperNamespace: 'ProductModelIllustrationProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: ProductModelId - ColumnName: 'ProductModelID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: IllustrationId - ColumnName: 'IllustrationID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductModelProductDescriptionCultureScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductModelProductDescriptionCultureScript.yml deleted file mode 100644 index 422acf6..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductModelProductDescriptionCultureScript.yml +++ /dev/null @@ -1,60 +0,0 @@ -EntityClass: ProductModelProductDescriptionCulture -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: ProductModelProductDescriptionCultures -TableSchema: 'Production' -TableName: 'ProductModelProductDescriptionCulture' -MappingClass: ProductModelProductDescriptionCultureConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: ProductModelProductDescriptionCultureProfile -MapperNamespace: 'ProductModelProductDescriptionCultureProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: ProductModelId - ColumnName: 'ProductModelID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: ProductDescriptionId - ColumnName: 'ProductDescriptionID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: CultureId - ColumnName: 'CultureID' - StoreType: nchar(6) - NativeType: 'nchar' - DataType: StringFixedLength - SystemType: String - Size: 6 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductModelScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductModelScript.yml deleted file mode 100644 index 186328a..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductModelScript.yml +++ /dev/null @@ -1,84 +0,0 @@ -EntityClass: ProductModel -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: ProductModels -TableSchema: 'Production' -TableName: 'ProductModel' -MappingClass: ProductModelConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: ProductModelProfile -MapperNamespace: 'ProductModelProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'ProductModelID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Name - ColumnName: 'Name' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: CatalogDescription - ColumnName: 'CatalogDescription' - StoreType: xml - NativeType: 'xml' - DataType: String - SystemType: String - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Instructions - ColumnName: 'Instructions' - StoreType: xml - NativeType: 'xml' - DataType: String - SystemType: String - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Rowguid - ColumnName: 'rowguid' - StoreType: uniqueidentifier - NativeType: 'uniqueidentifier' - DataType: Guid - SystemType: Guid - Default: '(newid())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductPhotoScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductPhotoScript.yml deleted file mode 100644 index 911b771..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductPhotoScript.yml +++ /dev/null @@ -1,86 +0,0 @@ -EntityClass: ProductPhoto -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: ProductPhotos -TableSchema: 'Production' -TableName: 'ProductPhoto' -MappingClass: ProductPhotoConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: ProductPhotoProfile -MapperNamespace: 'ProductPhotoProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'ProductPhotoID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ThumbNailPhoto - ColumnName: 'ThumbNailPhoto' - StoreType: varbinary(max) - NativeType: 'varbinary' - DataType: Binary - SystemType: Byte[] - Size: -1 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ThumbnailPhotoFileName - ColumnName: 'ThumbnailPhotoFileName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: LargePhoto - ColumnName: 'LargePhoto' - StoreType: varbinary(max) - NativeType: 'varbinary' - DataType: Binary - SystemType: Byte[] - Size: -1 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: LargePhotoFileName - ColumnName: 'LargePhotoFileName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductProductPhotoScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductProductPhotoScript.yml deleted file mode 100644 index d392db2..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductProductPhotoScript.yml +++ /dev/null @@ -1,60 +0,0 @@ -EntityClass: ProductProductPhoto -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: ProductProductPhotos -TableSchema: 'Production' -TableName: 'ProductProductPhoto' -MappingClass: ProductProductPhotoConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: ProductProductPhotoProfile -MapperNamespace: 'ProductProductPhotoProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: ProductId - ColumnName: 'ProductID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: ProductPhotoId - ColumnName: 'ProductPhotoID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: Primary - ColumnName: 'Primary' - StoreType: bit - NativeType: 'bit' - DataType: Boolean - SystemType: Boolean - Default: '((0))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductReviewScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductReviewScript.yml deleted file mode 100644 index 1cc03a3..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductReviewScript.yml +++ /dev/null @@ -1,108 +0,0 @@ -EntityClass: ProductReview -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: ProductReviews -TableSchema: 'Production' -TableName: 'ProductReview' -MappingClass: ProductReviewConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: ProductReviewProfile -MapperNamespace: 'ProductReviewProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'ProductReviewID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ProductId - ColumnName: 'ProductID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: ReviewerName - ColumnName: 'ReviewerName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ReviewDate - ColumnName: 'ReviewDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EmailAddress - ColumnName: 'EmailAddress' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Rating - ColumnName: 'Rating' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Comments - ColumnName: 'Comments' - StoreType: nvarchar(3850) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 3850 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductScript.yml deleted file mode 100644 index 0376773..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductScript.yml +++ /dev/null @@ -1,303 +0,0 @@ -EntityClass: Product -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: Products -TableSchema: 'Production' -TableName: 'Product' -MappingClass: ProductConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: ProductProfile -MapperNamespace: 'ProductProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'ProductID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Name - ColumnName: 'Name' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ProductNumber - ColumnName: 'ProductNumber' - StoreType: nvarchar(25) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 25 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: MakeFlag - ColumnName: 'MakeFlag' - StoreType: bit - NativeType: 'bit' - DataType: Boolean - SystemType: Boolean - Default: '((1))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: FinishedGoodsFlag - ColumnName: 'FinishedGoodsFlag' - StoreType: bit - NativeType: 'bit' - DataType: Boolean - SystemType: Boolean - Default: '((1))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Color - ColumnName: 'Color' - StoreType: nvarchar(15) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 15 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: SafetyStockLevel - ColumnName: 'SafetyStockLevel' - StoreType: smallint - NativeType: 'smallint' - DataType: Int16 - SystemType: Int16 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ReorderPoint - ColumnName: 'ReorderPoint' - StoreType: smallint - NativeType: 'smallint' - DataType: Int16 - SystemType: Int16 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: StandardCost - ColumnName: 'StandardCost' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ListPrice - ColumnName: 'ListPrice' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Size - ColumnName: 'Size' - StoreType: nvarchar(5) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 5 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: SizeUnitMeasureCode - ColumnName: 'SizeUnitMeasureCode' - StoreType: nchar(3) - NativeType: 'nchar' - DataType: StringFixedLength - SystemType: String - Size: 3 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: WeightUnitMeasureCode - ColumnName: 'WeightUnitMeasureCode' - StoreType: nchar(3) - NativeType: 'nchar' - DataType: StringFixedLength - SystemType: String - Size: 3 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: Weight - ColumnName: 'Weight' - StoreType: decimal(8,2) - NativeType: '@decimal' - DataType: Decimal - SystemType: Decimal - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: DaysToManufacture - ColumnName: 'DaysToManufacture' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ProductLine - ColumnName: 'ProductLine' - StoreType: nchar(2) - NativeType: 'nchar' - DataType: StringFixedLength - SystemType: String - Size: 2 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Class - ColumnName: 'Class' - StoreType: nchar(2) - NativeType: 'nchar' - DataType: StringFixedLength - SystemType: String - Size: 2 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Style - ColumnName: 'Style' - StoreType: nchar(2) - NativeType: 'nchar' - DataType: StringFixedLength - SystemType: String - Size: 2 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ProductSubcategoryId - ColumnName: 'ProductSubcategoryID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: ProductModelId - ColumnName: 'ProductModelID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: SellStartDate - ColumnName: 'SellStartDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: SellEndDate - ColumnName: 'SellEndDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: DiscontinuedDate - ColumnName: 'DiscontinuedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Rowguid - ColumnName: 'rowguid' - StoreType: uniqueidentifier - NativeType: 'uniqueidentifier' - DataType: Guid - SystemType: Guid - Default: '(newid())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductSubcategoryScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductSubcategoryScript.yml deleted file mode 100644 index 0771e83..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductSubcategoryScript.yml +++ /dev/null @@ -1,73 +0,0 @@ -EntityClass: ProductSubcategory -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: ProductSubcategories -TableSchema: 'Production' -TableName: 'ProductSubcategory' -MappingClass: ProductSubcategoryConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: ProductSubcategoryProfile -MapperNamespace: 'ProductSubcategoryProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'ProductSubcategoryID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ProductCategoryId - ColumnName: 'ProductCategoryID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: Name - ColumnName: 'Name' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: Rowguid - ColumnName: 'rowguid' - StoreType: uniqueidentifier - NativeType: 'uniqueidentifier' - DataType: Guid - SystemType: Guid - Default: '(newid())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductVendorScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductVendorScript.yml deleted file mode 100644 index a04026b..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductVendorScript.yml +++ /dev/null @@ -1,137 +0,0 @@ -EntityClass: ProductVendor -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: ProductVendors -TableSchema: 'Purchasing' -TableName: 'ProductVendor' -MappingClass: ProductVendorConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: ProductVendorProfile -MapperNamespace: 'ProductVendorProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: ProductId - ColumnName: 'ProductID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: BusinessEntityId - ColumnName: 'BusinessEntityID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: AverageLeadTime - ColumnName: 'AverageLeadTime' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: StandardPrice - ColumnName: 'StandardPrice' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: LastReceiptCost - ColumnName: 'LastReceiptCost' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: LastReceiptDate - ColumnName: 'LastReceiptDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: MinOrderQty - ColumnName: 'MinOrderQty' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: MaxOrderQty - ColumnName: 'MaxOrderQty' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: OnOrderQty - ColumnName: 'OnOrderQty' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: UnitMeasureCode - ColumnName: 'UnitMeasureCode' - StoreType: nchar(3) - NativeType: 'nchar' - DataType: StringFixedLength - SystemType: String - Size: 3 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/PurchaseOrderDetailScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/PurchaseOrderDetailScript.yml deleted file mode 100644 index 38a695a..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/PurchaseOrderDetailScript.yml +++ /dev/null @@ -1,139 +0,0 @@ -EntityClass: PurchaseOrderDetail -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: PurchaseOrderDetails -TableSchema: 'Purchasing' -TableName: 'PurchaseOrderDetail' -MappingClass: PurchaseOrderDetailConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: PurchaseOrderDetailProfile -MapperNamespace: 'PurchaseOrderDetailProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: PurchaseOrderId - ColumnName: 'PurchaseOrderID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: Id - ColumnName: 'PurchaseOrderDetailID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: DueDate - ColumnName: 'DueDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: OrderQty - ColumnName: 'OrderQty' - StoreType: smallint - NativeType: 'smallint' - DataType: Int16 - SystemType: Int16 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ProductId - ColumnName: 'ProductID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: UnitPrice - ColumnName: 'UnitPrice' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: LineTotal - ColumnName: 'LineTotal' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - ValueGenerated: OnAddOrUpdate - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ReceivedQty - ColumnName: 'ReceivedQty' - StoreType: decimal(8,2) - NativeType: '@decimal' - DataType: Decimal - SystemType: Decimal - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: RejectedQty - ColumnName: 'RejectedQty' - StoreType: decimal(8,2) - NativeType: '@decimal' - DataType: Decimal - SystemType: Decimal - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: StockedQty - ColumnName: 'StockedQty' - StoreType: decimal(9,2) - NativeType: '@decimal' - DataType: Decimal - SystemType: Decimal - ValueGenerated: OnAddOrUpdate - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/PurchaseOrderHeaderScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/PurchaseOrderHeaderScript.yml deleted file mode 100644 index b50ae8d..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/PurchaseOrderHeaderScript.yml +++ /dev/null @@ -1,166 +0,0 @@ -EntityClass: PurchaseOrderHeader -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: PurchaseOrderHeaders -TableSchema: 'Purchasing' -TableName: 'PurchaseOrderHeader' -MappingClass: PurchaseOrderHeaderConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: PurchaseOrderHeaderProfile -MapperNamespace: 'PurchaseOrderHeaderProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'PurchaseOrderID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: RevisionNumber - ColumnName: 'RevisionNumber' - StoreType: tinyint - NativeType: 'tinyint' - DataType: Byte - SystemType: Byte - Default: '((0))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Status - ColumnName: 'Status' - StoreType: tinyint - NativeType: 'tinyint' - DataType: Byte - SystemType: Byte - Default: '((1))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EmployeeId - ColumnName: 'EmployeeID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: VendorId - ColumnName: 'VendorID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: ShipMethodId - ColumnName: 'ShipMethodID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: OrderDate - ColumnName: 'OrderDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ShipDate - ColumnName: 'ShipDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: SubTotal - ColumnName: 'SubTotal' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - Default: '((0.00))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: TaxAmt - ColumnName: 'TaxAmt' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - Default: '((0.00))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Freight - ColumnName: 'Freight' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - Default: '((0.00))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: TotalDue - ColumnName: 'TotalDue' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - ValueGenerated: OnAddOrUpdate - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesOrderDetailScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesOrderDetailScript.yml deleted file mode 100644 index 500f9ce..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesOrderDetailScript.yml +++ /dev/null @@ -1,141 +0,0 @@ -EntityClass: SalesOrderDetail -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: SalesOrderDetails -TableSchema: 'Sales' -TableName: 'SalesOrderDetail' -MappingClass: SalesOrderDetailConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: SalesOrderDetailProfile -MapperNamespace: 'SalesOrderDetailProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: SalesOrderId - ColumnName: 'SalesOrderID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: Id - ColumnName: 'SalesOrderDetailID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: CarrierTrackingNumber - ColumnName: 'CarrierTrackingNumber' - StoreType: nvarchar(25) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 25 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: OrderQty - ColumnName: 'OrderQty' - StoreType: smallint - NativeType: 'smallint' - DataType: Int16 - SystemType: Int16 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ProductId - ColumnName: 'ProductID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: SpecialOfferId - ColumnName: 'SpecialOfferID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: UnitPrice - ColumnName: 'UnitPrice' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: UnitPriceDiscount - ColumnName: 'UnitPriceDiscount' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - Default: '((0.0))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: LineTotal - ColumnName: 'LineTotal' - StoreType: numeric(38,6) - NativeType: 'numeric' - DataType: Decimal - SystemType: Decimal - ValueGenerated: OnAddOrUpdate - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Rowguid - ColumnName: 'rowguid' - StoreType: uniqueidentifier - NativeType: 'uniqueidentifier' - DataType: Guid - SystemType: Guid - Default: '(newid())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesOrderHeaderSalesReasonScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesOrderHeaderSalesReasonScript.yml deleted file mode 100644 index 818e7b6..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesOrderHeaderSalesReasonScript.yml +++ /dev/null @@ -1,48 +0,0 @@ -EntityClass: SalesOrderHeaderSalesReason -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: SalesOrderHeaderSalesReasons -TableSchema: 'Sales' -TableName: 'SalesOrderHeaderSalesReason' -MappingClass: SalesOrderHeaderSalesReasonConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: SalesOrderHeaderSalesReasonProfile -MapperNamespace: 'SalesOrderHeaderSalesReasonProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: SalesOrderId - ColumnName: 'SalesOrderID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: SalesReasonId - ColumnName: 'SalesReasonID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesOrderHeaderScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesOrderHeaderScript.yml deleted file mode 100644 index 10d1c06..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesOrderHeaderScript.yml +++ /dev/null @@ -1,317 +0,0 @@ -EntityClass: SalesOrderHeader -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: SalesOrderHeaders -TableSchema: 'Sales' -TableName: 'SalesOrderHeader' -MappingClass: SalesOrderHeaderConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: SalesOrderHeaderProfile -MapperNamespace: 'SalesOrderHeaderProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'SalesOrderID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: RevisionNumber - ColumnName: 'RevisionNumber' - StoreType: tinyint - NativeType: 'tinyint' - DataType: Byte - SystemType: Byte - Default: '((0))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: OrderDate - ColumnName: 'OrderDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: DueDate - ColumnName: 'DueDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ShipDate - ColumnName: 'ShipDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Status - ColumnName: 'Status' - StoreType: tinyint - NativeType: 'tinyint' - DataType: Byte - SystemType: Byte - Default: '((1))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: OnlineOrderFlag - ColumnName: 'OnlineOrderFlag' - StoreType: bit - NativeType: 'bit' - DataType: Boolean - SystemType: Boolean - Default: '((1))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: SalesOrderNumber - ColumnName: 'SalesOrderNumber' - StoreType: nvarchar(25) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 25 - ValueGenerated: OnAddOrUpdate - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: PurchaseOrderNumber - ColumnName: 'PurchaseOrderNumber' - StoreType: nvarchar(25) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 25 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: AccountNumber - ColumnName: 'AccountNumber' - StoreType: nvarchar(15) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 15 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: CustomerId - ColumnName: 'CustomerID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: SalesPersonId - ColumnName: 'SalesPersonID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: TerritoryId - ColumnName: 'TerritoryID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: BillToAddressId - ColumnName: 'BillToAddressID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: ShipToAddressId - ColumnName: 'ShipToAddressID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: ShipMethodId - ColumnName: 'ShipMethodID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: CreditCardId - ColumnName: 'CreditCardID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: CreditCardApprovalCode - ColumnName: 'CreditCardApprovalCode' - StoreType: varchar(15) - NativeType: 'varchar' - DataType: AnsiString - SystemType: String - Size: 15 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: CurrencyRateId - ColumnName: 'CurrencyRateID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: SubTotal - ColumnName: 'SubTotal' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - Default: '((0.00))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: TaxAmt - ColumnName: 'TaxAmt' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - Default: '((0.00))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Freight - ColumnName: 'Freight' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - Default: '((0.00))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: TotalDue - ColumnName: 'TotalDue' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - ValueGenerated: OnAddOrUpdate - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Comment - ColumnName: 'Comment' - StoreType: nvarchar(128) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 128 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Rowguid - ColumnName: 'rowguid' - StoreType: uniqueidentifier - NativeType: 'uniqueidentifier' - DataType: Guid - SystemType: Guid - Default: '(newid())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesPersonQuotaHistoryScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesPersonQuotaHistoryScript.yml deleted file mode 100644 index a6856e7..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesPersonQuotaHistoryScript.yml +++ /dev/null @@ -1,71 +0,0 @@ -EntityClass: SalesPersonQuotaHistory -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: SalesPersonQuotaHistories -TableSchema: 'Sales' -TableName: 'SalesPersonQuotaHistory' -MappingClass: SalesPersonQuotaHistoryConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: SalesPersonQuotaHistoryProfile -MapperNamespace: 'SalesPersonQuotaHistoryProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: BusinessEntityId - ColumnName: 'BusinessEntityID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: QuotaDate - ColumnName: 'QuotaDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: SalesQuota - ColumnName: 'SalesQuota' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Rowguid - ColumnName: 'rowguid' - StoreType: uniqueidentifier - NativeType: 'uniqueidentifier' - DataType: Guid - SystemType: Guid - Default: '(newid())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesPersonScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesPersonScript.yml deleted file mode 100644 index 6c5828b..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesPersonScript.yml +++ /dev/null @@ -1,119 +0,0 @@ -EntityClass: SalesPerson -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: SalesPeople -TableSchema: 'Sales' -TableName: 'SalesPerson' -MappingClass: SalesPersonConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: SalesPersonProfile -MapperNamespace: 'SalesPersonProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: BusinessEntityId - ColumnName: 'BusinessEntityID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: TerritoryId - ColumnName: 'TerritoryID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: SalesQuota - ColumnName: 'SalesQuota' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Bonus - ColumnName: 'Bonus' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - Default: '((0.00))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: CommissionPct - ColumnName: 'CommissionPct' - StoreType: smallmoney - NativeType: 'smallmoney' - DataType: Currency - SystemType: Decimal - Default: '((0.00))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: SalesYTD - ColumnName: 'SalesYTD' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - Default: '((0.00))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: SalesLastYear - ColumnName: 'SalesLastYear' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - Default: '((0.00))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Rowguid - ColumnName: 'rowguid' - StoreType: uniqueidentifier - NativeType: 'uniqueidentifier' - DataType: Guid - SystemType: Guid - Default: '(newid())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesReasonScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesReasonScript.yml deleted file mode 100644 index 165c6e1..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesReasonScript.yml +++ /dev/null @@ -1,62 +0,0 @@ -EntityClass: SalesReason -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: SalesReasons -TableSchema: 'Sales' -TableName: 'SalesReason' -MappingClass: SalesReasonConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: SalesReasonProfile -MapperNamespace: 'SalesReasonProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'SalesReasonID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Name - ColumnName: 'Name' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ReasonType - ColumnName: 'ReasonType' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesTaxRateScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesTaxRateScript.yml deleted file mode 100644 index eabc0f1..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesTaxRateScript.yml +++ /dev/null @@ -1,96 +0,0 @@ -EntityClass: SalesTaxRate -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: SalesTaxRates -TableSchema: 'Sales' -TableName: 'SalesTaxRate' -MappingClass: SalesTaxRateConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: SalesTaxRateProfile -MapperNamespace: 'SalesTaxRateProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'SalesTaxRateID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: StateProvinceId - ColumnName: 'StateProvinceID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: True - - PropertyName: TaxType - ColumnName: 'TaxType' - StoreType: tinyint - NativeType: 'tinyint' - DataType: Byte - SystemType: Byte - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: TaxRate - ColumnName: 'TaxRate' - StoreType: smallmoney - NativeType: 'smallmoney' - DataType: Currency - SystemType: Decimal - Default: '((0.00))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Name - ColumnName: 'Name' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Rowguid - ColumnName: 'rowguid' - StoreType: uniqueidentifier - NativeType: 'uniqueidentifier' - DataType: Guid - SystemType: Guid - Default: '(newid())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesTerritoryHistoryScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesTerritoryHistoryScript.yml deleted file mode 100644 index a589b80..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesTerritoryHistoryScript.yml +++ /dev/null @@ -1,82 +0,0 @@ -EntityClass: SalesTerritoryHistory -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: SalesTerritoryHistories -TableSchema: 'Sales' -TableName: 'SalesTerritoryHistory' -MappingClass: SalesTerritoryHistoryConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: SalesTerritoryHistoryProfile -MapperNamespace: 'SalesTerritoryHistoryProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: BusinessEntityId - ColumnName: 'BusinessEntityID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: TerritoryId - ColumnName: 'TerritoryID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: StartDate - ColumnName: 'StartDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EndDate - ColumnName: 'EndDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Rowguid - ColumnName: 'rowguid' - StoreType: uniqueidentifier - NativeType: 'uniqueidentifier' - DataType: Guid - SystemType: Guid - Default: '(newid())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesTerritoryScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesTerritoryScript.yml deleted file mode 100644 index 53d5989..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesTerritoryScript.yml +++ /dev/null @@ -1,134 +0,0 @@ -EntityClass: SalesTerritory -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: SalesTerritories -TableSchema: 'Sales' -TableName: 'SalesTerritory' -MappingClass: SalesTerritoryConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: SalesTerritoryProfile -MapperNamespace: 'SalesTerritoryProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'TerritoryID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Name - ColumnName: 'Name' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: CountryRegionCode - ColumnName: 'CountryRegionCode' - StoreType: nvarchar(3) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 3 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: Group - ColumnName: 'Group' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: SalesYTD - ColumnName: 'SalesYTD' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - Default: '((0.00))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: SalesLastYear - ColumnName: 'SalesLastYear' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - Default: '((0.00))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: CostYTD - ColumnName: 'CostYTD' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - Default: '((0.00))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: CostLastYear - ColumnName: 'CostLastYear' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - Default: '((0.00))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Rowguid - ColumnName: 'rowguid' - StoreType: uniqueidentifier - NativeType: 'uniqueidentifier' - DataType: Guid - SystemType: Guid - Default: '(newid())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ScrapReasonScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ScrapReasonScript.yml deleted file mode 100644 index ceda549..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ScrapReasonScript.yml +++ /dev/null @@ -1,50 +0,0 @@ -EntityClass: ScrapReason -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: ScrapReasons -TableSchema: 'Production' -TableName: 'ScrapReason' -MappingClass: ScrapReasonConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: ScrapReasonProfile -MapperNamespace: 'ScrapReasonProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'ScrapReasonID' - StoreType: smallint - NativeType: 'smallint' - DataType: Int16 - SystemType: Int16 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Name - ColumnName: 'Name' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ShiftScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ShiftScript.yml deleted file mode 100644 index a37ee95..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ShiftScript.yml +++ /dev/null @@ -1,72 +0,0 @@ -EntityClass: Shift -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: Shifts -TableSchema: 'HumanResources' -TableName: 'Shift' -MappingClass: ShiftConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: ShiftProfile -MapperNamespace: 'ShiftProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'ShiftID' - StoreType: tinyint - NativeType: 'tinyint' - DataType: Byte - SystemType: Byte - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Name - ColumnName: 'Name' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: StartTime - ColumnName: 'StartTime' - StoreType: time - NativeType: 'time' - DataType: Time - SystemType: TimeOnly - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: EndTime - ColumnName: 'EndTime' - StoreType: time - NativeType: 'time' - DataType: Time - SystemType: TimeOnly - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ShipMethodScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ShipMethodScript.yml deleted file mode 100644 index e88500e..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ShipMethodScript.yml +++ /dev/null @@ -1,86 +0,0 @@ -EntityClass: ShipMethod -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: ShipMethods -TableSchema: 'Purchasing' -TableName: 'ShipMethod' -MappingClass: ShipMethodConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: ShipMethodProfile -MapperNamespace: 'ShipMethodProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'ShipMethodID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Name - ColumnName: 'Name' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ShipBase - ColumnName: 'ShipBase' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - Default: '((0.00))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ShipRate - ColumnName: 'ShipRate' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - Default: '((0.00))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Rowguid - ColumnName: 'rowguid' - StoreType: uniqueidentifier - NativeType: 'uniqueidentifier' - DataType: Guid - SystemType: Guid - Default: '(newid())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ShoppingCartItemScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ShoppingCartItemScript.yml deleted file mode 100644 index bc73ec8..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ShoppingCartItemScript.yml +++ /dev/null @@ -1,85 +0,0 @@ -EntityClass: ShoppingCartItem -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: ShoppingCartItems -TableSchema: 'Sales' -TableName: 'ShoppingCartItem' -MappingClass: ShoppingCartItemConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: ShoppingCartItemProfile -MapperNamespace: 'ShoppingCartItemProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'ShoppingCartItemID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ShoppingCartId - ColumnName: 'ShoppingCartID' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Quantity - ColumnName: 'Quantity' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - Default: '((1))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ProductId - ColumnName: 'ProductID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: DateCreated - ColumnName: 'DateCreated' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SpecialOfferProductScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SpecialOfferProductScript.yml deleted file mode 100644 index 920fb14..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SpecialOfferProductScript.yml +++ /dev/null @@ -1,60 +0,0 @@ -EntityClass: SpecialOfferProduct -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: SpecialOfferProducts -TableSchema: 'Sales' -TableName: 'SpecialOfferProduct' -MappingClass: SpecialOfferProductConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: SpecialOfferProductProfile -MapperNamespace: 'SpecialOfferProductProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: SpecialOfferId - ColumnName: 'SpecialOfferID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: ProductId - ColumnName: 'ProductID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: Rowguid - ColumnName: 'rowguid' - StoreType: uniqueidentifier - NativeType: 'uniqueidentifier' - DataType: Guid - SystemType: Guid - Default: '(newid())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SpecialOfferScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SpecialOfferScript.yml deleted file mode 100644 index efac99e..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SpecialOfferScript.yml +++ /dev/null @@ -1,143 +0,0 @@ -EntityClass: SpecialOffer -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: SpecialOffers -TableSchema: 'Sales' -TableName: 'SpecialOffer' -MappingClass: SpecialOfferConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: SpecialOfferProfile -MapperNamespace: 'SpecialOfferProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'SpecialOfferID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Description - ColumnName: 'Description' - StoreType: nvarchar(255) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 255 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: DiscountPct - ColumnName: 'DiscountPct' - StoreType: smallmoney - NativeType: 'smallmoney' - DataType: Currency - SystemType: Decimal - Default: '((0.00))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Type - ColumnName: 'Type' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Category - ColumnName: 'Category' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: StartDate - ColumnName: 'StartDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EndDate - ColumnName: 'EndDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: MinQty - ColumnName: 'MinQty' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - Default: '((0))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: MaxQty - ColumnName: 'MaxQty' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Rowguid - ColumnName: 'rowguid' - StoreType: uniqueidentifier - NativeType: 'uniqueidentifier' - DataType: Guid - SystemType: Guid - Default: '(newid())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/StateProvinceScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/StateProvinceScript.yml deleted file mode 100644 index ef7a601..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/StateProvinceScript.yml +++ /dev/null @@ -1,109 +0,0 @@ -EntityClass: StateProvince -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: StateProvinces -TableSchema: 'Person' -TableName: 'StateProvince' -MappingClass: StateProvinceConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: StateProvinceProfile -MapperNamespace: 'StateProvinceProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'StateProvinceID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: StateProvinceCode - ColumnName: 'StateProvinceCode' - StoreType: nchar(3) - NativeType: 'nchar' - DataType: StringFixedLength - SystemType: String - Size: 3 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: CountryRegionCode - ColumnName: 'CountryRegionCode' - StoreType: nvarchar(3) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 3 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: True - - PropertyName: IsOnlyStateProvinceFlag - ColumnName: 'IsOnlyStateProvinceFlag' - StoreType: bit - NativeType: 'bit' - DataType: Boolean - SystemType: Boolean - Default: '((1))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Name - ColumnName: 'Name' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: TerritoryId - ColumnName: 'TerritoryID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: Rowguid - ColumnName: 'rowguid' - StoreType: uniqueidentifier - NativeType: 'uniqueidentifier' - DataType: Guid - SystemType: Guid - Default: '(newid())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/StoreScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/StoreScript.yml deleted file mode 100644 index 2861a21..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/StoreScript.yml +++ /dev/null @@ -1,83 +0,0 @@ -EntityClass: Store -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: Stores -TableSchema: 'Sales' -TableName: 'Store' -MappingClass: StoreConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: StoreProfile -MapperNamespace: 'StoreProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: BusinessEntityId - ColumnName: 'BusinessEntityID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: Name - ColumnName: 'Name' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: SalesPersonId - ColumnName: 'SalesPersonID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: Demographics - ColumnName: 'Demographics' - StoreType: xml - NativeType: 'xml' - DataType: String - SystemType: String - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Rowguid - ColumnName: 'rowguid' - StoreType: uniqueidentifier - NativeType: 'uniqueidentifier' - DataType: Guid - SystemType: Guid - Default: '(newid())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/TransactionHistoryArchiveScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/TransactionHistoryArchiveScript.yml deleted file mode 100644 index 6507c2c..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/TransactionHistoryArchiveScript.yml +++ /dev/null @@ -1,117 +0,0 @@ -EntityClass: TransactionHistoryArchive -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: TransactionHistoryArchives -TableSchema: 'Production' -TableName: 'TransactionHistoryArchive' -MappingClass: TransactionHistoryArchiveConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: TransactionHistoryArchiveProfile -MapperNamespace: 'TransactionHistoryArchiveProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: TransactionId - ColumnName: 'TransactionID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ProductId - ColumnName: 'ProductID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ReferenceOrderId - ColumnName: 'ReferenceOrderID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ReferenceOrderLineId - ColumnName: 'ReferenceOrderLineID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - Default: '((0))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: TransactionDate - ColumnName: 'TransactionDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: TransactionType - ColumnName: 'TransactionType' - StoreType: nchar(1) - NativeType: 'nchar' - DataType: StringFixedLength - SystemType: String - Size: 1 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Quantity - ColumnName: 'Quantity' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ActualCost - ColumnName: 'ActualCost' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/TransactionHistoryScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/TransactionHistoryScript.yml deleted file mode 100644 index 416fa9e..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/TransactionHistoryScript.yml +++ /dev/null @@ -1,118 +0,0 @@ -EntityClass: TransactionHistory -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: TransactionHistories -TableSchema: 'Production' -TableName: 'TransactionHistory' -MappingClass: TransactionHistoryConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: TransactionHistoryProfile -MapperNamespace: 'TransactionHistoryProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'TransactionID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ProductId - ColumnName: 'ProductID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: ReferenceOrderId - ColumnName: 'ReferenceOrderID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ReferenceOrderLineId - ColumnName: 'ReferenceOrderLineID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - Default: '((0))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: TransactionDate - ColumnName: 'TransactionDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: TransactionType - ColumnName: 'TransactionType' - StoreType: nchar(1) - NativeType: 'nchar' - DataType: StringFixedLength - SystemType: String - Size: 1 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Quantity - ColumnName: 'Quantity' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ActualCost - ColumnName: 'ActualCost' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/UnitMeasureScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/UnitMeasureScript.yml deleted file mode 100644 index 5012dca..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/UnitMeasureScript.yml +++ /dev/null @@ -1,50 +0,0 @@ -EntityClass: UnitMeasure -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: UnitMeasures -TableSchema: 'Production' -TableName: 'UnitMeasure' -MappingClass: UnitMeasureConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: UnitMeasureProfile -MapperNamespace: 'UnitMeasureProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: UnitMeasureCode - ColumnName: 'UnitMeasureCode' - StoreType: nchar(3) - NativeType: 'nchar' - DataType: StringFixedLength - SystemType: String - Size: 3 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Name - ColumnName: 'Name' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VAdditionalContactInfoScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VAdditionalContactInfoScript.yml deleted file mode 100644 index f552265..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VAdditionalContactInfoScript.yml +++ /dev/null @@ -1,215 +0,0 @@ -EntityClass: VAdditionalContactInfo -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: VAdditionalContactInfos -TableSchema: 'Person' -TableName: 'vAdditionalContactInfo' -MappingClass: VAdditionalContactInfoConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: VAdditionalContactInfoProfile -MapperNamespace: 'VAdditionalContactInfoProfile' -MapperBaseClass: Profile -IsView: True -Properties: - - PropertyName: BusinessEntityId - ColumnName: 'BusinessEntityID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: FirstName - ColumnName: 'FirstName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: MiddleName - ColumnName: 'MiddleName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: LastName - ColumnName: 'LastName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: TelephoneNumber - ColumnName: 'TelephoneNumber' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: TelephoneSpecialInstructions - ColumnName: 'TelephoneSpecialInstructions' - StoreType: nvarchar(max) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: -1 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Street - ColumnName: 'Street' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: City - ColumnName: 'City' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: StateProvince - ColumnName: 'StateProvince' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: PostalCode - ColumnName: 'PostalCode' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: CountryRegion - ColumnName: 'CountryRegion' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: HomeAddressSpecialInstructions - ColumnName: 'HomeAddressSpecialInstructions' - StoreType: nvarchar(max) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: -1 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EMailAddress - ColumnName: 'EMailAddress' - StoreType: nvarchar(128) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 128 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EMailSpecialInstructions - ColumnName: 'EMailSpecialInstructions' - StoreType: nvarchar(max) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: -1 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EMailTelephoneNumber - ColumnName: 'EMailTelephoneNumber' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Rowguid - ColumnName: 'rowguid' - StoreType: uniqueidentifier - NativeType: 'uniqueidentifier' - DataType: Guid - SystemType: Guid - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VEmployeeDepartmentHistoryScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VEmployeeDepartmentHistoryScript.yml deleted file mode 100644 index f86a140..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VEmployeeDepartmentHistoryScript.yml +++ /dev/null @@ -1,143 +0,0 @@ -EntityClass: VEmployeeDepartmentHistory -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: VEmployeeDepartmentHistories -TableSchema: 'HumanResources' -TableName: 'vEmployeeDepartmentHistory' -MappingClass: VEmployeeDepartmentHistoryConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: VEmployeeDepartmentHistoryProfile -MapperNamespace: 'VEmployeeDepartmentHistoryProfile' -MapperBaseClass: Profile -IsView: True -Properties: - - PropertyName: BusinessEntityId - ColumnName: 'BusinessEntityID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Title - ColumnName: 'Title' - StoreType: nvarchar(8) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 8 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: FirstName - ColumnName: 'FirstName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: MiddleName - ColumnName: 'MiddleName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: LastName - ColumnName: 'LastName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Suffix - ColumnName: 'Suffix' - StoreType: nvarchar(10) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 10 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Shift - ColumnName: 'Shift' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Department - ColumnName: 'Department' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: GroupName - ColumnName: 'GroupName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: StartDate - ColumnName: 'StartDate' - StoreType: date - NativeType: 'date' - DataType: Date - SystemType: DateOnly - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EndDate - ColumnName: 'EndDate' - StoreType: date - NativeType: 'date' - DataType: Date - SystemType: DateOnly - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VEmployeeDepartmentScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VEmployeeDepartmentScript.yml deleted file mode 100644 index 09b6108..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VEmployeeDepartmentScript.yml +++ /dev/null @@ -1,132 +0,0 @@ -EntityClass: VEmployeeDepartment -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: VEmployeeDepartments -TableSchema: 'HumanResources' -TableName: 'vEmployeeDepartment' -MappingClass: VEmployeeDepartmentConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: VEmployeeDepartmentProfile -MapperNamespace: 'VEmployeeDepartmentProfile' -MapperBaseClass: Profile -IsView: True -Properties: - - PropertyName: BusinessEntityId - ColumnName: 'BusinessEntityID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Title - ColumnName: 'Title' - StoreType: nvarchar(8) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 8 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: FirstName - ColumnName: 'FirstName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: MiddleName - ColumnName: 'MiddleName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: LastName - ColumnName: 'LastName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Suffix - ColumnName: 'Suffix' - StoreType: nvarchar(10) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 10 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: JobTitle - ColumnName: 'JobTitle' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Department - ColumnName: 'Department' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: GroupName - ColumnName: 'GroupName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: StartDate - ColumnName: 'StartDate' - StoreType: date - NativeType: 'date' - DataType: Date - SystemType: DateOnly - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VEmployeeScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VEmployeeScript.yml deleted file mode 100644 index 9a78b68..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VEmployeeScript.yml +++ /dev/null @@ -1,227 +0,0 @@ -EntityClass: VEmployee -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: VEmployees -TableSchema: 'HumanResources' -TableName: 'vEmployee' -MappingClass: VEmployeeConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: VEmployeeProfile -MapperNamespace: 'VEmployeeProfile' -MapperBaseClass: Profile -IsView: True -Properties: - - PropertyName: BusinessEntityId - ColumnName: 'BusinessEntityID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Title - ColumnName: 'Title' - StoreType: nvarchar(8) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 8 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: FirstName - ColumnName: 'FirstName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: MiddleName - ColumnName: 'MiddleName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: LastName - ColumnName: 'LastName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Suffix - ColumnName: 'Suffix' - StoreType: nvarchar(10) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 10 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: JobTitle - ColumnName: 'JobTitle' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: PhoneNumber - ColumnName: 'PhoneNumber' - StoreType: nvarchar(25) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 25 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: PhoneNumberType - ColumnName: 'PhoneNumberType' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EmailAddress - ColumnName: 'EmailAddress' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EmailPromotion - ColumnName: 'EmailPromotion' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: AddressLine1 - ColumnName: 'AddressLine1' - StoreType: nvarchar(60) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 60 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: AddressLine2 - ColumnName: 'AddressLine2' - StoreType: nvarchar(60) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 60 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: City - ColumnName: 'City' - StoreType: nvarchar(30) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 30 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: StateProvinceName - ColumnName: 'StateProvinceName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: PostalCode - ColumnName: 'PostalCode' - StoreType: nvarchar(15) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 15 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: CountryRegionName - ColumnName: 'CountryRegionName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: AdditionalContactInfo - ColumnName: 'AdditionalContactInfo' - StoreType: xml - NativeType: 'xml' - DataType: String - SystemType: String - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VIndividualCustomerScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VIndividualCustomerScript.yml deleted file mode 100644 index cc54d16..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VIndividualCustomerScript.yml +++ /dev/null @@ -1,227 +0,0 @@ -EntityClass: VIndividualCustomer -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: VIndividualCustomers -TableSchema: 'Sales' -TableName: 'vIndividualCustomer' -MappingClass: VIndividualCustomerConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: VIndividualCustomerProfile -MapperNamespace: 'VIndividualCustomerProfile' -MapperBaseClass: Profile -IsView: True -Properties: - - PropertyName: BusinessEntityId - ColumnName: 'BusinessEntityID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Title - ColumnName: 'Title' - StoreType: nvarchar(8) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 8 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: FirstName - ColumnName: 'FirstName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: MiddleName - ColumnName: 'MiddleName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: LastName - ColumnName: 'LastName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Suffix - ColumnName: 'Suffix' - StoreType: nvarchar(10) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 10 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: PhoneNumber - ColumnName: 'PhoneNumber' - StoreType: nvarchar(25) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 25 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: PhoneNumberType - ColumnName: 'PhoneNumberType' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EmailAddress - ColumnName: 'EmailAddress' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EmailPromotion - ColumnName: 'EmailPromotion' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: AddressType - ColumnName: 'AddressType' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: AddressLine1 - ColumnName: 'AddressLine1' - StoreType: nvarchar(60) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 60 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: AddressLine2 - ColumnName: 'AddressLine2' - StoreType: nvarchar(60) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 60 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: City - ColumnName: 'City' - StoreType: nvarchar(30) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 30 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: StateProvinceName - ColumnName: 'StateProvinceName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: PostalCode - ColumnName: 'PostalCode' - StoreType: nvarchar(15) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 15 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: CountryRegionName - ColumnName: 'CountryRegionName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Demographics - ColumnName: 'Demographics' - StoreType: xml - NativeType: 'xml' - DataType: String - SystemType: String - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VJobCandidateEducationScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VJobCandidateEducationScript.yml deleted file mode 100644 index b7aeb15..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VJobCandidateEducationScript.yml +++ /dev/null @@ -1,168 +0,0 @@ -EntityClass: VJobCandidateEducation -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: VJobCandidateEducations -TableSchema: 'HumanResources' -TableName: 'vJobCandidateEducation' -MappingClass: VJobCandidateEducationConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: VJobCandidateEducationProfile -MapperNamespace: 'VJobCandidateEducationProfile' -MapperBaseClass: Profile -IsView: True -Properties: - - PropertyName: Id - ColumnName: 'JobCandidateID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EduLevel - ColumnName: 'Edu.Level' - StoreType: nvarchar(max) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: -1 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EduStartDate - ColumnName: 'Edu.StartDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EduEndDate - ColumnName: 'Edu.EndDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EduDegree - ColumnName: 'Edu.Degree' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EduMajor - ColumnName: 'Edu.Major' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EduMinor - ColumnName: 'Edu.Minor' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EduGPA - ColumnName: 'Edu.GPA' - StoreType: nvarchar(5) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 5 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EduGPAScale - ColumnName: 'Edu.GPAScale' - StoreType: nvarchar(5) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 5 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EduSchool - ColumnName: 'Edu.School' - StoreType: nvarchar(100) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 100 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EduLocCountryRegion - ColumnName: 'Edu.Loc.CountryRegion' - StoreType: nvarchar(100) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 100 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EduLocState - ColumnName: 'Edu.Loc.State' - StoreType: nvarchar(100) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 100 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EduLocCity - ColumnName: 'Edu.Loc.City' - StoreType: nvarchar(100) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 100 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VJobCandidateEmploymentScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VJobCandidateEmploymentScript.yml deleted file mode 100644 index 4931b26..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VJobCandidateEmploymentScript.yml +++ /dev/null @@ -1,144 +0,0 @@ -EntityClass: VJobCandidateEmployment -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: VJobCandidateEmployments -TableSchema: 'HumanResources' -TableName: 'vJobCandidateEmployment' -MappingClass: VJobCandidateEmploymentConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: VJobCandidateEmploymentProfile -MapperNamespace: 'VJobCandidateEmploymentProfile' -MapperBaseClass: Profile -IsView: True -Properties: - - PropertyName: Id - ColumnName: 'JobCandidateID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EmpStartDate - ColumnName: 'Emp.StartDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EmpEndDate - ColumnName: 'Emp.EndDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EmpOrgName - ColumnName: 'Emp.OrgName' - StoreType: nvarchar(100) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 100 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EmpJobTitle - ColumnName: 'Emp.JobTitle' - StoreType: nvarchar(100) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 100 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EmpResponsibility - ColumnName: 'Emp.Responsibility' - StoreType: nvarchar(max) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: -1 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EmpFunctionCategory - ColumnName: 'Emp.FunctionCategory' - StoreType: nvarchar(max) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: -1 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EmpIndustryCategory - ColumnName: 'Emp.IndustryCategory' - StoreType: nvarchar(max) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: -1 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EmpLocCountryRegion - ColumnName: 'Emp.Loc.CountryRegion' - StoreType: nvarchar(max) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: -1 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EmpLocState - ColumnName: 'Emp.Loc.State' - StoreType: nvarchar(max) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: -1 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EmpLocCity - ColumnName: 'Emp.Loc.City' - StoreType: nvarchar(max) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: -1 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VJobCandidateScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VJobCandidateScript.yml deleted file mode 100644 index b2aa0f9..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VJobCandidateScript.yml +++ /dev/null @@ -1,204 +0,0 @@ -EntityClass: VJobCandidate -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: VJobCandidates -TableSchema: 'HumanResources' -TableName: 'vJobCandidate' -MappingClass: VJobCandidateConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: VJobCandidateProfile -MapperNamespace: 'VJobCandidateProfile' -MapperBaseClass: Profile -IsView: True -Properties: - - PropertyName: Id - ColumnName: 'JobCandidateID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: BusinessEntityId - ColumnName: 'BusinessEntityID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: NamePrefix - ColumnName: 'Name.Prefix' - StoreType: nvarchar(30) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 30 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: NameFirst - ColumnName: 'Name.First' - StoreType: nvarchar(30) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 30 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: NameMiddle - ColumnName: 'Name.Middle' - StoreType: nvarchar(30) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 30 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: NameLast - ColumnName: 'Name.Last' - StoreType: nvarchar(30) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 30 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: NameSuffix - ColumnName: 'Name.Suffix' - StoreType: nvarchar(30) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 30 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Skills - ColumnName: 'Skills' - StoreType: nvarchar(max) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: -1 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: AddrType - ColumnName: 'Addr.Type' - StoreType: nvarchar(30) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 30 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: AddrLocCountryRegion - ColumnName: 'Addr.Loc.CountryRegion' - StoreType: nvarchar(100) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 100 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: AddrLocState - ColumnName: 'Addr.Loc.State' - StoreType: nvarchar(100) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 100 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: AddrLocCity - ColumnName: 'Addr.Loc.City' - StoreType: nvarchar(100) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 100 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: AddrPostalCode - ColumnName: 'Addr.PostalCode' - StoreType: nvarchar(20) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 20 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EMail - ColumnName: 'EMail' - StoreType: nvarchar(max) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: -1 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: WebSite - ColumnName: 'WebSite' - StoreType: nvarchar(max) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: -1 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VPersonDemographicsScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VPersonDemographicsScript.yml deleted file mode 100644 index c1a65b4..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VPersonDemographicsScript.yml +++ /dev/null @@ -1,162 +0,0 @@ -EntityClass: VPersonDemographics -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: VPersonDemographics -TableSchema: 'Sales' -TableName: 'vPersonDemographics' -MappingClass: VPersonDemographicsConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: VPersonDemographicsProfile -MapperNamespace: 'VPersonDemographicsProfile' -MapperBaseClass: Profile -IsView: True -Properties: - - PropertyName: BusinessEntityId - ColumnName: 'BusinessEntityID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: TotalPurchaseYTD - ColumnName: 'TotalPurchaseYTD' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: DateFirstPurchase - ColumnName: 'DateFirstPurchase' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: BirthDate - ColumnName: 'BirthDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: MaritalStatus - ColumnName: 'MaritalStatus' - StoreType: nvarchar(1) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 1 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: YearlyIncome - ColumnName: 'YearlyIncome' - StoreType: nvarchar(30) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 30 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Gender - ColumnName: 'Gender' - StoreType: nvarchar(1) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 1 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: TotalChildren - ColumnName: 'TotalChildren' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: NumberChildrenAtHome - ColumnName: 'NumberChildrenAtHome' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Education - ColumnName: 'Education' - StoreType: nvarchar(30) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 30 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Occupation - ColumnName: 'Occupation' - StoreType: nvarchar(30) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 30 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: HomeOwnerFlag - ColumnName: 'HomeOwnerFlag' - StoreType: bit - NativeType: 'bit' - DataType: Boolean - SystemType: Boolean - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: NumberCarsOwned - ColumnName: 'NumberCarsOwned' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VProductAndDescriptionScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VProductAndDescriptionScript.yml deleted file mode 100644 index 701fdb6..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VProductAndDescriptionScript.yml +++ /dev/null @@ -1,73 +0,0 @@ -EntityClass: VProductAndDescription -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: VProductAndDescriptions -TableSchema: 'Production' -TableName: 'vProductAndDescription' -MappingClass: VProductAndDescriptionConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: VProductAndDescriptionProfile -MapperNamespace: 'VProductAndDescriptionProfile' -MapperBaseClass: Profile -IsView: True -Properties: - - PropertyName: ProductId - ColumnName: 'ProductID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Name - ColumnName: 'Name' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ProductModel - ColumnName: 'ProductModel' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: CultureId - ColumnName: 'CultureID' - StoreType: nchar(6) - NativeType: 'nchar' - DataType: StringFixedLength - SystemType: String - Size: 6 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Description - ColumnName: 'Description' - StoreType: nvarchar(400) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 400 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VProductModelCatalogDescriptionScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VProductModelCatalogDescriptionScript.yml deleted file mode 100644 index 380f315..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VProductModelCatalogDescriptionScript.yml +++ /dev/null @@ -1,312 +0,0 @@ -EntityClass: VProductModelCatalogDescription -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: VProductModelCatalogDescriptions -TableSchema: 'Production' -TableName: 'vProductModelCatalogDescription' -MappingClass: VProductModelCatalogDescriptionConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: VProductModelCatalogDescriptionProfile -MapperNamespace: 'VProductModelCatalogDescriptionProfile' -MapperBaseClass: Profile -IsView: True -Properties: - - PropertyName: Id - ColumnName: 'ProductModelID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Name - ColumnName: 'Name' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Summary - ColumnName: 'Summary' - StoreType: nvarchar(max) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: -1 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Manufacturer - ColumnName: 'Manufacturer' - StoreType: nvarchar(max) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: -1 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Copyright - ColumnName: 'Copyright' - StoreType: nvarchar(30) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 30 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ProductURL - ColumnName: 'ProductURL' - StoreType: nvarchar(256) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 256 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: WarrantyPeriod - ColumnName: 'WarrantyPeriod' - StoreType: nvarchar(256) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 256 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: WarrantyDescription - ColumnName: 'WarrantyDescription' - StoreType: nvarchar(256) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 256 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: NoOfYears - ColumnName: 'NoOfYears' - StoreType: nvarchar(256) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 256 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: MaintenanceDescription - ColumnName: 'MaintenanceDescription' - StoreType: nvarchar(256) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 256 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Wheel - ColumnName: 'Wheel' - StoreType: nvarchar(256) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 256 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Saddle - ColumnName: 'Saddle' - StoreType: nvarchar(256) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 256 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Pedal - ColumnName: 'Pedal' - StoreType: nvarchar(256) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 256 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: BikeFrame - ColumnName: 'BikeFrame' - StoreType: nvarchar(max) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: -1 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Crankset - ColumnName: 'Crankset' - StoreType: nvarchar(256) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 256 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: PictureAngle - ColumnName: 'PictureAngle' - StoreType: nvarchar(256) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 256 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: PictureSize - ColumnName: 'PictureSize' - StoreType: nvarchar(256) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 256 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ProductPhotoId - ColumnName: 'ProductPhotoID' - StoreType: nvarchar(256) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 256 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Material - ColumnName: 'Material' - StoreType: nvarchar(256) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 256 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Color - ColumnName: 'Color' - StoreType: nvarchar(256) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 256 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ProductLine - ColumnName: 'ProductLine' - StoreType: nvarchar(256) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 256 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Style - ColumnName: 'Style' - StoreType: nvarchar(256) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 256 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: RiderExperience - ColumnName: 'RiderExperience' - StoreType: nvarchar(1024) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 1024 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Rowguid - ColumnName: 'rowguid' - StoreType: uniqueidentifier - NativeType: 'uniqueidentifier' - DataType: Guid - SystemType: Guid - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VProductModelInstructionsScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VProductModelInstructionsScript.yml deleted file mode 100644 index 57a1dbf..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VProductModelInstructionsScript.yml +++ /dev/null @@ -1,139 +0,0 @@ -EntityClass: VProductModelInstructions -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: VProductModelInstructions -TableSchema: 'Production' -TableName: 'vProductModelInstructions' -MappingClass: VProductModelInstructionsConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: VProductModelInstructionsProfile -MapperNamespace: 'VProductModelInstructionsProfile' -MapperBaseClass: Profile -IsView: True -Properties: - - PropertyName: Id - ColumnName: 'ProductModelID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Name - ColumnName: 'Name' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Instructions - ColumnName: 'Instructions' - StoreType: nvarchar(max) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: -1 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: LocationId - ColumnName: 'LocationID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: SetupHours - ColumnName: 'SetupHours' - StoreType: decimal(9,4) - NativeType: '@decimal' - DataType: Decimal - SystemType: Decimal - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: MachineHours - ColumnName: 'MachineHours' - StoreType: decimal(9,4) - NativeType: '@decimal' - DataType: Decimal - SystemType: Decimal - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: LaborHours - ColumnName: 'LaborHours' - StoreType: decimal(9,4) - NativeType: '@decimal' - DataType: Decimal - SystemType: Decimal - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: LotSize - ColumnName: 'LotSize' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Step - ColumnName: 'Step' - StoreType: nvarchar(1024) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 1024 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Rowguid - ColumnName: 'rowguid' - StoreType: uniqueidentifier - NativeType: 'uniqueidentifier' - DataType: Guid - SystemType: Guid - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VSalesPersonSalesByFiscalYearsScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VSalesPersonSalesByFiscalYearsScript.yml deleted file mode 100644 index 53ab919..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VSalesPersonSalesByFiscalYearsScript.yml +++ /dev/null @@ -1,94 +0,0 @@ -EntityClass: VSalesPersonSalesByFiscalYears -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: VSalesPersonSalesByFiscalYears -TableSchema: 'Sales' -TableName: 'vSalesPersonSalesByFiscalYears' -MappingClass: VSalesPersonSalesByFiscalYearsConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: VSalesPersonSalesByFiscalYearsProfile -MapperNamespace: 'VSalesPersonSalesByFiscalYearsProfile' -MapperBaseClass: Profile -IsView: True -Properties: - - PropertyName: SalesPersonId - ColumnName: 'SalesPersonID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: FullName - ColumnName: 'FullName' - StoreType: nvarchar(152) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 152 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: JobTitle - ColumnName: 'JobTitle' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: SalesTerritory - ColumnName: 'SalesTerritory' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Number2002 - ColumnName: '2002' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Number2003 - ColumnName: '2003' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Number2004 - ColumnName: '2004' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VSalesPersonScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VSalesPersonScript.yml deleted file mode 100644 index 348a1b4..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VSalesPersonScript.yml +++ /dev/null @@ -1,273 +0,0 @@ -EntityClass: VSalesPerson -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: VSalesPeople -TableSchema: 'Sales' -TableName: 'vSalesPerson' -MappingClass: VSalesPersonConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: VSalesPersonProfile -MapperNamespace: 'VSalesPersonProfile' -MapperBaseClass: Profile -IsView: True -Properties: - - PropertyName: BusinessEntityId - ColumnName: 'BusinessEntityID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Title - ColumnName: 'Title' - StoreType: nvarchar(8) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 8 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: FirstName - ColumnName: 'FirstName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: MiddleName - ColumnName: 'MiddleName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: LastName - ColumnName: 'LastName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Suffix - ColumnName: 'Suffix' - StoreType: nvarchar(10) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 10 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: JobTitle - ColumnName: 'JobTitle' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: PhoneNumber - ColumnName: 'PhoneNumber' - StoreType: nvarchar(25) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 25 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: PhoneNumberType - ColumnName: 'PhoneNumberType' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EmailAddress - ColumnName: 'EmailAddress' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EmailPromotion - ColumnName: 'EmailPromotion' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: AddressLine1 - ColumnName: 'AddressLine1' - StoreType: nvarchar(60) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 60 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: AddressLine2 - ColumnName: 'AddressLine2' - StoreType: nvarchar(60) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 60 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: City - ColumnName: 'City' - StoreType: nvarchar(30) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 30 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: StateProvinceName - ColumnName: 'StateProvinceName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: PostalCode - ColumnName: 'PostalCode' - StoreType: nvarchar(15) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 15 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: CountryRegionName - ColumnName: 'CountryRegionName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: TerritoryName - ColumnName: 'TerritoryName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: TerritoryGroup - ColumnName: 'TerritoryGroup' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: SalesQuota - ColumnName: 'SalesQuota' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: SalesYTD - ColumnName: 'SalesYTD' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: SalesLastYear - ColumnName: 'SalesLastYear' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VStateProvinceCountryRegionScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VStateProvinceCountryRegionScript.yml deleted file mode 100644 index 1fc1377..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VStateProvinceCountryRegionScript.yml +++ /dev/null @@ -1,95 +0,0 @@ -EntityClass: VStateProvinceCountryRegion -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: VStateProvinceCountryRegions -TableSchema: 'Person' -TableName: 'vStateProvinceCountryRegion' -MappingClass: VStateProvinceCountryRegionConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: VStateProvinceCountryRegionProfile -MapperNamespace: 'VStateProvinceCountryRegionProfile' -MapperBaseClass: Profile -IsView: True -Properties: - - PropertyName: StateProvinceId - ColumnName: 'StateProvinceID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: StateProvinceCode - ColumnName: 'StateProvinceCode' - StoreType: nchar(3) - NativeType: 'nchar' - DataType: StringFixedLength - SystemType: String - Size: 3 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: IsOnlyStateProvinceFlag - ColumnName: 'IsOnlyStateProvinceFlag' - StoreType: bit - NativeType: 'bit' - DataType: Boolean - SystemType: Boolean - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: StateProvinceName - ColumnName: 'StateProvinceName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: TerritoryId - ColumnName: 'TerritoryID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: CountryRegionCode - ColumnName: 'CountryRegionCode' - StoreType: nvarchar(3) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 3 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: CountryRegionName - ColumnName: 'CountryRegionName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VStoreWithAddressesScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VStoreWithAddressesScript.yml deleted file mode 100644 index 54de82d..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VStoreWithAddressesScript.yml +++ /dev/null @@ -1,121 +0,0 @@ -EntityClass: VStoreWithAddresses -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: VStoreWithAddresses -TableSchema: 'Sales' -TableName: 'vStoreWithAddresses' -MappingClass: VStoreWithAddressesConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: VStoreWithAddressesProfile -MapperNamespace: 'VStoreWithAddressesProfile' -MapperBaseClass: Profile -IsView: True -Properties: - - PropertyName: BusinessEntityId - ColumnName: 'BusinessEntityID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Name - ColumnName: 'Name' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: AddressType - ColumnName: 'AddressType' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: AddressLine1 - ColumnName: 'AddressLine1' - StoreType: nvarchar(60) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 60 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: AddressLine2 - ColumnName: 'AddressLine2' - StoreType: nvarchar(60) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 60 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: City - ColumnName: 'City' - StoreType: nvarchar(30) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 30 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: StateProvinceName - ColumnName: 'StateProvinceName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: PostalCode - ColumnName: 'PostalCode' - StoreType: nvarchar(15) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 15 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: CountryRegionName - ColumnName: 'CountryRegionName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VStoreWithContactsScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VStoreWithContactsScript.yml deleted file mode 100644 index 02aa003..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VStoreWithContactsScript.yml +++ /dev/null @@ -1,156 +0,0 @@ -EntityClass: VStoreWithContacts -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: VStoreWithContacts -TableSchema: 'Sales' -TableName: 'vStoreWithContacts' -MappingClass: VStoreWithContactsConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: VStoreWithContactsProfile -MapperNamespace: 'VStoreWithContactsProfile' -MapperBaseClass: Profile -IsView: True -Properties: - - PropertyName: BusinessEntityId - ColumnName: 'BusinessEntityID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Name - ColumnName: 'Name' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ContactType - ColumnName: 'ContactType' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Title - ColumnName: 'Title' - StoreType: nvarchar(8) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 8 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: FirstName - ColumnName: 'FirstName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: MiddleName - ColumnName: 'MiddleName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: LastName - ColumnName: 'LastName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Suffix - ColumnName: 'Suffix' - StoreType: nvarchar(10) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 10 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: PhoneNumber - ColumnName: 'PhoneNumber' - StoreType: nvarchar(25) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 25 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: PhoneNumberType - ColumnName: 'PhoneNumberType' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EmailAddress - ColumnName: 'EmailAddress' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EmailPromotion - ColumnName: 'EmailPromotion' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VStoreWithDemographicsScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VStoreWithDemographicsScript.yml deleted file mode 100644 index 842b5b4..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VStoreWithDemographicsScript.yml +++ /dev/null @@ -1,152 +0,0 @@ -EntityClass: VStoreWithDemographics -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: VStoreWithDemographics -TableSchema: 'Sales' -TableName: 'vStoreWithDemographics' -MappingClass: VStoreWithDemographicsConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: VStoreWithDemographicsProfile -MapperNamespace: 'VStoreWithDemographicsProfile' -MapperBaseClass: Profile -IsView: True -Properties: - - PropertyName: BusinessEntityId - ColumnName: 'BusinessEntityID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Name - ColumnName: 'Name' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: AnnualSales - ColumnName: 'AnnualSales' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: AnnualRevenue - ColumnName: 'AnnualRevenue' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: BankName - ColumnName: 'BankName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: BusinessType - ColumnName: 'BusinessType' - StoreType: nvarchar(5) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 5 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: YearOpened - ColumnName: 'YearOpened' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Specialty - ColumnName: 'Specialty' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: SquareFeet - ColumnName: 'SquareFeet' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Brands - ColumnName: 'Brands' - StoreType: nvarchar(30) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 30 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Internet - ColumnName: 'Internet' - StoreType: nvarchar(30) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 30 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: NumberEmployees - ColumnName: 'NumberEmployees' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VVendorWithAddressesScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VVendorWithAddressesScript.yml deleted file mode 100644 index c781296..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VVendorWithAddressesScript.yml +++ /dev/null @@ -1,121 +0,0 @@ -EntityClass: VVendorWithAddresses -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: VVendorWithAddresses -TableSchema: 'Purchasing' -TableName: 'vVendorWithAddresses' -MappingClass: VVendorWithAddressesConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: VVendorWithAddressesProfile -MapperNamespace: 'VVendorWithAddressesProfile' -MapperBaseClass: Profile -IsView: True -Properties: - - PropertyName: BusinessEntityId - ColumnName: 'BusinessEntityID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Name - ColumnName: 'Name' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: AddressType - ColumnName: 'AddressType' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: AddressLine1 - ColumnName: 'AddressLine1' - StoreType: nvarchar(60) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 60 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: AddressLine2 - ColumnName: 'AddressLine2' - StoreType: nvarchar(60) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 60 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: City - ColumnName: 'City' - StoreType: nvarchar(30) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 30 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: StateProvinceName - ColumnName: 'StateProvinceName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: PostalCode - ColumnName: 'PostalCode' - StoreType: nvarchar(15) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 15 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: CountryRegionName - ColumnName: 'CountryRegionName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VVendorWithContactsScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VVendorWithContactsScript.yml deleted file mode 100644 index 0e25244..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VVendorWithContactsScript.yml +++ /dev/null @@ -1,156 +0,0 @@ -EntityClass: VVendorWithContacts -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: VVendorWithContacts -TableSchema: 'Purchasing' -TableName: 'vVendorWithContacts' -MappingClass: VVendorWithContactsConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: VVendorWithContactsProfile -MapperNamespace: 'VVendorWithContactsProfile' -MapperBaseClass: Profile -IsView: True -Properties: - - PropertyName: BusinessEntityId - ColumnName: 'BusinessEntityID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Name - ColumnName: 'Name' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ContactType - ColumnName: 'ContactType' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Title - ColumnName: 'Title' - StoreType: nvarchar(8) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 8 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: FirstName - ColumnName: 'FirstName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: MiddleName - ColumnName: 'MiddleName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: LastName - ColumnName: 'LastName' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: Suffix - ColumnName: 'Suffix' - StoreType: nvarchar(10) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 10 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: PhoneNumber - ColumnName: 'PhoneNumber' - StoreType: nvarchar(25) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 25 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: PhoneNumberType - ColumnName: 'PhoneNumberType' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EmailAddress - ColumnName: 'EmailAddress' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EmailPromotion - ColumnName: 'EmailPromotion' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VendorScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VendorScript.yml deleted file mode 100644 index 0c27e60..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VendorScript.yml +++ /dev/null @@ -1,108 +0,0 @@ -EntityClass: Vendor -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: Vendors -TableSchema: 'Purchasing' -TableName: 'Vendor' -MappingClass: VendorConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: VendorProfile -MapperNamespace: 'VendorProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: BusinessEntityId - ColumnName: 'BusinessEntityID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: AccountNumber - ColumnName: 'AccountNumber' - StoreType: nvarchar(15) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 15 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: True - - PropertyName: Name - ColumnName: 'Name' - StoreType: nvarchar(50) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 50 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: CreditRating - ColumnName: 'CreditRating' - StoreType: tinyint - NativeType: 'tinyint' - DataType: Byte - SystemType: Byte - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: PreferredVendorStatus - ColumnName: 'PreferredVendorStatus' - StoreType: bit - NativeType: 'bit' - DataType: Boolean - SystemType: Boolean - Default: '((1))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ActiveFlag - ColumnName: 'ActiveFlag' - StoreType: bit - NativeType: 'bit' - DataType: Boolean - SystemType: Boolean - Default: '((1))' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: PurchasingWebServiceURL - ColumnName: 'PurchasingWebServiceURL' - StoreType: nvarchar(1024) - NativeType: 'nvarchar' - DataType: String - SystemType: String - Size: 1024 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/WorkOrderRoutingScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/WorkOrderRoutingScript.yml deleted file mode 100644 index 7c8e5d8..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/WorkOrderRoutingScript.yml +++ /dev/null @@ -1,147 +0,0 @@ -EntityClass: WorkOrderRouting -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: WorkOrderRoutings -TableSchema: 'Production' -TableName: 'WorkOrderRouting' -MappingClass: WorkOrderRoutingConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: WorkOrderRoutingProfile -MapperNamespace: 'WorkOrderRoutingProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: WorkOrderId - ColumnName: 'WorkOrderID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: ProductId - ColumnName: 'ProductID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: OperationSequence - ColumnName: 'OperationSequence' - StoreType: smallint - NativeType: 'smallint' - DataType: Int16 - SystemType: Int16 - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: LocationId - ColumnName: 'LocationID' - StoreType: smallint - NativeType: 'smallint' - DataType: Int16 - SystemType: Int16 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: ScheduledStartDate - ColumnName: 'ScheduledStartDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ScheduledEndDate - ColumnName: 'ScheduledEndDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ActualStartDate - ColumnName: 'ActualStartDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ActualEndDate - ColumnName: 'ActualEndDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ActualResourceHrs - ColumnName: 'ActualResourceHrs' - StoreType: decimal(9,4) - NativeType: '@decimal' - DataType: Decimal - SystemType: Decimal - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: PlannedCost - ColumnName: 'PlannedCost' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ActualCost - ColumnName: 'ActualCost' - StoreType: money - NativeType: 'money' - DataType: Currency - SystemType: Decimal - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/WorkOrderScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/WorkOrderScript.yml deleted file mode 100644 index 5cb9979..0000000 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/WorkOrderScript.yml +++ /dev/null @@ -1,127 +0,0 @@ -EntityClass: WorkOrder -EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' -EntityBaseClass: DomainEntity -TableNaming: Singular -ContextProperty: WorkOrders -TableSchema: 'Production' -TableName: 'WorkOrder' -MappingClass: WorkOrderConfiguration -MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' -MapperClass: WorkOrderProfile -MapperNamespace: 'WorkOrderProfile' -MapperBaseClass: Profile -IsView: False -Properties: - - PropertyName: Id - ColumnName: 'WorkOrderID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAdd - IsNullable: False - IsPrimaryKey: True - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ProductId - ColumnName: 'ProductID' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: OrderQty - ColumnName: 'OrderQty' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: StockedQty - ColumnName: 'StockedQty' - StoreType: @int - NativeType: '@int' - DataType: Int32 - SystemType: Int32 - ValueGenerated: OnAddOrUpdate - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ScrappedQty - ColumnName: 'ScrappedQty' - StoreType: smallint - NativeType: 'smallint' - DataType: Int16 - SystemType: Int16 - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: StartDate - ColumnName: 'StartDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: EndDate - ColumnName: 'EndDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: True - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: DueDate - ColumnName: 'DueDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False - - PropertyName: ScrapReasonId - ColumnName: 'ScrapReasonID' - StoreType: smallint - NativeType: 'smallint' - DataType: Int16 - SystemType: Int16 - IsNullable: True - IsPrimaryKey: False - IsForeignKey: True - IsRowVersion: False - IsUnique: False - - PropertyName: ModifiedDate - ColumnName: 'ModifiedDate' - StoreType: datetime - NativeType: 'datetime' - DataType: DateTime - SystemType: DateTime - Default: '(getdate())' - IsNullable: False - IsPrimaryKey: False - IsForeignKey: False - IsRowVersion: False - IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/entity-generation.yml b/src/Platy.AdventureWorks.Repository/entity-generation.yml index 2e0a2aa..f753ce4 100644 --- a/src/Platy.AdventureWorks.Repository/entity-generation.yml +++ b/src/Platy.AdventureWorks.Repository/entity-generation.yml @@ -55,12 +55,12 @@ model: namespace: '{Project.Namespace}.Domain.Models' directory: '{Project.Directory}\Domain\{Entity.Name}\Models' read: - generate: true + generate: true name: '{Entity.Name}ReadModel' baseClass: IEntityReadModel document: true create: - generate: true + generate: true name: '{Entity.Name}CreateModel' baseClass: IEntityCreateModel document: true @@ -87,7 +87,7 @@ model: - vVendorWithContacts - vVendorWithAddresses update: - generate: true + generate: true name: '{Entity.Name}UpdateModel' document: true baseClass: IEntityUpdateModel @@ -182,10 +182,10 @@ script: directory: '{Project.Directory}\Events\Delete' overwrite: true # overwrite existing file merge: true -# model: -# - templatePath: '.\templates\cs-model.csx' # path to script file + model: + - templatePath: '.\templates\cs-model.csx' # path to script file # fileName: '{Model.Name}.cs' # filename to save script output # directory: '{Project.Directory}\Domain\Models' # directory to save script output # namespace: '{Project.Namespace}.Domain.Models' -# overwrite: true # overwrite existing file -# merge: true \ No newline at end of file + overwrite: true # overwrite existing file + merge: false \ No newline at end of file diff --git a/tests/Platy.AdventureWorks.Repository.Tests.Integration/DatabaseFixture.cs b/tests/Platy.AdventureWorks.Repository.Tests.Integration/DatabaseFixture.cs index 0c2e271..8d6c8d8 100644 --- a/tests/Platy.AdventureWorks.Repository.Tests.Integration/DatabaseFixture.cs +++ b/tests/Platy.AdventureWorks.Repository.Tests.Integration/DatabaseFixture.cs @@ -63,7 +63,7 @@ public DatabaseFixture() // 3. Add the adventureworks database to the service collection var serviceCollection = new ServiceCollection(); - serviceCollection.AddAdventureWorkDatabase(connectionString); + serviceCollection.AddAdventureWorkDatabase(connectionString ?? ""); // 4. Create the mapper configuration for the assembly serviceCollection.AddAutoMapper(cfg => { }, typeof(AddressProfile)); From e9709996eb92dfe90f64fe0a34c185353bea83cc Mon Sep 17 00:00:00 2001 From: platyscript <244315239+platyscript@users.noreply.github.com> Date: Mon, 1 Dec 2025 10:59:15 +0530 Subject: [PATCH 2/2] Sample Files --- EntityFrameworkCore.Generator | 2 +- .../Data/AdventureWorksContext.cs | 817 ++++++++++++++++++ .../Data/Entities/Address.cs | 138 +++ .../Data/Entities/AddressType.cs | 75 ++ .../Data/Entities/BillOfMaterials.cs | 138 +++ .../Data/Entities/BusinessEntity.cs | 102 +++ .../Data/Entities/BusinessEntityAddress.cs | 102 +++ .../Data/Entities/BusinessEntityContact.cs | 102 +++ .../Data/Entities/ContactType.cs | 66 ++ .../Data/Entities/CountryRegion.cs | 82 ++ .../Data/Entities/CountryRegionCurrency.cs | 74 ++ .../Data/Entities/CreditCard.cs | 102 +++ .../Data/Entities/Culture.cs | 64 ++ .../Data/Entities/Currency.cs | 82 ++ .../Data/Entities/CurrencyRate.cs | 120 +++ .../Data/Entities/Customer.cs | 130 +++ .../Data/Entities/Department.cs | 75 ++ .../Data/Entities/EmailAddress.cs | 85 ++ .../Data/Entities/Employee.cs | 218 +++++ .../Entities/EmployeeDepartmentHistory.cs | 112 +++ .../Data/Entities/EmployeePayHistory.cs | 83 ++ .../Data/Entities/Illustration.cs | 66 ++ .../Data/Entities/JobCandidate.cs | 75 ++ .../Data/Entities/Location.cs | 93 ++ .../Data/Entities/Password.cs | 82 ++ .../Data/Entities/Person.cs | 217 +++++ .../Data/Entities/PersonCreditCard.cs | 74 ++ .../Data/Entities/PersonPhone.cs | 84 ++ .../Data/Entities/PhoneNumberType.cs | 66 ++ .../Data/Entities/Product.cs | 417 +++++++++ .../Data/Entities/ProductCategory.cs | 75 ++ .../Data/Entities/ProductCostHistory.cs | 83 ++ .../Data/Entities/ProductDescription.cs | 75 ++ .../Data/Entities/ProductDocument.cs | 55 ++ .../Data/Entities/ProductInventory.cs | 110 +++ .../Data/Entities/ProductListPriceHistory.cs | 83 ++ .../Data/Entities/ProductModel.cs | 111 +++ .../Data/Entities/ProductModelIllustration.cs | 74 ++ .../ProductModelProductDescriptionCulture.cs | 93 ++ .../Data/Entities/ProductPhoto.cs | 93 ++ .../Data/Entities/ProductProductPhoto.cs | 83 ++ .../Data/Entities/ProductReview.cs | 111 +++ .../Data/Entities/ProductSubcategory.cs | 93 ++ .../Data/Entities/ProductVendor.cs | 155 ++++ .../Data/Entities/PurchaseOrderDetail.cs | 150 ++++ .../Data/Entities/PurchaseOrderHeader.cs | 184 ++++ .../Data/Entities/SalesOrderDetail.cs | 150 ++++ .../Data/Entities/SalesOrderHeader.cs | 356 ++++++++ .../Entities/SalesOrderHeaderSalesReason.cs | 74 ++ .../Data/Entities/SalesPerson.cs | 163 ++++ .../Data/Entities/SalesPersonQuotaHistory.cs | 83 ++ .../Data/Entities/SalesReason.cs | 75 ++ .../Data/Entities/SalesTaxRate.cs | 102 +++ .../Data/Entities/SalesTerritory.cs | 174 ++++ .../Data/Entities/SalesTerritoryHistory.cs | 102 +++ .../Data/Entities/ScrapReason.cs | 66 ++ .../Data/Entities/Shift.cs | 84 ++ .../Data/Entities/ShipMethod.cs | 102 +++ .../Data/Entities/ShoppingCartItem.cs | 93 ++ .../Data/Entities/SpecialOffer.cs | 138 +++ .../Data/Entities/SpecialOfferProduct.cs | 92 ++ .../Data/Entities/StateProvince.cs | 138 +++ .../Data/Entities/Store.cs | 109 +++ .../Data/Entities/TransactionHistory.cs | 120 +++ .../Entities/TransactionHistoryArchive.cs | 109 +++ .../Data/Entities/UnitMeasure.cs | 91 ++ .../Data/Entities/VAdditionalContactInfo.cs | 180 ++++ .../Data/Entities/VEmployee.cs | 189 ++++ .../Data/Entities/VEmployeeDepartment.cs | 117 +++ .../Entities/VEmployeeDepartmentHistory.cs | 126 +++ .../Data/Entities/VIndividualCustomer.cs | 189 ++++ .../Data/Entities/VJobCandidate.cs | 173 ++++ .../Data/Entities/VJobCandidateEducation.cs | 146 ++++ .../Data/Entities/VJobCandidateEmployment.cs | 128 +++ .../Data/Entities/VPersonDemographics.cs | 144 +++ .../Data/Entities/VProductAndDescription.cs | 72 ++ .../VProductModelCatalogDescription.cs | 254 ++++++ .../Entities/VProductModelInstructions.cs | 128 +++ .../Data/Entities/VSalesPerson.cs | 225 +++++ .../VSalesPersonSalesByFiscalYears.cs | 90 ++ .../Entities/VStateProvinceCountryRegion.cs | 90 ++ .../Data/Entities/VStoreWithAddresses.cs | 108 +++ .../Data/Entities/VStoreWithContacts.cs | 135 +++ .../Data/Entities/VStoreWithDemographics.cs | 135 +++ .../Data/Entities/VVendorWithAddresses.cs | 108 +++ .../Data/Entities/VVendorWithContacts.cs | 135 +++ .../Data/Entities/Vendor.cs | 127 +++ .../Data/Entities/WorkOrder.cs | 148 ++++ .../Data/Entities/WorkOrderRouting.cs | 156 ++++ .../AddressConfiguration.cs | 112 +++ .../AddressTypeConfiguration.cs | 77 ++ .../BillOfMaterialsConfiguration.cs | 126 +++ .../BusinessEntityAddressConfiguration.cs | 97 +++ .../BusinessEntityConfiguration.cs | 69 ++ .../BusinessEntityContactConfiguration.cs | 97 +++ .../ContactTypeConfiguration.cs | 69 ++ .../CountryRegionConfiguration.cs | 69 ++ .../CountryRegionCurrencyConfiguration.cs | 79 ++ .../CreditCardConfiguration.cs | 91 ++ .../CultureConfiguration.cs | 69 ++ .../CurrencyConfiguration.cs | 69 ++ .../CurrencyRateConfiguration.cs | 108 +++ .../CustomerConfiguration.cs | 111 +++ .../DepartmentConfiguration.cs | 77 ++ .../EmailAddressConfiguration.cs | 88 ++ .../EmployeeConfiguration.cs | 166 ++++ .../EmployeeDepartmentHistoryConfiguration.cs | 102 +++ .../EmployeePayHistoryConfiguration.cs | 86 ++ .../IllustrationConfiguration.cs | 67 ++ .../JobCandidateConfiguration.cs | 78 ++ .../LocationConfiguration.cs | 85 ++ .../PasswordConfiguration.cs | 89 ++ .../PersonConfiguration.cs | 146 ++++ .../PersonCreditCardConfiguration.cs | 77 ++ .../PersonPhoneConfiguration.cs | 85 ++ .../PhoneNumberTypeConfiguration.cs | 69 ++ .../ProductCategoryConfiguration.cs | 77 ++ .../ProductConfiguration.cs | 242 ++++++ .../ProductCostHistoryConfiguration.cs | 85 ++ .../ProductDescriptionConfiguration.cs | 77 ++ .../ProductDocumentConfiguration.cs | 65 ++ .../ProductInventoryConfiguration.cs | 108 +++ .../ProductListPriceHistoryConfiguration.cs | 85 ++ .../ProductModelConfiguration.cs | 89 ++ .../ProductModelIllustrationConfiguration.cs | 77 ++ ...lProductDescriptionCultureConfiguration.cs | 90 ++ .../ProductPhotoConfiguration.cs | 87 ++ .../ProductProductPhotoConfiguration.cs | 85 ++ .../ProductReviewConfiguration.cs | 111 +++ .../ProductSubcategoryConfiguration.cs | 89 ++ .../ProductVendorConfiguration.cs | 136 +++ .../PurchaseOrderDetailConfiguration.cs | 136 +++ .../PurchaseOrderHeaderConfiguration.cs | 159 ++++ .../SalesOrderDetailConfiguration.cs | 137 +++ .../SalesOrderHeaderConfiguration.cs | 275 ++++++ ...alesOrderHeaderSalesReasonConfiguration.cs | 77 ++ .../SalesPersonConfiguration.cs | 122 +++ .../SalesPersonQuotaHistoryConfiguration.cs | 87 ++ .../SalesReasonConfiguration.cs | 77 ++ .../SalesTaxRateConfiguration.cs | 104 +++ .../SalesTerritoryConfiguration.cs | 130 +++ .../SalesTerritoryHistoryConfiguration.cs | 98 +++ .../ScrapReasonConfiguration.cs | 69 ++ .../EntityConfiguration/ShiftConfiguration.cs | 83 ++ .../ShipMethodConfiguration.cs | 93 ++ .../ShoppingCartItemConfiguration.cs | 97 +++ .../SpecialOfferConfiguration.cs | 129 +++ .../SpecialOfferProductConfiguration.cs | 85 ++ .../StateProvinceConfiguration.cs | 118 +++ .../EntityConfiguration/StoreConfiguration.cs | 98 +++ .../TransactionHistoryArchiveConfiguration.cs | 112 +++ .../TransactionHistoryConfiguration.cs | 118 +++ .../UnitMeasureConfiguration.cs | 69 ++ .../VAdditionalContactInfoConfiguration.cs | 163 ++++ .../VEmployeeConfiguration.cs | 178 ++++ .../VEmployeeDepartmentConfiguration.cs | 120 +++ ...VEmployeeDepartmentHistoryConfiguration.cs | 126 +++ .../VIndividualCustomerConfiguration.cs | 178 ++++ .../VJobCandidateConfiguration.cs | 154 ++++ .../VJobCandidateEducationConfiguration.cs | 134 +++ .../VJobCandidateEmploymentConfiguration.cs | 115 +++ .../VPersonDemographicsConfiguration.cs | 129 +++ .../VProductAndDescriptionConfiguration.cs | 84 ++ ...uctModelCatalogDescriptionConfiguration.cs | 219 +++++ .../VProductModelInstructionsConfiguration.cs | 118 +++ .../VSalesPersonConfiguration.cs | 206 +++++ ...esPersonSalesByFiscalYearsConfiguration.cs | 92 ++ ...StateProvinceCountryRegionConfiguration.cs | 98 +++ .../VStoreWithAddressesConfiguration.cs | 115 +++ .../VStoreWithContactsConfiguration.cs | 133 +++ .../VStoreWithDemographicsConfiguration.cs | 125 +++ .../VVendorWithAddressesConfiguration.cs | 115 +++ .../VVendorWithContactsConfiguration.cs | 133 +++ .../VendorConfiguration.cs | 111 +++ .../WorkOrderConfiguration.cs | 126 +++ .../WorkOrderRoutingConfiguration.cs | 136 +++ .../Domain/Address/Mapping/AddressProfile.cs | 35 + .../Address/Models/AddressCreateModel.cs | 79 ++ .../Domain/Address/Models/AddressReadModel.cs | 79 ++ .../Address/Models/AddressUpdateModel.cs | 79 ++ .../Validation/AddressCreateModelValidator.cs | 31 + .../Validation/AddressUpdateModelValidator.cs | 31 + .../AddressType/Mapping/AddressTypeProfile.cs | 35 + .../Models/AddressTypeCreateModel.cs | 47 + .../Models/AddressTypeReadModel.cs | 47 + .../Models/AddressTypeUpdateModel.cs | 47 + .../AddressTypeCreateModelValidator.cs | 26 + .../AddressTypeUpdateModelValidator.cs | 26 + .../Mapping/BillOfMaterialsProfile.cs | 35 + .../Models/BillOfMaterialsCreateModel.cs | 87 ++ .../Models/BillOfMaterialsReadModel.cs | 87 ++ .../Models/BillOfMaterialsUpdateModel.cs | 87 ++ .../BillOfMaterialsCreateModelValidator.cs | 26 + .../BillOfMaterialsUpdateModelValidator.cs | 26 + .../Mapping/BusinessEntityProfile.cs | 35 + .../Models/BusinessEntityCreateModel.cs | 39 + .../Models/BusinessEntityReadModel.cs | 39 + .../Models/BusinessEntityUpdateModel.cs | 39 + .../BusinessEntityCreateModelValidator.cs | 24 + .../BusinessEntityUpdateModelValidator.cs | 24 + .../Mapping/BusinessEntityAddressProfile.cs | 35 + .../BusinessEntityAddressCreateModel.cs | 55 ++ .../Models/BusinessEntityAddressReadModel.cs | 55 ++ .../BusinessEntityAddressUpdateModel.cs | 55 ++ ...sinessEntityAddressCreateModelValidator.cs | 24 + ...sinessEntityAddressUpdateModelValidator.cs | 24 + .../Mapping/BusinessEntityContactProfile.cs | 35 + .../BusinessEntityContactCreateModel.cs | 55 ++ .../Models/BusinessEntityContactReadModel.cs | 55 ++ .../BusinessEntityContactUpdateModel.cs | 55 ++ ...sinessEntityContactCreateModelValidator.cs | 24 + ...sinessEntityContactUpdateModelValidator.cs | 24 + .../ContactType/Mapping/ContactTypeProfile.cs | 35 + .../Models/ContactTypeCreateModel.cs | 39 + .../Models/ContactTypeReadModel.cs | 39 + .../Models/ContactTypeUpdateModel.cs | 39 + .../ContactTypeCreateModelValidator.cs | 26 + .../ContactTypeUpdateModelValidator.cs | 26 + .../Mapping/CountryRegionProfile.cs | 35 + .../Models/CountryRegionCreateModel.cs | 39 + .../Models/CountryRegionReadModel.cs | 39 + .../Models/CountryRegionUpdateModel.cs | 39 + .../CountryRegionCreateModelValidator.cs | 28 + .../CountryRegionUpdateModelValidator.cs | 28 + .../Mapping/CountryRegionCurrencyProfile.cs | 35 + .../CountryRegionCurrencyCreateModel.cs | 39 + .../Models/CountryRegionCurrencyReadModel.cs | 39 + .../CountryRegionCurrencyUpdateModel.cs | 39 + ...untryRegionCurrencyCreateModelValidator.cs | 28 + ...untryRegionCurrencyUpdateModelValidator.cs | 28 + .../CreditCard/Mapping/CreditCardProfile.cs | 35 + .../Models/CreditCardCreateModel.cs | 63 ++ .../CreditCard/Models/CreditCardReadModel.cs | 63 ++ .../Models/CreditCardUpdateModel.cs | 63 ++ .../CreditCardCreateModelValidator.cs | 28 + .../CreditCardUpdateModelValidator.cs | 28 + .../Domain/Culture/Mapping/CultureProfile.cs | 35 + .../Culture/Models/CultureCreateModel.cs | 39 + .../Domain/Culture/Models/CultureReadModel.cs | 39 + .../Culture/Models/CultureUpdateModel.cs | 39 + .../Validation/CultureCreateModelValidator.cs | 28 + .../Validation/CultureUpdateModelValidator.cs | 28 + .../Currency/Mapping/CurrencyProfile.cs | 35 + .../Currency/Models/CurrencyCreateModel.cs | 39 + .../Currency/Models/CurrencyReadModel.cs | 39 + .../Currency/Models/CurrencyUpdateModel.cs | 39 + .../CurrencyCreateModelValidator.cs | 28 + .../CurrencyUpdateModelValidator.cs | 28 + .../Mapping/CurrencyRateProfile.cs | 35 + .../Models/CurrencyRateCreateModel.cs | 71 ++ .../Models/CurrencyRateReadModel.cs | 71 ++ .../Models/CurrencyRateUpdateModel.cs | 71 ++ .../CurrencyRateCreateModelValidator.cs | 28 + .../CurrencyRateUpdateModelValidator.cs | 28 + .../Customer/Mapping/CustomerProfile.cs | 35 + .../Customer/Models/CustomerCreateModel.cs | 71 ++ .../Customer/Models/CustomerReadModel.cs | 71 ++ .../Customer/Models/CustomerUpdateModel.cs | 71 ++ .../CustomerCreateModelValidator.cs | 24 + .../CustomerUpdateModelValidator.cs | 24 + .../Department/Mapping/DepartmentProfile.cs | 35 + .../Models/DepartmentCreateModel.cs | 47 + .../Department/Models/DepartmentReadModel.cs | 47 + .../Models/DepartmentUpdateModel.cs | 47 + .../DepartmentCreateModelValidator.cs | 28 + .../DepartmentUpdateModelValidator.cs | 28 + .../Mapping/EmailAddressProfile.cs | 35 + .../Models/EmailAddressCreateModel.cs | 55 ++ .../Models/EmailAddressReadModel.cs | 55 ++ .../Models/EmailAddressUpdateModel.cs | 55 ++ .../EmailAddressCreateModelValidator.cs | 25 + .../EmailAddressUpdateModelValidator.cs | 25 + .../Employee/Mapping/EmployeeProfile.cs | 35 + .../Employee/Models/EmployeeCreateModel.cs | 135 +++ .../Employee/Models/EmployeeReadModel.cs | 135 +++ .../Employee/Models/EmployeeUpdateModel.cs | 135 +++ .../EmployeeCreateModelValidator.cs | 34 + .../EmployeeUpdateModelValidator.cs | 34 + .../EmployeeDepartmentHistoryProfile.cs | 35 + .../EmployeeDepartmentHistoryCreateModel.cs | 63 ++ .../EmployeeDepartmentHistoryReadModel.cs | 63 ++ .../EmployeeDepartmentHistoryUpdateModel.cs | 63 ++ ...eeDepartmentHistoryCreateModelValidator.cs | 24 + ...eeDepartmentHistoryUpdateModelValidator.cs | 24 + .../Mapping/EmployeePayHistoryProfile.cs | 35 + .../Models/EmployeePayHistoryCreateModel.cs | 55 ++ .../Models/EmployeePayHistoryReadModel.cs | 55 ++ .../Models/EmployeePayHistoryUpdateModel.cs | 55 ++ .../EmployeePayHistoryCreateModelValidator.cs | 24 + .../EmployeePayHistoryUpdateModelValidator.cs | 24 + .../Mapping/IllustrationProfile.cs | 35 + .../Models/IllustrationCreateModel.cs | 39 + .../Models/IllustrationReadModel.cs | 39 + .../Models/IllustrationUpdateModel.cs | 39 + .../IllustrationCreateModelValidator.cs | 24 + .../IllustrationUpdateModelValidator.cs | 24 + .../Mapping/JobCandidateProfile.cs | 35 + .../Models/JobCandidateCreateModel.cs | 47 + .../Models/JobCandidateReadModel.cs | 47 + .../Models/JobCandidateUpdateModel.cs | 47 + .../JobCandidateCreateModelValidator.cs | 24 + .../JobCandidateUpdateModelValidator.cs | 24 + .../Location/Mapping/LocationProfile.cs | 35 + .../Location/Models/LocationCreateModel.cs | 55 ++ .../Location/Models/LocationReadModel.cs | 55 ++ .../Location/Models/LocationUpdateModel.cs | 55 ++ .../LocationCreateModelValidator.cs | 26 + .../LocationUpdateModelValidator.cs | 26 + .../Password/Mapping/PasswordProfile.cs | 35 + .../Password/Models/PasswordCreateModel.cs | 55 ++ .../Password/Models/PasswordReadModel.cs | 55 ++ .../Password/Models/PasswordUpdateModel.cs | 55 ++ .../PasswordCreateModelValidator.cs | 28 + .../PasswordUpdateModelValidator.cs | 28 + .../Domain/Person/Mapping/PersonProfile.cs | 35 + .../Domain/Person/Models/PersonCreateModel.cs | 119 +++ .../Domain/Person/Models/PersonReadModel.cs | 119 +++ .../Domain/Person/Models/PersonUpdateModel.cs | 119 +++ .../Validation/PersonCreateModelValidator.cs | 33 + .../Validation/PersonUpdateModelValidator.cs | 33 + .../Mapping/PersonCreditCardProfile.cs | 35 + .../Models/PersonCreditCardCreateModel.cs | 39 + .../Models/PersonCreditCardReadModel.cs | 39 + .../Models/PersonCreditCardUpdateModel.cs | 39 + .../PersonCreditCardCreateModelValidator.cs | 24 + .../PersonCreditCardUpdateModelValidator.cs | 24 + .../PersonPhone/Mapping/PersonPhoneProfile.cs | 35 + .../Models/PersonPhoneCreateModel.cs | 47 + .../Models/PersonPhoneReadModel.cs | 47 + .../Models/PersonPhoneUpdateModel.cs | 47 + .../PersonPhoneCreateModelValidator.cs | 26 + .../PersonPhoneUpdateModelValidator.cs | 26 + .../Mapping/PhoneNumberTypeProfile.cs | 35 + .../Models/PhoneNumberTypeCreateModel.cs | 39 + .../Models/PhoneNumberTypeReadModel.cs | 39 + .../Models/PhoneNumberTypeUpdateModel.cs | 39 + .../PhoneNumberTypeCreateModelValidator.cs | 26 + .../PhoneNumberTypeUpdateModelValidator.cs | 26 + .../Domain/Product/Mapping/ProductProfile.cs | 35 + .../Product/Models/ProductCreateModel.cs | 215 +++++ .../Domain/Product/Models/ProductReadModel.cs | 215 +++++ .../Product/Models/ProductUpdateModel.cs | 215 +++++ .../Validation/ProductCreateModelValidator.cs | 35 + .../Validation/ProductUpdateModelValidator.cs | 35 + .../Mapping/ProductCategoryProfile.cs | 35 + .../Models/ProductCategoryCreateModel.cs | 47 + .../Models/ProductCategoryReadModel.cs | 47 + .../Models/ProductCategoryUpdateModel.cs | 47 + .../ProductCategoryCreateModelValidator.cs | 26 + .../ProductCategoryUpdateModelValidator.cs | 26 + .../Mapping/ProductCostHistoryProfile.cs | 35 + .../Models/ProductCostHistoryCreateModel.cs | 55 ++ .../Models/ProductCostHistoryReadModel.cs | 55 ++ .../Models/ProductCostHistoryUpdateModel.cs | 55 ++ .../ProductCostHistoryCreateModelValidator.cs | 24 + .../ProductCostHistoryUpdateModelValidator.cs | 24 + .../Mapping/ProductDescriptionProfile.cs | 35 + .../Models/ProductDescriptionCreateModel.cs | 47 + .../Models/ProductDescriptionReadModel.cs | 47 + .../Models/ProductDescriptionUpdateModel.cs | 47 + .../ProductDescriptionCreateModelValidator.cs | 26 + .../ProductDescriptionUpdateModelValidator.cs | 26 + .../Mapping/ProductDocumentProfile.cs | 35 + .../Models/ProductDocumentCreateModel.cs | 31 + .../Models/ProductDocumentReadModel.cs | 31 + .../Models/ProductDocumentUpdateModel.cs | 31 + .../ProductDocumentCreateModelValidator.cs | 24 + .../ProductDocumentUpdateModelValidator.cs | 24 + .../Mapping/ProductInventoryProfile.cs | 35 + .../Models/ProductInventoryCreateModel.cs | 71 ++ .../Models/ProductInventoryReadModel.cs | 71 ++ .../Models/ProductInventoryUpdateModel.cs | 71 ++ .../ProductInventoryCreateModelValidator.cs | 26 + .../ProductInventoryUpdateModelValidator.cs | 26 + .../Mapping/ProductListPriceHistoryProfile.cs | 35 + .../ProductListPriceHistoryCreateModel.cs | 55 ++ .../ProductListPriceHistoryReadModel.cs | 55 ++ .../ProductListPriceHistoryUpdateModel.cs | 55 ++ ...uctListPriceHistoryCreateModelValidator.cs | 24 + ...uctListPriceHistoryUpdateModelValidator.cs | 24 + .../Mapping/ProductModelProfile.cs | 35 + .../Models/ProductModelCreateModel.cs | 63 ++ .../Models/ProductModelReadModel.cs | 63 ++ .../Models/ProductModelUpdateModel.cs | 63 ++ .../ProductModelCreateModelValidator.cs | 26 + .../ProductModelUpdateModelValidator.cs | 26 + .../ProductModelIllustrationProfile.cs | 35 + .../ProductModelIllustrationCreateModel.cs | 39 + .../ProductModelIllustrationReadModel.cs | 39 + .../ProductModelIllustrationUpdateModel.cs | 39 + ...ctModelIllustrationCreateModelValidator.cs | 24 + ...ctModelIllustrationUpdateModelValidator.cs | 24 + ...ctModelProductDescriptionCultureProfile.cs | 35 + ...delProductDescriptionCultureCreateModel.cs | 47 + ...ModelProductDescriptionCultureReadModel.cs | 47 + ...delProductDescriptionCultureUpdateModel.cs | 47 + ...tDescriptionCultureCreateModelValidator.cs | 26 + ...tDescriptionCultureUpdateModelValidator.cs | 26 + .../Mapping/ProductPhotoProfile.cs | 35 + .../Models/ProductPhotoCreateModel.cs | 63 ++ .../Models/ProductPhotoReadModel.cs | 63 ++ .../Models/ProductPhotoUpdateModel.cs | 63 ++ .../ProductPhotoCreateModelValidator.cs | 26 + .../ProductPhotoUpdateModelValidator.cs | 26 + .../Mapping/ProductProductPhotoProfile.cs | 35 + .../Models/ProductProductPhotoCreateModel.cs | 47 + .../Models/ProductProductPhotoReadModel.cs | 47 + .../Models/ProductProductPhotoUpdateModel.cs | 47 + ...ProductProductPhotoCreateModelValidator.cs | 24 + ...ProductProductPhotoUpdateModelValidator.cs | 24 + .../Mapping/ProductReviewProfile.cs | 35 + .../Models/ProductReviewCreateModel.cs | 79 ++ .../Models/ProductReviewReadModel.cs | 79 ++ .../Models/ProductReviewUpdateModel.cs | 79 ++ .../ProductReviewCreateModelValidator.cs | 29 + .../ProductReviewUpdateModelValidator.cs | 29 + .../Mapping/ProductSubcategoryProfile.cs | 35 + .../Models/ProductSubcategoryCreateModel.cs | 55 ++ .../Models/ProductSubcategoryReadModel.cs | 55 ++ .../Models/ProductSubcategoryUpdateModel.cs | 55 ++ .../ProductSubcategoryCreateModelValidator.cs | 26 + .../ProductSubcategoryUpdateModelValidator.cs | 26 + .../Mapping/ProductVendorProfile.cs | 35 + .../Models/ProductVendorCreateModel.cs | 103 +++ .../Models/ProductVendorReadModel.cs | 103 +++ .../Models/ProductVendorUpdateModel.cs | 103 +++ .../ProductVendorCreateModelValidator.cs | 26 + .../ProductVendorUpdateModelValidator.cs | 26 + .../Mapping/PurchaseOrderDetailProfile.cs | 35 + .../Models/PurchaseOrderDetailCreateModel.cs | 103 +++ .../Models/PurchaseOrderDetailReadModel.cs | 103 +++ .../Models/PurchaseOrderDetailUpdateModel.cs | 103 +++ ...PurchaseOrderDetailCreateModelValidator.cs | 24 + ...PurchaseOrderDetailUpdateModelValidator.cs | 24 + .../Mapping/PurchaseOrderHeaderProfile.cs | 35 + .../Models/PurchaseOrderHeaderCreateModel.cs | 119 +++ .../Models/PurchaseOrderHeaderReadModel.cs | 119 +++ .../Models/PurchaseOrderHeaderUpdateModel.cs | 119 +++ ...PurchaseOrderHeaderCreateModelValidator.cs | 24 + ...PurchaseOrderHeaderUpdateModelValidator.cs | 24 + .../Mapping/SalesOrderDetailProfile.cs | 35 + .../Models/SalesOrderDetailCreateModel.cs | 103 +++ .../Models/SalesOrderDetailReadModel.cs | 103 +++ .../Models/SalesOrderDetailUpdateModel.cs | 103 +++ .../SalesOrderDetailCreateModelValidator.cs | 25 + .../SalesOrderDetailUpdateModelValidator.cs | 25 + .../Mapping/SalesOrderHeaderProfile.cs | 35 + .../Models/SalesOrderHeaderCreateModel.cs | 223 +++++ .../Models/SalesOrderHeaderReadModel.cs | 223 +++++ .../Models/SalesOrderHeaderUpdateModel.cs | 223 +++++ .../SalesOrderHeaderCreateModelValidator.cs | 28 + .../SalesOrderHeaderUpdateModelValidator.cs | 28 + .../SalesOrderHeaderSalesReasonProfile.cs | 35 + .../SalesOrderHeaderSalesReasonCreateModel.cs | 39 + .../SalesOrderHeaderSalesReasonReadModel.cs | 39 + .../SalesOrderHeaderSalesReasonUpdateModel.cs | 39 + ...erHeaderSalesReasonCreateModelValidator.cs | 24 + ...erHeaderSalesReasonUpdateModelValidator.cs | 24 + .../SalesPerson/Mapping/SalesPersonProfile.cs | 35 + .../Models/SalesPersonCreateModel.cs | 87 ++ .../Models/SalesPersonReadModel.cs | 87 ++ .../Models/SalesPersonUpdateModel.cs | 87 ++ .../SalesPersonCreateModelValidator.cs | 24 + .../SalesPersonUpdateModelValidator.cs | 24 + .../Mapping/SalesPersonQuotaHistoryProfile.cs | 35 + .../SalesPersonQuotaHistoryCreateModel.cs | 55 ++ .../SalesPersonQuotaHistoryReadModel.cs | 55 ++ .../SalesPersonQuotaHistoryUpdateModel.cs | 55 ++ ...sPersonQuotaHistoryCreateModelValidator.cs | 24 + ...sPersonQuotaHistoryUpdateModelValidator.cs | 24 + .../SalesReason/Mapping/SalesReasonProfile.cs | 35 + .../Models/SalesReasonCreateModel.cs | 47 + .../Models/SalesReasonReadModel.cs | 47 + .../Models/SalesReasonUpdateModel.cs | 47 + .../SalesReasonCreateModelValidator.cs | 28 + .../SalesReasonUpdateModelValidator.cs | 28 + .../Mapping/SalesTaxRateProfile.cs | 35 + .../Models/SalesTaxRateCreateModel.cs | 71 ++ .../Models/SalesTaxRateReadModel.cs | 71 ++ .../Models/SalesTaxRateUpdateModel.cs | 71 ++ .../SalesTaxRateCreateModelValidator.cs | 26 + .../SalesTaxRateUpdateModelValidator.cs | 26 + .../Mapping/SalesTerritoryProfile.cs | 35 + .../Models/SalesTerritoryCreateModel.cs | 95 ++ .../Models/SalesTerritoryReadModel.cs | 95 ++ .../Models/SalesTerritoryUpdateModel.cs | 95 ++ .../SalesTerritoryCreateModelValidator.cs | 30 + .../SalesTerritoryUpdateModelValidator.cs | 30 + .../Mapping/SalesTerritoryHistoryProfile.cs | 35 + .../SalesTerritoryHistoryCreateModel.cs | 63 ++ .../Models/SalesTerritoryHistoryReadModel.cs | 63 ++ .../SalesTerritoryHistoryUpdateModel.cs | 63 ++ ...lesTerritoryHistoryCreateModelValidator.cs | 24 + ...lesTerritoryHistoryUpdateModelValidator.cs | 24 + .../ScrapReason/Mapping/ScrapReasonProfile.cs | 35 + .../Models/ScrapReasonCreateModel.cs | 39 + .../Models/ScrapReasonReadModel.cs | 39 + .../Models/ScrapReasonUpdateModel.cs | 39 + .../ScrapReasonCreateModelValidator.cs | 26 + .../ScrapReasonUpdateModelValidator.cs | 26 + .../Domain/Shift/Mapping/ShiftProfile.cs | 35 + .../Domain/Shift/Models/ShiftCreateModel.cs | 55 ++ .../Domain/Shift/Models/ShiftReadModel.cs | 55 ++ .../Domain/Shift/Models/ShiftUpdateModel.cs | 55 ++ .../Validation/ShiftCreateModelValidator.cs | 26 + .../Validation/ShiftUpdateModelValidator.cs | 26 + .../ShipMethod/Mapping/ShipMethodProfile.cs | 35 + .../Models/ShipMethodCreateModel.cs | 63 ++ .../ShipMethod/Models/ShipMethodReadModel.cs | 63 ++ .../Models/ShipMethodUpdateModel.cs | 63 ++ .../ShipMethodCreateModelValidator.cs | 26 + .../ShipMethodUpdateModelValidator.cs | 26 + .../Mapping/ShoppingCartItemProfile.cs | 35 + .../Models/ShoppingCartItemCreateModel.cs | 63 ++ .../Models/ShoppingCartItemReadModel.cs | 63 ++ .../Models/ShoppingCartItemUpdateModel.cs | 63 ++ .../ShoppingCartItemCreateModelValidator.cs | 26 + .../ShoppingCartItemUpdateModelValidator.cs | 26 + .../Mapping/SpecialOfferProfile.cs | 35 + .../Models/SpecialOfferCreateModel.cs | 103 +++ .../Models/SpecialOfferReadModel.cs | 103 +++ .../Models/SpecialOfferUpdateModel.cs | 103 +++ .../SpecialOfferCreateModelValidator.cs | 30 + .../SpecialOfferUpdateModelValidator.cs | 30 + .../Mapping/SpecialOfferProductProfile.cs | 35 + .../Models/SpecialOfferProductCreateModel.cs | 47 + .../Models/SpecialOfferProductReadModel.cs | 47 + .../Models/SpecialOfferProductUpdateModel.cs | 47 + ...SpecialOfferProductCreateModelValidator.cs | 24 + ...SpecialOfferProductUpdateModelValidator.cs | 24 + .../Mapping/StateProvinceProfile.cs | 35 + .../Models/StateProvinceCreateModel.cs | 79 ++ .../Models/StateProvinceReadModel.cs | 79 ++ .../Models/StateProvinceUpdateModel.cs | 79 ++ .../StateProvinceCreateModelValidator.cs | 30 + .../StateProvinceUpdateModelValidator.cs | 30 + .../Domain/Store/Mapping/StoreProfile.cs | 35 + .../Domain/Store/Models/StoreCreateModel.cs | 63 ++ .../Domain/Store/Models/StoreReadModel.cs | 63 ++ .../Domain/Store/Models/StoreUpdateModel.cs | 63 ++ .../Validation/StoreCreateModelValidator.cs | 26 + .../Validation/StoreUpdateModelValidator.cs | 26 + .../Mapping/TransactionHistoryProfile.cs | 35 + .../Models/TransactionHistoryCreateModel.cs | 87 ++ .../Models/TransactionHistoryReadModel.cs | 87 ++ .../Models/TransactionHistoryUpdateModel.cs | 87 ++ .../TransactionHistoryCreateModelValidator.cs | 26 + .../TransactionHistoryUpdateModelValidator.cs | 26 + .../TransactionHistoryArchiveProfile.cs | 35 + .../TransactionHistoryArchiveCreateModel.cs | 87 ++ .../TransactionHistoryArchiveReadModel.cs | 87 ++ .../TransactionHistoryArchiveUpdateModel.cs | 87 ++ ...ctionHistoryArchiveCreateModelValidator.cs | 26 + ...ctionHistoryArchiveUpdateModelValidator.cs | 26 + .../UnitMeasure/Mapping/UnitMeasureProfile.cs | 35 + .../Models/UnitMeasureCreateModel.cs | 39 + .../Models/UnitMeasureReadModel.cs | 39 + .../Models/UnitMeasureUpdateModel.cs | 39 + .../UnitMeasureCreateModelValidator.cs | 28 + .../UnitMeasureUpdateModelValidator.cs | 28 + .../Mapping/VAdditionalContactInfoProfile.cs | 35 + .../VAdditionalContactInfoCreateModel.cs | 151 ++++ .../Models/VAdditionalContactInfoReadModel.cs | 151 ++++ .../VAdditionalContactInfoUpdateModel.cs | 151 ++++ ...ditionalContactInfoCreateModelValidator.cs | 37 + ...ditionalContactInfoUpdateModelValidator.cs | 37 + .../VEmployee/Mapping/VEmployeeProfile.cs | 35 + .../VEmployee/Models/VEmployeeCreateModel.cs | 159 ++++ .../VEmployee/Models/VEmployeeReadModel.cs | 159 ++++ .../VEmployee/Models/VEmployeeUpdateModel.cs | 159 ++++ .../VEmployeeCreateModelValidator.cs | 47 + .../VEmployeeUpdateModelValidator.cs | 47 + .../Mapping/VEmployeeDepartmentProfile.cs | 35 + .../Models/VEmployeeDepartmentCreateModel.cs | 95 ++ .../Models/VEmployeeDepartmentReadModel.cs | 95 ++ .../Models/VEmployeeDepartmentUpdateModel.cs | 95 ++ ...VEmployeeDepartmentCreateModelValidator.cs | 37 + ...VEmployeeDepartmentUpdateModelValidator.cs | 37 + .../VEmployeeDepartmentHistoryProfile.cs | 35 + .../VEmployeeDepartmentHistoryCreateModel.cs | 103 +++ .../VEmployeeDepartmentHistoryReadModel.cs | 103 +++ .../VEmployeeDepartmentHistoryUpdateModel.cs | 103 +++ ...eeDepartmentHistoryCreateModelValidator.cs | 37 + ...eeDepartmentHistoryUpdateModelValidator.cs | 37 + .../Mapping/VIndividualCustomerProfile.cs | 35 + .../Models/VIndividualCustomerCreateModel.cs | 159 ++++ .../Models/VIndividualCustomerReadModel.cs | 159 ++++ .../Models/VIndividualCustomerUpdateModel.cs | 159 ++++ ...VIndividualCustomerCreateModelValidator.cs | 47 + ...VIndividualCustomerUpdateModelValidator.cs | 47 + .../Mapping/VJobCandidateProfile.cs | 35 + .../Models/VJobCandidateCreateModel.cs | 143 +++ .../Models/VJobCandidateReadModel.cs | 143 +++ .../Models/VJobCandidateUpdateModel.cs | 143 +++ .../VJobCandidateCreateModelValidator.cs | 34 + .../VJobCandidateUpdateModelValidator.cs | 34 + .../Mapping/VJobCandidateEducationProfile.cs | 35 + .../VJobCandidateEducationCreateModel.cs | 119 +++ .../Models/VJobCandidateEducationReadModel.cs | 119 +++ .../VJobCandidateEducationUpdateModel.cs | 119 +++ ...bCandidateEducationCreateModelValidator.cs | 33 + ...bCandidateEducationUpdateModelValidator.cs | 33 + .../Mapping/VJobCandidateEmploymentProfile.cs | 35 + .../VJobCandidateEmploymentCreateModel.cs | 103 +++ .../VJobCandidateEmploymentReadModel.cs | 103 +++ .../VJobCandidateEmploymentUpdateModel.cs | 103 +++ ...CandidateEmploymentCreateModelValidator.cs | 26 + ...CandidateEmploymentUpdateModelValidator.cs | 26 + .../Mapping/VPersonDemographicsProfile.cs | 35 + .../Models/VPersonDemographicsCreateModel.cs | 119 +++ .../Models/VPersonDemographicsReadModel.cs | 119 +++ .../Models/VPersonDemographicsUpdateModel.cs | 119 +++ ...VPersonDemographicsCreateModelValidator.cs | 29 + ...VPersonDemographicsUpdateModelValidator.cs | 29 + .../Mapping/VProductAndDescriptionProfile.cs | 35 + .../VProductAndDescriptionCreateModel.cs | 55 ++ .../Models/VProductAndDescriptionReadModel.cs | 55 ++ .../VProductAndDescriptionUpdateModel.cs | 55 ++ ...oductAndDescriptionCreateModelValidator.cs | 32 + ...oductAndDescriptionUpdateModelValidator.cs | 32 + .../VProductModelCatalogDescriptionProfile.cs | 35 + ...oductModelCatalogDescriptionCreateModel.cs | 215 +++++ ...ProductModelCatalogDescriptionReadModel.cs | 215 +++++ ...oductModelCatalogDescriptionUpdateModel.cs | 215 +++++ ...lCatalogDescriptionCreateModelValidator.cs | 44 + ...lCatalogDescriptionUpdateModelValidator.cs | 44 + .../VProductModelInstructionsProfile.cs | 35 + .../VProductModelInstructionsCreateModel.cs | 103 +++ .../VProductModelInstructionsReadModel.cs | 103 +++ .../VProductModelInstructionsUpdateModel.cs | 103 +++ ...ctModelInstructionsCreateModelValidator.cs | 27 + ...ctModelInstructionsUpdateModelValidator.cs | 27 + .../Mapping/VSalesPersonProfile.cs | 35 + .../Models/VSalesPersonCreateModel.cs | 191 ++++ .../Models/VSalesPersonReadModel.cs | 191 ++++ .../Models/VSalesPersonUpdateModel.cs | 191 ++++ .../VSalesPersonCreateModelValidator.cs | 49 ++ .../VSalesPersonUpdateModelValidator.cs | 49 ++ .../VSalesPersonSalesByFiscalYearsProfile.cs | 35 + ...alesPersonSalesByFiscalYearsCreateModel.cs | 71 ++ ...VSalesPersonSalesByFiscalYearsReadModel.cs | 71 ++ ...alesPersonSalesByFiscalYearsUpdateModel.cs | 71 ++ ...nSalesByFiscalYearsCreateModelValidator.cs | 29 + ...nSalesByFiscalYearsUpdateModelValidator.cs | 29 + .../VStateProvinceCountryRegionProfile.cs | 35 + .../VStateProvinceCountryRegionCreateModel.cs | 71 ++ .../VStateProvinceCountryRegionReadModel.cs | 71 ++ .../VStateProvinceCountryRegionUpdateModel.cs | 71 ++ ...ovinceCountryRegionCreateModelValidator.cs | 32 + ...ovinceCountryRegionUpdateModelValidator.cs | 32 + .../Mapping/VStoreWithAddressesProfile.cs | 35 + .../Models/VStoreWithAddressesCreateModel.cs | 87 ++ .../Models/VStoreWithAddressesReadModel.cs | 87 ++ .../Models/VStoreWithAddressesUpdateModel.cs | 87 ++ ...VStoreWithAddressesCreateModelValidator.cs | 39 + ...VStoreWithAddressesUpdateModelValidator.cs | 39 + .../Mapping/VStoreWithContactsProfile.cs | 35 + .../Models/VStoreWithContactsCreateModel.cs | 111 +++ .../Models/VStoreWithContactsReadModel.cs | 111 +++ .../Models/VStoreWithContactsUpdateModel.cs | 111 +++ .../VStoreWithContactsCreateModelValidator.cs | 38 + .../VStoreWithContactsUpdateModelValidator.cs | 38 + .../Mapping/VStoreWithDemographicsProfile.cs | 35 + .../VStoreWithDemographicsCreateModel.cs | 111 +++ .../Models/VStoreWithDemographicsReadModel.cs | 111 +++ .../VStoreWithDemographicsUpdateModel.cs | 111 +++ ...oreWithDemographicsCreateModelValidator.cs | 31 + ...oreWithDemographicsUpdateModelValidator.cs | 31 + .../Mapping/VVendorWithAddressesProfile.cs | 35 + .../Models/VVendorWithAddressesCreateModel.cs | 87 ++ .../Models/VVendorWithAddressesReadModel.cs | 87 ++ .../Models/VVendorWithAddressesUpdateModel.cs | 87 ++ ...VendorWithAddressesCreateModelValidator.cs | 39 + ...VendorWithAddressesUpdateModelValidator.cs | 39 + .../Mapping/VVendorWithContactsProfile.cs | 35 + .../Models/VVendorWithContactsCreateModel.cs | 111 +++ .../Models/VVendorWithContactsReadModel.cs | 111 +++ .../Models/VVendorWithContactsUpdateModel.cs | 111 +++ ...VVendorWithContactsCreateModelValidator.cs | 38 + ...VVendorWithContactsUpdateModelValidator.cs | 38 + .../Domain/Vendor/Mapping/VendorProfile.cs | 35 + .../Domain/Vendor/Models/VendorCreateModel.cs | 79 ++ .../Domain/Vendor/Models/VendorReadModel.cs | 79 ++ .../Domain/Vendor/Models/VendorUpdateModel.cs | 79 ++ .../Validation/VendorCreateModelValidator.cs | 29 + .../Validation/VendorUpdateModelValidator.cs | 29 + .../WorkOrder/Mapping/WorkOrderProfile.cs | 35 + .../WorkOrder/Models/WorkOrderCreateModel.cs | 95 ++ .../WorkOrder/Models/WorkOrderReadModel.cs | 95 ++ .../WorkOrder/Models/WorkOrderUpdateModel.cs | 95 ++ .../WorkOrderCreateModelValidator.cs | 24 + .../WorkOrderUpdateModelValidator.cs | 24 + .../Mapping/WorkOrderRoutingProfile.cs | 35 + .../Models/WorkOrderRoutingCreateModel.cs | 111 +++ .../Models/WorkOrderRoutingReadModel.cs | 111 +++ .../Models/WorkOrderRoutingUpdateModel.cs | 111 +++ .../WorkOrderRoutingCreateModelValidator.cs | 24 + .../WorkOrderRoutingUpdateModelValidator.cs | 24 + .../Events/Create/AddressCreatedEvent.cs | 13 + .../Events/Create/AddressTypeCreatedEvent.cs | 13 + .../Create/BillOfMaterialsCreatedEvent.cs | 13 + .../Create/BusinessEntityCreatedEvent.cs | 13 + .../Events/Create/ContactTypeCreatedEvent.cs | 13 + .../Events/Create/CreditCardCreatedEvent.cs | 13 + .../Events/Create/CurrencyRateCreatedEvent.cs | 13 + .../Events/Create/CustomerCreatedEvent.cs | 13 + .../Events/Create/DepartmentCreatedEvent.cs | 13 + .../Events/Create/EmailAddressCreatedEvent.cs | 13 + .../Events/Create/IllustrationCreatedEvent.cs | 13 + .../Events/Create/JobCandidateCreatedEvent.cs | 13 + .../Events/Create/LocationCreatedEvent.cs | 13 + .../Create/PhoneNumberTypeCreatedEvent.cs | 13 + .../Create/ProductCategoryCreatedEvent.cs | 13 + .../Events/Create/ProductCreatedEvent.cs | 13 + .../Create/ProductDescriptionCreatedEvent.cs | 13 + .../Events/Create/ProductModelCreatedEvent.cs | 13 + .../Events/Create/ProductPhotoCreatedEvent.cs | 13 + .../Create/ProductReviewCreatedEvent.cs | 13 + .../Create/ProductSubcategoryCreatedEvent.cs | 13 + .../Create/PurchaseOrderDetailCreatedEvent.cs | 13 + .../Create/PurchaseOrderHeaderCreatedEvent.cs | 13 + .../Create/SalesOrderDetailCreatedEvent.cs | 13 + .../Create/SalesOrderHeaderCreatedEvent.cs | 13 + .../Events/Create/SalesReasonCreatedEvent.cs | 13 + .../Events/Create/SalesTaxRateCreatedEvent.cs | 13 + .../Create/SalesTerritoryCreatedEvent.cs | 13 + .../Events/Create/ScrapReasonCreatedEvent.cs | 13 + .../Events/Create/ShiftCreatedEvent.cs | 13 + .../Events/Create/ShipMethodCreatedEvent.cs | 13 + .../Create/ShoppingCartItemCreatedEvent.cs | 13 + .../Events/Create/SpecialOfferCreatedEvent.cs | 13 + .../Create/StateProvinceCreatedEvent.cs | 13 + .../Create/TransactionHistoryCreatedEvent.cs | 13 + .../Create/VJobCandidateCreatedEvent.cs | 13 + .../VJobCandidateEducationCreatedEvent.cs | 13 + .../VJobCandidateEmploymentCreatedEvent.cs | 13 + ...ductModelCatalogDescriptionCreatedEvent.cs | 13 + .../VProductModelInstructionsCreatedEvent.cs | 13 + .../Events/Create/WorkOrderCreatedEvent.cs | 13 + .../Events/Delete/AddressDeletedEvent.cs | 13 + .../Events/Delete/AddressTypeDeletedEvent.cs | 13 + .../Delete/BillOfMaterialsDeletedEvent.cs | 13 + .../Delete/BusinessEntityDeletedEvent.cs | 13 + .../Events/Delete/ContactTypeDeletedEvent.cs | 13 + .../Events/Delete/CreditCardDeletedEvent.cs | 13 + .../Events/Delete/CurrencyRateDeletedEvent.cs | 13 + .../Events/Delete/CustomerDeletedEvent.cs | 13 + .../Events/Delete/DepartmentDeletedEvent.cs | 13 + .../Events/Delete/EmailAddressDeletedEvent.cs | 13 + .../Events/Delete/IllustrationDeletedEvent.cs | 13 + .../Events/Delete/JobCandidateDeletedEvent.cs | 13 + .../Events/Delete/LocationDeletedEvent.cs | 13 + .../Delete/PhoneNumberTypeDeletedEvent.cs | 13 + .../Delete/ProductCategoryDeletedEvent.cs | 13 + .../Events/Delete/ProductDeletedEvent.cs | 13 + .../Delete/ProductDescriptionDeletedEvent.cs | 13 + .../Events/Delete/ProductModelDeletedEvent.cs | 13 + .../Events/Delete/ProductPhotoDeletedEvent.cs | 13 + .../Delete/ProductReviewDeletedEvent.cs | 13 + .../Delete/ProductSubcategoryDeletedEvent.cs | 13 + .../Delete/PurchaseOrderDetailDeletedEvent.cs | 13 + .../Delete/PurchaseOrderHeaderDeletedEvent.cs | 13 + .../Delete/SalesOrderDetailDeletedEvent.cs | 13 + .../Delete/SalesOrderHeaderDeletedEvent.cs | 13 + .../Events/Delete/SalesReasonDeletedEvent.cs | 13 + .../Events/Delete/SalesTaxRateDeletedEvent.cs | 13 + .../Delete/SalesTerritoryDeletedEvent.cs | 13 + .../Events/Delete/ScrapReasonDeletedEvent.cs | 13 + .../Events/Delete/ShiftDeletedEvent.cs | 13 + .../Events/Delete/ShipMethodDeletedEvent.cs | 13 + .../Delete/ShoppingCartItemDeletedEvent.cs | 13 + .../Events/Delete/SpecialOfferDeletedEvent.cs | 13 + .../Delete/StateProvinceDeletedEvent.cs | 13 + .../Delete/TransactionHistoryDeletedEvent.cs | 13 + .../Delete/VJobCandidateDeletedEvent.cs | 13 + .../VJobCandidateEducationDeletedEvent.cs | 13 + .../VJobCandidateEmploymentDeletedEvent.cs | 13 + ...ductModelCatalogDescriptionDeletedEvent.cs | 13 + .../VProductModelInstructionsDeletedEvent.cs | 13 + .../Events/Delete/WorkOrderDeletedEvent.cs | 13 + .../Events/Update/AddressTypeUpdatedEvent.cs | 13 + .../Events/Update/AddressUpdatedEvent.cs | 13 + .../Update/BillOfMaterialsUpdatedEvent.cs | 13 + .../Update/BusinessEntityUpdatedEvent.cs | 13 + .../Events/Update/ContactTypeUpdatedEvent.cs | 13 + .../Events/Update/CreditCardUpdatedEvent.cs | 13 + .../Events/Update/CurrencyRateUpdatedEvent.cs | 13 + .../Events/Update/CustomerUpdatedEvent.cs | 13 + .../Events/Update/DepartmentUpdatedEvent.cs | 13 + .../Events/Update/EmailAddressUpdatedEvent.cs | 13 + .../Events/Update/IllustrationUpdatedEvent.cs | 13 + .../Events/Update/JobCandidateUpdatedEvent.cs | 13 + .../Events/Update/LocationUpdatedEvent.cs | 13 + .../Update/PhoneNumberTypeUpdatedEvent.cs | 13 + .../Update/ProductCategoryUpdatedEvent.cs | 13 + .../Update/ProductDescriptionUpdatedEvent.cs | 13 + .../Events/Update/ProductModelUpdatedEvent.cs | 13 + .../Events/Update/ProductPhotoUpdatedEvent.cs | 13 + .../Update/ProductReviewUpdatedEvent.cs | 13 + .../Update/ProductSubcategoryUpdatedEvent.cs | 13 + .../Events/Update/ProductUpdatedEvent.cs | 13 + .../Update/PurchaseOrderDetailUpdatedEvent.cs | 13 + .../Update/PurchaseOrderHeaderUpdatedEvent.cs | 13 + .../Update/SalesOrderDetailUpdatedEvent.cs | 13 + .../Update/SalesOrderHeaderUpdatedEvent.cs | 13 + .../Events/Update/SalesReasonUpdatedEvent.cs | 13 + .../Events/Update/SalesTaxRateUpdatedEvent.cs | 13 + .../Update/SalesTerritoryUpdatedEvent.cs | 13 + .../Events/Update/ScrapReasonUpdatedEvent.cs | 13 + .../Events/Update/ShiftUpdatedEvent.cs | 13 + .../Events/Update/ShipMethodUpdatedEvent.cs | 13 + .../Update/ShoppingCartItemUpdatedEvent.cs | 13 + .../Events/Update/SpecialOfferUpdatedEvent.cs | 13 + .../Update/StateProvinceUpdatedEvent.cs | 13 + .../Update/TransactionHistoryUpdatedEvent.cs | 13 + .../VJobCandidateEducationUpdatedEvent.cs | 13 + .../VJobCandidateEmploymentUpdatedEvent.cs | 13 + .../Update/VJobCandidateUpdatedEvent.cs | 13 + ...ductModelCatalogDescriptionUpdatedEvent.cs | 13 + .../VProductModelInstructionsUpdatedEvent.cs | 13 + .../Events/Update/WorkOrderUpdatedEvent.cs | 13 + .../Repository/AddressRepository.cs | 96 ++ .../Repository/AddressTypeRepository.cs | 96 ++ .../Repository/BillOfMaterialsRepository.cs | 96 ++ .../Repository/BusinessEntityRepository.cs | 96 ++ .../Repository/ContactTypeRepository.cs | 96 ++ .../Repository/CreditCardRepository.cs | 96 ++ .../Repository/CurrencyRateRepository.cs | 96 ++ .../Repository/CustomerRepository.cs | 96 ++ .../Repository/DepartmentRepository.cs | 96 ++ .../Repository/EmailAddressRepository.cs | 96 ++ .../Repository/IllustrationRepository.cs | 96 ++ .../Repository/JobCandidateRepository.cs | 96 ++ .../Repository/LocationRepository.cs | 96 ++ .../Repository/PhoneNumberTypeRepository.cs | 96 ++ .../Repository/ProductCategoryRepository.cs | 96 ++ .../ProductDescriptionRepository.cs | 96 ++ .../Repository/ProductModelRepository.cs | 96 ++ .../Repository/ProductPhotoRepository.cs | 96 ++ .../Repository/ProductRepository.cs | 96 ++ .../Repository/ProductReviewRepository.cs | 96 ++ .../ProductSubcategoryRepository.cs | 96 ++ .../PurchaseOrderDetailRepository.cs | 96 ++ .../PurchaseOrderHeaderRepository.cs | 96 ++ .../Repository/SalesOrderDetailRepository.cs | 96 ++ .../Repository/SalesOrderHeaderRepository.cs | 96 ++ .../Repository/SalesReasonRepository.cs | 96 ++ .../Repository/SalesTaxRateRepository.cs | 96 ++ .../Repository/SalesTerritoryRepository.cs | 96 ++ .../Repository/ScrapReasonRepository.cs | 96 ++ .../Repository/ShiftRepository.cs | 96 ++ .../Repository/ShipMethodRepository.cs | 96 ++ .../Repository/ShoppingCartItemRepository.cs | 96 ++ .../Repository/SpecialOfferRepository.cs | 96 ++ .../Repository/StateProvinceRepository.cs | 96 ++ .../TransactionHistoryRepository.cs | 96 ++ .../VJobCandidateEducationRepository.cs | 96 ++ .../VJobCandidateEmploymentRepository.cs | 96 ++ .../Repository/VJobCandidateRepository.cs | 96 ++ ...roductModelCatalogDescriptionRepository.cs | 96 ++ .../VProductModelInstructionsRepository.cs | 96 ++ .../Repository/WorkOrderRepository.cs | 96 ++ .../Yaml/Entity/AddressScript.yml | 109 +++ .../Yaml/Entity/AddressTypeScript.yml | 62 ++ .../Yaml/Entity/BillOfMaterialsScript.yml | 118 +++ .../Entity/BusinessEntityAddressScript.yml | 71 ++ .../Entity/BusinessEntityContactScript.yml | 71 ++ .../Yaml/Entity/BusinessEntityScript.yml | 50 ++ .../Yaml/Entity/ContactTypeScript.yml | 50 ++ .../Entity/CountryRegionCurrencyScript.yml | 50 ++ .../Yaml/Entity/CountryRegionScript.yml | 50 ++ .../Yaml/Entity/CreditCardScript.yml | 84 ++ .../Yaml/Entity/CultureScript.yml | 50 ++ .../Yaml/Entity/CurrencyRateScript.yml | 95 ++ .../Yaml/Entity/CurrencyScript.yml | 50 ++ .../Yaml/Entity/CustomerScript.yml | 96 ++ .../Yaml/Entity/DepartmentScript.yml | 62 ++ .../Yaml/Entity/EmailAddressScript.yml | 73 ++ .../EmployeeDepartmentHistoryScript.yml | 81 ++ .../Yaml/Entity/EmployeePayHistoryScript.yml | 70 ++ .../Yaml/Entity/EmployeeScript.yml | 191 ++++ .../Yaml/Entity/IllustrationScript.yml | 49 ++ .../Yaml/Entity/JobCandidateScript.yml | 60 ++ .../Yaml/Entity/LocationScript.yml | 74 ++ .../Yaml/Entity/PasswordScript.yml | 73 ++ .../Yaml/Entity/PersonCreditCardScript.yml | 48 + .../Yaml/Entity/PersonPhoneScript.yml | 60 ++ .../Yaml/Entity/PersonScript.yml | 167 ++++ .../Yaml/Entity/PhoneNumberTypeScript.yml | 50 ++ .../Yaml/Entity/ProductCategoryScript.yml | 62 ++ .../Yaml/Entity/ProductCostHistoryScript.yml | 70 ++ .../Yaml/Entity/ProductDescriptionScript.yml | 62 ++ .../Yaml/Entity/ProductDocumentScript.yml | 37 + .../Yaml/Entity/ProductInventoryScript.yml | 95 ++ .../Entity/ProductListPriceHistoryScript.yml | 70 ++ .../Entity/ProductModelIllustrationScript.yml | 48 + ...ctModelProductDescriptionCultureScript.yml | 60 ++ .../Yaml/Entity/ProductModelScript.yml | 84 ++ .../Yaml/Entity/ProductPhotoScript.yml | 86 ++ .../Yaml/Entity/ProductProductPhotoScript.yml | 60 ++ .../Yaml/Entity/ProductReviewScript.yml | 108 +++ .../Yaml/Entity/ProductScript.yml | 303 +++++++ .../Yaml/Entity/ProductSubcategoryScript.yml | 73 ++ .../Yaml/Entity/ProductVendorScript.yml | 137 +++ .../Yaml/Entity/PurchaseOrderDetailScript.yml | 139 +++ .../Yaml/Entity/PurchaseOrderHeaderScript.yml | 166 ++++ .../Yaml/Entity/SalesOrderDetailScript.yml | 141 +++ .../SalesOrderHeaderSalesReasonScript.yml | 48 + .../Yaml/Entity/SalesOrderHeaderScript.yml | 317 +++++++ .../Entity/SalesPersonQuotaHistoryScript.yml | 71 ++ .../Yaml/Entity/SalesPersonScript.yml | 119 +++ .../Yaml/Entity/SalesReasonScript.yml | 62 ++ .../Yaml/Entity/SalesTaxRateScript.yml | 96 ++ .../Entity/SalesTerritoryHistoryScript.yml | 82 ++ .../Yaml/Entity/SalesTerritoryScript.yml | 134 +++ .../Yaml/Entity/ScrapReasonScript.yml | 50 ++ .../Yaml/Entity/ShiftScript.yml | 72 ++ .../Yaml/Entity/ShipMethodScript.yml | 86 ++ .../Yaml/Entity/ShoppingCartItemScript.yml | 85 ++ .../Yaml/Entity/SpecialOfferProductScript.yml | 60 ++ .../Yaml/Entity/SpecialOfferScript.yml | 143 +++ .../Yaml/Entity/StateProvinceScript.yml | 109 +++ .../Yaml/Entity/StoreScript.yml | 83 ++ .../TransactionHistoryArchiveScript.yml | 117 +++ .../Yaml/Entity/TransactionHistoryScript.yml | 118 +++ .../Yaml/Entity/UnitMeasureScript.yml | 50 ++ .../Entity/VAdditionalContactInfoScript.yml | 215 +++++ .../VEmployeeDepartmentHistoryScript.yml | 143 +++ .../Yaml/Entity/VEmployeeDepartmentScript.yml | 132 +++ .../Yaml/Entity/VEmployeeScript.yml | 227 +++++ .../Yaml/Entity/VIndividualCustomerScript.yml | 227 +++++ .../Entity/VJobCandidateEducationScript.yml | 168 ++++ .../Entity/VJobCandidateEmploymentScript.yml | 144 +++ .../Yaml/Entity/VJobCandidateScript.yml | 204 +++++ .../Yaml/Entity/VPersonDemographicsScript.yml | 162 ++++ .../Entity/VProductAndDescriptionScript.yml | 73 ++ .../VProductModelCatalogDescriptionScript.yml | 312 +++++++ .../VProductModelInstructionsScript.yml | 139 +++ .../VSalesPersonSalesByFiscalYearsScript.yml | 94 ++ .../Yaml/Entity/VSalesPersonScript.yml | 273 ++++++ .../VStateProvinceCountryRegionScript.yml | 95 ++ .../Yaml/Entity/VStoreWithAddressesScript.yml | 121 +++ .../Yaml/Entity/VStoreWithContactsScript.yml | 156 ++++ .../Entity/VStoreWithDemographicsScript.yml | 152 ++++ .../Entity/VVendorWithAddressesScript.yml | 121 +++ .../Yaml/Entity/VVendorWithContactsScript.yml | 156 ++++ .../Yaml/Entity/VendorScript.yml | 108 +++ .../Yaml/Entity/WorkOrderRoutingScript.yml | 147 ++++ .../Yaml/Entity/WorkOrderScript.yml | 127 +++ 949 files changed, 64714 insertions(+), 1 deletion(-) create mode 100644 src/Platy.AdventureWorks.Repository/Data/AdventureWorksContext.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/Address.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/AddressType.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/BillOfMaterials.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/BusinessEntity.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/BusinessEntityAddress.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/BusinessEntityContact.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ContactType.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/CountryRegion.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/CountryRegionCurrency.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/CreditCard.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/Culture.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/Currency.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/CurrencyRate.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/Customer.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/Department.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/EmailAddress.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/Employee.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/EmployeeDepartmentHistory.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/EmployeePayHistory.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/Illustration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/JobCandidate.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/Location.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/Password.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/Person.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/PersonCreditCard.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/PersonPhone.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/PhoneNumberType.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/Product.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ProductCategory.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ProductCostHistory.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ProductDescription.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ProductDocument.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ProductInventory.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ProductListPriceHistory.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ProductModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ProductModelIllustration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ProductModelProductDescriptionCulture.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ProductPhoto.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ProductProductPhoto.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ProductReview.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ProductSubcategory.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ProductVendor.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/PurchaseOrderDetail.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/PurchaseOrderHeader.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/SalesOrderDetail.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/SalesOrderHeader.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/SalesOrderHeaderSalesReason.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/SalesPerson.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/SalesPersonQuotaHistory.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/SalesReason.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/SalesTaxRate.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/SalesTerritory.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/SalesTerritoryHistory.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ScrapReason.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/Shift.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ShipMethod.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/ShoppingCartItem.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/SpecialOffer.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/SpecialOfferProduct.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/StateProvince.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/Store.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/TransactionHistory.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/TransactionHistoryArchive.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/UnitMeasure.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VAdditionalContactInfo.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VEmployee.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VEmployeeDepartment.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VEmployeeDepartmentHistory.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VIndividualCustomer.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VJobCandidate.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VJobCandidateEducation.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VJobCandidateEmployment.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VPersonDemographics.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VProductAndDescription.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VProductModelCatalogDescription.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VProductModelInstructions.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VSalesPerson.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VSalesPersonSalesByFiscalYears.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VStateProvinceCountryRegion.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithAddresses.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithContacts.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithDemographics.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VVendorWithAddresses.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/VVendorWithContacts.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/Vendor.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/WorkOrder.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/Entities/WorkOrderRouting.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/AddressConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/AddressTypeConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BillOfMaterialsConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BusinessEntityAddressConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BusinessEntityConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BusinessEntityContactConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ContactTypeConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CountryRegionConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CountryRegionCurrencyConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CreditCardConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CultureConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CurrencyConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CurrencyRateConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CustomerConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/DepartmentConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmailAddressConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmployeeConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmployeeDepartmentHistoryConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmployeePayHistoryConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/IllustrationConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/JobCandidateConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/LocationConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PasswordConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PersonConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PersonCreditCardConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PersonPhoneConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PhoneNumberTypeConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductCategoryConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductCostHistoryConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductDescriptionConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductDocumentConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductInventoryConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductListPriceHistoryConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductModelConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductModelIllustrationConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductModelProductDescriptionCultureConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductPhotoConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductProductPhotoConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductReviewConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductSubcategoryConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductVendorConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PurchaseOrderDetailConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PurchaseOrderHeaderConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesOrderDetailConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesOrderHeaderConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesOrderHeaderSalesReasonConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesPersonConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesPersonQuotaHistoryConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesReasonConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesTaxRateConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesTerritoryConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesTerritoryHistoryConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ScrapReasonConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ShiftConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ShipMethodConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ShoppingCartItemConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SpecialOfferConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SpecialOfferProductConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/StateProvinceConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/StoreConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/TransactionHistoryArchiveConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/TransactionHistoryConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/UnitMeasureConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VAdditionalContactInfoConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VEmployeeConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VEmployeeDepartmentConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VEmployeeDepartmentHistoryConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VIndividualCustomerConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VJobCandidateConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VJobCandidateEducationConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VJobCandidateEmploymentConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VPersonDemographicsConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VProductAndDescriptionConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VProductModelCatalogDescriptionConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VProductModelInstructionsConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VSalesPersonConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VSalesPersonSalesByFiscalYearsConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStateProvinceCountryRegionConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStoreWithAddressesConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStoreWithContactsConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStoreWithDemographicsConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VVendorWithAddressesConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VVendorWithContactsConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VendorConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/WorkOrderConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/WorkOrderRoutingConfiguration.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Address/Mapping/AddressProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Address/Validation/AddressCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Address/Validation/AddressUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/AddressType/Mapping/AddressTypeProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/AddressType/Validation/AddressTypeCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/AddressType/Validation/AddressTypeUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Mapping/BillOfMaterialsProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Validation/BillOfMaterialsCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Validation/BillOfMaterialsUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Mapping/BusinessEntityProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Validation/BusinessEntityCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Validation/BusinessEntityUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Mapping/BusinessEntityAddressProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Models/BusinessEntityAddressCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Models/BusinessEntityAddressReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Models/BusinessEntityAddressUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Validation/BusinessEntityAddressCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Validation/BusinessEntityAddressUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Mapping/BusinessEntityContactProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Models/BusinessEntityContactCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Models/BusinessEntityContactReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Models/BusinessEntityContactUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Validation/BusinessEntityContactCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Validation/BusinessEntityContactUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ContactType/Mapping/ContactTypeProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ContactType/Validation/ContactTypeCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ContactType/Validation/ContactTypeUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Mapping/CountryRegionProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Validation/CountryRegionCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Validation/CountryRegionUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Mapping/CountryRegionCurrencyProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Validation/CountryRegionCurrencyCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Validation/CountryRegionCurrencyUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/CreditCard/Mapping/CreditCardProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/CreditCard/Models/CreditCardCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/CreditCard/Models/CreditCardReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/CreditCard/Models/CreditCardUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/CreditCard/Validation/CreditCardCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/CreditCard/Validation/CreditCardUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Culture/Mapping/CultureProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Culture/Validation/CultureCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Culture/Validation/CultureUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Currency/Mapping/CurrencyProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Currency/Validation/CurrencyCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Currency/Validation/CurrencyUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Mapping/CurrencyRateProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Validation/CurrencyRateCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Validation/CurrencyRateUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Customer/Mapping/CustomerProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Customer/Validation/CustomerCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Customer/Validation/CustomerUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Department/Mapping/DepartmentProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Department/Validation/DepartmentCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Department/Validation/DepartmentUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Mapping/EmailAddressProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Models/EmailAddressCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Models/EmailAddressReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Models/EmailAddressUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Validation/EmailAddressCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Validation/EmailAddressUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Employee/Mapping/EmployeeProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Employee/Models/EmployeeCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Employee/Models/EmployeeReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Employee/Models/EmployeeUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Employee/Validation/EmployeeCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Employee/Validation/EmployeeUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Mapping/EmployeeDepartmentHistoryProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Models/EmployeeDepartmentHistoryCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Models/EmployeeDepartmentHistoryReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Models/EmployeeDepartmentHistoryUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Validation/EmployeeDepartmentHistoryCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Validation/EmployeeDepartmentHistoryUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Mapping/EmployeePayHistoryProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Models/EmployeePayHistoryCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Models/EmployeePayHistoryReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Models/EmployeePayHistoryUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Validation/EmployeePayHistoryCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Validation/EmployeePayHistoryUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Illustration/Mapping/IllustrationProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Illustration/Validation/IllustrationCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Illustration/Validation/IllustrationUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Mapping/JobCandidateProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Validation/JobCandidateCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Validation/JobCandidateUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Location/Mapping/LocationProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Location/Models/LocationCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Location/Models/LocationReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Location/Models/LocationUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Location/Validation/LocationCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Location/Validation/LocationUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Password/Mapping/PasswordProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Password/Models/PasswordCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Password/Models/PasswordReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Password/Models/PasswordUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Password/Validation/PasswordCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Password/Validation/PasswordUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Person/Mapping/PersonProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Person/Models/PersonCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Person/Models/PersonReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Person/Models/PersonUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Person/Validation/PersonCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Person/Validation/PersonUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Mapping/PersonCreditCardProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Validation/PersonCreditCardCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Validation/PersonCreditCardUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Mapping/PersonPhoneProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Validation/PersonPhoneCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Validation/PersonPhoneUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Mapping/PhoneNumberTypeProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Validation/PhoneNumberTypeCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Validation/PhoneNumberTypeUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Product/Mapping/ProductProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Product/Models/ProductCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Product/Models/ProductReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Product/Models/ProductUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Product/Validation/ProductCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Product/Validation/ProductUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Mapping/ProductCategoryProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Validation/ProductCategoryCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Validation/ProductCategoryUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Mapping/ProductCostHistoryProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Models/ProductCostHistoryCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Models/ProductCostHistoryReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Models/ProductCostHistoryUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Validation/ProductCostHistoryCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Validation/ProductCostHistoryUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Mapping/ProductDescriptionProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Validation/ProductDescriptionCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Validation/ProductDescriptionUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Mapping/ProductDocumentProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Validation/ProductDocumentCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Validation/ProductDocumentUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Mapping/ProductInventoryProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Validation/ProductInventoryCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Validation/ProductInventoryUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Mapping/ProductListPriceHistoryProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Models/ProductListPriceHistoryCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Models/ProductListPriceHistoryReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Models/ProductListPriceHistoryUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Validation/ProductListPriceHistoryCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Validation/ProductListPriceHistoryUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModel/Mapping/ProductModelProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModel/Models/ProductModelCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModel/Models/ProductModelReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModel/Models/ProductModelUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModel/Validation/ProductModelCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModel/Validation/ProductModelUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Mapping/ProductModelIllustrationProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Validation/ProductModelIllustrationCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Validation/ProductModelIllustrationUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Mapping/ProductModelProductDescriptionCultureProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Validation/ProductModelProductDescriptionCultureCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Validation/ProductModelProductDescriptionCultureUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Mapping/ProductPhotoProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Models/ProductPhotoCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Models/ProductPhotoReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Models/ProductPhotoUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Validation/ProductPhotoCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Validation/ProductPhotoUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Mapping/ProductProductPhotoProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Validation/ProductProductPhotoCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Validation/ProductProductPhotoUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductReview/Mapping/ProductReviewProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductReview/Validation/ProductReviewCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductReview/Validation/ProductReviewUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Mapping/ProductSubcategoryProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Models/ProductSubcategoryCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Models/ProductSubcategoryReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Models/ProductSubcategoryUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Validation/ProductSubcategoryCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Validation/ProductSubcategoryUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Mapping/ProductVendorProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Validation/ProductVendorCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Validation/ProductVendorUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Mapping/PurchaseOrderDetailProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Validation/PurchaseOrderDetailCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Validation/PurchaseOrderDetailUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Mapping/PurchaseOrderHeaderProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Models/PurchaseOrderHeaderCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Models/PurchaseOrderHeaderReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Models/PurchaseOrderHeaderUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Validation/PurchaseOrderHeaderCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Validation/PurchaseOrderHeaderUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Mapping/SalesOrderDetailProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Validation/SalesOrderDetailCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Validation/SalesOrderDetailUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Mapping/SalesOrderHeaderProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Models/SalesOrderHeaderCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Models/SalesOrderHeaderReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Models/SalesOrderHeaderUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Validation/SalesOrderHeaderCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Validation/SalesOrderHeaderUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Mapping/SalesOrderHeaderSalesReasonProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Validation/SalesOrderHeaderSalesReasonCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Validation/SalesOrderHeaderSalesReasonUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Mapping/SalesPersonProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Validation/SalesPersonCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Validation/SalesPersonUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Mapping/SalesPersonQuotaHistoryProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Models/SalesPersonQuotaHistoryCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Models/SalesPersonQuotaHistoryReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Models/SalesPersonQuotaHistoryUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Validation/SalesPersonQuotaHistoryCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Validation/SalesPersonQuotaHistoryUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesReason/Mapping/SalesReasonProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesReason/Validation/SalesReasonCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesReason/Validation/SalesReasonUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Mapping/SalesTaxRateProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Validation/SalesTaxRateCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Validation/SalesTaxRateUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Mapping/SalesTerritoryProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Validation/SalesTerritoryCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Validation/SalesTerritoryUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Mapping/SalesTerritoryHistoryProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Models/SalesTerritoryHistoryCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Models/SalesTerritoryHistoryReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Models/SalesTerritoryHistoryUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Validation/SalesTerritoryHistoryCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Validation/SalesTerritoryHistoryUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Mapping/ScrapReasonProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Validation/ScrapReasonCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Validation/ScrapReasonUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Shift/Mapping/ShiftProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Shift/Models/ShiftCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Shift/Models/ShiftReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Shift/Models/ShiftUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Shift/Validation/ShiftCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Shift/Validation/ShiftUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Mapping/ShipMethodProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Models/ShipMethodCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Models/ShipMethodReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Models/ShipMethodUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Validation/ShipMethodCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Validation/ShipMethodUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Mapping/ShoppingCartItemProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Models/ShoppingCartItemCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Models/ShoppingCartItemReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Models/ShoppingCartItemUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Validation/ShoppingCartItemCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Validation/ShoppingCartItemUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Mapping/SpecialOfferProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Validation/SpecialOfferCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Validation/SpecialOfferUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Mapping/SpecialOfferProductProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Validation/SpecialOfferProductCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Validation/SpecialOfferProductUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/StateProvince/Mapping/StateProvinceProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/StateProvince/Validation/StateProvinceCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/StateProvince/Validation/StateProvinceUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Store/Mapping/StoreProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Store/Models/StoreCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Store/Models/StoreReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Store/Models/StoreUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Store/Validation/StoreCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Store/Validation/StoreUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Mapping/TransactionHistoryProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Validation/TransactionHistoryCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Validation/TransactionHistoryUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Mapping/TransactionHistoryArchiveProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Validation/TransactionHistoryArchiveCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Validation/TransactionHistoryArchiveUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Mapping/UnitMeasureProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Validation/UnitMeasureCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Validation/UnitMeasureUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Mapping/VAdditionalContactInfoProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Models/VAdditionalContactInfoCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Models/VAdditionalContactInfoReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Models/VAdditionalContactInfoUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Validation/VAdditionalContactInfoCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Validation/VAdditionalContactInfoUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployee/Mapping/VEmployeeProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployee/Models/VEmployeeCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployee/Models/VEmployeeReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployee/Models/VEmployeeUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployee/Validation/VEmployeeCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployee/Validation/VEmployeeUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Mapping/VEmployeeDepartmentProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Validation/VEmployeeDepartmentCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Validation/VEmployeeDepartmentUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Mapping/VEmployeeDepartmentHistoryProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Validation/VEmployeeDepartmentHistoryCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Validation/VEmployeeDepartmentHistoryUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Mapping/VIndividualCustomerProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Models/VIndividualCustomerCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Models/VIndividualCustomerReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Models/VIndividualCustomerUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Validation/VIndividualCustomerCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Validation/VIndividualCustomerUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Mapping/VJobCandidateProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Models/VJobCandidateCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Models/VJobCandidateReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Models/VJobCandidateUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Validation/VJobCandidateCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Validation/VJobCandidateUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Mapping/VJobCandidateEducationProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Models/VJobCandidateEducationCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Models/VJobCandidateEducationReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Models/VJobCandidateEducationUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Validation/VJobCandidateEducationCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Validation/VJobCandidateEducationUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Mapping/VJobCandidateEmploymentProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Validation/VJobCandidateEmploymentCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Validation/VJobCandidateEmploymentUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Mapping/VPersonDemographicsProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Models/VPersonDemographicsCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Models/VPersonDemographicsReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Models/VPersonDemographicsUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Validation/VPersonDemographicsCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Validation/VPersonDemographicsUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Mapping/VProductAndDescriptionProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Models/VProductAndDescriptionCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Models/VProductAndDescriptionReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Models/VProductAndDescriptionUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Validation/VProductAndDescriptionCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Validation/VProductAndDescriptionUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Mapping/VProductModelCatalogDescriptionProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Models/VProductModelCatalogDescriptionCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Models/VProductModelCatalogDescriptionReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Models/VProductModelCatalogDescriptionUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Validation/VProductModelCatalogDescriptionCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Validation/VProductModelCatalogDescriptionUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Mapping/VProductModelInstructionsProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Validation/VProductModelInstructionsCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Validation/VProductModelInstructionsUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Mapping/VSalesPersonProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Models/VSalesPersonCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Models/VSalesPersonReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Models/VSalesPersonUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Validation/VSalesPersonCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Validation/VSalesPersonUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Mapping/VSalesPersonSalesByFiscalYearsProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Validation/VSalesPersonSalesByFiscalYearsCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Validation/VSalesPersonSalesByFiscalYearsUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Mapping/VStateProvinceCountryRegionProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Validation/VStateProvinceCountryRegionCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Validation/VStateProvinceCountryRegionUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Mapping/VStoreWithAddressesProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Validation/VStoreWithAddressesCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Validation/VStoreWithAddressesUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Mapping/VStoreWithContactsProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Validation/VStoreWithContactsCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Validation/VStoreWithContactsUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Mapping/VStoreWithDemographicsProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Validation/VStoreWithDemographicsCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Validation/VStoreWithDemographicsUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Mapping/VVendorWithAddressesProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Validation/VVendorWithAddressesCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Validation/VVendorWithAddressesUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Mapping/VVendorWithContactsProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Validation/VVendorWithContactsCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Validation/VVendorWithContactsUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Vendor/Mapping/VendorProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Vendor/Validation/VendorCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/Vendor/Validation/VendorUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Mapping/WorkOrderProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Validation/WorkOrderCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Validation/WorkOrderUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Mapping/WorkOrderRoutingProfile.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingCreateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingReadModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingUpdateModel.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Validation/WorkOrderRoutingCreateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Validation/WorkOrderRoutingUpdateModelValidator.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/AddressCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/AddressTypeCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/BillOfMaterialsCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/BusinessEntityCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/ContactTypeCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/CreditCardCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/CurrencyRateCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/CustomerCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/DepartmentCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/EmailAddressCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/IllustrationCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/JobCandidateCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/LocationCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/PhoneNumberTypeCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/ProductCategoryCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/ProductCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/ProductDescriptionCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/ProductModelCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/ProductPhotoCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/ProductReviewCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/ProductSubcategoryCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/PurchaseOrderDetailCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/PurchaseOrderHeaderCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/SalesOrderDetailCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/SalesOrderHeaderCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/SalesReasonCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/SalesTaxRateCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/SalesTerritoryCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/ScrapReasonCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/ShiftCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/ShipMethodCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/ShoppingCartItemCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/SpecialOfferCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/StateProvinceCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/TransactionHistoryCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateEducationCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateEmploymentCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/VProductModelCatalogDescriptionCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/VProductModelInstructionsCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Create/WorkOrderCreatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/AddressDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/AddressTypeDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/BillOfMaterialsDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/BusinessEntityDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/ContactTypeDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/CreditCardDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/CurrencyRateDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/CustomerDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/DepartmentDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/EmailAddressDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/IllustrationDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/JobCandidateDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/LocationDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/PhoneNumberTypeDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/ProductCategoryDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/ProductDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/ProductDescriptionDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/ProductModelDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/ProductPhotoDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/ProductReviewDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/ProductSubcategoryDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/PurchaseOrderDetailDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/PurchaseOrderHeaderDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/SalesOrderDetailDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/SalesOrderHeaderDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/SalesReasonDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/SalesTaxRateDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/SalesTerritoryDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/ScrapReasonDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/ShiftDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/ShipMethodDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/ShoppingCartItemDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/SpecialOfferDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/StateProvinceDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/TransactionHistoryDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateEducationDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateEmploymentDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/VProductModelCatalogDescriptionDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/VProductModelInstructionsDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Delete/WorkOrderDeletedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/AddressTypeUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/AddressUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/BillOfMaterialsUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/BusinessEntityUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/ContactTypeUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/CreditCardUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/CurrencyRateUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/CustomerUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/DepartmentUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/EmailAddressUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/IllustrationUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/JobCandidateUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/LocationUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/PhoneNumberTypeUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/ProductCategoryUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/ProductDescriptionUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/ProductModelUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/ProductPhotoUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/ProductReviewUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/ProductSubcategoryUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/ProductUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/PurchaseOrderDetailUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/PurchaseOrderHeaderUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/SalesOrderDetailUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/SalesOrderHeaderUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/SalesReasonUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/SalesTaxRateUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/SalesTerritoryUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/ScrapReasonUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/ShiftUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/ShipMethodUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/ShoppingCartItemUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/SpecialOfferUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/StateProvinceUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/TransactionHistoryUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateEducationUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateEmploymentUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/VProductModelCatalogDescriptionUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/VProductModelInstructionsUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Events/Update/WorkOrderUpdatedEvent.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/AddressRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/AddressTypeRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/BillOfMaterialsRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/BusinessEntityRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/ContactTypeRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/CreditCardRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/CurrencyRateRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/CustomerRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/DepartmentRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/EmailAddressRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/IllustrationRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/JobCandidateRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/LocationRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/PhoneNumberTypeRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/ProductCategoryRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/ProductDescriptionRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/ProductModelRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/ProductPhotoRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/ProductRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/ProductReviewRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/ProductSubcategoryRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/PurchaseOrderDetailRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/PurchaseOrderHeaderRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/SalesOrderDetailRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/SalesOrderHeaderRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/SalesReasonRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/SalesTaxRateRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/SalesTerritoryRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/ScrapReasonRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/ShiftRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/ShipMethodRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/ShoppingCartItemRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/SpecialOfferRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/StateProvinceRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/TransactionHistoryRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/VJobCandidateEducationRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/VJobCandidateEmploymentRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/VJobCandidateRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/VProductModelCatalogDescriptionRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/VProductModelInstructionsRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Repository/WorkOrderRepository.cs create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/AddressScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/AddressTypeScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/BillOfMaterialsScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/BusinessEntityAddressScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/BusinessEntityContactScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/BusinessEntityScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ContactTypeScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/CountryRegionCurrencyScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/CountryRegionScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/CreditCardScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/CultureScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/CurrencyRateScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/CurrencyScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/CustomerScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/DepartmentScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/EmailAddressScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/EmployeeDepartmentHistoryScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/EmployeePayHistoryScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/EmployeeScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/IllustrationScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/JobCandidateScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/LocationScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/PasswordScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/PersonCreditCardScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/PersonPhoneScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/PersonScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/PhoneNumberTypeScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductCategoryScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductCostHistoryScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductDescriptionScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductDocumentScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductInventoryScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductListPriceHistoryScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductModelIllustrationScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductModelProductDescriptionCultureScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductModelScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductPhotoScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductProductPhotoScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductReviewScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductSubcategoryScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductVendorScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/PurchaseOrderDetailScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/PurchaseOrderHeaderScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesOrderDetailScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesOrderHeaderSalesReasonScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesOrderHeaderScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesPersonQuotaHistoryScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesPersonScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesReasonScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesTaxRateScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesTerritoryHistoryScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesTerritoryScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ScrapReasonScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ShiftScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ShipMethodScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/ShoppingCartItemScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/SpecialOfferProductScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/SpecialOfferScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/StateProvinceScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/StoreScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/TransactionHistoryArchiveScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/TransactionHistoryScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/UnitMeasureScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VAdditionalContactInfoScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VEmployeeDepartmentHistoryScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VEmployeeDepartmentScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VEmployeeScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VIndividualCustomerScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VJobCandidateEducationScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VJobCandidateEmploymentScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VJobCandidateScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VPersonDemographicsScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VProductAndDescriptionScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VProductModelCatalogDescriptionScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VProductModelInstructionsScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VSalesPersonSalesByFiscalYearsScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VSalesPersonScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VStateProvinceCountryRegionScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VStoreWithAddressesScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VStoreWithContactsScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VStoreWithDemographicsScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VVendorWithAddressesScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VVendorWithContactsScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/VendorScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/WorkOrderRoutingScript.yml create mode 100644 src/Platy.AdventureWorks.Repository/Yaml/Entity/WorkOrderScript.yml diff --git a/EntityFrameworkCore.Generator b/EntityFrameworkCore.Generator index dfafaa3..f93a86a 160000 --- a/EntityFrameworkCore.Generator +++ b/EntityFrameworkCore.Generator @@ -1 +1 @@ -Subproject commit dfafaa3364144af995d747b278d70a5ee78ad433 +Subproject commit f93a86a538cfcce23961d624730b73be264ca214 diff --git a/src/Platy.AdventureWorks.Repository/Data/AdventureWorksContext.cs b/src/Platy.AdventureWorks.Repository/Data/AdventureWorksContext.cs new file mode 100644 index 0000000..3e3173a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/AdventureWorksContext.cs @@ -0,0 +1,817 @@ +using System; + +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Metadata; + +namespace Platy.AdventureWorks.Repository.Data; + +/// +/// A instance represents a session with the database and can be used to query and save instances of entities. +/// +internal partial class AdventureWorksContext : DbContext +{ + /// + /// Initializes a new instance of the class. + /// + /// The GeneratorOptions to be used by this . + public AdventureWorksContext(DbContextOptions options) + : base(options) + { + } + + #region Generated Properties + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet Addresses { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet AddressTypes { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet BillOfMaterials { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet BusinessEntities { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet BusinessEntityAddresses { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet BusinessEntityContacts { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet ContactTypes { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet CountryRegionCurrencies { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet CountryRegions { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet CreditCards { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet Cultures { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet Currencies { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet CurrencyRates { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet Customers { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet Departments { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet EmailAddresses { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet EmployeeDepartmentHistories { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet EmployeePayHistories { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet Employees { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet Illustrations { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet JobCandidates { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet Locations { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet Passwords { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet People { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet PersonCreditCards { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet PersonPhones { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet PhoneNumberTypes { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet ProductCategories { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet ProductCostHistories { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet ProductDescriptions { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet ProductDocuments { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet ProductInventories { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet ProductListPriceHistories { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet ProductModelIllustrations { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet ProductModelProductDescriptionCultures { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet ProductModels { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet ProductPhotos { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet ProductProductPhotos { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet ProductReviews { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet Products { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet ProductSubcategories { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet ProductVendors { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet PurchaseOrderDetails { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet PurchaseOrderHeaders { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet SalesOrderDetails { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet SalesOrderHeaders { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet SalesOrderHeaderSalesReasons { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet SalesPeople { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet SalesPersonQuotaHistories { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet SalesReasons { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet SalesTaxRates { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet SalesTerritories { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet SalesTerritoryHistories { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet ScrapReasons { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet Shifts { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet ShipMethods { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet ShoppingCartItems { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet SpecialOfferProducts { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet SpecialOffers { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet StateProvinces { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet Stores { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet TransactionHistories { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet TransactionHistoryArchives { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet UnitMeasures { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet VAdditionalContactInfos { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet VEmployeeDepartmentHistories { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet VEmployeeDepartments { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet VEmployees { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet Vendors { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet VIndividualCustomers { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet VJobCandidateEducations { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet VJobCandidateEmployments { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet VJobCandidates { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet VPersonDemographics { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet VProductAndDescriptions { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet VProductModelCatalogDescriptions { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet VProductModelInstructions { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet VSalesPeople { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet VSalesPersonSalesByFiscalYears { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet VStateProvinceCountryRegions { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet VStoreWithAddresses { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet VStoreWithContacts { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet VStoreWithDemographics { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet VVendorWithAddresses { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet VVendorWithContacts { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet WorkOrderRoutings { get; set; } = null!; + + /// + /// Gets or sets the that can be used to query and save instances of . + /// + /// + /// The that can be used to query and save instances of . + /// + public virtual DbSet WorkOrders { get; set; } = null!; + + #endregion + + /// + /// Configure the model that was discovered from the entity types exposed in properties on this context. + /// + /// The builder being used to construct the model for this context. + protected override void OnModelCreating(ModelBuilder modelBuilder) + { + #region Generated Configuration + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.AddressConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.AddressTypeConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.BillOfMaterialsConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.BusinessEntityAddressConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.BusinessEntityConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.BusinessEntityContactConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.ContactTypeConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.CountryRegionConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.CountryRegionCurrencyConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.CreditCardConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.CultureConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.CurrencyConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.CurrencyRateConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.CustomerConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.DepartmentConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.EmailAddressConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.EmployeeConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.EmployeeDepartmentHistoryConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.EmployeePayHistoryConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.IllustrationConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.JobCandidateConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.LocationConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.PasswordConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.PersonConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.PersonCreditCardConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.PersonPhoneConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.PhoneNumberTypeConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.ProductCategoryConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.ProductConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.ProductCostHistoryConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.ProductDescriptionConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.ProductDocumentConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.ProductInventoryConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.ProductListPriceHistoryConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.ProductModelConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.ProductModelIllustrationConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.ProductModelProductDescriptionCultureConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.ProductPhotoConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.ProductProductPhotoConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.ProductReviewConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.ProductSubcategoryConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.ProductVendorConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.PurchaseOrderDetailConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.PurchaseOrderHeaderConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.SalesOrderDetailConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.SalesOrderHeaderConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.SalesOrderHeaderSalesReasonConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.SalesPersonConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.SalesPersonQuotaHistoryConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.SalesReasonConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.SalesTaxRateConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.SalesTerritoryConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.SalesTerritoryHistoryConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.ScrapReasonConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.ShiftConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.ShipMethodConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.ShoppingCartItemConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.SpecialOfferConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.SpecialOfferProductConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.StateProvinceConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.StoreConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.TransactionHistoryArchiveConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.TransactionHistoryConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.UnitMeasureConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.VAdditionalContactInfoConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.VEmployeeConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.VEmployeeDepartmentConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.VEmployeeDepartmentHistoryConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.VendorConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.VIndividualCustomerConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.VJobCandidateConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.VJobCandidateEducationConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.VJobCandidateEmploymentConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.VPersonDemographicsConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.VProductAndDescriptionConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.VProductModelCatalogDescriptionConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.VProductModelInstructionsConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.VSalesPersonConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.VSalesPersonSalesByFiscalYearsConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.VStateProvinceCountryRegionConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.VStoreWithAddressesConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.VStoreWithContactsConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.VStoreWithDemographicsConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.VVendorWithAddressesConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.VVendorWithContactsConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.WorkOrderConfiguration()); + modelBuilder.ApplyConfiguration(new Platy.AdventureWorks.Repository.Data.EntityConfiguration.WorkOrderRoutingConfiguration()); + #endregion + } +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Address.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Address.cs new file mode 100644 index 0000000..8b05cf2 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/Address.cs @@ -0,0 +1,138 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'Address'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("Address", Schema = "Person")] +public partial class Address + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public Address() + { + #region Generated Constructor + BillToSalesOrderHeaders = new HashSet(); + BusinessEntityAddresses = new HashSet(); + ShipToSalesOrderHeaders = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'AddressID'. + /// + /// + /// The property value representing column 'AddressID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("AddressID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'AddressLine1'. + /// + /// + /// The property value representing column 'AddressLine1'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("AddressLine1", TypeName = "nvarchar(60)")] + public string AddressLine1 { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'AddressLine2'. + /// + /// + /// The property value representing column 'AddressLine2'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("AddressLine2", TypeName = "nvarchar(60)")] + public string? AddressLine2 { get; set; } + + /// + /// Gets or sets the property value representing column 'City'. + /// + /// + /// The property value representing column 'City'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("City", TypeName = "nvarchar(30)")] + public string City { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'StateProvinceID'. + /// + /// + /// The property value representing column 'StateProvinceID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("StateProvinceID", TypeName = "int")] + public int StateProvinceId { get; set; } + + /// + /// Gets or sets the property value representing column 'PostalCode'. + /// + /// + /// The property value representing column 'PostalCode'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("PostalCode", TypeName = "nvarchar(15)")] + public string PostalCode { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'rowguid'. + /// + /// + /// The property value representing column 'rowguid'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection BillToSalesOrderHeaders { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection BusinessEntityAddresses { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection ShipToSalesOrderHeaders { get; set; } + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual StateProvince StateProvince { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/AddressType.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/AddressType.cs new file mode 100644 index 0000000..758518f --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/AddressType.cs @@ -0,0 +1,75 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'AddressType'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("AddressType", Schema = "Person")] +public partial class AddressType + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public AddressType() + { + #region Generated Constructor + BusinessEntityAddresses = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'AddressTypeID'. + /// + /// + /// The property value representing column 'AddressTypeID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("AddressTypeID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'Name'. + /// + /// + /// The property value representing column 'Name'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'rowguid'. + /// + /// + /// The property value representing column 'rowguid'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection BusinessEntityAddresses { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/BillOfMaterials.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/BillOfMaterials.cs new file mode 100644 index 0000000..52f4c0d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/BillOfMaterials.cs @@ -0,0 +1,138 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'BillOfMaterials'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("BillOfMaterials", Schema = "Production")] +public partial class BillOfMaterials + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public BillOfMaterials() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'BillOfMaterialsID'. + /// + /// + /// The property value representing column 'BillOfMaterialsID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("BillOfMaterialsID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'ProductAssemblyID'. + /// + /// + /// The property value representing column 'ProductAssemblyID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ProductAssemblyID", TypeName = "int")] + public int? ProductAssemblyId { get; set; } + + /// + /// Gets or sets the property value representing column 'ComponentID'. + /// + /// + /// The property value representing column 'ComponentID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ComponentID", TypeName = "int")] + public int ComponentId { get; set; } + + /// + /// Gets or sets the property value representing column 'StartDate'. + /// + /// + /// The property value representing column 'StartDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("StartDate", TypeName = "datetime")] + public DateTime StartDate { get; set; } + + /// + /// Gets or sets the property value representing column 'EndDate'. + /// + /// + /// The property value representing column 'EndDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("EndDate", TypeName = "datetime")] + public DateTime? EndDate { get; set; } + + /// + /// Gets or sets the property value representing column 'UnitMeasureCode'. + /// + /// + /// The property value representing column 'UnitMeasureCode'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("UnitMeasureCode", TypeName = "nchar(3)")] + public string UnitMeasureCode { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'BOMLevel'. + /// + /// + /// The property value representing column 'BOMLevel'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("BOMLevel", TypeName = "smallint")] + public short BOMLevel { get; set; } + + /// + /// Gets or sets the property value representing column 'PerAssemblyQty'. + /// + /// + /// The property value representing column 'PerAssemblyQty'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("PerAssemblyQty", TypeName = "decimal(8,2)")] + public decimal PerAssemblyQty { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Product? AssemblyProduct { get; set; } + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Product ComponentProduct { get; set; } = null!; + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual UnitMeasure UnitMeasure { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/BusinessEntity.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/BusinessEntity.cs new file mode 100644 index 0000000..299b3d8 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/BusinessEntity.cs @@ -0,0 +1,102 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'BusinessEntity'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("BusinessEntity", Schema = "Person")] +public partial class BusinessEntity + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public BusinessEntity() + { + #region Generated Constructor + BusinessEntityAddresses = new HashSet(); + BusinessEntityContacts = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'BusinessEntityID'. + /// + /// + /// The property value representing column 'BusinessEntityID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("BusinessEntityID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'rowguid'. + /// + /// + /// The property value representing column 'rowguid'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection BusinessEntityAddresses { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection BusinessEntityContacts { get; set; } + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Person Person { get; set; } = null!; + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Store Store { get; set; } = null!; + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Vendor Vendor { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/BusinessEntityAddress.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/BusinessEntityAddress.cs new file mode 100644 index 0000000..a162599 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/BusinessEntityAddress.cs @@ -0,0 +1,102 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'BusinessEntityAddress'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("BusinessEntityAddress", Schema = "Person")] +public partial class BusinessEntityAddress +{ + /// + /// Initializes a new instance of the class. + /// + public BusinessEntityAddress() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'BusinessEntityID'. + /// + /// + /// The property value representing column 'BusinessEntityID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("BusinessEntityID", TypeName = "int")] + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value representing column 'AddressID'. + /// + /// + /// The property value representing column 'AddressID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("AddressID", TypeName = "int")] + public int AddressId { get; set; } + + /// + /// Gets or sets the property value representing column 'AddressTypeID'. + /// + /// + /// The property value representing column 'AddressTypeID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("AddressTypeID", TypeName = "int")] + public int AddressTypeId { get; set; } + + /// + /// Gets or sets the property value representing column 'rowguid'. + /// + /// + /// The property value representing column 'rowguid'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Address Address { get; set; } = null!; + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual AddressType AddressType { get; set; } = null!; + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual BusinessEntity BusinessEntity { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/BusinessEntityContact.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/BusinessEntityContact.cs new file mode 100644 index 0000000..7b3dc45 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/BusinessEntityContact.cs @@ -0,0 +1,102 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'BusinessEntityContact'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("BusinessEntityContact", Schema = "Person")] +public partial class BusinessEntityContact +{ + /// + /// Initializes a new instance of the class. + /// + public BusinessEntityContact() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'BusinessEntityID'. + /// + /// + /// The property value representing column 'BusinessEntityID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("BusinessEntityID", TypeName = "int")] + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value representing column 'PersonID'. + /// + /// + /// The property value representing column 'PersonID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("PersonID", TypeName = "int")] + public int PersonId { get; set; } + + /// + /// Gets or sets the property value representing column 'ContactTypeID'. + /// + /// + /// The property value representing column 'ContactTypeID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("ContactTypeID", TypeName = "int")] + public int ContactTypeId { get; set; } + + /// + /// Gets or sets the property value representing column 'rowguid'. + /// + /// + /// The property value representing column 'rowguid'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual BusinessEntity BusinessEntity { get; set; } = null!; + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual ContactType ContactType { get; set; } = null!; + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Person Person { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ContactType.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ContactType.cs new file mode 100644 index 0000000..7a8c200 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ContactType.cs @@ -0,0 +1,66 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'ContactType'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("ContactType", Schema = "Person")] +public partial class ContactType + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public ContactType() + { + #region Generated Constructor + BusinessEntityContacts = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'ContactTypeID'. + /// + /// + /// The property value representing column 'ContactTypeID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("ContactTypeID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'Name'. + /// + /// + /// The property value representing column 'Name'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection BusinessEntityContacts { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/CountryRegion.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/CountryRegion.cs new file mode 100644 index 0000000..61c3cf9 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/CountryRegion.cs @@ -0,0 +1,82 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'CountryRegion'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("CountryRegion", Schema = "Person")] +public partial class CountryRegion +{ + /// + /// Initializes a new instance of the class. + /// + public CountryRegion() + { + #region Generated Constructor + CountryRegionCurrencies = new HashSet(); + SalesTerritories = new HashSet(); + StateProvinces = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'CountryRegionCode'. + /// + /// + /// The property value representing column 'CountryRegionCode'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("CountryRegionCode", TypeName = "nvarchar(3)")] + public string CountryRegionCode { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'Name'. + /// + /// + /// The property value representing column 'Name'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection CountryRegionCurrencies { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection SalesTerritories { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection StateProvinces { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/CountryRegionCurrency.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/CountryRegionCurrency.cs new file mode 100644 index 0000000..032f7fe --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/CountryRegionCurrency.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'CountryRegionCurrency'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("CountryRegionCurrency", Schema = "Sales")] +public partial class CountryRegionCurrency +{ + /// + /// Initializes a new instance of the class. + /// + public CountryRegionCurrency() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'CountryRegionCode'. + /// + /// + /// The property value representing column 'CountryRegionCode'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("CountryRegionCode", TypeName = "nvarchar(3)")] + public string CountryRegionCode { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'CurrencyCode'. + /// + /// + /// The property value representing column 'CurrencyCode'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("CurrencyCode", TypeName = "nchar(3)")] + public string CurrencyCode { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual CountryRegion CountryRegion { get; set; } = null!; + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Currency Currency { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/CreditCard.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/CreditCard.cs new file mode 100644 index 0000000..f6e4b0e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/CreditCard.cs @@ -0,0 +1,102 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'CreditCard'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("CreditCard", Schema = "Sales")] +public partial class CreditCard + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public CreditCard() + { + #region Generated Constructor + PersonCreditCards = new HashSet(); + SalesOrderHeaders = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'CreditCardID'. + /// + /// + /// The property value representing column 'CreditCardID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("CreditCardID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'CardType'. + /// + /// + /// The property value representing column 'CardType'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("CardType", TypeName = "nvarchar(50)")] + public string CardType { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'CardNumber'. + /// + /// + /// The property value representing column 'CardNumber'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("CardNumber", TypeName = "nvarchar(25)")] + public string CardNumber { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'ExpMonth'. + /// + /// + /// The property value representing column 'ExpMonth'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ExpMonth", TypeName = "tinyint")] + public byte ExpMonth { get; set; } + + /// + /// Gets or sets the property value representing column 'ExpYear'. + /// + /// + /// The property value representing column 'ExpYear'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ExpYear", TypeName = "smallint")] + public short ExpYear { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection PersonCreditCards { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection SalesOrderHeaders { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Culture.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Culture.cs new file mode 100644 index 0000000..1625fa6 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/Culture.cs @@ -0,0 +1,64 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'Culture'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("Culture", Schema = "Production")] +public partial class Culture +{ + /// + /// Initializes a new instance of the class. + /// + public Culture() + { + #region Generated Constructor + ProductModelProductDescriptionCultures = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'CultureID'. + /// + /// + /// The property value representing column 'CultureID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("CultureID", TypeName = "nchar(6)")] + public string Id { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'Name'. + /// + /// + /// The property value representing column 'Name'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection ProductModelProductDescriptionCultures { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Currency.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Currency.cs new file mode 100644 index 0000000..077c7a5 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/Currency.cs @@ -0,0 +1,82 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'Currency'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("Currency", Schema = "Sales")] +public partial class Currency +{ + /// + /// Initializes a new instance of the class. + /// + public Currency() + { + #region Generated Constructor + CountryRegionCurrencies = new HashSet(); + FromCurrencyRates = new HashSet(); + ToCurrencyRates = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'CurrencyCode'. + /// + /// + /// The property value representing column 'CurrencyCode'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("CurrencyCode", TypeName = "nchar(3)")] + public string CurrencyCode { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'Name'. + /// + /// + /// The property value representing column 'Name'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection CountryRegionCurrencies { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection FromCurrencyRates { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection ToCurrencyRates { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/CurrencyRate.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/CurrencyRate.cs new file mode 100644 index 0000000..dfab90b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/CurrencyRate.cs @@ -0,0 +1,120 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'CurrencyRate'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("CurrencyRate", Schema = "Sales")] +public partial class CurrencyRate + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public CurrencyRate() + { + #region Generated Constructor + SalesOrderHeaders = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'CurrencyRateID'. + /// + /// + /// The property value representing column 'CurrencyRateID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("CurrencyRateID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'CurrencyRateDate'. + /// + /// + /// The property value representing column 'CurrencyRateDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("CurrencyRateDate", TypeName = "datetime")] + public DateTime CurrencyRateDate { get; set; } + + /// + /// Gets or sets the property value representing column 'FromCurrencyCode'. + /// + /// + /// The property value representing column 'FromCurrencyCode'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("FromCurrencyCode", TypeName = "nchar(3)")] + public string FromCurrencyCode { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'ToCurrencyCode'. + /// + /// + /// The property value representing column 'ToCurrencyCode'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ToCurrencyCode", TypeName = "nchar(3)")] + public string ToCurrencyCode { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'AverageRate'. + /// + /// + /// The property value representing column 'AverageRate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("AverageRate", TypeName = "money")] + public decimal AverageRate { get; set; } + + /// + /// Gets or sets the property value representing column 'EndOfDayRate'. + /// + /// + /// The property value representing column 'EndOfDayRate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("EndOfDayRate", TypeName = "money")] + public decimal EndOfDayRate { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Currency FromCurrency { get; set; } = null!; + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection SalesOrderHeaders { get; set; } + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Currency ToCurrency { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Customer.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Customer.cs new file mode 100644 index 0000000..4790d6b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/Customer.cs @@ -0,0 +1,130 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'Customer'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("Customer", Schema = "Sales")] +public partial class Customer + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public Customer() + { + #region Generated Constructor + SalesOrderHeaders = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'CustomerID'. + /// + /// + /// The property value representing column 'CustomerID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("CustomerID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'PersonID'. + /// + /// + /// The property value representing column 'PersonID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("PersonID", TypeName = "int")] + public int? PersonId { get; set; } + + /// + /// Gets or sets the property value representing column 'StoreID'. + /// + /// + /// The property value representing column 'StoreID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("StoreID", TypeName = "int")] + public int? StoreId { get; set; } + + /// + /// Gets or sets the property value representing column 'TerritoryID'. + /// + /// + /// The property value representing column 'TerritoryID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("TerritoryID", TypeName = "int")] + public int? TerritoryId { get; set; } + + /// + /// Gets or sets the property value representing column 'AccountNumber'. + /// + /// + /// The property value representing column 'AccountNumber'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("AccountNumber", TypeName = "varchar(10)")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Computed)] + public string AccountNumber { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'rowguid'. + /// + /// + /// The property value representing column 'rowguid'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Person? Person { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection SalesOrderHeaders { get; set; } + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual SalesTerritory? SalesTerritory { get; set; } + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Store? Store { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Department.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Department.cs new file mode 100644 index 0000000..6c1832d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/Department.cs @@ -0,0 +1,75 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'Department'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("Department", Schema = "HumanResources")] +public partial class Department + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public Department() + { + #region Generated Constructor + EmployeeDepartmentHistories = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'DepartmentID'. + /// + /// + /// The property value representing column 'DepartmentID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("DepartmentID", TypeName = "smallint")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public short Id { get; set; } + + /// + /// Gets or sets the property value representing column 'Name'. + /// + /// + /// The property value representing column 'Name'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'GroupName'. + /// + /// + /// The property value representing column 'GroupName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("GroupName", TypeName = "nvarchar(50)")] + public string GroupName { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection EmployeeDepartmentHistories { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/EmailAddress.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/EmailAddress.cs new file mode 100644 index 0000000..30a2634 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/EmailAddress.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'EmailAddress'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("EmailAddress", Schema = "Person")] +public partial class EmailAddress + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public EmailAddress() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'BusinessEntityID'. + /// + /// + /// The property value representing column 'BusinessEntityID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("BusinessEntityID", TypeName = "int")] + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value representing column 'EmailAddressID'. + /// + /// + /// The property value representing column 'EmailAddressID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("EmailAddressID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'EmailAddress'. + /// + /// + /// The property value representing column 'EmailAddress'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("EmailAddress", TypeName = "nvarchar(50)")] + public string? EmailAddressMember { get; set; } + + /// + /// Gets or sets the property value representing column 'rowguid'. + /// + /// + /// The property value representing column 'rowguid'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Person Person { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Employee.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Employee.cs new file mode 100644 index 0000000..d08b062 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/Employee.cs @@ -0,0 +1,218 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'Employee'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("Employee", Schema = "HumanResources")] +public partial class Employee +{ + /// + /// Initializes a new instance of the class. + /// + public Employee() + { + #region Generated Constructor + EmployeeDepartmentHistories = new HashSet(); + EmployeePayHistories = new HashSet(); + JobCandidates = new HashSet(); + PurchaseOrderHeaders = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'BusinessEntityID'. + /// + /// + /// The property value representing column 'BusinessEntityID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("BusinessEntityID", TypeName = "int")] + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value representing column 'NationalIDNumber'. + /// + /// + /// The property value representing column 'NationalIDNumber'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("NationalIDNumber", TypeName = "nvarchar(15)")] + public string NationalIdNumber { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'LoginID'. + /// + /// + /// The property value representing column 'LoginID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("LoginID", TypeName = "nvarchar(256)")] + public string LoginId { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'OrganizationLevel'. + /// + /// + /// The property value representing column 'OrganizationLevel'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("OrganizationLevel", TypeName = "smallint")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Computed)] + public short? OrganizationLevel { get; set; } + + /// + /// Gets or sets the property value representing column 'JobTitle'. + /// + /// + /// The property value representing column 'JobTitle'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("JobTitle", TypeName = "nvarchar(50)")] + public string JobTitle { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'BirthDate'. + /// + /// + /// The property value representing column 'BirthDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("BirthDate", TypeName = "date")] + public DateOnly BirthDate { get; set; } + + /// + /// Gets or sets the property value representing column 'MaritalStatus'. + /// + /// + /// The property value representing column 'MaritalStatus'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("MaritalStatus", TypeName = "nchar(1)")] + public string MaritalStatus { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'Gender'. + /// + /// + /// The property value representing column 'Gender'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Gender", TypeName = "nchar(1)")] + public string Gender { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'HireDate'. + /// + /// + /// The property value representing column 'HireDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("HireDate", TypeName = "date")] + public DateOnly HireDate { get; set; } + + /// + /// Gets or sets the property value representing column 'SalariedFlag'. + /// + /// + /// The property value representing column 'SalariedFlag'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("SalariedFlag", TypeName = "bit")] + public bool SalariedFlag { get; set; } + + /// + /// Gets or sets the property value representing column 'VacationHours'. + /// + /// + /// The property value representing column 'VacationHours'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("VacationHours", TypeName = "smallint")] + public short VacationHours { get; set; } + + /// + /// Gets or sets the property value representing column 'SickLeaveHours'. + /// + /// + /// The property value representing column 'SickLeaveHours'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("SickLeaveHours", TypeName = "smallint")] + public short SickLeaveHours { get; set; } + + /// + /// Gets or sets the property value representing column 'CurrentFlag'. + /// + /// + /// The property value representing column 'CurrentFlag'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("CurrentFlag", TypeName = "bit")] + public bool CurrentFlag { get; set; } + + /// + /// Gets or sets the property value representing column 'rowguid'. + /// + /// + /// The property value representing column 'rowguid'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection EmployeeDepartmentHistories { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection EmployeePayHistories { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection JobCandidates { get; set; } + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Person Person { get; set; } = null!; + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection PurchaseOrderHeaders { get; set; } + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual SalesPerson SalesPerson { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/EmployeeDepartmentHistory.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/EmployeeDepartmentHistory.cs new file mode 100644 index 0000000..526ed04 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/EmployeeDepartmentHistory.cs @@ -0,0 +1,112 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'EmployeeDepartmentHistory'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("EmployeeDepartmentHistory", Schema = "HumanResources")] +public partial class EmployeeDepartmentHistory +{ + /// + /// Initializes a new instance of the class. + /// + public EmployeeDepartmentHistory() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'BusinessEntityID'. + /// + /// + /// The property value representing column 'BusinessEntityID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("BusinessEntityID", TypeName = "int")] + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value representing column 'DepartmentID'. + /// + /// + /// The property value representing column 'DepartmentID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("DepartmentID", TypeName = "smallint")] + public short DepartmentId { get; set; } + + /// + /// Gets or sets the property value representing column 'ShiftID'. + /// + /// + /// The property value representing column 'ShiftID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("ShiftID", TypeName = "tinyint")] + public byte ShiftId { get; set; } + + /// + /// Gets or sets the property value representing column 'StartDate'. + /// + /// + /// The property value representing column 'StartDate'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("StartDate", TypeName = "date")] + public DateOnly StartDate { get; set; } + + /// + /// Gets or sets the property value representing column 'EndDate'. + /// + /// + /// The property value representing column 'EndDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("EndDate", TypeName = "date")] + public DateOnly? EndDate { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Department Department { get; set; } = null!; + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Employee Employee { get; set; } = null!; + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Shift Shift { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/EmployeePayHistory.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/EmployeePayHistory.cs new file mode 100644 index 0000000..4f1e6be --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/EmployeePayHistory.cs @@ -0,0 +1,83 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'EmployeePayHistory'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("EmployeePayHistory", Schema = "HumanResources")] +public partial class EmployeePayHistory +{ + /// + /// Initializes a new instance of the class. + /// + public EmployeePayHistory() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'BusinessEntityID'. + /// + /// + /// The property value representing column 'BusinessEntityID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("BusinessEntityID", TypeName = "int")] + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value representing column 'RateChangeDate'. + /// + /// + /// The property value representing column 'RateChangeDate'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("RateChangeDate", TypeName = "datetime")] + public DateTime RateChangeDate { get; set; } + + /// + /// Gets or sets the property value representing column 'Rate'. + /// + /// + /// The property value representing column 'Rate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Rate", TypeName = "money")] + public decimal Rate { get; set; } + + /// + /// Gets or sets the property value representing column 'PayFrequency'. + /// + /// + /// The property value representing column 'PayFrequency'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("PayFrequency", TypeName = "tinyint")] + public byte PayFrequency { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Employee Employee { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Illustration.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Illustration.cs new file mode 100644 index 0000000..ef6d8e6 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/Illustration.cs @@ -0,0 +1,66 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'Illustration'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("Illustration", Schema = "Production")] +public partial class Illustration + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public Illustration() + { + #region Generated Constructor + ProductModelIllustrations = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'IllustrationID'. + /// + /// + /// The property value representing column 'IllustrationID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("IllustrationID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'Diagram'. + /// + /// + /// The property value representing column 'Diagram'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Diagram", TypeName = "xml")] + public string? Diagram { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection ProductModelIllustrations { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/JobCandidate.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/JobCandidate.cs new file mode 100644 index 0000000..5d16fde --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/JobCandidate.cs @@ -0,0 +1,75 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'JobCandidate'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("JobCandidate", Schema = "HumanResources")] +public partial class JobCandidate + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public JobCandidate() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'JobCandidateID'. + /// + /// + /// The property value representing column 'JobCandidateID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("JobCandidateID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'BusinessEntityID'. + /// + /// + /// The property value representing column 'BusinessEntityID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("BusinessEntityID", TypeName = "int")] + public int? BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value representing column 'Resume'. + /// + /// + /// The property value representing column 'Resume'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Resume", TypeName = "xml")] + public string? Resume { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Employee? Employee { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Location.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Location.cs new file mode 100644 index 0000000..e6205e6 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/Location.cs @@ -0,0 +1,93 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'Location'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("Location", Schema = "Production")] +public partial class Location + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public Location() + { + #region Generated Constructor + ProductInventories = new HashSet(); + WorkOrderRoutings = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'LocationID'. + /// + /// + /// The property value representing column 'LocationID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("LocationID", TypeName = "smallint")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public short Id { get; set; } + + /// + /// Gets or sets the property value representing column 'Name'. + /// + /// + /// The property value representing column 'Name'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'CostRate'. + /// + /// + /// The property value representing column 'CostRate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("CostRate", TypeName = "smallmoney")] + public decimal CostRate { get; set; } + + /// + /// Gets or sets the property value representing column 'Availability'. + /// + /// + /// The property value representing column 'Availability'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Availability", TypeName = "decimal(8,2)")] + public decimal Availability { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection ProductInventories { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection WorkOrderRoutings { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Password.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Password.cs new file mode 100644 index 0000000..45e79d4 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/Password.cs @@ -0,0 +1,82 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'Password'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("Password", Schema = "Person")] +public partial class Password +{ + /// + /// Initializes a new instance of the class. + /// + public Password() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'BusinessEntityID'. + /// + /// + /// The property value representing column 'BusinessEntityID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("BusinessEntityID", TypeName = "int")] + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value representing column 'PasswordHash'. + /// + /// + /// The property value representing column 'PasswordHash'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("PasswordHash", TypeName = "varchar(128)")] + public string PasswordHash { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'PasswordSalt'. + /// + /// + /// The property value representing column 'PasswordSalt'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("PasswordSalt", TypeName = "varchar(10)")] + public string PasswordSalt { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'rowguid'. + /// + /// + /// The property value representing column 'rowguid'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Person Person { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Person.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Person.cs new file mode 100644 index 0000000..dfff484 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/Person.cs @@ -0,0 +1,217 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'Person'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("Person", Schema = "Person")] +public partial class Person +{ + /// + /// Initializes a new instance of the class. + /// + public Person() + { + #region Generated Constructor + BusinessEntityContacts = new HashSet(); + Customers = new HashSet(); + EmailAddresses = new HashSet(); + PersonCreditCards = new HashSet(); + PersonPhones = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'BusinessEntityID'. + /// + /// + /// The property value representing column 'BusinessEntityID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("BusinessEntityID", TypeName = "int")] + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value representing column 'PersonType'. + /// + /// + /// The property value representing column 'PersonType'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("PersonType", TypeName = "nchar(2)")] + public string PersonType { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'NameStyle'. + /// + /// + /// The property value representing column 'NameStyle'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("NameStyle", TypeName = "bit")] + public bool NameStyle { get; set; } + + /// + /// Gets or sets the property value representing column 'Title'. + /// + /// + /// The property value representing column 'Title'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Title", TypeName = "nvarchar(8)")] + public string? Title { get; set; } + + /// + /// Gets or sets the property value representing column 'FirstName'. + /// + /// + /// The property value representing column 'FirstName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("FirstName", TypeName = "nvarchar(50)")] + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'MiddleName'. + /// + /// + /// The property value representing column 'MiddleName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("MiddleName", TypeName = "nvarchar(50)")] + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value representing column 'LastName'. + /// + /// + /// The property value representing column 'LastName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("LastName", TypeName = "nvarchar(50)")] + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'Suffix'. + /// + /// + /// The property value representing column 'Suffix'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Suffix", TypeName = "nvarchar(10)")] + public string? Suffix { get; set; } + + /// + /// Gets or sets the property value representing column 'EmailPromotion'. + /// + /// + /// The property value representing column 'EmailPromotion'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("EmailPromotion", TypeName = "int")] + public int EmailPromotion { get; set; } + + /// + /// Gets or sets the property value representing column 'AdditionalContactInfo'. + /// + /// + /// The property value representing column 'AdditionalContactInfo'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("AdditionalContactInfo", TypeName = "xml")] + public string? AdditionalContactInfo { get; set; } + + /// + /// Gets or sets the property value representing column 'Demographics'. + /// + /// + /// The property value representing column 'Demographics'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Demographics", TypeName = "xml")] + public string? Demographics { get; set; } + + /// + /// Gets or sets the property value representing column 'rowguid'. + /// + /// + /// The property value representing column 'rowguid'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual BusinessEntity BusinessEntity { get; set; } = null!; + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection BusinessEntityContacts { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection Customers { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection EmailAddresses { get; set; } + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Employee Employee { get; set; } = null!; + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Password Password { get; set; } = null!; + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection PersonCreditCards { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection PersonPhones { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/PersonCreditCard.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/PersonCreditCard.cs new file mode 100644 index 0000000..d0688f6 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/PersonCreditCard.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'PersonCreditCard'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("PersonCreditCard", Schema = "Sales")] +public partial class PersonCreditCard +{ + /// + /// Initializes a new instance of the class. + /// + public PersonCreditCard() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'BusinessEntityID'. + /// + /// + /// The property value representing column 'BusinessEntityID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("BusinessEntityID", TypeName = "int")] + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value representing column 'CreditCardID'. + /// + /// + /// The property value representing column 'CreditCardID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("CreditCardID", TypeName = "int")] + public int CreditCardId { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual CreditCard CreditCard { get; set; } = null!; + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Person Person { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/PersonPhone.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/PersonPhone.cs new file mode 100644 index 0000000..552b2ae --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/PersonPhone.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'PersonPhone'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("PersonPhone", Schema = "Person")] +public partial class PersonPhone +{ + /// + /// Initializes a new instance of the class. + /// + public PersonPhone() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'BusinessEntityID'. + /// + /// + /// The property value representing column 'BusinessEntityID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("BusinessEntityID", TypeName = "int")] + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value representing column 'PhoneNumber'. + /// + /// + /// The property value representing column 'PhoneNumber'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("PhoneNumber", TypeName = "nvarchar(25)")] + public string PhoneNumber { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'PhoneNumberTypeID'. + /// + /// + /// The property value representing column 'PhoneNumberTypeID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("PhoneNumberTypeID", TypeName = "int")] + public int PhoneNumberTypeId { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Person Person { get; set; } = null!; + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual PhoneNumberType PhoneNumberType { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/PhoneNumberType.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/PhoneNumberType.cs new file mode 100644 index 0000000..af0064c --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/PhoneNumberType.cs @@ -0,0 +1,66 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'PhoneNumberType'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("PhoneNumberType", Schema = "Person")] +public partial class PhoneNumberType + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public PhoneNumberType() + { + #region Generated Constructor + PersonPhones = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'PhoneNumberTypeID'. + /// + /// + /// The property value representing column 'PhoneNumberTypeID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("PhoneNumberTypeID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'Name'. + /// + /// + /// The property value representing column 'Name'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection PersonPhones { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Product.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Product.cs new file mode 100644 index 0000000..d4aff96 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/Product.cs @@ -0,0 +1,417 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'Product'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("Product", Schema = "Production")] +public partial class Product + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public Product() + { + #region Generated Constructor + AssemblyBillOfMaterials = new HashSet(); + ComponentBillOfMaterials = new HashSet(); + ProductCostHistories = new HashSet(); + ProductDocuments = new HashSet(); + ProductInventories = new HashSet(); + ProductListPriceHistories = new HashSet(); + ProductProductPhotos = new HashSet(); + ProductReviews = new HashSet(); + ProductVendors = new HashSet(); + PurchaseOrderDetails = new HashSet(); + ShoppingCartItems = new HashSet(); + SpecialOfferProducts = new HashSet(); + TransactionHistories = new HashSet(); + WorkOrders = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'ProductID'. + /// + /// + /// The property value representing column 'ProductID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("ProductID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'Name'. + /// + /// + /// The property value representing column 'Name'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'ProductNumber'. + /// + /// + /// The property value representing column 'ProductNumber'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ProductNumber", TypeName = "nvarchar(25)")] + public string ProductNumber { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'MakeFlag'. + /// + /// + /// The property value representing column 'MakeFlag'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("MakeFlag", TypeName = "bit")] + public bool MakeFlag { get; set; } + + /// + /// Gets or sets the property value representing column 'FinishedGoodsFlag'. + /// + /// + /// The property value representing column 'FinishedGoodsFlag'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("FinishedGoodsFlag", TypeName = "bit")] + public bool FinishedGoodsFlag { get; set; } + + /// + /// Gets or sets the property value representing column 'Color'. + /// + /// + /// The property value representing column 'Color'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Color", TypeName = "nvarchar(15)")] + public string? Color { get; set; } + + /// + /// Gets or sets the property value representing column 'SafetyStockLevel'. + /// + /// + /// The property value representing column 'SafetyStockLevel'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("SafetyStockLevel", TypeName = "smallint")] + public short SafetyStockLevel { get; set; } + + /// + /// Gets or sets the property value representing column 'ReorderPoint'. + /// + /// + /// The property value representing column 'ReorderPoint'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ReorderPoint", TypeName = "smallint")] + public short ReorderPoint { get; set; } + + /// + /// Gets or sets the property value representing column 'StandardCost'. + /// + /// + /// The property value representing column 'StandardCost'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("StandardCost", TypeName = "money")] + public decimal StandardCost { get; set; } + + /// + /// Gets or sets the property value representing column 'ListPrice'. + /// + /// + /// The property value representing column 'ListPrice'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ListPrice", TypeName = "money")] + public decimal ListPrice { get; set; } + + /// + /// Gets or sets the property value representing column 'Size'. + /// + /// + /// The property value representing column 'Size'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Size", TypeName = "nvarchar(5)")] + public string? Size { get; set; } + + /// + /// Gets or sets the property value representing column 'SizeUnitMeasureCode'. + /// + /// + /// The property value representing column 'SizeUnitMeasureCode'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("SizeUnitMeasureCode", TypeName = "nchar(3)")] + public string? SizeUnitMeasureCode { get; set; } + + /// + /// Gets or sets the property value representing column 'WeightUnitMeasureCode'. + /// + /// + /// The property value representing column 'WeightUnitMeasureCode'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("WeightUnitMeasureCode", TypeName = "nchar(3)")] + public string? WeightUnitMeasureCode { get; set; } + + /// + /// Gets or sets the property value representing column 'Weight'. + /// + /// + /// The property value representing column 'Weight'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Weight", TypeName = "decimal(8,2)")] + public decimal? Weight { get; set; } + + /// + /// Gets or sets the property value representing column 'DaysToManufacture'. + /// + /// + /// The property value representing column 'DaysToManufacture'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("DaysToManufacture", TypeName = "int")] + public int DaysToManufacture { get; set; } + + /// + /// Gets or sets the property value representing column 'ProductLine'. + /// + /// + /// The property value representing column 'ProductLine'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ProductLine", TypeName = "nchar(2)")] + public string? ProductLine { get; set; } + + /// + /// Gets or sets the property value representing column 'Class'. + /// + /// + /// The property value representing column 'Class'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Class", TypeName = "nchar(2)")] + public string? Class { get; set; } + + /// + /// Gets or sets the property value representing column 'Style'. + /// + /// + /// The property value representing column 'Style'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Style", TypeName = "nchar(2)")] + public string? Style { get; set; } + + /// + /// Gets or sets the property value representing column 'ProductSubcategoryID'. + /// + /// + /// The property value representing column 'ProductSubcategoryID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ProductSubcategoryID", TypeName = "int")] + public int? ProductSubcategoryId { get; set; } + + /// + /// Gets or sets the property value representing column 'ProductModelID'. + /// + /// + /// The property value representing column 'ProductModelID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ProductModelID", TypeName = "int")] + public int? ProductModelId { get; set; } + + /// + /// Gets or sets the property value representing column 'SellStartDate'. + /// + /// + /// The property value representing column 'SellStartDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("SellStartDate", TypeName = "datetime")] + public DateTime SellStartDate { get; set; } + + /// + /// Gets or sets the property value representing column 'SellEndDate'. + /// + /// + /// The property value representing column 'SellEndDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("SellEndDate", TypeName = "datetime")] + public DateTime? SellEndDate { get; set; } + + /// + /// Gets or sets the property value representing column 'DiscontinuedDate'. + /// + /// + /// The property value representing column 'DiscontinuedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("DiscontinuedDate", TypeName = "datetime")] + public DateTime? DiscontinuedDate { get; set; } + + /// + /// Gets or sets the property value representing column 'rowguid'. + /// + /// + /// The property value representing column 'rowguid'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection AssemblyBillOfMaterials { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection ComponentBillOfMaterials { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection ProductCostHistories { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection ProductDocuments { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection ProductInventories { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection ProductListPriceHistories { get; set; } + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual ProductModel? ProductModel { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection ProductProductPhotos { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection ProductReviews { get; set; } + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual ProductSubcategory? ProductSubcategory { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection ProductVendors { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection PurchaseOrderDetails { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection ShoppingCartItems { get; set; } + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual UnitMeasure? SizeUnitMeasure { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection SpecialOfferProducts { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection TransactionHistories { get; set; } + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual UnitMeasure? WeightUnitMeasure { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection WorkOrders { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductCategory.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductCategory.cs new file mode 100644 index 0000000..66d3172 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductCategory.cs @@ -0,0 +1,75 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'ProductCategory'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("ProductCategory", Schema = "Production")] +public partial class ProductCategory + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public ProductCategory() + { + #region Generated Constructor + ProductSubcategories = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'ProductCategoryID'. + /// + /// + /// The property value representing column 'ProductCategoryID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("ProductCategoryID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'Name'. + /// + /// + /// The property value representing column 'Name'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'rowguid'. + /// + /// + /// The property value representing column 'rowguid'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection ProductSubcategories { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductCostHistory.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductCostHistory.cs new file mode 100644 index 0000000..bcb5cf1 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductCostHistory.cs @@ -0,0 +1,83 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'ProductCostHistory'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("ProductCostHistory", Schema = "Production")] +public partial class ProductCostHistory +{ + /// + /// Initializes a new instance of the class. + /// + public ProductCostHistory() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'ProductID'. + /// + /// + /// The property value representing column 'ProductID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("ProductID", TypeName = "int")] + public int ProductId { get; set; } + + /// + /// Gets or sets the property value representing column 'StartDate'. + /// + /// + /// The property value representing column 'StartDate'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("StartDate", TypeName = "datetime")] + public DateTime StartDate { get; set; } + + /// + /// Gets or sets the property value representing column 'EndDate'. + /// + /// + /// The property value representing column 'EndDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("EndDate", TypeName = "datetime")] + public DateTime? EndDate { get; set; } + + /// + /// Gets or sets the property value representing column 'StandardCost'. + /// + /// + /// The property value representing column 'StandardCost'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("StandardCost", TypeName = "money")] + public decimal StandardCost { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Product Product { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductDescription.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductDescription.cs new file mode 100644 index 0000000..e830703 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductDescription.cs @@ -0,0 +1,75 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'ProductDescription'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("ProductDescription", Schema = "Production")] +public partial class ProductDescription + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public ProductDescription() + { + #region Generated Constructor + ProductModelProductDescriptionCultures = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'ProductDescriptionID'. + /// + /// + /// The property value representing column 'ProductDescriptionID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("ProductDescriptionID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'Description'. + /// + /// + /// The property value representing column 'Description'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Description", TypeName = "nvarchar(400)")] + public string Description { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'rowguid'. + /// + /// + /// The property value representing column 'rowguid'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection ProductModelProductDescriptionCultures { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductDocument.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductDocument.cs new file mode 100644 index 0000000..6edd74c --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductDocument.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'ProductDocument'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("ProductDocument", Schema = "Production")] +public partial class ProductDocument +{ + /// + /// Initializes a new instance of the class. + /// + public ProductDocument() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'ProductID'. + /// + /// + /// The property value representing column 'ProductID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("ProductID", TypeName = "int")] + public int ProductId { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Product Product { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductInventory.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductInventory.cs new file mode 100644 index 0000000..15b6e30 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductInventory.cs @@ -0,0 +1,110 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'ProductInventory'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("ProductInventory", Schema = "Production")] +public partial class ProductInventory +{ + /// + /// Initializes a new instance of the class. + /// + public ProductInventory() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'ProductID'. + /// + /// + /// The property value representing column 'ProductID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("ProductID", TypeName = "int")] + public int ProductId { get; set; } + + /// + /// Gets or sets the property value representing column 'LocationID'. + /// + /// + /// The property value representing column 'LocationID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("LocationID", TypeName = "smallint")] + public short LocationId { get; set; } + + /// + /// Gets or sets the property value representing column 'Shelf'. + /// + /// + /// The property value representing column 'Shelf'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Shelf", TypeName = "nvarchar(10)")] + public string Shelf { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'Bin'. + /// + /// + /// The property value representing column 'Bin'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Bin", TypeName = "tinyint")] + public byte Bin { get; set; } + + /// + /// Gets or sets the property value representing column 'Quantity'. + /// + /// + /// The property value representing column 'Quantity'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Quantity", TypeName = "smallint")] + public short Quantity { get; set; } + + /// + /// Gets or sets the property value representing column 'rowguid'. + /// + /// + /// The property value representing column 'rowguid'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Location Location { get; set; } = null!; + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Product Product { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductListPriceHistory.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductListPriceHistory.cs new file mode 100644 index 0000000..49f2b1e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductListPriceHistory.cs @@ -0,0 +1,83 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'ProductListPriceHistory'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("ProductListPriceHistory", Schema = "Production")] +public partial class ProductListPriceHistory +{ + /// + /// Initializes a new instance of the class. + /// + public ProductListPriceHistory() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'ProductID'. + /// + /// + /// The property value representing column 'ProductID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("ProductID", TypeName = "int")] + public int ProductId { get; set; } + + /// + /// Gets or sets the property value representing column 'StartDate'. + /// + /// + /// The property value representing column 'StartDate'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("StartDate", TypeName = "datetime")] + public DateTime StartDate { get; set; } + + /// + /// Gets or sets the property value representing column 'EndDate'. + /// + /// + /// The property value representing column 'EndDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("EndDate", TypeName = "datetime")] + public DateTime? EndDate { get; set; } + + /// + /// Gets or sets the property value representing column 'ListPrice'. + /// + /// + /// The property value representing column 'ListPrice'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ListPrice", TypeName = "money")] + public decimal ListPrice { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Product Product { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductModel.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductModel.cs new file mode 100644 index 0000000..6f0b466 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductModel.cs @@ -0,0 +1,111 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'ProductModel'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("ProductModel", Schema = "Production")] +public partial class ProductModel + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public ProductModel() + { + #region Generated Constructor + ProductModelIllustrations = new HashSet(); + ProductModelProductDescriptionCultures = new HashSet(); + Products = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'ProductModelID'. + /// + /// + /// The property value representing column 'ProductModelID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("ProductModelID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'Name'. + /// + /// + /// The property value representing column 'Name'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'CatalogDescription'. + /// + /// + /// The property value representing column 'CatalogDescription'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("CatalogDescription", TypeName = "xml")] + public string? CatalogDescription { get; set; } + + /// + /// Gets or sets the property value representing column 'Instructions'. + /// + /// + /// The property value representing column 'Instructions'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Instructions", TypeName = "xml")] + public string? Instructions { get; set; } + + /// + /// Gets or sets the property value representing column 'rowguid'. + /// + /// + /// The property value representing column 'rowguid'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection ProductModelIllustrations { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection ProductModelProductDescriptionCultures { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection Products { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductModelIllustration.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductModelIllustration.cs new file mode 100644 index 0000000..468ad3c --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductModelIllustration.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'ProductModelIllustration'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("ProductModelIllustration", Schema = "Production")] +public partial class ProductModelIllustration +{ + /// + /// Initializes a new instance of the class. + /// + public ProductModelIllustration() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'ProductModelID'. + /// + /// + /// The property value representing column 'ProductModelID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("ProductModelID", TypeName = "int")] + public int ProductModelId { get; set; } + + /// + /// Gets or sets the property value representing column 'IllustrationID'. + /// + /// + /// The property value representing column 'IllustrationID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("IllustrationID", TypeName = "int")] + public int IllustrationId { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Illustration Illustration { get; set; } = null!; + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual ProductModel ProductModel { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductModelProductDescriptionCulture.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductModelProductDescriptionCulture.cs new file mode 100644 index 0000000..5eea201 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductModelProductDescriptionCulture.cs @@ -0,0 +1,93 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'ProductModelProductDescriptionCulture'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("ProductModelProductDescriptionCulture", Schema = "Production")] +public partial class ProductModelProductDescriptionCulture +{ + /// + /// Initializes a new instance of the class. + /// + public ProductModelProductDescriptionCulture() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'ProductModelID'. + /// + /// + /// The property value representing column 'ProductModelID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("ProductModelID", TypeName = "int")] + public int ProductModelId { get; set; } + + /// + /// Gets or sets the property value representing column 'ProductDescriptionID'. + /// + /// + /// The property value representing column 'ProductDescriptionID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("ProductDescriptionID", TypeName = "int")] + public int ProductDescriptionId { get; set; } + + /// + /// Gets or sets the property value representing column 'CultureID'. + /// + /// + /// The property value representing column 'CultureID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("CultureID", TypeName = "nchar(6)")] + public string CultureId { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Culture Culture { get; set; } = null!; + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual ProductDescription ProductDescription { get; set; } = null!; + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual ProductModel ProductModel { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductPhoto.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductPhoto.cs new file mode 100644 index 0000000..1c1af55 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductPhoto.cs @@ -0,0 +1,93 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'ProductPhoto'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("ProductPhoto", Schema = "Production")] +public partial class ProductPhoto + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public ProductPhoto() + { + #region Generated Constructor + ProductProductPhotos = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'ProductPhotoID'. + /// + /// + /// The property value representing column 'ProductPhotoID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("ProductPhotoID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'ThumbNailPhoto'. + /// + /// + /// The property value representing column 'ThumbNailPhoto'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ThumbNailPhoto", TypeName = "varbinary(max)")] + public byte[]? ThumbNailPhoto { get; set; } + + /// + /// Gets or sets the property value representing column 'ThumbnailPhotoFileName'. + /// + /// + /// The property value representing column 'ThumbnailPhotoFileName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ThumbnailPhotoFileName", TypeName = "nvarchar(50)")] + public string? ThumbnailPhotoFileName { get; set; } + + /// + /// Gets or sets the property value representing column 'LargePhoto'. + /// + /// + /// The property value representing column 'LargePhoto'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("LargePhoto", TypeName = "varbinary(max)")] + public byte[]? LargePhoto { get; set; } + + /// + /// Gets or sets the property value representing column 'LargePhotoFileName'. + /// + /// + /// The property value representing column 'LargePhotoFileName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("LargePhotoFileName", TypeName = "nvarchar(50)")] + public string? LargePhotoFileName { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection ProductProductPhotos { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductProductPhoto.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductProductPhoto.cs new file mode 100644 index 0000000..4591882 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductProductPhoto.cs @@ -0,0 +1,83 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'ProductProductPhoto'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("ProductProductPhoto", Schema = "Production")] +public partial class ProductProductPhoto +{ + /// + /// Initializes a new instance of the class. + /// + public ProductProductPhoto() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'ProductID'. + /// + /// + /// The property value representing column 'ProductID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("ProductID", TypeName = "int")] + public int ProductId { get; set; } + + /// + /// Gets or sets the property value representing column 'ProductPhotoID'. + /// + /// + /// The property value representing column 'ProductPhotoID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("ProductPhotoID", TypeName = "int")] + public int ProductPhotoId { get; set; } + + /// + /// Gets or sets the property value representing column 'Primary'. + /// + /// + /// The property value representing column 'Primary'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Primary", TypeName = "bit")] + public bool Primary { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Product Product { get; set; } = null!; + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual ProductPhoto ProductPhoto { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductReview.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductReview.cs new file mode 100644 index 0000000..f69c75a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductReview.cs @@ -0,0 +1,111 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'ProductReview'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("ProductReview", Schema = "Production")] +public partial class ProductReview + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public ProductReview() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'ProductReviewID'. + /// + /// + /// The property value representing column 'ProductReviewID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("ProductReviewID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'ProductID'. + /// + /// + /// The property value representing column 'ProductID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ProductID", TypeName = "int")] + public int ProductId { get; set; } + + /// + /// Gets or sets the property value representing column 'ReviewerName'. + /// + /// + /// The property value representing column 'ReviewerName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ReviewerName", TypeName = "nvarchar(50)")] + public string ReviewerName { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'ReviewDate'. + /// + /// + /// The property value representing column 'ReviewDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ReviewDate", TypeName = "datetime")] + public DateTime ReviewDate { get; set; } + + /// + /// Gets or sets the property value representing column 'EmailAddress'. + /// + /// + /// The property value representing column 'EmailAddress'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("EmailAddress", TypeName = "nvarchar(50)")] + public string EmailAddress { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'Rating'. + /// + /// + /// The property value representing column 'Rating'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Rating", TypeName = "int")] + public int Rating { get; set; } + + /// + /// Gets or sets the property value representing column 'Comments'. + /// + /// + /// The property value representing column 'Comments'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Comments", TypeName = "nvarchar(3850)")] + public string? Comments { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Product Product { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductSubcategory.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductSubcategory.cs new file mode 100644 index 0000000..2d989f9 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductSubcategory.cs @@ -0,0 +1,93 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'ProductSubcategory'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("ProductSubcategory", Schema = "Production")] +public partial class ProductSubcategory + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public ProductSubcategory() + { + #region Generated Constructor + Products = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'ProductSubcategoryID'. + /// + /// + /// The property value representing column 'ProductSubcategoryID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("ProductSubcategoryID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'ProductCategoryID'. + /// + /// + /// The property value representing column 'ProductCategoryID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ProductCategoryID", TypeName = "int")] + public int ProductCategoryId { get; set; } + + /// + /// Gets or sets the property value representing column 'Name'. + /// + /// + /// The property value representing column 'Name'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'rowguid'. + /// + /// + /// The property value representing column 'rowguid'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual ProductCategory ProductCategory { get; set; } = null!; + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection Products { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductVendor.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductVendor.cs new file mode 100644 index 0000000..bdd9d31 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductVendor.cs @@ -0,0 +1,155 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'ProductVendor'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("ProductVendor", Schema = "Purchasing")] +public partial class ProductVendor +{ + /// + /// Initializes a new instance of the class. + /// + public ProductVendor() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'ProductID'. + /// + /// + /// The property value representing column 'ProductID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("ProductID", TypeName = "int")] + public int ProductId { get; set; } + + /// + /// Gets or sets the property value representing column 'BusinessEntityID'. + /// + /// + /// The property value representing column 'BusinessEntityID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("BusinessEntityID", TypeName = "int")] + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value representing column 'AverageLeadTime'. + /// + /// + /// The property value representing column 'AverageLeadTime'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("AverageLeadTime", TypeName = "int")] + public int AverageLeadTime { get; set; } + + /// + /// Gets or sets the property value representing column 'StandardPrice'. + /// + /// + /// The property value representing column 'StandardPrice'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("StandardPrice", TypeName = "money")] + public decimal StandardPrice { get; set; } + + /// + /// Gets or sets the property value representing column 'LastReceiptCost'. + /// + /// + /// The property value representing column 'LastReceiptCost'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("LastReceiptCost", TypeName = "money")] + public decimal? LastReceiptCost { get; set; } + + /// + /// Gets or sets the property value representing column 'LastReceiptDate'. + /// + /// + /// The property value representing column 'LastReceiptDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("LastReceiptDate", TypeName = "datetime")] + public DateTime? LastReceiptDate { get; set; } + + /// + /// Gets or sets the property value representing column 'MinOrderQty'. + /// + /// + /// The property value representing column 'MinOrderQty'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("MinOrderQty", TypeName = "int")] + public int MinOrderQty { get; set; } + + /// + /// Gets or sets the property value representing column 'MaxOrderQty'. + /// + /// + /// The property value representing column 'MaxOrderQty'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("MaxOrderQty", TypeName = "int")] + public int MaxOrderQty { get; set; } + + /// + /// Gets or sets the property value representing column 'OnOrderQty'. + /// + /// + /// The property value representing column 'OnOrderQty'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("OnOrderQty", TypeName = "int")] + public int? OnOrderQty { get; set; } + + /// + /// Gets or sets the property value representing column 'UnitMeasureCode'. + /// + /// + /// The property value representing column 'UnitMeasureCode'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("UnitMeasureCode", TypeName = "nchar(3)")] + public string UnitMeasureCode { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Product Product { get; set; } = null!; + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual UnitMeasure UnitMeasure { get; set; } = null!; + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Vendor Vendor { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/PurchaseOrderDetail.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/PurchaseOrderDetail.cs new file mode 100644 index 0000000..88736d3 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/PurchaseOrderDetail.cs @@ -0,0 +1,150 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'PurchaseOrderDetail'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("PurchaseOrderDetail", Schema = "Purchasing")] +public partial class PurchaseOrderDetail + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public PurchaseOrderDetail() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'PurchaseOrderID'. + /// + /// + /// The property value representing column 'PurchaseOrderID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("PurchaseOrderID", TypeName = "int")] + public int PurchaseOrderId { get; set; } + + /// + /// Gets or sets the property value representing column 'PurchaseOrderDetailID'. + /// + /// + /// The property value representing column 'PurchaseOrderDetailID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("PurchaseOrderDetailID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'DueDate'. + /// + /// + /// The property value representing column 'DueDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("DueDate", TypeName = "datetime")] + public DateTime DueDate { get; set; } + + /// + /// Gets or sets the property value representing column 'OrderQty'. + /// + /// + /// The property value representing column 'OrderQty'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("OrderQty", TypeName = "smallint")] + public short OrderQty { get; set; } + + /// + /// Gets or sets the property value representing column 'ProductID'. + /// + /// + /// The property value representing column 'ProductID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ProductID", TypeName = "int")] + public int ProductId { get; set; } + + /// + /// Gets or sets the property value representing column 'UnitPrice'. + /// + /// + /// The property value representing column 'UnitPrice'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("UnitPrice", TypeName = "money")] + public decimal UnitPrice { get; set; } + + /// + /// Gets or sets the property value representing column 'LineTotal'. + /// + /// + /// The property value representing column 'LineTotal'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("LineTotal", TypeName = "money")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Computed)] + public decimal LineTotal { get; set; } + + /// + /// Gets or sets the property value representing column 'ReceivedQty'. + /// + /// + /// The property value representing column 'ReceivedQty'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ReceivedQty", TypeName = "decimal(8,2)")] + public decimal ReceivedQty { get; set; } + + /// + /// Gets or sets the property value representing column 'RejectedQty'. + /// + /// + /// The property value representing column 'RejectedQty'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("RejectedQty", TypeName = "decimal(8,2)")] + public decimal RejectedQty { get; set; } + + /// + /// Gets or sets the property value representing column 'StockedQty'. + /// + /// + /// The property value representing column 'StockedQty'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("StockedQty", TypeName = "decimal(9,2)")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Computed)] + public decimal StockedQty { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Product Product { get; set; } = null!; + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual PurchaseOrderHeader PurchaseOrderHeader { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/PurchaseOrderHeader.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/PurchaseOrderHeader.cs new file mode 100644 index 0000000..35a61c0 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/PurchaseOrderHeader.cs @@ -0,0 +1,184 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'PurchaseOrderHeader'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("PurchaseOrderHeader", Schema = "Purchasing")] +public partial class PurchaseOrderHeader + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public PurchaseOrderHeader() + { + #region Generated Constructor + PurchaseOrderDetails = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'PurchaseOrderID'. + /// + /// + /// The property value representing column 'PurchaseOrderID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("PurchaseOrderID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'RevisionNumber'. + /// + /// + /// The property value representing column 'RevisionNumber'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("RevisionNumber", TypeName = "tinyint")] + public byte RevisionNumber { get; set; } + + /// + /// Gets or sets the property value representing column 'Status'. + /// + /// + /// The property value representing column 'Status'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Status", TypeName = "tinyint")] + public byte Status { get; set; } + + /// + /// Gets or sets the property value representing column 'EmployeeID'. + /// + /// + /// The property value representing column 'EmployeeID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("EmployeeID", TypeName = "int")] + public int EmployeeId { get; set; } + + /// + /// Gets or sets the property value representing column 'VendorID'. + /// + /// + /// The property value representing column 'VendorID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("VendorID", TypeName = "int")] + public int VendorId { get; set; } + + /// + /// Gets or sets the property value representing column 'ShipMethodID'. + /// + /// + /// The property value representing column 'ShipMethodID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ShipMethodID", TypeName = "int")] + public int ShipMethodId { get; set; } + + /// + /// Gets or sets the property value representing column 'OrderDate'. + /// + /// + /// The property value representing column 'OrderDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("OrderDate", TypeName = "datetime")] + public DateTime OrderDate { get; set; } + + /// + /// Gets or sets the property value representing column 'ShipDate'. + /// + /// + /// The property value representing column 'ShipDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ShipDate", TypeName = "datetime")] + public DateTime? ShipDate { get; set; } + + /// + /// Gets or sets the property value representing column 'SubTotal'. + /// + /// + /// The property value representing column 'SubTotal'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("SubTotal", TypeName = "money")] + public decimal SubTotal { get; set; } + + /// + /// Gets or sets the property value representing column 'TaxAmt'. + /// + /// + /// The property value representing column 'TaxAmt'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("TaxAmt", TypeName = "money")] + public decimal TaxAmt { get; set; } + + /// + /// Gets or sets the property value representing column 'Freight'. + /// + /// + /// The property value representing column 'Freight'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Freight", TypeName = "money")] + public decimal Freight { get; set; } + + /// + /// Gets or sets the property value representing column 'TotalDue'. + /// + /// + /// The property value representing column 'TotalDue'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("TotalDue", TypeName = "money")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Computed)] + public decimal TotalDue { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Employee Employee { get; set; } = null!; + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection PurchaseOrderDetails { get; set; } + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual ShipMethod ShipMethod { get; set; } = null!; + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Vendor Vendor { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesOrderDetail.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesOrderDetail.cs new file mode 100644 index 0000000..4474fba --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesOrderDetail.cs @@ -0,0 +1,150 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'SalesOrderDetail'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("SalesOrderDetail", Schema = "Sales")] +public partial class SalesOrderDetail + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public SalesOrderDetail() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'SalesOrderID'. + /// + /// + /// The property value representing column 'SalesOrderID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("SalesOrderID", TypeName = "int")] + public int SalesOrderId { get; set; } + + /// + /// Gets or sets the property value representing column 'SalesOrderDetailID'. + /// + /// + /// The property value representing column 'SalesOrderDetailID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("SalesOrderDetailID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'CarrierTrackingNumber'. + /// + /// + /// The property value representing column 'CarrierTrackingNumber'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("CarrierTrackingNumber", TypeName = "nvarchar(25)")] + public string? CarrierTrackingNumber { get; set; } + + /// + /// Gets or sets the property value representing column 'OrderQty'. + /// + /// + /// The property value representing column 'OrderQty'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("OrderQty", TypeName = "smallint")] + public short OrderQty { get; set; } + + /// + /// Gets or sets the property value representing column 'ProductID'. + /// + /// + /// The property value representing column 'ProductID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ProductID", TypeName = "int")] + public int ProductId { get; set; } + + /// + /// Gets or sets the property value representing column 'SpecialOfferID'. + /// + /// + /// The property value representing column 'SpecialOfferID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("SpecialOfferID", TypeName = "int")] + public int SpecialOfferId { get; set; } + + /// + /// Gets or sets the property value representing column 'UnitPrice'. + /// + /// + /// The property value representing column 'UnitPrice'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("UnitPrice", TypeName = "money")] + public decimal UnitPrice { get; set; } + + /// + /// Gets or sets the property value representing column 'UnitPriceDiscount'. + /// + /// + /// The property value representing column 'UnitPriceDiscount'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("UnitPriceDiscount", TypeName = "money")] + public decimal UnitPriceDiscount { get; set; } + + /// + /// Gets or sets the property value representing column 'LineTotal'. + /// + /// + /// The property value representing column 'LineTotal'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("LineTotal", TypeName = "numeric(38,6)")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Computed)] + public decimal LineTotal { get; set; } + + /// + /// Gets or sets the property value representing column 'rowguid'. + /// + /// + /// The property value representing column 'rowguid'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual SalesOrderHeader SalesOrderHeader { get; set; } = null!; + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + /// + public virtual SpecialOfferProduct SpecialOfferProduct { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesOrderHeader.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesOrderHeader.cs new file mode 100644 index 0000000..57fd088 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesOrderHeader.cs @@ -0,0 +1,356 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'SalesOrderHeader'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("SalesOrderHeader", Schema = "Sales")] +public partial class SalesOrderHeader + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public SalesOrderHeader() + { + #region Generated Constructor + SalesOrderDetails = new HashSet(); + SalesOrderHeaderSalesReasons = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'SalesOrderID'. + /// + /// + /// The property value representing column 'SalesOrderID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("SalesOrderID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'RevisionNumber'. + /// + /// + /// The property value representing column 'RevisionNumber'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("RevisionNumber", TypeName = "tinyint")] + public byte RevisionNumber { get; set; } + + /// + /// Gets or sets the property value representing column 'OrderDate'. + /// + /// + /// The property value representing column 'OrderDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("OrderDate", TypeName = "datetime")] + public DateTime OrderDate { get; set; } + + /// + /// Gets or sets the property value representing column 'DueDate'. + /// + /// + /// The property value representing column 'DueDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("DueDate", TypeName = "datetime")] + public DateTime DueDate { get; set; } + + /// + /// Gets or sets the property value representing column 'ShipDate'. + /// + /// + /// The property value representing column 'ShipDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ShipDate", TypeName = "datetime")] + public DateTime? ShipDate { get; set; } + + /// + /// Gets or sets the property value representing column 'Status'. + /// + /// + /// The property value representing column 'Status'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Status", TypeName = "tinyint")] + public byte Status { get; set; } + + /// + /// Gets or sets the property value representing column 'OnlineOrderFlag'. + /// + /// + /// The property value representing column 'OnlineOrderFlag'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("OnlineOrderFlag", TypeName = "bit")] + public bool OnlineOrderFlag { get; set; } + + /// + /// Gets or sets the property value representing column 'SalesOrderNumber'. + /// + /// + /// The property value representing column 'SalesOrderNumber'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("SalesOrderNumber", TypeName = "nvarchar(25)")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Computed)] + public string SalesOrderNumber { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'PurchaseOrderNumber'. + /// + /// + /// The property value representing column 'PurchaseOrderNumber'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("PurchaseOrderNumber", TypeName = "nvarchar(25)")] + public string? PurchaseOrderNumber { get; set; } + + /// + /// Gets or sets the property value representing column 'AccountNumber'. + /// + /// + /// The property value representing column 'AccountNumber'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("AccountNumber", TypeName = "nvarchar(15)")] + public string? AccountNumber { get; set; } + + /// + /// Gets or sets the property value representing column 'CustomerID'. + /// + /// + /// The property value representing column 'CustomerID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("CustomerID", TypeName = "int")] + public int CustomerId { get; set; } + + /// + /// Gets or sets the property value representing column 'SalesPersonID'. + /// + /// + /// The property value representing column 'SalesPersonID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("SalesPersonID", TypeName = "int")] + public int? SalesPersonId { get; set; } + + /// + /// Gets or sets the property value representing column 'TerritoryID'. + /// + /// + /// The property value representing column 'TerritoryID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("TerritoryID", TypeName = "int")] + public int? TerritoryId { get; set; } + + /// + /// Gets or sets the property value representing column 'BillToAddressID'. + /// + /// + /// The property value representing column 'BillToAddressID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("BillToAddressID", TypeName = "int")] + public int BillToAddressId { get; set; } + + /// + /// Gets or sets the property value representing column 'ShipToAddressID'. + /// + /// + /// The property value representing column 'ShipToAddressID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ShipToAddressID", TypeName = "int")] + public int ShipToAddressId { get; set; } + + /// + /// Gets or sets the property value representing column 'ShipMethodID'. + /// + /// + /// The property value representing column 'ShipMethodID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ShipMethodID", TypeName = "int")] + public int ShipMethodId { get; set; } + + /// + /// Gets or sets the property value representing column 'CreditCardID'. + /// + /// + /// The property value representing column 'CreditCardID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("CreditCardID", TypeName = "int")] + public int? CreditCardId { get; set; } + + /// + /// Gets or sets the property value representing column 'CreditCardApprovalCode'. + /// + /// + /// The property value representing column 'CreditCardApprovalCode'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("CreditCardApprovalCode", TypeName = "varchar(15)")] + public string? CreditCardApprovalCode { get; set; } + + /// + /// Gets or sets the property value representing column 'CurrencyRateID'. + /// + /// + /// The property value representing column 'CurrencyRateID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("CurrencyRateID", TypeName = "int")] + public int? CurrencyRateId { get; set; } + + /// + /// Gets or sets the property value representing column 'SubTotal'. + /// + /// + /// The property value representing column 'SubTotal'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("SubTotal", TypeName = "money")] + public decimal SubTotal { get; set; } + + /// + /// Gets or sets the property value representing column 'TaxAmt'. + /// + /// + /// The property value representing column 'TaxAmt'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("TaxAmt", TypeName = "money")] + public decimal TaxAmt { get; set; } + + /// + /// Gets or sets the property value representing column 'Freight'. + /// + /// + /// The property value representing column 'Freight'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Freight", TypeName = "money")] + public decimal Freight { get; set; } + + /// + /// Gets or sets the property value representing column 'TotalDue'. + /// + /// + /// The property value representing column 'TotalDue'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("TotalDue", TypeName = "money")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Computed)] + public decimal TotalDue { get; set; } + + /// + /// Gets or sets the property value representing column 'Comment'. + /// + /// + /// The property value representing column 'Comment'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Comment", TypeName = "nvarchar(128)")] + public string? Comment { get; set; } + + /// + /// Gets or sets the property value representing column 'rowguid'. + /// + /// + /// The property value representing column 'rowguid'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Address BillToAddress { get; set; } = null!; + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual CreditCard? CreditCard { get; set; } + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual CurrencyRate? CurrencyRate { get; set; } + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Customer Customer { get; set; } = null!; + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection SalesOrderDetails { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection SalesOrderHeaderSalesReasons { get; set; } + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual SalesPerson? SalesPerson { get; set; } + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual SalesTerritory? SalesTerritory { get; set; } + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual ShipMethod ShipMethod { get; set; } = null!; + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Address ShipToAddress { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesOrderHeaderSalesReason.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesOrderHeaderSalesReason.cs new file mode 100644 index 0000000..9415cda --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesOrderHeaderSalesReason.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'SalesOrderHeaderSalesReason'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("SalesOrderHeaderSalesReason", Schema = "Sales")] +public partial class SalesOrderHeaderSalesReason +{ + /// + /// Initializes a new instance of the class. + /// + public SalesOrderHeaderSalesReason() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'SalesOrderID'. + /// + /// + /// The property value representing column 'SalesOrderID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("SalesOrderID", TypeName = "int")] + public int SalesOrderId { get; set; } + + /// + /// Gets or sets the property value representing column 'SalesReasonID'. + /// + /// + /// The property value representing column 'SalesReasonID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("SalesReasonID", TypeName = "int")] + public int SalesReasonId { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual SalesOrderHeader SalesOrderHeader { get; set; } = null!; + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual SalesReason SalesReason { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesPerson.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesPerson.cs new file mode 100644 index 0000000..1bc6ba7 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesPerson.cs @@ -0,0 +1,163 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'SalesPerson'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("SalesPerson", Schema = "Sales")] +public partial class SalesPerson +{ + /// + /// Initializes a new instance of the class. + /// + public SalesPerson() + { + #region Generated Constructor + SalesOrderHeaders = new HashSet(); + SalesPersonQuotaHistories = new HashSet(); + SalesTerritoryHistories = new HashSet(); + Stores = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'BusinessEntityID'. + /// + /// + /// The property value representing column 'BusinessEntityID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("BusinessEntityID", TypeName = "int")] + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value representing column 'TerritoryID'. + /// + /// + /// The property value representing column 'TerritoryID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("TerritoryID", TypeName = "int")] + public int? TerritoryId { get; set; } + + /// + /// Gets or sets the property value representing column 'SalesQuota'. + /// + /// + /// The property value representing column 'SalesQuota'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("SalesQuota", TypeName = "money")] + public decimal? SalesQuota { get; set; } + + /// + /// Gets or sets the property value representing column 'Bonus'. + /// + /// + /// The property value representing column 'Bonus'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Bonus", TypeName = "money")] + public decimal Bonus { get; set; } + + /// + /// Gets or sets the property value representing column 'CommissionPct'. + /// + /// + /// The property value representing column 'CommissionPct'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("CommissionPct", TypeName = "smallmoney")] + public decimal CommissionPct { get; set; } + + /// + /// Gets or sets the property value representing column 'SalesYTD'. + /// + /// + /// The property value representing column 'SalesYTD'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("SalesYTD", TypeName = "money")] + public decimal SalesYTD { get; set; } + + /// + /// Gets or sets the property value representing column 'SalesLastYear'. + /// + /// + /// The property value representing column 'SalesLastYear'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("SalesLastYear", TypeName = "money")] + public decimal SalesLastYear { get; set; } + + /// + /// Gets or sets the property value representing column 'rowguid'. + /// + /// + /// The property value representing column 'rowguid'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Employee Employee { get; set; } = null!; + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection SalesOrderHeaders { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection SalesPersonQuotaHistories { get; set; } + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual SalesTerritory? SalesTerritory { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection SalesTerritoryHistories { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection Stores { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesPersonQuotaHistory.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesPersonQuotaHistory.cs new file mode 100644 index 0000000..400f1da --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesPersonQuotaHistory.cs @@ -0,0 +1,83 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'SalesPersonQuotaHistory'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("SalesPersonQuotaHistory", Schema = "Sales")] +public partial class SalesPersonQuotaHistory +{ + /// + /// Initializes a new instance of the class. + /// + public SalesPersonQuotaHistory() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'BusinessEntityID'. + /// + /// + /// The property value representing column 'BusinessEntityID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("BusinessEntityID", TypeName = "int")] + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value representing column 'QuotaDate'. + /// + /// + /// The property value representing column 'QuotaDate'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("QuotaDate", TypeName = "datetime")] + public DateTime QuotaDate { get; set; } + + /// + /// Gets or sets the property value representing column 'SalesQuota'. + /// + /// + /// The property value representing column 'SalesQuota'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("SalesQuota", TypeName = "money")] + public decimal SalesQuota { get; set; } + + /// + /// Gets or sets the property value representing column 'rowguid'. + /// + /// + /// The property value representing column 'rowguid'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual SalesPerson SalesPerson { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesReason.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesReason.cs new file mode 100644 index 0000000..4a56b6f --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesReason.cs @@ -0,0 +1,75 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'SalesReason'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("SalesReason", Schema = "Sales")] +public partial class SalesReason + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public SalesReason() + { + #region Generated Constructor + SalesOrderHeaderSalesReasons = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'SalesReasonID'. + /// + /// + /// The property value representing column 'SalesReasonID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("SalesReasonID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'Name'. + /// + /// + /// The property value representing column 'Name'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'ReasonType'. + /// + /// + /// The property value representing column 'ReasonType'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ReasonType", TypeName = "nvarchar(50)")] + public string ReasonType { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection SalesOrderHeaderSalesReasons { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesTaxRate.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesTaxRate.cs new file mode 100644 index 0000000..54862af --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesTaxRate.cs @@ -0,0 +1,102 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'SalesTaxRate'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("SalesTaxRate", Schema = "Sales")] +public partial class SalesTaxRate + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public SalesTaxRate() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'SalesTaxRateID'. + /// + /// + /// The property value representing column 'SalesTaxRateID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("SalesTaxRateID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'StateProvinceID'. + /// + /// + /// The property value representing column 'StateProvinceID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("StateProvinceID", TypeName = "int")] + public int StateProvinceId { get; set; } + + /// + /// Gets or sets the property value representing column 'TaxType'. + /// + /// + /// The property value representing column 'TaxType'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("TaxType", TypeName = "tinyint")] + public byte TaxType { get; set; } + + /// + /// Gets or sets the property value representing column 'TaxRate'. + /// + /// + /// The property value representing column 'TaxRate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("TaxRate", TypeName = "smallmoney")] + public decimal TaxRate { get; set; } + + /// + /// Gets or sets the property value representing column 'Name'. + /// + /// + /// The property value representing column 'Name'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'rowguid'. + /// + /// + /// The property value representing column 'rowguid'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual StateProvince StateProvince { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesTerritory.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesTerritory.cs new file mode 100644 index 0000000..d011d2b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesTerritory.cs @@ -0,0 +1,174 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'SalesTerritory'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("SalesTerritory", Schema = "Sales")] +public partial class SalesTerritory + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public SalesTerritory() + { + #region Generated Constructor + Customers = new HashSet(); + SalesOrderHeaders = new HashSet(); + SalesPeople = new HashSet(); + SalesTerritoryHistories = new HashSet(); + StateProvinces = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'TerritoryID'. + /// + /// + /// The property value representing column 'TerritoryID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("TerritoryID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'Name'. + /// + /// + /// The property value representing column 'Name'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'CountryRegionCode'. + /// + /// + /// The property value representing column 'CountryRegionCode'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("CountryRegionCode", TypeName = "nvarchar(3)")] + public string CountryRegionCode { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'Group'. + /// + /// + /// The property value representing column 'Group'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Group", TypeName = "nvarchar(50)")] + public string Group { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'SalesYTD'. + /// + /// + /// The property value representing column 'SalesYTD'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("SalesYTD", TypeName = "money")] + public decimal SalesYTD { get; set; } + + /// + /// Gets or sets the property value representing column 'SalesLastYear'. + /// + /// + /// The property value representing column 'SalesLastYear'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("SalesLastYear", TypeName = "money")] + public decimal SalesLastYear { get; set; } + + /// + /// Gets or sets the property value representing column 'CostYTD'. + /// + /// + /// The property value representing column 'CostYTD'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("CostYTD", TypeName = "money")] + public decimal CostYTD { get; set; } + + /// + /// Gets or sets the property value representing column 'CostLastYear'. + /// + /// + /// The property value representing column 'CostLastYear'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("CostLastYear", TypeName = "money")] + public decimal CostLastYear { get; set; } + + /// + /// Gets or sets the property value representing column 'rowguid'. + /// + /// + /// The property value representing column 'rowguid'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual CountryRegion CountryRegion { get; set; } = null!; + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection Customers { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection SalesOrderHeaders { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection SalesPeople { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection SalesTerritoryHistories { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection StateProvinces { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesTerritoryHistory.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesTerritoryHistory.cs new file mode 100644 index 0000000..b158189 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesTerritoryHistory.cs @@ -0,0 +1,102 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'SalesTerritoryHistory'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("SalesTerritoryHistory", Schema = "Sales")] +public partial class SalesTerritoryHistory +{ + /// + /// Initializes a new instance of the class. + /// + public SalesTerritoryHistory() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'BusinessEntityID'. + /// + /// + /// The property value representing column 'BusinessEntityID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("BusinessEntityID", TypeName = "int")] + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value representing column 'TerritoryID'. + /// + /// + /// The property value representing column 'TerritoryID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("TerritoryID", TypeName = "int")] + public int TerritoryId { get; set; } + + /// + /// Gets or sets the property value representing column 'StartDate'. + /// + /// + /// The property value representing column 'StartDate'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("StartDate", TypeName = "datetime")] + public DateTime StartDate { get; set; } + + /// + /// Gets or sets the property value representing column 'EndDate'. + /// + /// + /// The property value representing column 'EndDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("EndDate", TypeName = "datetime")] + public DateTime? EndDate { get; set; } + + /// + /// Gets or sets the property value representing column 'rowguid'. + /// + /// + /// The property value representing column 'rowguid'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual SalesPerson SalesPerson { get; set; } = null!; + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual SalesTerritory SalesTerritory { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ScrapReason.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ScrapReason.cs new file mode 100644 index 0000000..5faffc7 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ScrapReason.cs @@ -0,0 +1,66 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'ScrapReason'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("ScrapReason", Schema = "Production")] +public partial class ScrapReason + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public ScrapReason() + { + #region Generated Constructor + WorkOrders = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'ScrapReasonID'. + /// + /// + /// The property value representing column 'ScrapReasonID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("ScrapReasonID", TypeName = "smallint")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public short Id { get; set; } + + /// + /// Gets or sets the property value representing column 'Name'. + /// + /// + /// The property value representing column 'Name'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection WorkOrders { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Shift.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Shift.cs new file mode 100644 index 0000000..864d430 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/Shift.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'Shift'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("Shift", Schema = "HumanResources")] +public partial class Shift + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public Shift() + { + #region Generated Constructor + EmployeeDepartmentHistories = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'ShiftID'. + /// + /// + /// The property value representing column 'ShiftID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("ShiftID", TypeName = "tinyint")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public byte Id { get; set; } + + /// + /// Gets or sets the property value representing column 'Name'. + /// + /// + /// The property value representing column 'Name'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'StartTime'. + /// + /// + /// The property value representing column 'StartTime'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("StartTime", TypeName = "time")] + public TimeOnly StartTime { get; set; } + + /// + /// Gets or sets the property value representing column 'EndTime'. + /// + /// + /// The property value representing column 'EndTime'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("EndTime", TypeName = "time")] + public TimeOnly EndTime { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection EmployeeDepartmentHistories { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ShipMethod.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ShipMethod.cs new file mode 100644 index 0000000..ce3256a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ShipMethod.cs @@ -0,0 +1,102 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'ShipMethod'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("ShipMethod", Schema = "Purchasing")] +public partial class ShipMethod + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public ShipMethod() + { + #region Generated Constructor + PurchaseOrderHeaders = new HashSet(); + SalesOrderHeaders = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'ShipMethodID'. + /// + /// + /// The property value representing column 'ShipMethodID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("ShipMethodID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'Name'. + /// + /// + /// The property value representing column 'Name'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'ShipBase'. + /// + /// + /// The property value representing column 'ShipBase'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ShipBase", TypeName = "money")] + public decimal ShipBase { get; set; } + + /// + /// Gets or sets the property value representing column 'ShipRate'. + /// + /// + /// The property value representing column 'ShipRate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ShipRate", TypeName = "money")] + public decimal ShipRate { get; set; } + + /// + /// Gets or sets the property value representing column 'rowguid'. + /// + /// + /// The property value representing column 'rowguid'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection PurchaseOrderHeaders { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection SalesOrderHeaders { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ShoppingCartItem.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ShoppingCartItem.cs new file mode 100644 index 0000000..84ea690 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ShoppingCartItem.cs @@ -0,0 +1,93 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'ShoppingCartItem'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("ShoppingCartItem", Schema = "Sales")] +public partial class ShoppingCartItem + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public ShoppingCartItem() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'ShoppingCartItemID'. + /// + /// + /// The property value representing column 'ShoppingCartItemID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("ShoppingCartItemID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'ShoppingCartID'. + /// + /// + /// The property value representing column 'ShoppingCartID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ShoppingCartID", TypeName = "nvarchar(50)")] + public string ShoppingCartId { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'Quantity'. + /// + /// + /// The property value representing column 'Quantity'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Quantity", TypeName = "int")] + public int Quantity { get; set; } + + /// + /// Gets or sets the property value representing column 'ProductID'. + /// + /// + /// The property value representing column 'ProductID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ProductID", TypeName = "int")] + public int ProductId { get; set; } + + /// + /// Gets or sets the property value representing column 'DateCreated'. + /// + /// + /// The property value representing column 'DateCreated'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("DateCreated", TypeName = "datetime")] + public DateTime DateCreated { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Product Product { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/SpecialOffer.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/SpecialOffer.cs new file mode 100644 index 0000000..58f01b3 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/SpecialOffer.cs @@ -0,0 +1,138 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'SpecialOffer'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("SpecialOffer", Schema = "Sales")] +public partial class SpecialOffer + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public SpecialOffer() + { + #region Generated Constructor + SpecialOfferProducts = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'SpecialOfferID'. + /// + /// + /// The property value representing column 'SpecialOfferID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("SpecialOfferID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'Description'. + /// + /// + /// The property value representing column 'Description'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Description", TypeName = "nvarchar(255)")] + public string Description { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'DiscountPct'. + /// + /// + /// The property value representing column 'DiscountPct'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("DiscountPct", TypeName = "smallmoney")] + public decimal DiscountPct { get; set; } + + /// + /// Gets or sets the property value representing column 'Type'. + /// + /// + /// The property value representing column 'Type'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Type", TypeName = "nvarchar(50)")] + public string Type { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'Category'. + /// + /// + /// The property value representing column 'Category'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Category", TypeName = "nvarchar(50)")] + public string Category { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'StartDate'. + /// + /// + /// The property value representing column 'StartDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("StartDate", TypeName = "datetime")] + public DateTime StartDate { get; set; } + + /// + /// Gets or sets the property value representing column 'EndDate'. + /// + /// + /// The property value representing column 'EndDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("EndDate", TypeName = "datetime")] + public DateTime EndDate { get; set; } + + /// + /// Gets or sets the property value representing column 'MinQty'. + /// + /// + /// The property value representing column 'MinQty'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("MinQty", TypeName = "int")] + public int MinQty { get; set; } + + /// + /// Gets or sets the property value representing column 'MaxQty'. + /// + /// + /// The property value representing column 'MaxQty'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("MaxQty", TypeName = "int")] + public int? MaxQty { get; set; } + + /// + /// Gets or sets the property value representing column 'rowguid'. + /// + /// + /// The property value representing column 'rowguid'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection SpecialOfferProducts { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/SpecialOfferProduct.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/SpecialOfferProduct.cs new file mode 100644 index 0000000..2ac1dcc --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/SpecialOfferProduct.cs @@ -0,0 +1,92 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'SpecialOfferProduct'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("SpecialOfferProduct", Schema = "Sales")] +public partial class SpecialOfferProduct +{ + /// + /// Initializes a new instance of the class. + /// + public SpecialOfferProduct() + { + #region Generated Constructor + SalesOrderDetails = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'SpecialOfferID'. + /// + /// + /// The property value representing column 'SpecialOfferID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("SpecialOfferID", TypeName = "int")] + public int SpecialOfferId { get; set; } + + /// + /// Gets or sets the property value representing column 'ProductID'. + /// + /// + /// The property value representing column 'ProductID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("ProductID", TypeName = "int")] + public int ProductId { get; set; } + + /// + /// Gets or sets the property value representing column 'rowguid'. + /// + /// + /// The property value representing column 'rowguid'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Product Product { get; set; } = null!; + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection SalesOrderDetails { get; set; } + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual SpecialOffer SpecialOffer { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/StateProvince.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/StateProvince.cs new file mode 100644 index 0000000..ebb28a0 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/StateProvince.cs @@ -0,0 +1,138 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'StateProvince'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("StateProvince", Schema = "Person")] +public partial class StateProvince + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public StateProvince() + { + #region Generated Constructor + Addresses = new HashSet
(); + SalesTaxRates = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'StateProvinceID'. + /// + /// + /// The property value representing column 'StateProvinceID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("StateProvinceID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'StateProvinceCode'. + /// + /// + /// The property value representing column 'StateProvinceCode'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("StateProvinceCode", TypeName = "nchar(3)")] + public string StateProvinceCode { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'CountryRegionCode'. + /// + /// + /// The property value representing column 'CountryRegionCode'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("CountryRegionCode", TypeName = "nvarchar(3)")] + public string CountryRegionCode { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'IsOnlyStateProvinceFlag'. + /// + /// + /// The property value representing column 'IsOnlyStateProvinceFlag'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("IsOnlyStateProvinceFlag", TypeName = "bit")] + public bool IsOnlyStateProvinceFlag { get; set; } + + /// + /// Gets or sets the property value representing column 'Name'. + /// + /// + /// The property value representing column 'Name'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'TerritoryID'. + /// + /// + /// The property value representing column 'TerritoryID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("TerritoryID", TypeName = "int")] + public int TerritoryId { get; set; } + + /// + /// Gets or sets the property value representing column 'rowguid'. + /// + /// + /// The property value representing column 'rowguid'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection
Addresses { get; set; } + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual CountryRegion CountryRegion { get; set; } = null!; + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection SalesTaxRates { get; set; } + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual SalesTerritory SalesTerritory { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Store.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Store.cs new file mode 100644 index 0000000..9068b30 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/Store.cs @@ -0,0 +1,109 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'Store'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("Store", Schema = "Sales")] +public partial class Store +{ + /// + /// Initializes a new instance of the class. + /// + public Store() + { + #region Generated Constructor + Customers = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'BusinessEntityID'. + /// + /// + /// The property value representing column 'BusinessEntityID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("BusinessEntityID", TypeName = "int")] + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value representing column 'Name'. + /// + /// + /// The property value representing column 'Name'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'SalesPersonID'. + /// + /// + /// The property value representing column 'SalesPersonID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("SalesPersonID", TypeName = "int")] + public int? SalesPersonId { get; set; } + + /// + /// Gets or sets the property value representing column 'Demographics'. + /// + /// + /// The property value representing column 'Demographics'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Demographics", TypeName = "xml")] + public string? Demographics { get; set; } + + /// + /// Gets or sets the property value representing column 'rowguid'. + /// + /// + /// The property value representing column 'rowguid'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual BusinessEntity BusinessEntity { get; set; } = null!; + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection Customers { get; set; } + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual SalesPerson? SalesPerson { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/TransactionHistory.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/TransactionHistory.cs new file mode 100644 index 0000000..5939863 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/TransactionHistory.cs @@ -0,0 +1,120 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'TransactionHistory'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("TransactionHistory", Schema = "Production")] +public partial class TransactionHistory + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public TransactionHistory() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'TransactionID'. + /// + /// + /// The property value representing column 'TransactionID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("TransactionID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'ProductID'. + /// + /// + /// The property value representing column 'ProductID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ProductID", TypeName = "int")] + public int ProductId { get; set; } + + /// + /// Gets or sets the property value representing column 'ReferenceOrderID'. + /// + /// + /// The property value representing column 'ReferenceOrderID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ReferenceOrderID", TypeName = "int")] + public int ReferenceOrderId { get; set; } + + /// + /// Gets or sets the property value representing column 'ReferenceOrderLineID'. + /// + /// + /// The property value representing column 'ReferenceOrderLineID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ReferenceOrderLineID", TypeName = "int")] + public int ReferenceOrderLineId { get; set; } + + /// + /// Gets or sets the property value representing column 'TransactionDate'. + /// + /// + /// The property value representing column 'TransactionDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("TransactionDate", TypeName = "datetime")] + public DateTime TransactionDate { get; set; } + + /// + /// Gets or sets the property value representing column 'TransactionType'. + /// + /// + /// The property value representing column 'TransactionType'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("TransactionType", TypeName = "nchar(1)")] + public string TransactionType { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'Quantity'. + /// + /// + /// The property value representing column 'Quantity'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Quantity", TypeName = "int")] + public int Quantity { get; set; } + + /// + /// Gets or sets the property value representing column 'ActualCost'. + /// + /// + /// The property value representing column 'ActualCost'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ActualCost", TypeName = "money")] + public decimal ActualCost { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Product Product { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/TransactionHistoryArchive.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/TransactionHistoryArchive.cs new file mode 100644 index 0000000..46ee4c4 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/TransactionHistoryArchive.cs @@ -0,0 +1,109 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'TransactionHistoryArchive'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("TransactionHistoryArchive", Schema = "Production")] +public partial class TransactionHistoryArchive +{ + /// + /// Initializes a new instance of the class. + /// + public TransactionHistoryArchive() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'TransactionID'. + /// + /// + /// The property value representing column 'TransactionID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("TransactionID", TypeName = "int")] + public int TransactionId { get; set; } + + /// + /// Gets or sets the property value representing column 'ProductID'. + /// + /// + /// The property value representing column 'ProductID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ProductID", TypeName = "int")] + public int ProductId { get; set; } + + /// + /// Gets or sets the property value representing column 'ReferenceOrderID'. + /// + /// + /// The property value representing column 'ReferenceOrderID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ReferenceOrderID", TypeName = "int")] + public int ReferenceOrderId { get; set; } + + /// + /// Gets or sets the property value representing column 'ReferenceOrderLineID'. + /// + /// + /// The property value representing column 'ReferenceOrderLineID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ReferenceOrderLineID", TypeName = "int")] + public int ReferenceOrderLineId { get; set; } + + /// + /// Gets or sets the property value representing column 'TransactionDate'. + /// + /// + /// The property value representing column 'TransactionDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("TransactionDate", TypeName = "datetime")] + public DateTime TransactionDate { get; set; } + + /// + /// Gets or sets the property value representing column 'TransactionType'. + /// + /// + /// The property value representing column 'TransactionType'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("TransactionType", TypeName = "nchar(1)")] + public string TransactionType { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'Quantity'. + /// + /// + /// The property value representing column 'Quantity'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Quantity", TypeName = "int")] + public int Quantity { get; set; } + + /// + /// Gets or sets the property value representing column 'ActualCost'. + /// + /// + /// The property value representing column 'ActualCost'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ActualCost", TypeName = "money")] + public decimal ActualCost { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/UnitMeasure.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/UnitMeasure.cs new file mode 100644 index 0000000..7f656b7 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/UnitMeasure.cs @@ -0,0 +1,91 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'UnitMeasure'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("UnitMeasure", Schema = "Production")] +public partial class UnitMeasure +{ + /// + /// Initializes a new instance of the class. + /// + public UnitMeasure() + { + #region Generated Constructor + BillOfMaterials = new HashSet(); + ProductVendors = new HashSet(); + SizeProducts = new HashSet(); + WeightProducts = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'UnitMeasureCode'. + /// + /// + /// The property value representing column 'UnitMeasureCode'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("UnitMeasureCode", TypeName = "nchar(3)")] + public string UnitMeasureCode { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'Name'. + /// + /// + /// The property value representing column 'Name'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection BillOfMaterials { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection ProductVendors { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection SizeProducts { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection WeightProducts { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VAdditionalContactInfo.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VAdditionalContactInfo.cs new file mode 100644 index 0000000..86e26a3 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VAdditionalContactInfo.cs @@ -0,0 +1,180 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'vAdditionalContactInfo'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("vAdditionalContactInfo", Schema = "Person")] +public partial class VAdditionalContactInfo +{ + /// + /// Initializes a new instance of the class. + /// + public VAdditionalContactInfo() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'BusinessEntityID'. + /// + /// + /// The property value representing column 'BusinessEntityID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("BusinessEntityID", TypeName = "int")] + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value representing column 'FirstName'. + /// + /// + /// The property value representing column 'FirstName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("FirstName", TypeName = "nvarchar(50)")] + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'MiddleName'. + /// + /// + /// The property value representing column 'MiddleName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("MiddleName", TypeName = "nvarchar(50)")] + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value representing column 'LastName'. + /// + /// + /// The property value representing column 'LastName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("LastName", TypeName = "nvarchar(50)")] + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'TelephoneNumber'. + /// + /// + /// The property value representing column 'TelephoneNumber'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("TelephoneNumber", TypeName = "nvarchar(50)")] + public string? TelephoneNumber { get; set; } + + /// + /// Gets or sets the property value representing column 'TelephoneSpecialInstructions'. + /// + /// + /// The property value representing column 'TelephoneSpecialInstructions'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("TelephoneSpecialInstructions", TypeName = "nvarchar(max)")] + public string? TelephoneSpecialInstructions { get; set; } + + /// + /// Gets or sets the property value representing column 'Street'. + /// + /// + /// The property value representing column 'Street'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Street", TypeName = "nvarchar(50)")] + public string? Street { get; set; } + + /// + /// Gets or sets the property value representing column 'City'. + /// + /// + /// The property value representing column 'City'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("City", TypeName = "nvarchar(50)")] + public string? City { get; set; } + + /// + /// Gets or sets the property value representing column 'StateProvince'. + /// + /// + /// The property value representing column 'StateProvince'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("StateProvince", TypeName = "nvarchar(50)")] + public string? StateProvince { get; set; } + + /// + /// Gets or sets the property value representing column 'PostalCode'. + /// + /// + /// The property value representing column 'PostalCode'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("PostalCode", TypeName = "nvarchar(50)")] + public string? PostalCode { get; set; } + + /// + /// Gets or sets the property value representing column 'CountryRegion'. + /// + /// + /// The property value representing column 'CountryRegion'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("CountryRegion", TypeName = "nvarchar(50)")] + public string? CountryRegion { get; set; } + + /// + /// Gets or sets the property value representing column 'HomeAddressSpecialInstructions'. + /// + /// + /// The property value representing column 'HomeAddressSpecialInstructions'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("HomeAddressSpecialInstructions", TypeName = "nvarchar(max)")] + public string? HomeAddressSpecialInstructions { get; set; } + + /// + /// Gets or sets the property value representing column 'EMailAddress'. + /// + /// + /// The property value representing column 'EMailAddress'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("EMailAddress", TypeName = "nvarchar(128)")] + public string? EMailAddress { get; set; } + + /// + /// Gets or sets the property value representing column 'EMailSpecialInstructions'. + /// + /// + /// The property value representing column 'EMailSpecialInstructions'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("EMailSpecialInstructions", TypeName = "nvarchar(max)")] + public string? EMailSpecialInstructions { get; set; } + + /// + /// Gets or sets the property value representing column 'EMailTelephoneNumber'. + /// + /// + /// The property value representing column 'EMailTelephoneNumber'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("EMailTelephoneNumber", TypeName = "nvarchar(50)")] + public string? EMailTelephoneNumber { get; set; } + + /// + /// Gets or sets the property value representing column 'rowguid'. + /// + /// + /// The property value representing column 'rowguid'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VEmployee.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VEmployee.cs new file mode 100644 index 0000000..d2d2573 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VEmployee.cs @@ -0,0 +1,189 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'vEmployee'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("vEmployee", Schema = "HumanResources")] +public partial class VEmployee +{ + /// + /// Initializes a new instance of the class. + /// + public VEmployee() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'BusinessEntityID'. + /// + /// + /// The property value representing column 'BusinessEntityID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("BusinessEntityID", TypeName = "int")] + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value representing column 'Title'. + /// + /// + /// The property value representing column 'Title'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Title", TypeName = "nvarchar(8)")] + public string? Title { get; set; } + + /// + /// Gets or sets the property value representing column 'FirstName'. + /// + /// + /// The property value representing column 'FirstName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("FirstName", TypeName = "nvarchar(50)")] + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'MiddleName'. + /// + /// + /// The property value representing column 'MiddleName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("MiddleName", TypeName = "nvarchar(50)")] + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value representing column 'LastName'. + /// + /// + /// The property value representing column 'LastName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("LastName", TypeName = "nvarchar(50)")] + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'Suffix'. + /// + /// + /// The property value representing column 'Suffix'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Suffix", TypeName = "nvarchar(10)")] + public string? Suffix { get; set; } + + /// + /// Gets or sets the property value representing column 'JobTitle'. + /// + /// + /// The property value representing column 'JobTitle'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("JobTitle", TypeName = "nvarchar(50)")] + public string JobTitle { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'PhoneNumber'. + /// + /// + /// The property value representing column 'PhoneNumber'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("PhoneNumber", TypeName = "nvarchar(25)")] + public string? PhoneNumber { get; set; } + + /// + /// Gets or sets the property value representing column 'PhoneNumberType'. + /// + /// + /// The property value representing column 'PhoneNumberType'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("PhoneNumberType", TypeName = "nvarchar(50)")] + public string? PhoneNumberType { get; set; } + + /// + /// Gets or sets the property value representing column 'EmailAddress'. + /// + /// + /// The property value representing column 'EmailAddress'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("EmailAddress", TypeName = "nvarchar(50)")] + public string? EmailAddress { get; set; } + + /// + /// Gets or sets the property value representing column 'EmailPromotion'. + /// + /// + /// The property value representing column 'EmailPromotion'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("EmailPromotion", TypeName = "int")] + public int EmailPromotion { get; set; } + + /// + /// Gets or sets the property value representing column 'AddressLine1'. + /// + /// + /// The property value representing column 'AddressLine1'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("AddressLine1", TypeName = "nvarchar(60)")] + public string AddressLine1 { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'AddressLine2'. + /// + /// + /// The property value representing column 'AddressLine2'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("AddressLine2", TypeName = "nvarchar(60)")] + public string? AddressLine2 { get; set; } + + /// + /// Gets or sets the property value representing column 'City'. + /// + /// + /// The property value representing column 'City'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("City", TypeName = "nvarchar(30)")] + public string City { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'StateProvinceName'. + /// + /// + /// The property value representing column 'StateProvinceName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("StateProvinceName", TypeName = "nvarchar(50)")] + public string StateProvinceName { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'PostalCode'. + /// + /// + /// The property value representing column 'PostalCode'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("PostalCode", TypeName = "nvarchar(15)")] + public string PostalCode { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'CountryRegionName'. + /// + /// + /// The property value representing column 'CountryRegionName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("CountryRegionName", TypeName = "nvarchar(50)")] + public string CountryRegionName { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'AdditionalContactInfo'. + /// + /// + /// The property value representing column 'AdditionalContactInfo'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("AdditionalContactInfo", TypeName = "xml")] + public string? AdditionalContactInfo { get; set; } + + #endregion + + #region Generated Relationships + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VEmployeeDepartment.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VEmployeeDepartment.cs new file mode 100644 index 0000000..c481011 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VEmployeeDepartment.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'vEmployeeDepartment'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("vEmployeeDepartment", Schema = "HumanResources")] +public partial class VEmployeeDepartment +{ + /// + /// Initializes a new instance of the class. + /// + public VEmployeeDepartment() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'BusinessEntityID'. + /// + /// + /// The property value representing column 'BusinessEntityID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("BusinessEntityID", TypeName = "int")] + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value representing column 'Title'. + /// + /// + /// The property value representing column 'Title'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Title", TypeName = "nvarchar(8)")] + public string? Title { get; set; } + + /// + /// Gets or sets the property value representing column 'FirstName'. + /// + /// + /// The property value representing column 'FirstName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("FirstName", TypeName = "nvarchar(50)")] + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'MiddleName'. + /// + /// + /// The property value representing column 'MiddleName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("MiddleName", TypeName = "nvarchar(50)")] + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value representing column 'LastName'. + /// + /// + /// The property value representing column 'LastName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("LastName", TypeName = "nvarchar(50)")] + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'Suffix'. + /// + /// + /// The property value representing column 'Suffix'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Suffix", TypeName = "nvarchar(10)")] + public string? Suffix { get; set; } + + /// + /// Gets or sets the property value representing column 'JobTitle'. + /// + /// + /// The property value representing column 'JobTitle'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("JobTitle", TypeName = "nvarchar(50)")] + public string JobTitle { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'Department'. + /// + /// + /// The property value representing column 'Department'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Department", TypeName = "nvarchar(50)")] + public string Department { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'GroupName'. + /// + /// + /// The property value representing column 'GroupName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("GroupName", TypeName = "nvarchar(50)")] + public string GroupName { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'StartDate'. + /// + /// + /// The property value representing column 'StartDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("StartDate", TypeName = "date")] + public DateOnly StartDate { get; set; } + + #endregion + + #region Generated Relationships + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VEmployeeDepartmentHistory.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VEmployeeDepartmentHistory.cs new file mode 100644 index 0000000..4b25f9f --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VEmployeeDepartmentHistory.cs @@ -0,0 +1,126 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'vEmployeeDepartmentHistory'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("vEmployeeDepartmentHistory", Schema = "HumanResources")] +public partial class VEmployeeDepartmentHistory +{ + /// + /// Initializes a new instance of the class. + /// + public VEmployeeDepartmentHistory() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'BusinessEntityID'. + /// + /// + /// The property value representing column 'BusinessEntityID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("BusinessEntityID", TypeName = "int")] + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value representing column 'Title'. + /// + /// + /// The property value representing column 'Title'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Title", TypeName = "nvarchar(8)")] + public string? Title { get; set; } + + /// + /// Gets or sets the property value representing column 'FirstName'. + /// + /// + /// The property value representing column 'FirstName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("FirstName", TypeName = "nvarchar(50)")] + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'MiddleName'. + /// + /// + /// The property value representing column 'MiddleName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("MiddleName", TypeName = "nvarchar(50)")] + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value representing column 'LastName'. + /// + /// + /// The property value representing column 'LastName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("LastName", TypeName = "nvarchar(50)")] + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'Suffix'. + /// + /// + /// The property value representing column 'Suffix'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Suffix", TypeName = "nvarchar(10)")] + public string? Suffix { get; set; } + + /// + /// Gets or sets the property value representing column 'Shift'. + /// + /// + /// The property value representing column 'Shift'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Shift", TypeName = "nvarchar(50)")] + public string Shift { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'Department'. + /// + /// + /// The property value representing column 'Department'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Department", TypeName = "nvarchar(50)")] + public string Department { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'GroupName'. + /// + /// + /// The property value representing column 'GroupName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("GroupName", TypeName = "nvarchar(50)")] + public string GroupName { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'StartDate'. + /// + /// + /// The property value representing column 'StartDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("StartDate", TypeName = "date")] + public DateOnly StartDate { get; set; } + + /// + /// Gets or sets the property value representing column 'EndDate'. + /// + /// + /// The property value representing column 'EndDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("EndDate", TypeName = "date")] + public DateOnly? EndDate { get; set; } + + #endregion + + #region Generated Relationships + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VIndividualCustomer.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VIndividualCustomer.cs new file mode 100644 index 0000000..7bdc426 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VIndividualCustomer.cs @@ -0,0 +1,189 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'vIndividualCustomer'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("vIndividualCustomer", Schema = "Sales")] +public partial class VIndividualCustomer +{ + /// + /// Initializes a new instance of the class. + /// + public VIndividualCustomer() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'BusinessEntityID'. + /// + /// + /// The property value representing column 'BusinessEntityID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("BusinessEntityID", TypeName = "int")] + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value representing column 'Title'. + /// + /// + /// The property value representing column 'Title'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Title", TypeName = "nvarchar(8)")] + public string? Title { get; set; } + + /// + /// Gets or sets the property value representing column 'FirstName'. + /// + /// + /// The property value representing column 'FirstName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("FirstName", TypeName = "nvarchar(50)")] + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'MiddleName'. + /// + /// + /// The property value representing column 'MiddleName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("MiddleName", TypeName = "nvarchar(50)")] + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value representing column 'LastName'. + /// + /// + /// The property value representing column 'LastName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("LastName", TypeName = "nvarchar(50)")] + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'Suffix'. + /// + /// + /// The property value representing column 'Suffix'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Suffix", TypeName = "nvarchar(10)")] + public string? Suffix { get; set; } + + /// + /// Gets or sets the property value representing column 'PhoneNumber'. + /// + /// + /// The property value representing column 'PhoneNumber'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("PhoneNumber", TypeName = "nvarchar(25)")] + public string? PhoneNumber { get; set; } + + /// + /// Gets or sets the property value representing column 'PhoneNumberType'. + /// + /// + /// The property value representing column 'PhoneNumberType'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("PhoneNumberType", TypeName = "nvarchar(50)")] + public string? PhoneNumberType { get; set; } + + /// + /// Gets or sets the property value representing column 'EmailAddress'. + /// + /// + /// The property value representing column 'EmailAddress'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("EmailAddress", TypeName = "nvarchar(50)")] + public string? EmailAddress { get; set; } + + /// + /// Gets or sets the property value representing column 'EmailPromotion'. + /// + /// + /// The property value representing column 'EmailPromotion'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("EmailPromotion", TypeName = "int")] + public int EmailPromotion { get; set; } + + /// + /// Gets or sets the property value representing column 'AddressType'. + /// + /// + /// The property value representing column 'AddressType'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("AddressType", TypeName = "nvarchar(50)")] + public string AddressType { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'AddressLine1'. + /// + /// + /// The property value representing column 'AddressLine1'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("AddressLine1", TypeName = "nvarchar(60)")] + public string AddressLine1 { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'AddressLine2'. + /// + /// + /// The property value representing column 'AddressLine2'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("AddressLine2", TypeName = "nvarchar(60)")] + public string? AddressLine2 { get; set; } + + /// + /// Gets or sets the property value representing column 'City'. + /// + /// + /// The property value representing column 'City'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("City", TypeName = "nvarchar(30)")] + public string City { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'StateProvinceName'. + /// + /// + /// The property value representing column 'StateProvinceName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("StateProvinceName", TypeName = "nvarchar(50)")] + public string StateProvinceName { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'PostalCode'. + /// + /// + /// The property value representing column 'PostalCode'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("PostalCode", TypeName = "nvarchar(15)")] + public string PostalCode { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'CountryRegionName'. + /// + /// + /// The property value representing column 'CountryRegionName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("CountryRegionName", TypeName = "nvarchar(50)")] + public string CountryRegionName { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'Demographics'. + /// + /// + /// The property value representing column 'Demographics'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Demographics", TypeName = "xml")] + public string? Demographics { get; set; } + + #endregion + + #region Generated Relationships + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VJobCandidate.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VJobCandidate.cs new file mode 100644 index 0000000..58c64b2 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VJobCandidate.cs @@ -0,0 +1,173 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'vJobCandidate'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("vJobCandidate", Schema = "HumanResources")] +public partial class VJobCandidate + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public VJobCandidate() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'JobCandidateID'. + /// + /// + /// The property value representing column 'JobCandidateID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("JobCandidateID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'BusinessEntityID'. + /// + /// + /// The property value representing column 'BusinessEntityID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("BusinessEntityID", TypeName = "int")] + public int? BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value representing column 'Name.Prefix'. + /// + /// + /// The property value representing column 'Name.Prefix'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name.Prefix", TypeName = "nvarchar(30)")] + public string? NamePrefix { get; set; } + + /// + /// Gets or sets the property value representing column 'Name.First'. + /// + /// + /// The property value representing column 'Name.First'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name.First", TypeName = "nvarchar(30)")] + public string? NameFirst { get; set; } + + /// + /// Gets or sets the property value representing column 'Name.Middle'. + /// + /// + /// The property value representing column 'Name.Middle'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name.Middle", TypeName = "nvarchar(30)")] + public string? NameMiddle { get; set; } + + /// + /// Gets or sets the property value representing column 'Name.Last'. + /// + /// + /// The property value representing column 'Name.Last'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name.Last", TypeName = "nvarchar(30)")] + public string? NameLast { get; set; } + + /// + /// Gets or sets the property value representing column 'Name.Suffix'. + /// + /// + /// The property value representing column 'Name.Suffix'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name.Suffix", TypeName = "nvarchar(30)")] + public string? NameSuffix { get; set; } + + /// + /// Gets or sets the property value representing column 'Skills'. + /// + /// + /// The property value representing column 'Skills'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Skills", TypeName = "nvarchar(max)")] + public string? Skills { get; set; } + + /// + /// Gets or sets the property value representing column 'Addr.Type'. + /// + /// + /// The property value representing column 'Addr.Type'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Addr.Type", TypeName = "nvarchar(30)")] + public string? AddrType { get; set; } + + /// + /// Gets or sets the property value representing column 'Addr.Loc.CountryRegion'. + /// + /// + /// The property value representing column 'Addr.Loc.CountryRegion'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Addr.Loc.CountryRegion", TypeName = "nvarchar(100)")] + public string? AddrLocCountryRegion { get; set; } + + /// + /// Gets or sets the property value representing column 'Addr.Loc.State'. + /// + /// + /// The property value representing column 'Addr.Loc.State'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Addr.Loc.State", TypeName = "nvarchar(100)")] + public string? AddrLocState { get; set; } + + /// + /// Gets or sets the property value representing column 'Addr.Loc.City'. + /// + /// + /// The property value representing column 'Addr.Loc.City'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Addr.Loc.City", TypeName = "nvarchar(100)")] + public string? AddrLocCity { get; set; } + + /// + /// Gets or sets the property value representing column 'Addr.PostalCode'. + /// + /// + /// The property value representing column 'Addr.PostalCode'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Addr.PostalCode", TypeName = "nvarchar(20)")] + public string? AddrPostalCode { get; set; } + + /// + /// Gets or sets the property value representing column 'EMail'. + /// + /// + /// The property value representing column 'EMail'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("EMail", TypeName = "nvarchar(max)")] + public string? EMail { get; set; } + + /// + /// Gets or sets the property value representing column 'WebSite'. + /// + /// + /// The property value representing column 'WebSite'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("WebSite", TypeName = "nvarchar(max)")] + public string? WebSite { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VJobCandidateEducation.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VJobCandidateEducation.cs new file mode 100644 index 0000000..0151e2b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VJobCandidateEducation.cs @@ -0,0 +1,146 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'vJobCandidateEducation'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("vJobCandidateEducation", Schema = "HumanResources")] +public partial class VJobCandidateEducation + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public VJobCandidateEducation() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'JobCandidateID'. + /// + /// + /// The property value representing column 'JobCandidateID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("JobCandidateID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'Edu.Level'. + /// + /// + /// The property value representing column 'Edu.Level'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Edu.Level", TypeName = "nvarchar(max)")] + public string? EduLevel { get; set; } + + /// + /// Gets or sets the property value representing column 'Edu.StartDate'. + /// + /// + /// The property value representing column 'Edu.StartDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Edu.StartDate", TypeName = "datetime")] + public DateTime? EduStartDate { get; set; } + + /// + /// Gets or sets the property value representing column 'Edu.EndDate'. + /// + /// + /// The property value representing column 'Edu.EndDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Edu.EndDate", TypeName = "datetime")] + public DateTime? EduEndDate { get; set; } + + /// + /// Gets or sets the property value representing column 'Edu.Degree'. + /// + /// + /// The property value representing column 'Edu.Degree'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Edu.Degree", TypeName = "nvarchar(50)")] + public string? EduDegree { get; set; } + + /// + /// Gets or sets the property value representing column 'Edu.Major'. + /// + /// + /// The property value representing column 'Edu.Major'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Edu.Major", TypeName = "nvarchar(50)")] + public string? EduMajor { get; set; } + + /// + /// Gets or sets the property value representing column 'Edu.Minor'. + /// + /// + /// The property value representing column 'Edu.Minor'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Edu.Minor", TypeName = "nvarchar(50)")] + public string? EduMinor { get; set; } + + /// + /// Gets or sets the property value representing column 'Edu.GPA'. + /// + /// + /// The property value representing column 'Edu.GPA'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Edu.GPA", TypeName = "nvarchar(5)")] + public string? EduGPA { get; set; } + + /// + /// Gets or sets the property value representing column 'Edu.GPAScale'. + /// + /// + /// The property value representing column 'Edu.GPAScale'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Edu.GPAScale", TypeName = "nvarchar(5)")] + public string? EduGPAScale { get; set; } + + /// + /// Gets or sets the property value representing column 'Edu.School'. + /// + /// + /// The property value representing column 'Edu.School'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Edu.School", TypeName = "nvarchar(100)")] + public string? EduSchool { get; set; } + + /// + /// Gets or sets the property value representing column 'Edu.Loc.CountryRegion'. + /// + /// + /// The property value representing column 'Edu.Loc.CountryRegion'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Edu.Loc.CountryRegion", TypeName = "nvarchar(100)")] + public string? EduLocCountryRegion { get; set; } + + /// + /// Gets or sets the property value representing column 'Edu.Loc.State'. + /// + /// + /// The property value representing column 'Edu.Loc.State'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Edu.Loc.State", TypeName = "nvarchar(100)")] + public string? EduLocState { get; set; } + + /// + /// Gets or sets the property value representing column 'Edu.Loc.City'. + /// + /// + /// The property value representing column 'Edu.Loc.City'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Edu.Loc.City", TypeName = "nvarchar(100)")] + public string? EduLocCity { get; set; } + + #endregion + + #region Generated Relationships + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VJobCandidateEmployment.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VJobCandidateEmployment.cs new file mode 100644 index 0000000..e71bb96 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VJobCandidateEmployment.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'vJobCandidateEmployment'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("vJobCandidateEmployment", Schema = "HumanResources")] +public partial class VJobCandidateEmployment + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public VJobCandidateEmployment() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'JobCandidateID'. + /// + /// + /// The property value representing column 'JobCandidateID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("JobCandidateID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'Emp.StartDate'. + /// + /// + /// The property value representing column 'Emp.StartDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Emp.StartDate", TypeName = "datetime")] + public DateTime? EmpStartDate { get; set; } + + /// + /// Gets or sets the property value representing column 'Emp.EndDate'. + /// + /// + /// The property value representing column 'Emp.EndDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Emp.EndDate", TypeName = "datetime")] + public DateTime? EmpEndDate { get; set; } + + /// + /// Gets or sets the property value representing column 'Emp.OrgName'. + /// + /// + /// The property value representing column 'Emp.OrgName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Emp.OrgName", TypeName = "nvarchar(100)")] + public string? EmpOrgName { get; set; } + + /// + /// Gets or sets the property value representing column 'Emp.JobTitle'. + /// + /// + /// The property value representing column 'Emp.JobTitle'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Emp.JobTitle", TypeName = "nvarchar(100)")] + public string? EmpJobTitle { get; set; } + + /// + /// Gets or sets the property value representing column 'Emp.Responsibility'. + /// + /// + /// The property value representing column 'Emp.Responsibility'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Emp.Responsibility", TypeName = "nvarchar(max)")] + public string? EmpResponsibility { get; set; } + + /// + /// Gets or sets the property value representing column 'Emp.FunctionCategory'. + /// + /// + /// The property value representing column 'Emp.FunctionCategory'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Emp.FunctionCategory", TypeName = "nvarchar(max)")] + public string? EmpFunctionCategory { get; set; } + + /// + /// Gets or sets the property value representing column 'Emp.IndustryCategory'. + /// + /// + /// The property value representing column 'Emp.IndustryCategory'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Emp.IndustryCategory", TypeName = "nvarchar(max)")] + public string? EmpIndustryCategory { get; set; } + + /// + /// Gets or sets the property value representing column 'Emp.Loc.CountryRegion'. + /// + /// + /// The property value representing column 'Emp.Loc.CountryRegion'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Emp.Loc.CountryRegion", TypeName = "nvarchar(max)")] + public string? EmpLocCountryRegion { get; set; } + + /// + /// Gets or sets the property value representing column 'Emp.Loc.State'. + /// + /// + /// The property value representing column 'Emp.Loc.State'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Emp.Loc.State", TypeName = "nvarchar(max)")] + public string? EmpLocState { get; set; } + + /// + /// Gets or sets the property value representing column 'Emp.Loc.City'. + /// + /// + /// The property value representing column 'Emp.Loc.City'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Emp.Loc.City", TypeName = "nvarchar(max)")] + public string? EmpLocCity { get; set; } + + #endregion + + #region Generated Relationships + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VPersonDemographics.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VPersonDemographics.cs new file mode 100644 index 0000000..716e66a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VPersonDemographics.cs @@ -0,0 +1,144 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'vPersonDemographics'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("vPersonDemographics", Schema = "Sales")] +public partial class VPersonDemographics +{ + /// + /// Initializes a new instance of the class. + /// + public VPersonDemographics() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'BusinessEntityID'. + /// + /// + /// The property value representing column 'BusinessEntityID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("BusinessEntityID", TypeName = "int")] + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value representing column 'TotalPurchaseYTD'. + /// + /// + /// The property value representing column 'TotalPurchaseYTD'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("TotalPurchaseYTD", TypeName = "money")] + public decimal? TotalPurchaseYTD { get; set; } + + /// + /// Gets or sets the property value representing column 'DateFirstPurchase'. + /// + /// + /// The property value representing column 'DateFirstPurchase'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("DateFirstPurchase", TypeName = "datetime")] + public DateTime? DateFirstPurchase { get; set; } + + /// + /// Gets or sets the property value representing column 'BirthDate'. + /// + /// + /// The property value representing column 'BirthDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("BirthDate", TypeName = "datetime")] + public DateTime? BirthDate { get; set; } + + /// + /// Gets or sets the property value representing column 'MaritalStatus'. + /// + /// + /// The property value representing column 'MaritalStatus'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("MaritalStatus", TypeName = "nvarchar(1)")] + public string? MaritalStatus { get; set; } + + /// + /// Gets or sets the property value representing column 'YearlyIncome'. + /// + /// + /// The property value representing column 'YearlyIncome'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("YearlyIncome", TypeName = "nvarchar(30)")] + public string? YearlyIncome { get; set; } + + /// + /// Gets or sets the property value representing column 'Gender'. + /// + /// + /// The property value representing column 'Gender'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Gender", TypeName = "nvarchar(1)")] + public string? Gender { get; set; } + + /// + /// Gets or sets the property value representing column 'TotalChildren'. + /// + /// + /// The property value representing column 'TotalChildren'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("TotalChildren", TypeName = "int")] + public int? TotalChildren { get; set; } + + /// + /// Gets or sets the property value representing column 'NumberChildrenAtHome'. + /// + /// + /// The property value representing column 'NumberChildrenAtHome'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("NumberChildrenAtHome", TypeName = "int")] + public int? NumberChildrenAtHome { get; set; } + + /// + /// Gets or sets the property value representing column 'Education'. + /// + /// + /// The property value representing column 'Education'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Education", TypeName = "nvarchar(30)")] + public string? Education { get; set; } + + /// + /// Gets or sets the property value representing column 'Occupation'. + /// + /// + /// The property value representing column 'Occupation'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Occupation", TypeName = "nvarchar(30)")] + public string? Occupation { get; set; } + + /// + /// Gets or sets the property value representing column 'HomeOwnerFlag'. + /// + /// + /// The property value representing column 'HomeOwnerFlag'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("HomeOwnerFlag", TypeName = "bit")] + public bool? HomeOwnerFlag { get; set; } + + /// + /// Gets or sets the property value representing column 'NumberCarsOwned'. + /// + /// + /// The property value representing column 'NumberCarsOwned'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("NumberCarsOwned", TypeName = "int")] + public int? NumberCarsOwned { get; set; } + + #endregion + + #region Generated Relationships + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VProductAndDescription.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VProductAndDescription.cs new file mode 100644 index 0000000..9f5ac95 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VProductAndDescription.cs @@ -0,0 +1,72 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'vProductAndDescription'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("vProductAndDescription", Schema = "Production")] +public partial class VProductAndDescription +{ + /// + /// Initializes a new instance of the class. + /// + public VProductAndDescription() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'ProductID'. + /// + /// + /// The property value representing column 'ProductID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ProductID", TypeName = "int")] + public int ProductId { get; set; } + + /// + /// Gets or sets the property value representing column 'Name'. + /// + /// + /// The property value representing column 'Name'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'ProductModel'. + /// + /// + /// The property value representing column 'ProductModel'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ProductModel", TypeName = "nvarchar(50)")] + public string ProductModel { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'CultureID'. + /// + /// + /// The property value representing column 'CultureID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("CultureID", TypeName = "nchar(6)")] + public string CultureId { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'Description'. + /// + /// + /// The property value representing column 'Description'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Description", TypeName = "nvarchar(400)")] + public string Description { get; set; } = null!; + + #endregion + + #region Generated Relationships + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VProductModelCatalogDescription.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VProductModelCatalogDescription.cs new file mode 100644 index 0000000..1ee4773 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VProductModelCatalogDescription.cs @@ -0,0 +1,254 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'vProductModelCatalogDescription'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("vProductModelCatalogDescription", Schema = "Production")] +public partial class VProductModelCatalogDescription + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public VProductModelCatalogDescription() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'ProductModelID'. + /// + /// + /// The property value representing column 'ProductModelID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ProductModelID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'Name'. + /// + /// + /// The property value representing column 'Name'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'Summary'. + /// + /// + /// The property value representing column 'Summary'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Summary", TypeName = "nvarchar(max)")] + public string? Summary { get; set; } + + /// + /// Gets or sets the property value representing column 'Manufacturer'. + /// + /// + /// The property value representing column 'Manufacturer'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Manufacturer", TypeName = "nvarchar(max)")] + public string? Manufacturer { get; set; } + + /// + /// Gets or sets the property value representing column 'Copyright'. + /// + /// + /// The property value representing column 'Copyright'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Copyright", TypeName = "nvarchar(30)")] + public string? Copyright { get; set; } + + /// + /// Gets or sets the property value representing column 'ProductURL'. + /// + /// + /// The property value representing column 'ProductURL'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ProductURL", TypeName = "nvarchar(256)")] + public string? ProductURL { get; set; } + + /// + /// Gets or sets the property value representing column 'WarrantyPeriod'. + /// + /// + /// The property value representing column 'WarrantyPeriod'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("WarrantyPeriod", TypeName = "nvarchar(256)")] + public string? WarrantyPeriod { get; set; } + + /// + /// Gets or sets the property value representing column 'WarrantyDescription'. + /// + /// + /// The property value representing column 'WarrantyDescription'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("WarrantyDescription", TypeName = "nvarchar(256)")] + public string? WarrantyDescription { get; set; } + + /// + /// Gets or sets the property value representing column 'NoOfYears'. + /// + /// + /// The property value representing column 'NoOfYears'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("NoOfYears", TypeName = "nvarchar(256)")] + public string? NoOfYears { get; set; } + + /// + /// Gets or sets the property value representing column 'MaintenanceDescription'. + /// + /// + /// The property value representing column 'MaintenanceDescription'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("MaintenanceDescription", TypeName = "nvarchar(256)")] + public string? MaintenanceDescription { get; set; } + + /// + /// Gets or sets the property value representing column 'Wheel'. + /// + /// + /// The property value representing column 'Wheel'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Wheel", TypeName = "nvarchar(256)")] + public string? Wheel { get; set; } + + /// + /// Gets or sets the property value representing column 'Saddle'. + /// + /// + /// The property value representing column 'Saddle'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Saddle", TypeName = "nvarchar(256)")] + public string? Saddle { get; set; } + + /// + /// Gets or sets the property value representing column 'Pedal'. + /// + /// + /// The property value representing column 'Pedal'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Pedal", TypeName = "nvarchar(256)")] + public string? Pedal { get; set; } + + /// + /// Gets or sets the property value representing column 'BikeFrame'. + /// + /// + /// The property value representing column 'BikeFrame'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("BikeFrame", TypeName = "nvarchar(max)")] + public string? BikeFrame { get; set; } + + /// + /// Gets or sets the property value representing column 'Crankset'. + /// + /// + /// The property value representing column 'Crankset'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Crankset", TypeName = "nvarchar(256)")] + public string? Crankset { get; set; } + + /// + /// Gets or sets the property value representing column 'PictureAngle'. + /// + /// + /// The property value representing column 'PictureAngle'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("PictureAngle", TypeName = "nvarchar(256)")] + public string? PictureAngle { get; set; } + + /// + /// Gets or sets the property value representing column 'PictureSize'. + /// + /// + /// The property value representing column 'PictureSize'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("PictureSize", TypeName = "nvarchar(256)")] + public string? PictureSize { get; set; } + + /// + /// Gets or sets the property value representing column 'ProductPhotoID'. + /// + /// + /// The property value representing column 'ProductPhotoID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ProductPhotoID", TypeName = "nvarchar(256)")] + public string? ProductPhotoId { get; set; } + + /// + /// Gets or sets the property value representing column 'Material'. + /// + /// + /// The property value representing column 'Material'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Material", TypeName = "nvarchar(256)")] + public string? Material { get; set; } + + /// + /// Gets or sets the property value representing column 'Color'. + /// + /// + /// The property value representing column 'Color'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Color", TypeName = "nvarchar(256)")] + public string? Color { get; set; } + + /// + /// Gets or sets the property value representing column 'ProductLine'. + /// + /// + /// The property value representing column 'ProductLine'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ProductLine", TypeName = "nvarchar(256)")] + public string? ProductLine { get; set; } + + /// + /// Gets or sets the property value representing column 'Style'. + /// + /// + /// The property value representing column 'Style'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Style", TypeName = "nvarchar(256)")] + public string? Style { get; set; } + + /// + /// Gets or sets the property value representing column 'RiderExperience'. + /// + /// + /// The property value representing column 'RiderExperience'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("RiderExperience", TypeName = "nvarchar(1024)")] + public string? RiderExperience { get; set; } + + /// + /// Gets or sets the property value representing column 'rowguid'. + /// + /// + /// The property value representing column 'rowguid'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VProductModelInstructions.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VProductModelInstructions.cs new file mode 100644 index 0000000..794eda9 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VProductModelInstructions.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'vProductModelInstructions'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("vProductModelInstructions", Schema = "Production")] +public partial class VProductModelInstructions + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public VProductModelInstructions() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'ProductModelID'. + /// + /// + /// The property value representing column 'ProductModelID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ProductModelID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'Name'. + /// + /// + /// The property value representing column 'Name'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'Instructions'. + /// + /// + /// The property value representing column 'Instructions'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Instructions", TypeName = "nvarchar(max)")] + public string? Instructions { get; set; } + + /// + /// Gets or sets the property value representing column 'LocationID'. + /// + /// + /// The property value representing column 'LocationID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("LocationID", TypeName = "int")] + public int? LocationId { get; set; } + + /// + /// Gets or sets the property value representing column 'SetupHours'. + /// + /// + /// The property value representing column 'SetupHours'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("SetupHours", TypeName = "decimal(9,4)")] + public decimal? SetupHours { get; set; } + + /// + /// Gets or sets the property value representing column 'MachineHours'. + /// + /// + /// The property value representing column 'MachineHours'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("MachineHours", TypeName = "decimal(9,4)")] + public decimal? MachineHours { get; set; } + + /// + /// Gets or sets the property value representing column 'LaborHours'. + /// + /// + /// The property value representing column 'LaborHours'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("LaborHours", TypeName = "decimal(9,4)")] + public decimal? LaborHours { get; set; } + + /// + /// Gets or sets the property value representing column 'LotSize'. + /// + /// + /// The property value representing column 'LotSize'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("LotSize", TypeName = "int")] + public int? LotSize { get; set; } + + /// + /// Gets or sets the property value representing column 'Step'. + /// + /// + /// The property value representing column 'Step'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Step", TypeName = "nvarchar(1024)")] + public string? Step { get; set; } + + /// + /// Gets or sets the property value representing column 'rowguid'. + /// + /// + /// The property value representing column 'rowguid'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VSalesPerson.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VSalesPerson.cs new file mode 100644 index 0000000..c0d3db5 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VSalesPerson.cs @@ -0,0 +1,225 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'vSalesPerson'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("vSalesPerson", Schema = "Sales")] +public partial class VSalesPerson +{ + /// + /// Initializes a new instance of the class. + /// + public VSalesPerson() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'BusinessEntityID'. + /// + /// + /// The property value representing column 'BusinessEntityID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("BusinessEntityID", TypeName = "int")] + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value representing column 'Title'. + /// + /// + /// The property value representing column 'Title'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Title", TypeName = "nvarchar(8)")] + public string? Title { get; set; } + + /// + /// Gets or sets the property value representing column 'FirstName'. + /// + /// + /// The property value representing column 'FirstName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("FirstName", TypeName = "nvarchar(50)")] + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'MiddleName'. + /// + /// + /// The property value representing column 'MiddleName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("MiddleName", TypeName = "nvarchar(50)")] + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value representing column 'LastName'. + /// + /// + /// The property value representing column 'LastName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("LastName", TypeName = "nvarchar(50)")] + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'Suffix'. + /// + /// + /// The property value representing column 'Suffix'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Suffix", TypeName = "nvarchar(10)")] + public string? Suffix { get; set; } + + /// + /// Gets or sets the property value representing column 'JobTitle'. + /// + /// + /// The property value representing column 'JobTitle'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("JobTitle", TypeName = "nvarchar(50)")] + public string JobTitle { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'PhoneNumber'. + /// + /// + /// The property value representing column 'PhoneNumber'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("PhoneNumber", TypeName = "nvarchar(25)")] + public string? PhoneNumber { get; set; } + + /// + /// Gets or sets the property value representing column 'PhoneNumberType'. + /// + /// + /// The property value representing column 'PhoneNumberType'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("PhoneNumberType", TypeName = "nvarchar(50)")] + public string? PhoneNumberType { get; set; } + + /// + /// Gets or sets the property value representing column 'EmailAddress'. + /// + /// + /// The property value representing column 'EmailAddress'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("EmailAddress", TypeName = "nvarchar(50)")] + public string? EmailAddress { get; set; } + + /// + /// Gets or sets the property value representing column 'EmailPromotion'. + /// + /// + /// The property value representing column 'EmailPromotion'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("EmailPromotion", TypeName = "int")] + public int EmailPromotion { get; set; } + + /// + /// Gets or sets the property value representing column 'AddressLine1'. + /// + /// + /// The property value representing column 'AddressLine1'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("AddressLine1", TypeName = "nvarchar(60)")] + public string AddressLine1 { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'AddressLine2'. + /// + /// + /// The property value representing column 'AddressLine2'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("AddressLine2", TypeName = "nvarchar(60)")] + public string? AddressLine2 { get; set; } + + /// + /// Gets or sets the property value representing column 'City'. + /// + /// + /// The property value representing column 'City'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("City", TypeName = "nvarchar(30)")] + public string City { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'StateProvinceName'. + /// + /// + /// The property value representing column 'StateProvinceName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("StateProvinceName", TypeName = "nvarchar(50)")] + public string StateProvinceName { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'PostalCode'. + /// + /// + /// The property value representing column 'PostalCode'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("PostalCode", TypeName = "nvarchar(15)")] + public string PostalCode { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'CountryRegionName'. + /// + /// + /// The property value representing column 'CountryRegionName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("CountryRegionName", TypeName = "nvarchar(50)")] + public string CountryRegionName { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'TerritoryName'. + /// + /// + /// The property value representing column 'TerritoryName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("TerritoryName", TypeName = "nvarchar(50)")] + public string? TerritoryName { get; set; } + + /// + /// Gets or sets the property value representing column 'TerritoryGroup'. + /// + /// + /// The property value representing column 'TerritoryGroup'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("TerritoryGroup", TypeName = "nvarchar(50)")] + public string? TerritoryGroup { get; set; } + + /// + /// Gets or sets the property value representing column 'SalesQuota'. + /// + /// + /// The property value representing column 'SalesQuota'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("SalesQuota", TypeName = "money")] + public decimal? SalesQuota { get; set; } + + /// + /// Gets or sets the property value representing column 'SalesYTD'. + /// + /// + /// The property value representing column 'SalesYTD'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("SalesYTD", TypeName = "money")] + public decimal SalesYTD { get; set; } + + /// + /// Gets or sets the property value representing column 'SalesLastYear'. + /// + /// + /// The property value representing column 'SalesLastYear'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("SalesLastYear", TypeName = "money")] + public decimal SalesLastYear { get; set; } + + #endregion + + #region Generated Relationships + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VSalesPersonSalesByFiscalYears.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VSalesPersonSalesByFiscalYears.cs new file mode 100644 index 0000000..b31dc5f --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VSalesPersonSalesByFiscalYears.cs @@ -0,0 +1,90 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'vSalesPersonSalesByFiscalYears'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("vSalesPersonSalesByFiscalYears", Schema = "Sales")] +public partial class VSalesPersonSalesByFiscalYears +{ + /// + /// Initializes a new instance of the class. + /// + public VSalesPersonSalesByFiscalYears() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'SalesPersonID'. + /// + /// + /// The property value representing column 'SalesPersonID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("SalesPersonID", TypeName = "int")] + public int? SalesPersonId { get; set; } + + /// + /// Gets or sets the property value representing column 'FullName'. + /// + /// + /// The property value representing column 'FullName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("FullName", TypeName = "nvarchar(152)")] + public string? FullName { get; set; } + + /// + /// Gets or sets the property value representing column 'JobTitle'. + /// + /// + /// The property value representing column 'JobTitle'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("JobTitle", TypeName = "nvarchar(50)")] + public string JobTitle { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'SalesTerritory'. + /// + /// + /// The property value representing column 'SalesTerritory'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("SalesTerritory", TypeName = "nvarchar(50)")] + public string SalesTerritory { get; set; } = null!; + + /// + /// Gets or sets the property value representing column '2002'. + /// + /// + /// The property value representing column '2002'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("2002", TypeName = "money")] + public decimal? Number2002 { get; set; } + + /// + /// Gets or sets the property value representing column '2003'. + /// + /// + /// The property value representing column '2003'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("2003", TypeName = "money")] + public decimal? Number2003 { get; set; } + + /// + /// Gets or sets the property value representing column '2004'. + /// + /// + /// The property value representing column '2004'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("2004", TypeName = "money")] + public decimal? Number2004 { get; set; } + + #endregion + + #region Generated Relationships + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VStateProvinceCountryRegion.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VStateProvinceCountryRegion.cs new file mode 100644 index 0000000..ce86217 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VStateProvinceCountryRegion.cs @@ -0,0 +1,90 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'vStateProvinceCountryRegion'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("vStateProvinceCountryRegion", Schema = "Person")] +public partial class VStateProvinceCountryRegion +{ + /// + /// Initializes a new instance of the class. + /// + public VStateProvinceCountryRegion() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'StateProvinceID'. + /// + /// + /// The property value representing column 'StateProvinceID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("StateProvinceID", TypeName = "int")] + public int StateProvinceId { get; set; } + + /// + /// Gets or sets the property value representing column 'StateProvinceCode'. + /// + /// + /// The property value representing column 'StateProvinceCode'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("StateProvinceCode", TypeName = "nchar(3)")] + public string StateProvinceCode { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'IsOnlyStateProvinceFlag'. + /// + /// + /// The property value representing column 'IsOnlyStateProvinceFlag'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("IsOnlyStateProvinceFlag", TypeName = "bit")] + public bool IsOnlyStateProvinceFlag { get; set; } + + /// + /// Gets or sets the property value representing column 'StateProvinceName'. + /// + /// + /// The property value representing column 'StateProvinceName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("StateProvinceName", TypeName = "nvarchar(50)")] + public string StateProvinceName { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'TerritoryID'. + /// + /// + /// The property value representing column 'TerritoryID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("TerritoryID", TypeName = "int")] + public int TerritoryId { get; set; } + + /// + /// Gets or sets the property value representing column 'CountryRegionCode'. + /// + /// + /// The property value representing column 'CountryRegionCode'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("CountryRegionCode", TypeName = "nvarchar(3)")] + public string CountryRegionCode { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'CountryRegionName'. + /// + /// + /// The property value representing column 'CountryRegionName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("CountryRegionName", TypeName = "nvarchar(50)")] + public string CountryRegionName { get; set; } = null!; + + #endregion + + #region Generated Relationships + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithAddresses.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithAddresses.cs new file mode 100644 index 0000000..bfe989d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithAddresses.cs @@ -0,0 +1,108 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'vStoreWithAddresses'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("vStoreWithAddresses", Schema = "Sales")] +public partial class VStoreWithAddresses +{ + /// + /// Initializes a new instance of the class. + /// + public VStoreWithAddresses() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'BusinessEntityID'. + /// + /// + /// The property value representing column 'BusinessEntityID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("BusinessEntityID", TypeName = "int")] + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value representing column 'Name'. + /// + /// + /// The property value representing column 'Name'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'AddressType'. + /// + /// + /// The property value representing column 'AddressType'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("AddressType", TypeName = "nvarchar(50)")] + public string AddressType { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'AddressLine1'. + /// + /// + /// The property value representing column 'AddressLine1'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("AddressLine1", TypeName = "nvarchar(60)")] + public string AddressLine1 { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'AddressLine2'. + /// + /// + /// The property value representing column 'AddressLine2'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("AddressLine2", TypeName = "nvarchar(60)")] + public string? AddressLine2 { get; set; } + + /// + /// Gets or sets the property value representing column 'City'. + /// + /// + /// The property value representing column 'City'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("City", TypeName = "nvarchar(30)")] + public string City { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'StateProvinceName'. + /// + /// + /// The property value representing column 'StateProvinceName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("StateProvinceName", TypeName = "nvarchar(50)")] + public string StateProvinceName { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'PostalCode'. + /// + /// + /// The property value representing column 'PostalCode'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("PostalCode", TypeName = "nvarchar(15)")] + public string PostalCode { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'CountryRegionName'. + /// + /// + /// The property value representing column 'CountryRegionName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("CountryRegionName", TypeName = "nvarchar(50)")] + public string CountryRegionName { get; set; } = null!; + + #endregion + + #region Generated Relationships + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithContacts.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithContacts.cs new file mode 100644 index 0000000..6e6b20c --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithContacts.cs @@ -0,0 +1,135 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'vStoreWithContacts'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("vStoreWithContacts", Schema = "Sales")] +public partial class VStoreWithContacts +{ + /// + /// Initializes a new instance of the class. + /// + public VStoreWithContacts() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'BusinessEntityID'. + /// + /// + /// The property value representing column 'BusinessEntityID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("BusinessEntityID", TypeName = "int")] + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value representing column 'Name'. + /// + /// + /// The property value representing column 'Name'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'ContactType'. + /// + /// + /// The property value representing column 'ContactType'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ContactType", TypeName = "nvarchar(50)")] + public string ContactType { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'Title'. + /// + /// + /// The property value representing column 'Title'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Title", TypeName = "nvarchar(8)")] + public string? Title { get; set; } + + /// + /// Gets or sets the property value representing column 'FirstName'. + /// + /// + /// The property value representing column 'FirstName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("FirstName", TypeName = "nvarchar(50)")] + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'MiddleName'. + /// + /// + /// The property value representing column 'MiddleName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("MiddleName", TypeName = "nvarchar(50)")] + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value representing column 'LastName'. + /// + /// + /// The property value representing column 'LastName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("LastName", TypeName = "nvarchar(50)")] + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'Suffix'. + /// + /// + /// The property value representing column 'Suffix'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Suffix", TypeName = "nvarchar(10)")] + public string? Suffix { get; set; } + + /// + /// Gets or sets the property value representing column 'PhoneNumber'. + /// + /// + /// The property value representing column 'PhoneNumber'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("PhoneNumber", TypeName = "nvarchar(25)")] + public string? PhoneNumber { get; set; } + + /// + /// Gets or sets the property value representing column 'PhoneNumberType'. + /// + /// + /// The property value representing column 'PhoneNumberType'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("PhoneNumberType", TypeName = "nvarchar(50)")] + public string? PhoneNumberType { get; set; } + + /// + /// Gets or sets the property value representing column 'EmailAddress'. + /// + /// + /// The property value representing column 'EmailAddress'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("EmailAddress", TypeName = "nvarchar(50)")] + public string? EmailAddress { get; set; } + + /// + /// Gets or sets the property value representing column 'EmailPromotion'. + /// + /// + /// The property value representing column 'EmailPromotion'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("EmailPromotion", TypeName = "int")] + public int EmailPromotion { get; set; } + + #endregion + + #region Generated Relationships + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithDemographics.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithDemographics.cs new file mode 100644 index 0000000..5acd2a5 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithDemographics.cs @@ -0,0 +1,135 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'vStoreWithDemographics'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("vStoreWithDemographics", Schema = "Sales")] +public partial class VStoreWithDemographics +{ + /// + /// Initializes a new instance of the class. + /// + public VStoreWithDemographics() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'BusinessEntityID'. + /// + /// + /// The property value representing column 'BusinessEntityID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("BusinessEntityID", TypeName = "int")] + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value representing column 'Name'. + /// + /// + /// The property value representing column 'Name'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'AnnualSales'. + /// + /// + /// The property value representing column 'AnnualSales'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("AnnualSales", TypeName = "money")] + public decimal? AnnualSales { get; set; } + + /// + /// Gets or sets the property value representing column 'AnnualRevenue'. + /// + /// + /// The property value representing column 'AnnualRevenue'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("AnnualRevenue", TypeName = "money")] + public decimal? AnnualRevenue { get; set; } + + /// + /// Gets or sets the property value representing column 'BankName'. + /// + /// + /// The property value representing column 'BankName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("BankName", TypeName = "nvarchar(50)")] + public string? BankName { get; set; } + + /// + /// Gets or sets the property value representing column 'BusinessType'. + /// + /// + /// The property value representing column 'BusinessType'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("BusinessType", TypeName = "nvarchar(5)")] + public string? BusinessType { get; set; } + + /// + /// Gets or sets the property value representing column 'YearOpened'. + /// + /// + /// The property value representing column 'YearOpened'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("YearOpened", TypeName = "int")] + public int? YearOpened { get; set; } + + /// + /// Gets or sets the property value representing column 'Specialty'. + /// + /// + /// The property value representing column 'Specialty'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Specialty", TypeName = "nvarchar(50)")] + public string? Specialty { get; set; } + + /// + /// Gets or sets the property value representing column 'SquareFeet'. + /// + /// + /// The property value representing column 'SquareFeet'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("SquareFeet", TypeName = "int")] + public int? SquareFeet { get; set; } + + /// + /// Gets or sets the property value representing column 'Brands'. + /// + /// + /// The property value representing column 'Brands'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Brands", TypeName = "nvarchar(30)")] + public string? Brands { get; set; } + + /// + /// Gets or sets the property value representing column 'Internet'. + /// + /// + /// The property value representing column 'Internet'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Internet", TypeName = "nvarchar(30)")] + public string? Internet { get; set; } + + /// + /// Gets or sets the property value representing column 'NumberEmployees'. + /// + /// + /// The property value representing column 'NumberEmployees'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("NumberEmployees", TypeName = "int")] + public int? NumberEmployees { get; set; } + + #endregion + + #region Generated Relationships + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VVendorWithAddresses.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VVendorWithAddresses.cs new file mode 100644 index 0000000..c05ddc1 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VVendorWithAddresses.cs @@ -0,0 +1,108 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'vVendorWithAddresses'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("vVendorWithAddresses", Schema = "Purchasing")] +public partial class VVendorWithAddresses +{ + /// + /// Initializes a new instance of the class. + /// + public VVendorWithAddresses() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'BusinessEntityID'. + /// + /// + /// The property value representing column 'BusinessEntityID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("BusinessEntityID", TypeName = "int")] + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value representing column 'Name'. + /// + /// + /// The property value representing column 'Name'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'AddressType'. + /// + /// + /// The property value representing column 'AddressType'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("AddressType", TypeName = "nvarchar(50)")] + public string AddressType { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'AddressLine1'. + /// + /// + /// The property value representing column 'AddressLine1'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("AddressLine1", TypeName = "nvarchar(60)")] + public string AddressLine1 { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'AddressLine2'. + /// + /// + /// The property value representing column 'AddressLine2'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("AddressLine2", TypeName = "nvarchar(60)")] + public string? AddressLine2 { get; set; } + + /// + /// Gets or sets the property value representing column 'City'. + /// + /// + /// The property value representing column 'City'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("City", TypeName = "nvarchar(30)")] + public string City { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'StateProvinceName'. + /// + /// + /// The property value representing column 'StateProvinceName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("StateProvinceName", TypeName = "nvarchar(50)")] + public string StateProvinceName { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'PostalCode'. + /// + /// + /// The property value representing column 'PostalCode'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("PostalCode", TypeName = "nvarchar(15)")] + public string PostalCode { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'CountryRegionName'. + /// + /// + /// The property value representing column 'CountryRegionName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("CountryRegionName", TypeName = "nvarchar(50)")] + public string CountryRegionName { get; set; } = null!; + + #endregion + + #region Generated Relationships + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VVendorWithContacts.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VVendorWithContacts.cs new file mode 100644 index 0000000..42dd6c6 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VVendorWithContacts.cs @@ -0,0 +1,135 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'vVendorWithContacts'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("vVendorWithContacts", Schema = "Purchasing")] +public partial class VVendorWithContacts +{ + /// + /// Initializes a new instance of the class. + /// + public VVendorWithContacts() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'BusinessEntityID'. + /// + /// + /// The property value representing column 'BusinessEntityID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("BusinessEntityID", TypeName = "int")] + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value representing column 'Name'. + /// + /// + /// The property value representing column 'Name'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'ContactType'. + /// + /// + /// The property value representing column 'ContactType'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ContactType", TypeName = "nvarchar(50)")] + public string ContactType { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'Title'. + /// + /// + /// The property value representing column 'Title'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Title", TypeName = "nvarchar(8)")] + public string? Title { get; set; } + + /// + /// Gets or sets the property value representing column 'FirstName'. + /// + /// + /// The property value representing column 'FirstName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("FirstName", TypeName = "nvarchar(50)")] + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'MiddleName'. + /// + /// + /// The property value representing column 'MiddleName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("MiddleName", TypeName = "nvarchar(50)")] + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value representing column 'LastName'. + /// + /// + /// The property value representing column 'LastName'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("LastName", TypeName = "nvarchar(50)")] + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'Suffix'. + /// + /// + /// The property value representing column 'Suffix'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Suffix", TypeName = "nvarchar(10)")] + public string? Suffix { get; set; } + + /// + /// Gets or sets the property value representing column 'PhoneNumber'. + /// + /// + /// The property value representing column 'PhoneNumber'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("PhoneNumber", TypeName = "nvarchar(25)")] + public string? PhoneNumber { get; set; } + + /// + /// Gets or sets the property value representing column 'PhoneNumberType'. + /// + /// + /// The property value representing column 'PhoneNumberType'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("PhoneNumberType", TypeName = "nvarchar(50)")] + public string? PhoneNumberType { get; set; } + + /// + /// Gets or sets the property value representing column 'EmailAddress'. + /// + /// + /// The property value representing column 'EmailAddress'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("EmailAddress", TypeName = "nvarchar(50)")] + public string? EmailAddress { get; set; } + + /// + /// Gets or sets the property value representing column 'EmailPromotion'. + /// + /// + /// The property value representing column 'EmailPromotion'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("EmailPromotion", TypeName = "int")] + public int EmailPromotion { get; set; } + + #endregion + + #region Generated Relationships + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Vendor.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Vendor.cs new file mode 100644 index 0000000..e6f54e0 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/Vendor.cs @@ -0,0 +1,127 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'Vendor'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("Vendor", Schema = "Purchasing")] +public partial class Vendor +{ + /// + /// Initializes a new instance of the class. + /// + public Vendor() + { + #region Generated Constructor + ProductVendors = new HashSet(); + PurchaseOrderHeaders = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'BusinessEntityID'. + /// + /// + /// The property value representing column 'BusinessEntityID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("BusinessEntityID", TypeName = "int")] + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value representing column 'AccountNumber'. + /// + /// + /// The property value representing column 'AccountNumber'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("AccountNumber", TypeName = "nvarchar(15)")] + public string AccountNumber { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'Name'. + /// + /// + /// The property value representing column 'Name'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value representing column 'CreditRating'. + /// + /// + /// The property value representing column 'CreditRating'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("CreditRating", TypeName = "tinyint")] + public byte CreditRating { get; set; } + + /// + /// Gets or sets the property value representing column 'PreferredVendorStatus'. + /// + /// + /// The property value representing column 'PreferredVendorStatus'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("PreferredVendorStatus", TypeName = "bit")] + public bool PreferredVendorStatus { get; set; } + + /// + /// Gets or sets the property value representing column 'ActiveFlag'. + /// + /// + /// The property value representing column 'ActiveFlag'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ActiveFlag", TypeName = "bit")] + public bool ActiveFlag { get; set; } + + /// + /// Gets or sets the property value representing column 'PurchasingWebServiceURL'. + /// + /// + /// The property value representing column 'PurchasingWebServiceURL'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("PurchasingWebServiceURL", TypeName = "nvarchar(1024)")] + public string? PurchasingWebServiceURL { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual BusinessEntity BusinessEntity { get; set; } = null!; + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection ProductVendors { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection PurchaseOrderHeaders { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/WorkOrder.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/WorkOrder.cs new file mode 100644 index 0000000..e0d01eb --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/WorkOrder.cs @@ -0,0 +1,148 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'WorkOrder'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("WorkOrder", Schema = "Production")] +public partial class WorkOrder + : HasDomainEventsBase, IIdentity +{ + /// + /// Initializes a new instance of the class. + /// + public WorkOrder() + { + #region Generated Constructor + WorkOrderRoutings = new HashSet(); + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'WorkOrderID'. + /// + /// + /// The property value representing column 'WorkOrderID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("WorkOrderID", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)] + public int Id { get; set; } + + /// + /// Gets or sets the property value representing column 'ProductID'. + /// + /// + /// The property value representing column 'ProductID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ProductID", TypeName = "int")] + public int ProductId { get; set; } + + /// + /// Gets or sets the property value representing column 'OrderQty'. + /// + /// + /// The property value representing column 'OrderQty'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("OrderQty", TypeName = "int")] + public int OrderQty { get; set; } + + /// + /// Gets or sets the property value representing column 'StockedQty'. + /// + /// + /// The property value representing column 'StockedQty'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("StockedQty", TypeName = "int")] + [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Computed)] + public int StockedQty { get; set; } + + /// + /// Gets or sets the property value representing column 'ScrappedQty'. + /// + /// + /// The property value representing column 'ScrappedQty'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ScrappedQty", TypeName = "smallint")] + public short ScrappedQty { get; set; } + + /// + /// Gets or sets the property value representing column 'StartDate'. + /// + /// + /// The property value representing column 'StartDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("StartDate", TypeName = "datetime")] + public DateTime StartDate { get; set; } + + /// + /// Gets or sets the property value representing column 'EndDate'. + /// + /// + /// The property value representing column 'EndDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("EndDate", TypeName = "datetime")] + public DateTime? EndDate { get; set; } + + /// + /// Gets or sets the property value representing column 'DueDate'. + /// + /// + /// The property value representing column 'DueDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("DueDate", TypeName = "datetime")] + public DateTime DueDate { get; set; } + + /// + /// Gets or sets the property value representing column 'ScrapReasonID'. + /// + /// + /// The property value representing column 'ScrapReasonID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ScrapReasonID", TypeName = "smallint")] + public short? ScrapReasonId { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Product Product { get; set; } = null!; + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual ScrapReason? ScrapReason { get; set; } + + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection WorkOrderRoutings { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/WorkOrderRouting.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/WorkOrderRouting.cs new file mode 100644 index 0000000..9039c40 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/WorkOrderRouting.cs @@ -0,0 +1,156 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Data.Entities; + +/// +/// Entity class representing data for table 'WorkOrderRouting'. +/// +[System.ComponentModel.DataAnnotations.Schema.Table("WorkOrderRouting", Schema = "Production")] +public partial class WorkOrderRouting +{ + /// + /// Initializes a new instance of the class. + /// + public WorkOrderRouting() + { + #region Generated Constructor + #endregion + } + + #region Generated Properties + /// + /// Gets or sets the property value representing column 'WorkOrderID'. + /// + /// + /// The property value representing column 'WorkOrderID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("WorkOrderID", TypeName = "int")] + public int WorkOrderId { get; set; } + + /// + /// Gets or sets the property value representing column 'ProductID'. + /// + /// + /// The property value representing column 'ProductID'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("ProductID", TypeName = "int")] + public int ProductId { get; set; } + + /// + /// Gets or sets the property value representing column 'OperationSequence'. + /// + /// + /// The property value representing column 'OperationSequence'. + /// + [System.ComponentModel.DataAnnotations.Key()] + [System.ComponentModel.DataAnnotations.Schema.Column("OperationSequence", TypeName = "smallint")] + public short OperationSequence { get; set; } + + /// + /// Gets or sets the property value representing column 'LocationID'. + /// + /// + /// The property value representing column 'LocationID'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("LocationID", TypeName = "smallint")] + public short LocationId { get; set; } + + /// + /// Gets or sets the property value representing column 'ScheduledStartDate'. + /// + /// + /// The property value representing column 'ScheduledStartDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ScheduledStartDate", TypeName = "datetime")] + public DateTime ScheduledStartDate { get; set; } + + /// + /// Gets or sets the property value representing column 'ScheduledEndDate'. + /// + /// + /// The property value representing column 'ScheduledEndDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ScheduledEndDate", TypeName = "datetime")] + public DateTime ScheduledEndDate { get; set; } + + /// + /// Gets or sets the property value representing column 'ActualStartDate'. + /// + /// + /// The property value representing column 'ActualStartDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ActualStartDate", TypeName = "datetime")] + public DateTime? ActualStartDate { get; set; } + + /// + /// Gets or sets the property value representing column 'ActualEndDate'. + /// + /// + /// The property value representing column 'ActualEndDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ActualEndDate", TypeName = "datetime")] + public DateTime? ActualEndDate { get; set; } + + /// + /// Gets or sets the property value representing column 'ActualResourceHrs'. + /// + /// + /// The property value representing column 'ActualResourceHrs'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ActualResourceHrs", TypeName = "decimal(9,4)")] + public decimal? ActualResourceHrs { get; set; } + + /// + /// Gets or sets the property value representing column 'PlannedCost'. + /// + /// + /// The property value representing column 'PlannedCost'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("PlannedCost", TypeName = "money")] + public decimal PlannedCost { get; set; } + + /// + /// Gets or sets the property value representing column 'ActualCost'. + /// + /// + /// The property value representing column 'ActualCost'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ActualCost", TypeName = "money")] + public decimal? ActualCost { get; set; } + + /// + /// Gets or sets the property value representing column 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } + + #endregion + + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Location Location { get; set; } = null!; + + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual WorkOrder WorkOrder { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/AddressConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/AddressConfiguration.cs new file mode 100644 index 0000000..ce03b13 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/AddressConfiguration.cs @@ -0,0 +1,112 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class AddressConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("Address", "Person"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("AddressID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.AddressLine1) + .IsRequired() + .HasColumnName("AddressLine1") + .HasColumnType("nvarchar(60)") + .HasMaxLength(60); + + builder.Property(t => t.AddressLine2) + .HasColumnName("AddressLine2") + .HasColumnType("nvarchar(60)") + .HasMaxLength(60); + + builder.Property(t => t.City) + .IsRequired() + .HasColumnName("City") + .HasColumnType("nvarchar(30)") + .HasMaxLength(30); + + builder.Property(t => t.StateProvinceId) + .IsRequired() + .HasColumnName("StateProvinceID") + .HasColumnType("int"); + + builder.Property(t => t.PostalCode) + .IsRequired() + .HasColumnName("PostalCode") + .HasColumnType("nvarchar(15)") + .HasMaxLength(15); + + builder.Property(t => t.Rowguid) + .IsRequired() + .HasColumnName("rowguid") + .HasColumnType("uniqueidentifier") + .HasDefaultValueSql("(newid())"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.StateProvince) + .WithMany(t => t.Addresses) + .HasForeignKey(d => d.StateProvinceId) + .HasConstraintName("FK_Address_StateProvince_StateProvinceID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Person"; + /// Table Name constant for entity + public const string Name = "Address"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "AddressID"; + /// Column Name constant for property + public const string AddressLine1 = "AddressLine1"; + /// Column Name constant for property + public const string AddressLine2 = "AddressLine2"; + /// Column Name constant for property + public const string City = "City"; + /// Column Name constant for property + public const string StateProvinceId = "StateProvinceID"; + /// Column Name constant for property + public const string PostalCode = "PostalCode"; + /// Column Name constant for property + public const string Rowguid = "rowguid"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/AddressTypeConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/AddressTypeConfiguration.cs new file mode 100644 index 0000000..62a740a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/AddressTypeConfiguration.cs @@ -0,0 +1,77 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class AddressTypeConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("AddressType", "Person"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("AddressTypeID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.Name) + .IsRequired() + .HasColumnName("Name") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.Rowguid) + .IsRequired() + .HasColumnName("rowguid") + .HasColumnType("uniqueidentifier") + .HasDefaultValueSql("(newid())"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Person"; + /// Table Name constant for entity + public const string Name = "AddressType"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "AddressTypeID"; + /// Column Name constant for property + public const string Name = "Name"; + /// Column Name constant for property + public const string Rowguid = "rowguid"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BillOfMaterialsConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BillOfMaterialsConfiguration.cs new file mode 100644 index 0000000..0d634e5 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BillOfMaterialsConfiguration.cs @@ -0,0 +1,126 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class BillOfMaterialsConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("BillOfMaterials", "Production"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("BillOfMaterialsID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.ProductAssemblyId) + .HasColumnName("ProductAssemblyID") + .HasColumnType("int"); + + builder.Property(t => t.ComponentId) + .IsRequired() + .HasColumnName("ComponentID") + .HasColumnType("int"); + + builder.Property(t => t.StartDate) + .IsRequired() + .HasColumnName("StartDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + builder.Property(t => t.EndDate) + .HasColumnName("EndDate") + .HasColumnType("datetime"); + + builder.Property(t => t.UnitMeasureCode) + .IsRequired() + .HasColumnName("UnitMeasureCode") + .HasColumnType("nchar(3)") + .HasMaxLength(3); + + builder.Property(t => t.BOMLevel) + .IsRequired() + .HasColumnName("BOMLevel") + .HasColumnType("smallint"); + + builder.Property(t => t.PerAssemblyQty) + .IsRequired() + .HasColumnName("PerAssemblyQty") + .HasColumnType("decimal(8,2)") + .HasDefaultValueSql("((1.00))"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.ComponentProduct) + .WithMany(t => t.ComponentBillOfMaterials) + .HasForeignKey(d => d.ComponentId) + .HasConstraintName("FK_BillOfMaterials_Product_ComponentID"); + + builder.HasOne(t => t.AssemblyProduct) + .WithMany(t => t.AssemblyBillOfMaterials) + .HasForeignKey(d => d.ProductAssemblyId) + .HasConstraintName("FK_BillOfMaterials_Product_ProductAssemblyID"); + + builder.HasOne(t => t.UnitMeasure) + .WithMany(t => t.BillOfMaterials) + .HasForeignKey(d => d.UnitMeasureCode) + .HasConstraintName("FK_BillOfMaterials_UnitMeasure_UnitMeasureCode"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Production"; + /// Table Name constant for entity + public const string Name = "BillOfMaterials"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "BillOfMaterialsID"; + /// Column Name constant for property + public const string ProductAssemblyId = "ProductAssemblyID"; + /// Column Name constant for property + public const string ComponentId = "ComponentID"; + /// Column Name constant for property + public const string StartDate = "StartDate"; + /// Column Name constant for property + public const string EndDate = "EndDate"; + /// Column Name constant for property + public const string UnitMeasureCode = "UnitMeasureCode"; + /// Column Name constant for property + public const string BOMLevel = "BOMLevel"; + /// Column Name constant for property + public const string PerAssemblyQty = "PerAssemblyQty"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BusinessEntityAddressConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BusinessEntityAddressConfiguration.cs new file mode 100644 index 0000000..6005064 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BusinessEntityAddressConfiguration.cs @@ -0,0 +1,97 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class BusinessEntityAddressConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("BusinessEntityAddress", "Person"); + + // key + builder.HasKey(t => new { t.BusinessEntityId, t.AddressId, t.AddressTypeId }); + + // properties + builder.Property(t => t.BusinessEntityId) + .IsRequired() + .HasColumnName("BusinessEntityID") + .HasColumnType("int"); + + builder.Property(t => t.AddressId) + .IsRequired() + .HasColumnName("AddressID") + .HasColumnType("int"); + + builder.Property(t => t.AddressTypeId) + .IsRequired() + .HasColumnName("AddressTypeID") + .HasColumnType("int"); + + builder.Property(t => t.Rowguid) + .IsRequired() + .HasColumnName("rowguid") + .HasColumnType("uniqueidentifier") + .HasDefaultValueSql("(newid())"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.Address) + .WithMany(t => t.BusinessEntityAddresses) + .HasForeignKey(d => d.AddressId) + .HasConstraintName("FK_BusinessEntityAddress_Address_AddressID"); + + builder.HasOne(t => t.AddressType) + .WithMany(t => t.BusinessEntityAddresses) + .HasForeignKey(d => d.AddressTypeId) + .HasConstraintName("FK_BusinessEntityAddress_AddressType_AddressTypeID"); + + builder.HasOne(t => t.BusinessEntity) + .WithMany(t => t.BusinessEntityAddresses) + .HasForeignKey(d => d.BusinessEntityId) + .HasConstraintName("FK_BusinessEntityAddress_BusinessEntity_BusinessEntityID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Person"; + /// Table Name constant for entity + public const string Name = "BusinessEntityAddress"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string BusinessEntityId = "BusinessEntityID"; + /// Column Name constant for property + public const string AddressId = "AddressID"; + /// Column Name constant for property + public const string AddressTypeId = "AddressTypeID"; + /// Column Name constant for property + public const string Rowguid = "rowguid"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BusinessEntityConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BusinessEntityConfiguration.cs new file mode 100644 index 0000000..202507d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BusinessEntityConfiguration.cs @@ -0,0 +1,69 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class BusinessEntityConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("BusinessEntity", "Person"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("BusinessEntityID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.Rowguid) + .IsRequired() + .HasColumnName("rowguid") + .HasColumnType("uniqueidentifier") + .HasDefaultValueSql("(newid())"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Person"; + /// Table Name constant for entity + public const string Name = "BusinessEntity"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "BusinessEntityID"; + /// Column Name constant for property + public const string Rowguid = "rowguid"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BusinessEntityContactConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BusinessEntityContactConfiguration.cs new file mode 100644 index 0000000..ccc63c6 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BusinessEntityContactConfiguration.cs @@ -0,0 +1,97 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class BusinessEntityContactConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("BusinessEntityContact", "Person"); + + // key + builder.HasKey(t => new { t.BusinessEntityId, t.PersonId, t.ContactTypeId }); + + // properties + builder.Property(t => t.BusinessEntityId) + .IsRequired() + .HasColumnName("BusinessEntityID") + .HasColumnType("int"); + + builder.Property(t => t.PersonId) + .IsRequired() + .HasColumnName("PersonID") + .HasColumnType("int"); + + builder.Property(t => t.ContactTypeId) + .IsRequired() + .HasColumnName("ContactTypeID") + .HasColumnType("int"); + + builder.Property(t => t.Rowguid) + .IsRequired() + .HasColumnName("rowguid") + .HasColumnType("uniqueidentifier") + .HasDefaultValueSql("(newid())"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.BusinessEntity) + .WithMany(t => t.BusinessEntityContacts) + .HasForeignKey(d => d.BusinessEntityId) + .HasConstraintName("FK_BusinessEntityContact_BusinessEntity_BusinessEntityID"); + + builder.HasOne(t => t.ContactType) + .WithMany(t => t.BusinessEntityContacts) + .HasForeignKey(d => d.ContactTypeId) + .HasConstraintName("FK_BusinessEntityContact_ContactType_ContactTypeID"); + + builder.HasOne(t => t.Person) + .WithMany(t => t.BusinessEntityContacts) + .HasForeignKey(d => d.PersonId) + .HasConstraintName("FK_BusinessEntityContact_Person_PersonID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Person"; + /// Table Name constant for entity + public const string Name = "BusinessEntityContact"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string BusinessEntityId = "BusinessEntityID"; + /// Column Name constant for property + public const string PersonId = "PersonID"; + /// Column Name constant for property + public const string ContactTypeId = "ContactTypeID"; + /// Column Name constant for property + public const string Rowguid = "rowguid"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ContactTypeConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ContactTypeConfiguration.cs new file mode 100644 index 0000000..2b54b31 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ContactTypeConfiguration.cs @@ -0,0 +1,69 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class ContactTypeConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("ContactType", "Person"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("ContactTypeID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.Name) + .IsRequired() + .HasColumnName("Name") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Person"; + /// Table Name constant for entity + public const string Name = "ContactType"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "ContactTypeID"; + /// Column Name constant for property + public const string Name = "Name"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CountryRegionConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CountryRegionConfiguration.cs new file mode 100644 index 0000000..4b86310 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CountryRegionConfiguration.cs @@ -0,0 +1,69 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class CountryRegionConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("CountryRegion", "Person"); + + // key + builder.HasKey(t => t.CountryRegionCode); + + // properties + builder.Property(t => t.CountryRegionCode) + .IsRequired() + .HasColumnName("CountryRegionCode") + .HasColumnType("nvarchar(3)") + .HasMaxLength(3); + + builder.Property(t => t.Name) + .IsRequired() + .HasColumnName("Name") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Person"; + /// Table Name constant for entity + public const string Name = "CountryRegion"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string CountryRegionCode = "CountryRegionCode"; + /// Column Name constant for property + public const string Name = "Name"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CountryRegionCurrencyConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CountryRegionCurrencyConfiguration.cs new file mode 100644 index 0000000..46e2fb0 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CountryRegionCurrencyConfiguration.cs @@ -0,0 +1,79 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class CountryRegionCurrencyConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("CountryRegionCurrency", "Sales"); + + // key + builder.HasKey(t => new { t.CountryRegionCode, t.CurrencyCode }); + + // properties + builder.Property(t => t.CountryRegionCode) + .IsRequired() + .HasColumnName("CountryRegionCode") + .HasColumnType("nvarchar(3)") + .HasMaxLength(3); + + builder.Property(t => t.CurrencyCode) + .IsRequired() + .HasColumnName("CurrencyCode") + .HasColumnType("nchar(3)") + .HasMaxLength(3); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.CountryRegion) + .WithMany(t => t.CountryRegionCurrencies) + .HasForeignKey(d => d.CountryRegionCode) + .HasConstraintName("FK_CountryRegionCurrency_CountryRegion_CountryRegionCode"); + + builder.HasOne(t => t.Currency) + .WithMany(t => t.CountryRegionCurrencies) + .HasForeignKey(d => d.CurrencyCode) + .HasConstraintName("FK_CountryRegionCurrency_Currency_CurrencyCode"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Sales"; + /// Table Name constant for entity + public const string Name = "CountryRegionCurrency"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string CountryRegionCode = "CountryRegionCode"; + /// Column Name constant for property + public const string CurrencyCode = "CurrencyCode"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CreditCardConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CreditCardConfiguration.cs new file mode 100644 index 0000000..2d23a16 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CreditCardConfiguration.cs @@ -0,0 +1,91 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class CreditCardConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("CreditCard", "Sales"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("CreditCardID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.CardType) + .IsRequired() + .HasColumnName("CardType") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.CardNumber) + .IsRequired() + .HasColumnName("CardNumber") + .HasColumnType("nvarchar(25)") + .HasMaxLength(25); + + builder.Property(t => t.ExpMonth) + .IsRequired() + .HasColumnName("ExpMonth") + .HasColumnType("tinyint"); + + builder.Property(t => t.ExpYear) + .IsRequired() + .HasColumnName("ExpYear") + .HasColumnType("smallint"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Sales"; + /// Table Name constant for entity + public const string Name = "CreditCard"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "CreditCardID"; + /// Column Name constant for property + public const string CardType = "CardType"; + /// Column Name constant for property + public const string CardNumber = "CardNumber"; + /// Column Name constant for property + public const string ExpMonth = "ExpMonth"; + /// Column Name constant for property + public const string ExpYear = "ExpYear"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CultureConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CultureConfiguration.cs new file mode 100644 index 0000000..b4f6595 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CultureConfiguration.cs @@ -0,0 +1,69 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class CultureConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("Culture", "Production"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("CultureID") + .HasColumnType("nchar(6)") + .HasMaxLength(6); + + builder.Property(t => t.Name) + .IsRequired() + .HasColumnName("Name") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Production"; + /// Table Name constant for entity + public const string Name = "Culture"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "CultureID"; + /// Column Name constant for property + public const string Name = "Name"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CurrencyConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CurrencyConfiguration.cs new file mode 100644 index 0000000..a21d9d9 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CurrencyConfiguration.cs @@ -0,0 +1,69 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class CurrencyConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("Currency", "Sales"); + + // key + builder.HasKey(t => t.CurrencyCode); + + // properties + builder.Property(t => t.CurrencyCode) + .IsRequired() + .HasColumnName("CurrencyCode") + .HasColumnType("nchar(3)") + .HasMaxLength(3); + + builder.Property(t => t.Name) + .IsRequired() + .HasColumnName("Name") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Sales"; + /// Table Name constant for entity + public const string Name = "Currency"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string CurrencyCode = "CurrencyCode"; + /// Column Name constant for property + public const string Name = "Name"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CurrencyRateConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CurrencyRateConfiguration.cs new file mode 100644 index 0000000..e982355 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CurrencyRateConfiguration.cs @@ -0,0 +1,108 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class CurrencyRateConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("CurrencyRate", "Sales"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("CurrencyRateID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.CurrencyRateDate) + .IsRequired() + .HasColumnName("CurrencyRateDate") + .HasColumnType("datetime"); + + builder.Property(t => t.FromCurrencyCode) + .IsRequired() + .HasColumnName("FromCurrencyCode") + .HasColumnType("nchar(3)") + .HasMaxLength(3); + + builder.Property(t => t.ToCurrencyCode) + .IsRequired() + .HasColumnName("ToCurrencyCode") + .HasColumnType("nchar(3)") + .HasMaxLength(3); + + builder.Property(t => t.AverageRate) + .IsRequired() + .HasColumnName("AverageRate") + .HasColumnType("money"); + + builder.Property(t => t.EndOfDayRate) + .IsRequired() + .HasColumnName("EndOfDayRate") + .HasColumnType("money"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.FromCurrency) + .WithMany(t => t.FromCurrencyRates) + .HasForeignKey(d => d.FromCurrencyCode) + .HasConstraintName("FK_CurrencyRate_Currency_FromCurrencyCode"); + + builder.HasOne(t => t.ToCurrency) + .WithMany(t => t.ToCurrencyRates) + .HasForeignKey(d => d.ToCurrencyCode) + .HasConstraintName("FK_CurrencyRate_Currency_ToCurrencyCode"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Sales"; + /// Table Name constant for entity + public const string Name = "CurrencyRate"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "CurrencyRateID"; + /// Column Name constant for property + public const string CurrencyRateDate = "CurrencyRateDate"; + /// Column Name constant for property + public const string FromCurrencyCode = "FromCurrencyCode"; + /// Column Name constant for property + public const string ToCurrencyCode = "ToCurrencyCode"; + /// Column Name constant for property + public const string AverageRate = "AverageRate"; + /// Column Name constant for property + public const string EndOfDayRate = "EndOfDayRate"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CustomerConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CustomerConfiguration.cs new file mode 100644 index 0000000..02083b2 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CustomerConfiguration.cs @@ -0,0 +1,111 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class CustomerConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("Customer", "Sales"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("CustomerID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.PersonId) + .HasColumnName("PersonID") + .HasColumnType("int"); + + builder.Property(t => t.StoreId) + .HasColumnName("StoreID") + .HasColumnType("int"); + + builder.Property(t => t.TerritoryId) + .HasColumnName("TerritoryID") + .HasColumnType("int"); + + builder.Property(t => t.AccountNumber) + .IsRequired() + .HasColumnName("AccountNumber") + .HasColumnType("varchar(10)") + .HasMaxLength(10) + .ValueGeneratedOnAddOrUpdate(); + + builder.Property(t => t.Rowguid) + .IsRequired() + .HasColumnName("rowguid") + .HasColumnType("uniqueidentifier") + .HasDefaultValueSql("(newid())"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.Person) + .WithMany(t => t.Customers) + .HasForeignKey(d => d.PersonId) + .HasConstraintName("FK_Customer_Person_PersonID"); + + builder.HasOne(t => t.SalesTerritory) + .WithMany(t => t.Customers) + .HasForeignKey(d => d.TerritoryId) + .HasConstraintName("FK_Customer_SalesTerritory_TerritoryID"); + + builder.HasOne(t => t.Store) + .WithMany(t => t.Customers) + .HasForeignKey(d => d.StoreId) + .HasConstraintName("FK_Customer_Store_StoreID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Sales"; + /// Table Name constant for entity + public const string Name = "Customer"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "CustomerID"; + /// Column Name constant for property + public const string PersonId = "PersonID"; + /// Column Name constant for property + public const string StoreId = "StoreID"; + /// Column Name constant for property + public const string TerritoryId = "TerritoryID"; + /// Column Name constant for property + public const string AccountNumber = "AccountNumber"; + /// Column Name constant for property + public const string Rowguid = "rowguid"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/DepartmentConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/DepartmentConfiguration.cs new file mode 100644 index 0000000..cb3715e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/DepartmentConfiguration.cs @@ -0,0 +1,77 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class DepartmentConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("Department", "HumanResources"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("DepartmentID") + .HasColumnType("smallint") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.Name) + .IsRequired() + .HasColumnName("Name") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.GroupName) + .IsRequired() + .HasColumnName("GroupName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "HumanResources"; + /// Table Name constant for entity + public const string Name = "Department"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "DepartmentID"; + /// Column Name constant for property + public const string Name = "Name"; + /// Column Name constant for property + public const string GroupName = "GroupName"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmailAddressConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmailAddressConfiguration.cs new file mode 100644 index 0000000..8801e60 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmailAddressConfiguration.cs @@ -0,0 +1,88 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class EmailAddressConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("EmailAddress", "Person"); + + // key + builder.HasKey(t => new { t.BusinessEntityId, t.Id }); + + // properties + builder.Property(t => t.BusinessEntityId) + .IsRequired() + .HasColumnName("BusinessEntityID") + .HasColumnType("int"); + + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("EmailAddressID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.EmailAddressMember) + .HasColumnName("EmailAddress") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.Rowguid) + .IsRequired() + .HasColumnName("rowguid") + .HasColumnType("uniqueidentifier") + .HasDefaultValueSql("(newid())"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.Person) + .WithMany(t => t.EmailAddresses) + .HasForeignKey(d => d.BusinessEntityId) + .HasConstraintName("FK_EmailAddress_Person_BusinessEntityID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Person"; + /// Table Name constant for entity + public const string Name = "EmailAddress"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string BusinessEntityId = "BusinessEntityID"; + /// Column Name constant for property + public const string Id = "EmailAddressID"; + /// Column Name constant for property + public const string EmailAddressMember = "EmailAddress"; + /// Column Name constant for property + public const string Rowguid = "rowguid"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmployeeConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmployeeConfiguration.cs new file mode 100644 index 0000000..9d17d0f --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmployeeConfiguration.cs @@ -0,0 +1,166 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class EmployeeConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("Employee", "HumanResources"); + + // key + builder.HasKey(t => t.BusinessEntityId); + + // properties + builder.Property(t => t.BusinessEntityId) + .IsRequired() + .HasColumnName("BusinessEntityID") + .HasColumnType("int"); + + builder.Property(t => t.NationalIdNumber) + .IsRequired() + .HasColumnName("NationalIDNumber") + .HasColumnType("nvarchar(15)") + .HasMaxLength(15); + + builder.Property(t => t.LoginId) + .IsRequired() + .HasColumnName("LoginID") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + builder.Property(t => t.OrganizationLevel) + .HasColumnName("OrganizationLevel") + .HasColumnType("smallint") + .ValueGeneratedOnAddOrUpdate(); + + builder.Property(t => t.JobTitle) + .IsRequired() + .HasColumnName("JobTitle") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.BirthDate) + .IsRequired() + .HasColumnName("BirthDate") + .HasColumnType("date"); + + builder.Property(t => t.MaritalStatus) + .IsRequired() + .HasColumnName("MaritalStatus") + .HasColumnType("nchar(1)") + .HasMaxLength(1); + + builder.Property(t => t.Gender) + .IsRequired() + .HasColumnName("Gender") + .HasColumnType("nchar(1)") + .HasMaxLength(1); + + builder.Property(t => t.HireDate) + .IsRequired() + .HasColumnName("HireDate") + .HasColumnType("date"); + + builder.Property(t => t.SalariedFlag) + .IsRequired() + .HasColumnName("SalariedFlag") + .HasColumnType("bit") + .HasDefaultValue(true); + + builder.Property(t => t.VacationHours) + .IsRequired() + .HasColumnName("VacationHours") + .HasColumnType("smallint") + .HasDefaultValue(0); + + builder.Property(t => t.SickLeaveHours) + .IsRequired() + .HasColumnName("SickLeaveHours") + .HasColumnType("smallint") + .HasDefaultValue(0); + + builder.Property(t => t.CurrentFlag) + .IsRequired() + .HasColumnName("CurrentFlag") + .HasColumnType("bit") + .HasDefaultValue(true); + + builder.Property(t => t.Rowguid) + .IsRequired() + .HasColumnName("rowguid") + .HasColumnType("uniqueidentifier") + .HasDefaultValueSql("(newid())"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.Person) + .WithOne(t => t.Employee) + .HasForeignKey(d => d.BusinessEntityId) + .HasConstraintName("FK_Employee_Person_BusinessEntityID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "HumanResources"; + /// Table Name constant for entity + public const string Name = "Employee"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string BusinessEntityId = "BusinessEntityID"; + /// Column Name constant for property + public const string NationalIdNumber = "NationalIDNumber"; + /// Column Name constant for property + public const string LoginId = "LoginID"; + /// Column Name constant for property + public const string OrganizationLevel = "OrganizationLevel"; + /// Column Name constant for property + public const string JobTitle = "JobTitle"; + /// Column Name constant for property + public const string BirthDate = "BirthDate"; + /// Column Name constant for property + public const string MaritalStatus = "MaritalStatus"; + /// Column Name constant for property + public const string Gender = "Gender"; + /// Column Name constant for property + public const string HireDate = "HireDate"; + /// Column Name constant for property + public const string SalariedFlag = "SalariedFlag"; + /// Column Name constant for property + public const string VacationHours = "VacationHours"; + /// Column Name constant for property + public const string SickLeaveHours = "SickLeaveHours"; + /// Column Name constant for property + public const string CurrentFlag = "CurrentFlag"; + /// Column Name constant for property + public const string Rowguid = "rowguid"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmployeeDepartmentHistoryConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmployeeDepartmentHistoryConfiguration.cs new file mode 100644 index 0000000..78a60bb --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmployeeDepartmentHistoryConfiguration.cs @@ -0,0 +1,102 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class EmployeeDepartmentHistoryConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("EmployeeDepartmentHistory", "HumanResources"); + + // key + builder.HasKey(t => new { t.BusinessEntityId, t.DepartmentId, t.ShiftId, t.StartDate }); + + // properties + builder.Property(t => t.BusinessEntityId) + .IsRequired() + .HasColumnName("BusinessEntityID") + .HasColumnType("int"); + + builder.Property(t => t.DepartmentId) + .IsRequired() + .HasColumnName("DepartmentID") + .HasColumnType("smallint"); + + builder.Property(t => t.ShiftId) + .IsRequired() + .HasColumnName("ShiftID") + .HasColumnType("tinyint"); + + builder.Property(t => t.StartDate) + .IsRequired() + .HasColumnName("StartDate") + .HasColumnType("date"); + + builder.Property(t => t.EndDate) + .HasColumnName("EndDate") + .HasColumnType("date"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.Department) + .WithMany(t => t.EmployeeDepartmentHistories) + .HasForeignKey(d => d.DepartmentId) + .HasConstraintName("FK_EmployeeDepartmentHistory_Department_DepartmentID"); + + builder.HasOne(t => t.Employee) + .WithMany(t => t.EmployeeDepartmentHistories) + .HasForeignKey(d => d.BusinessEntityId) + .HasConstraintName("FK_EmployeeDepartmentHistory_Employee_BusinessEntityID"); + + builder.HasOne(t => t.Shift) + .WithMany(t => t.EmployeeDepartmentHistories) + .HasForeignKey(d => d.ShiftId) + .HasConstraintName("FK_EmployeeDepartmentHistory_Shift_ShiftID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "HumanResources"; + /// Table Name constant for entity + public const string Name = "EmployeeDepartmentHistory"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string BusinessEntityId = "BusinessEntityID"; + /// Column Name constant for property + public const string DepartmentId = "DepartmentID"; + /// Column Name constant for property + public const string ShiftId = "ShiftID"; + /// Column Name constant for property + public const string StartDate = "StartDate"; + /// Column Name constant for property + public const string EndDate = "EndDate"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmployeePayHistoryConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmployeePayHistoryConfiguration.cs new file mode 100644 index 0000000..8e37cf7 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmployeePayHistoryConfiguration.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class EmployeePayHistoryConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("EmployeePayHistory", "HumanResources"); + + // key + builder.HasKey(t => new { t.BusinessEntityId, t.RateChangeDate }); + + // properties + builder.Property(t => t.BusinessEntityId) + .IsRequired() + .HasColumnName("BusinessEntityID") + .HasColumnType("int"); + + builder.Property(t => t.RateChangeDate) + .IsRequired() + .HasColumnName("RateChangeDate") + .HasColumnType("datetime"); + + builder.Property(t => t.Rate) + .IsRequired() + .HasColumnName("Rate") + .HasColumnType("money"); + + builder.Property(t => t.PayFrequency) + .IsRequired() + .HasColumnName("PayFrequency") + .HasColumnType("tinyint"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.Employee) + .WithMany(t => t.EmployeePayHistories) + .HasForeignKey(d => d.BusinessEntityId) + .HasConstraintName("FK_EmployeePayHistory_Employee_BusinessEntityID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "HumanResources"; + /// Table Name constant for entity + public const string Name = "EmployeePayHistory"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string BusinessEntityId = "BusinessEntityID"; + /// Column Name constant for property + public const string RateChangeDate = "RateChangeDate"; + /// Column Name constant for property + public const string Rate = "Rate"; + /// Column Name constant for property + public const string PayFrequency = "PayFrequency"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/IllustrationConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/IllustrationConfiguration.cs new file mode 100644 index 0000000..c26aace --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/IllustrationConfiguration.cs @@ -0,0 +1,67 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class IllustrationConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("Illustration", "Production"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("IllustrationID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.Diagram) + .HasColumnName("Diagram") + .HasColumnType("xml"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Production"; + /// Table Name constant for entity + public const string Name = "Illustration"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "IllustrationID"; + /// Column Name constant for property + public const string Diagram = "Diagram"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/JobCandidateConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/JobCandidateConfiguration.cs new file mode 100644 index 0000000..84e1f57 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/JobCandidateConfiguration.cs @@ -0,0 +1,78 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class JobCandidateConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("JobCandidate", "HumanResources"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("JobCandidateID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.BusinessEntityId) + .HasColumnName("BusinessEntityID") + .HasColumnType("int"); + + builder.Property(t => t.Resume) + .HasColumnName("Resume") + .HasColumnType("xml"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.Employee) + .WithMany(t => t.JobCandidates) + .HasForeignKey(d => d.BusinessEntityId) + .HasConstraintName("FK_JobCandidate_Employee_BusinessEntityID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "HumanResources"; + /// Table Name constant for entity + public const string Name = "JobCandidate"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "JobCandidateID"; + /// Column Name constant for property + public const string BusinessEntityId = "BusinessEntityID"; + /// Column Name constant for property + public const string Resume = "Resume"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/LocationConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/LocationConfiguration.cs new file mode 100644 index 0000000..21ffa52 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/LocationConfiguration.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class LocationConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("Location", "Production"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("LocationID") + .HasColumnType("smallint") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.Name) + .IsRequired() + .HasColumnName("Name") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.CostRate) + .IsRequired() + .HasColumnName("CostRate") + .HasColumnType("smallmoney") + .HasDefaultValueSql("((0.00))"); + + builder.Property(t => t.Availability) + .IsRequired() + .HasColumnName("Availability") + .HasColumnType("decimal(8,2)") + .HasDefaultValueSql("((0.00))"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Production"; + /// Table Name constant for entity + public const string Name = "Location"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "LocationID"; + /// Column Name constant for property + public const string Name = "Name"; + /// Column Name constant for property + public const string CostRate = "CostRate"; + /// Column Name constant for property + public const string Availability = "Availability"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PasswordConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PasswordConfiguration.cs new file mode 100644 index 0000000..b9de2cb --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PasswordConfiguration.cs @@ -0,0 +1,89 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class PasswordConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("Password", "Person"); + + // key + builder.HasKey(t => t.BusinessEntityId); + + // properties + builder.Property(t => t.BusinessEntityId) + .IsRequired() + .HasColumnName("BusinessEntityID") + .HasColumnType("int"); + + builder.Property(t => t.PasswordHash) + .IsRequired() + .HasColumnName("PasswordHash") + .HasColumnType("varchar(128)") + .HasMaxLength(128); + + builder.Property(t => t.PasswordSalt) + .IsRequired() + .HasColumnName("PasswordSalt") + .HasColumnType("varchar(10)") + .HasMaxLength(10); + + builder.Property(t => t.Rowguid) + .IsRequired() + .HasColumnName("rowguid") + .HasColumnType("uniqueidentifier") + .HasDefaultValueSql("(newid())"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.Person) + .WithOne(t => t.Password) + .HasForeignKey(d => d.BusinessEntityId) + .HasConstraintName("FK_Password_Person_BusinessEntityID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Person"; + /// Table Name constant for entity + public const string Name = "Password"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string BusinessEntityId = "BusinessEntityID"; + /// Column Name constant for property + public const string PasswordHash = "PasswordHash"; + /// Column Name constant for property + public const string PasswordSalt = "PasswordSalt"; + /// Column Name constant for property + public const string Rowguid = "rowguid"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PersonConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PersonConfiguration.cs new file mode 100644 index 0000000..12fe719 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PersonConfiguration.cs @@ -0,0 +1,146 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class PersonConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("Person", "Person"); + + // key + builder.HasKey(t => t.BusinessEntityId); + + // properties + builder.Property(t => t.BusinessEntityId) + .IsRequired() + .HasColumnName("BusinessEntityID") + .HasColumnType("int"); + + builder.Property(t => t.PersonType) + .IsRequired() + .HasColumnName("PersonType") + .HasColumnType("nchar(2)") + .HasMaxLength(2); + + builder.Property(t => t.NameStyle) + .IsRequired() + .HasColumnName("NameStyle") + .HasColumnType("bit") + .HasDefaultValue(false); + + builder.Property(t => t.Title) + .HasColumnName("Title") + .HasColumnType("nvarchar(8)") + .HasMaxLength(8); + + builder.Property(t => t.FirstName) + .IsRequired() + .HasColumnName("FirstName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.MiddleName) + .HasColumnName("MiddleName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.LastName) + .IsRequired() + .HasColumnName("LastName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.Suffix) + .HasColumnName("Suffix") + .HasColumnType("nvarchar(10)") + .HasMaxLength(10); + + builder.Property(t => t.EmailPromotion) + .IsRequired() + .HasColumnName("EmailPromotion") + .HasColumnType("int") + .HasDefaultValue(0); + + builder.Property(t => t.AdditionalContactInfo) + .HasColumnName("AdditionalContactInfo") + .HasColumnType("xml"); + + builder.Property(t => t.Demographics) + .HasColumnName("Demographics") + .HasColumnType("xml"); + + builder.Property(t => t.Rowguid) + .IsRequired() + .HasColumnName("rowguid") + .HasColumnType("uniqueidentifier") + .HasDefaultValueSql("(newid())"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.BusinessEntity) + .WithOne(t => t.Person) + .HasForeignKey(d => d.BusinessEntityId) + .HasConstraintName("FK_Person_BusinessEntity_BusinessEntityID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Person"; + /// Table Name constant for entity + public const string Name = "Person"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string BusinessEntityId = "BusinessEntityID"; + /// Column Name constant for property + public const string PersonType = "PersonType"; + /// Column Name constant for property + public const string NameStyle = "NameStyle"; + /// Column Name constant for property + public const string Title = "Title"; + /// Column Name constant for property + public const string FirstName = "FirstName"; + /// Column Name constant for property + public const string MiddleName = "MiddleName"; + /// Column Name constant for property + public const string LastName = "LastName"; + /// Column Name constant for property + public const string Suffix = "Suffix"; + /// Column Name constant for property + public const string EmailPromotion = "EmailPromotion"; + /// Column Name constant for property + public const string AdditionalContactInfo = "AdditionalContactInfo"; + /// Column Name constant for property + public const string Demographics = "Demographics"; + /// Column Name constant for property + public const string Rowguid = "rowguid"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PersonCreditCardConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PersonCreditCardConfiguration.cs new file mode 100644 index 0000000..fa53eea --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PersonCreditCardConfiguration.cs @@ -0,0 +1,77 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class PersonCreditCardConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("PersonCreditCard", "Sales"); + + // key + builder.HasKey(t => new { t.BusinessEntityId, t.CreditCardId }); + + // properties + builder.Property(t => t.BusinessEntityId) + .IsRequired() + .HasColumnName("BusinessEntityID") + .HasColumnType("int"); + + builder.Property(t => t.CreditCardId) + .IsRequired() + .HasColumnName("CreditCardID") + .HasColumnType("int"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.CreditCard) + .WithMany(t => t.PersonCreditCards) + .HasForeignKey(d => d.CreditCardId) + .HasConstraintName("FK_PersonCreditCard_CreditCard_CreditCardID"); + + builder.HasOne(t => t.Person) + .WithMany(t => t.PersonCreditCards) + .HasForeignKey(d => d.BusinessEntityId) + .HasConstraintName("FK_PersonCreditCard_Person_BusinessEntityID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Sales"; + /// Table Name constant for entity + public const string Name = "PersonCreditCard"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string BusinessEntityId = "BusinessEntityID"; + /// Column Name constant for property + public const string CreditCardId = "CreditCardID"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PersonPhoneConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PersonPhoneConfiguration.cs new file mode 100644 index 0000000..a851e1e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PersonPhoneConfiguration.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class PersonPhoneConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("PersonPhone", "Person"); + + // key + builder.HasKey(t => new { t.BusinessEntityId, t.PhoneNumber, t.PhoneNumberTypeId }); + + // properties + builder.Property(t => t.BusinessEntityId) + .IsRequired() + .HasColumnName("BusinessEntityID") + .HasColumnType("int"); + + builder.Property(t => t.PhoneNumber) + .IsRequired() + .HasColumnName("PhoneNumber") + .HasColumnType("nvarchar(25)") + .HasMaxLength(25); + + builder.Property(t => t.PhoneNumberTypeId) + .IsRequired() + .HasColumnName("PhoneNumberTypeID") + .HasColumnType("int"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.Person) + .WithMany(t => t.PersonPhones) + .HasForeignKey(d => d.BusinessEntityId) + .HasConstraintName("FK_PersonPhone_Person_BusinessEntityID"); + + builder.HasOne(t => t.PhoneNumberType) + .WithMany(t => t.PersonPhones) + .HasForeignKey(d => d.PhoneNumberTypeId) + .HasConstraintName("FK_PersonPhone_PhoneNumberType_PhoneNumberTypeID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Person"; + /// Table Name constant for entity + public const string Name = "PersonPhone"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string BusinessEntityId = "BusinessEntityID"; + /// Column Name constant for property + public const string PhoneNumber = "PhoneNumber"; + /// Column Name constant for property + public const string PhoneNumberTypeId = "PhoneNumberTypeID"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PhoneNumberTypeConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PhoneNumberTypeConfiguration.cs new file mode 100644 index 0000000..f62e0d7 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PhoneNumberTypeConfiguration.cs @@ -0,0 +1,69 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class PhoneNumberTypeConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("PhoneNumberType", "Person"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("PhoneNumberTypeID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.Name) + .IsRequired() + .HasColumnName("Name") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Person"; + /// Table Name constant for entity + public const string Name = "PhoneNumberType"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "PhoneNumberTypeID"; + /// Column Name constant for property + public const string Name = "Name"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductCategoryConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductCategoryConfiguration.cs new file mode 100644 index 0000000..0eded84 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductCategoryConfiguration.cs @@ -0,0 +1,77 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class ProductCategoryConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("ProductCategory", "Production"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("ProductCategoryID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.Name) + .IsRequired() + .HasColumnName("Name") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.Rowguid) + .IsRequired() + .HasColumnName("rowguid") + .HasColumnType("uniqueidentifier") + .HasDefaultValueSql("(newid())"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Production"; + /// Table Name constant for entity + public const string Name = "ProductCategory"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "ProductCategoryID"; + /// Column Name constant for property + public const string Name = "Name"; + /// Column Name constant for property + public const string Rowguid = "rowguid"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductConfiguration.cs new file mode 100644 index 0000000..971505c --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductConfiguration.cs @@ -0,0 +1,242 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class ProductConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("Product", "Production"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("ProductID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.Name) + .IsRequired() + .HasColumnName("Name") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.ProductNumber) + .IsRequired() + .HasColumnName("ProductNumber") + .HasColumnType("nvarchar(25)") + .HasMaxLength(25); + + builder.Property(t => t.MakeFlag) + .IsRequired() + .HasColumnName("MakeFlag") + .HasColumnType("bit") + .HasDefaultValue(true); + + builder.Property(t => t.FinishedGoodsFlag) + .IsRequired() + .HasColumnName("FinishedGoodsFlag") + .HasColumnType("bit") + .HasDefaultValue(true); + + builder.Property(t => t.Color) + .HasColumnName("Color") + .HasColumnType("nvarchar(15)") + .HasMaxLength(15); + + builder.Property(t => t.SafetyStockLevel) + .IsRequired() + .HasColumnName("SafetyStockLevel") + .HasColumnType("smallint"); + + builder.Property(t => t.ReorderPoint) + .IsRequired() + .HasColumnName("ReorderPoint") + .HasColumnType("smallint"); + + builder.Property(t => t.StandardCost) + .IsRequired() + .HasColumnName("StandardCost") + .HasColumnType("money"); + + builder.Property(t => t.ListPrice) + .IsRequired() + .HasColumnName("ListPrice") + .HasColumnType("money"); + + builder.Property(t => t.Size) + .HasColumnName("Size") + .HasColumnType("nvarchar(5)") + .HasMaxLength(5); + + builder.Property(t => t.SizeUnitMeasureCode) + .HasColumnName("SizeUnitMeasureCode") + .HasColumnType("nchar(3)") + .HasMaxLength(3); + + builder.Property(t => t.WeightUnitMeasureCode) + .HasColumnName("WeightUnitMeasureCode") + .HasColumnType("nchar(3)") + .HasMaxLength(3); + + builder.Property(t => t.Weight) + .HasColumnName("Weight") + .HasColumnType("decimal(8,2)"); + + builder.Property(t => t.DaysToManufacture) + .IsRequired() + .HasColumnName("DaysToManufacture") + .HasColumnType("int"); + + builder.Property(t => t.ProductLine) + .HasColumnName("ProductLine") + .HasColumnType("nchar(2)") + .HasMaxLength(2); + + builder.Property(t => t.Class) + .HasColumnName("Class") + .HasColumnType("nchar(2)") + .HasMaxLength(2); + + builder.Property(t => t.Style) + .HasColumnName("Style") + .HasColumnType("nchar(2)") + .HasMaxLength(2); + + builder.Property(t => t.ProductSubcategoryId) + .HasColumnName("ProductSubcategoryID") + .HasColumnType("int"); + + builder.Property(t => t.ProductModelId) + .HasColumnName("ProductModelID") + .HasColumnType("int"); + + builder.Property(t => t.SellStartDate) + .IsRequired() + .HasColumnName("SellStartDate") + .HasColumnType("datetime"); + + builder.Property(t => t.SellEndDate) + .HasColumnName("SellEndDate") + .HasColumnType("datetime"); + + builder.Property(t => t.DiscontinuedDate) + .HasColumnName("DiscontinuedDate") + .HasColumnType("datetime"); + + builder.Property(t => t.Rowguid) + .IsRequired() + .HasColumnName("rowguid") + .HasColumnType("uniqueidentifier") + .HasDefaultValueSql("(newid())"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.ProductModel) + .WithMany(t => t.Products) + .HasForeignKey(d => d.ProductModelId) + .HasConstraintName("FK_Product_ProductModel_ProductModelID"); + + builder.HasOne(t => t.ProductSubcategory) + .WithMany(t => t.Products) + .HasForeignKey(d => d.ProductSubcategoryId) + .HasConstraintName("FK_Product_ProductSubcategory_ProductSubcategoryID"); + + builder.HasOne(t => t.SizeUnitMeasure) + .WithMany(t => t.SizeProducts) + .HasForeignKey(d => d.SizeUnitMeasureCode) + .HasConstraintName("FK_Product_UnitMeasure_SizeUnitMeasureCode"); + + builder.HasOne(t => t.WeightUnitMeasure) + .WithMany(t => t.WeightProducts) + .HasForeignKey(d => d.WeightUnitMeasureCode) + .HasConstraintName("FK_Product_UnitMeasure_WeightUnitMeasureCode"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Production"; + /// Table Name constant for entity + public const string Name = "Product"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "ProductID"; + /// Column Name constant for property + public const string Name = "Name"; + /// Column Name constant for property + public const string ProductNumber = "ProductNumber"; + /// Column Name constant for property + public const string MakeFlag = "MakeFlag"; + /// Column Name constant for property + public const string FinishedGoodsFlag = "FinishedGoodsFlag"; + /// Column Name constant for property + public const string Color = "Color"; + /// Column Name constant for property + public const string SafetyStockLevel = "SafetyStockLevel"; + /// Column Name constant for property + public const string ReorderPoint = "ReorderPoint"; + /// Column Name constant for property + public const string StandardCost = "StandardCost"; + /// Column Name constant for property + public const string ListPrice = "ListPrice"; + /// Column Name constant for property + public const string Size = "Size"; + /// Column Name constant for property + public const string SizeUnitMeasureCode = "SizeUnitMeasureCode"; + /// Column Name constant for property + public const string WeightUnitMeasureCode = "WeightUnitMeasureCode"; + /// Column Name constant for property + public const string Weight = "Weight"; + /// Column Name constant for property + public const string DaysToManufacture = "DaysToManufacture"; + /// Column Name constant for property + public const string ProductLine = "ProductLine"; + /// Column Name constant for property + public const string Class = "Class"; + /// Column Name constant for property + public const string Style = "Style"; + /// Column Name constant for property + public const string ProductSubcategoryId = "ProductSubcategoryID"; + /// Column Name constant for property + public const string ProductModelId = "ProductModelID"; + /// Column Name constant for property + public const string SellStartDate = "SellStartDate"; + /// Column Name constant for property + public const string SellEndDate = "SellEndDate"; + /// Column Name constant for property + public const string DiscontinuedDate = "DiscontinuedDate"; + /// Column Name constant for property + public const string Rowguid = "rowguid"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductCostHistoryConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductCostHistoryConfiguration.cs new file mode 100644 index 0000000..ff39e25 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductCostHistoryConfiguration.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class ProductCostHistoryConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("ProductCostHistory", "Production"); + + // key + builder.HasKey(t => new { t.ProductId, t.StartDate }); + + // properties + builder.Property(t => t.ProductId) + .IsRequired() + .HasColumnName("ProductID") + .HasColumnType("int"); + + builder.Property(t => t.StartDate) + .IsRequired() + .HasColumnName("StartDate") + .HasColumnType("datetime"); + + builder.Property(t => t.EndDate) + .HasColumnName("EndDate") + .HasColumnType("datetime"); + + builder.Property(t => t.StandardCost) + .IsRequired() + .HasColumnName("StandardCost") + .HasColumnType("money"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.Product) + .WithMany(t => t.ProductCostHistories) + .HasForeignKey(d => d.ProductId) + .HasConstraintName("FK_ProductCostHistory_Product_ProductID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Production"; + /// Table Name constant for entity + public const string Name = "ProductCostHistory"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string ProductId = "ProductID"; + /// Column Name constant for property + public const string StartDate = "StartDate"; + /// Column Name constant for property + public const string EndDate = "EndDate"; + /// Column Name constant for property + public const string StandardCost = "StandardCost"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductDescriptionConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductDescriptionConfiguration.cs new file mode 100644 index 0000000..b7bf438 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductDescriptionConfiguration.cs @@ -0,0 +1,77 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class ProductDescriptionConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("ProductDescription", "Production"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("ProductDescriptionID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.Description) + .IsRequired() + .HasColumnName("Description") + .HasColumnType("nvarchar(400)") + .HasMaxLength(400); + + builder.Property(t => t.Rowguid) + .IsRequired() + .HasColumnName("rowguid") + .HasColumnType("uniqueidentifier") + .HasDefaultValueSql("(newid())"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Production"; + /// Table Name constant for entity + public const string Name = "ProductDescription"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "ProductDescriptionID"; + /// Column Name constant for property + public const string Description = "Description"; + /// Column Name constant for property + public const string Rowguid = "rowguid"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductDocumentConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductDocumentConfiguration.cs new file mode 100644 index 0000000..acc986e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductDocumentConfiguration.cs @@ -0,0 +1,65 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class ProductDocumentConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("ProductDocument", "Production"); + + // key + builder.HasKey(t => t.ProductId); + + // properties + builder.Property(t => t.ProductId) + .IsRequired() + .HasColumnName("ProductID") + .HasColumnType("int"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.Product) + .WithMany(t => t.ProductDocuments) + .HasForeignKey(d => d.ProductId) + .HasConstraintName("FK_ProductDocument_Product_ProductID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Production"; + /// Table Name constant for entity + public const string Name = "ProductDocument"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string ProductId = "ProductID"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductInventoryConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductInventoryConfiguration.cs new file mode 100644 index 0000000..8f678a8 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductInventoryConfiguration.cs @@ -0,0 +1,108 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class ProductInventoryConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("ProductInventory", "Production"); + + // key + builder.HasKey(t => new { t.ProductId, t.LocationId }); + + // properties + builder.Property(t => t.ProductId) + .IsRequired() + .HasColumnName("ProductID") + .HasColumnType("int"); + + builder.Property(t => t.LocationId) + .IsRequired() + .HasColumnName("LocationID") + .HasColumnType("smallint"); + + builder.Property(t => t.Shelf) + .IsRequired() + .HasColumnName("Shelf") + .HasColumnType("nvarchar(10)") + .HasMaxLength(10); + + builder.Property(t => t.Bin) + .IsRequired() + .HasColumnName("Bin") + .HasColumnType("tinyint"); + + builder.Property(t => t.Quantity) + .IsRequired() + .HasColumnName("Quantity") + .HasColumnType("smallint") + .HasDefaultValue(0); + + builder.Property(t => t.Rowguid) + .IsRequired() + .HasColumnName("rowguid") + .HasColumnType("uniqueidentifier") + .HasDefaultValueSql("(newid())"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.Location) + .WithMany(t => t.ProductInventories) + .HasForeignKey(d => d.LocationId) + .HasConstraintName("FK_ProductInventory_Location_LocationID"); + + builder.HasOne(t => t.Product) + .WithMany(t => t.ProductInventories) + .HasForeignKey(d => d.ProductId) + .HasConstraintName("FK_ProductInventory_Product_ProductID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Production"; + /// Table Name constant for entity + public const string Name = "ProductInventory"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string ProductId = "ProductID"; + /// Column Name constant for property + public const string LocationId = "LocationID"; + /// Column Name constant for property + public const string Shelf = "Shelf"; + /// Column Name constant for property + public const string Bin = "Bin"; + /// Column Name constant for property + public const string Quantity = "Quantity"; + /// Column Name constant for property + public const string Rowguid = "rowguid"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductListPriceHistoryConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductListPriceHistoryConfiguration.cs new file mode 100644 index 0000000..b73db31 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductListPriceHistoryConfiguration.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class ProductListPriceHistoryConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("ProductListPriceHistory", "Production"); + + // key + builder.HasKey(t => new { t.ProductId, t.StartDate }); + + // properties + builder.Property(t => t.ProductId) + .IsRequired() + .HasColumnName("ProductID") + .HasColumnType("int"); + + builder.Property(t => t.StartDate) + .IsRequired() + .HasColumnName("StartDate") + .HasColumnType("datetime"); + + builder.Property(t => t.EndDate) + .HasColumnName("EndDate") + .HasColumnType("datetime"); + + builder.Property(t => t.ListPrice) + .IsRequired() + .HasColumnName("ListPrice") + .HasColumnType("money"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.Product) + .WithMany(t => t.ProductListPriceHistories) + .HasForeignKey(d => d.ProductId) + .HasConstraintName("FK_ProductListPriceHistory_Product_ProductID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Production"; + /// Table Name constant for entity + public const string Name = "ProductListPriceHistory"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string ProductId = "ProductID"; + /// Column Name constant for property + public const string StartDate = "StartDate"; + /// Column Name constant for property + public const string EndDate = "EndDate"; + /// Column Name constant for property + public const string ListPrice = "ListPrice"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductModelConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductModelConfiguration.cs new file mode 100644 index 0000000..e88e3a6 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductModelConfiguration.cs @@ -0,0 +1,89 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class ProductModelConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("ProductModel", "Production"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("ProductModelID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.Name) + .IsRequired() + .HasColumnName("Name") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.CatalogDescription) + .HasColumnName("CatalogDescription") + .HasColumnType("xml"); + + builder.Property(t => t.Instructions) + .HasColumnName("Instructions") + .HasColumnType("xml"); + + builder.Property(t => t.Rowguid) + .IsRequired() + .HasColumnName("rowguid") + .HasColumnType("uniqueidentifier") + .HasDefaultValueSql("(newid())"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Production"; + /// Table Name constant for entity + public const string Name = "ProductModel"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "ProductModelID"; + /// Column Name constant for property + public const string Name = "Name"; + /// Column Name constant for property + public const string CatalogDescription = "CatalogDescription"; + /// Column Name constant for property + public const string Instructions = "Instructions"; + /// Column Name constant for property + public const string Rowguid = "rowguid"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductModelIllustrationConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductModelIllustrationConfiguration.cs new file mode 100644 index 0000000..eec488f --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductModelIllustrationConfiguration.cs @@ -0,0 +1,77 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class ProductModelIllustrationConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("ProductModelIllustration", "Production"); + + // key + builder.HasKey(t => new { t.ProductModelId, t.IllustrationId }); + + // properties + builder.Property(t => t.ProductModelId) + .IsRequired() + .HasColumnName("ProductModelID") + .HasColumnType("int"); + + builder.Property(t => t.IllustrationId) + .IsRequired() + .HasColumnName("IllustrationID") + .HasColumnType("int"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.Illustration) + .WithMany(t => t.ProductModelIllustrations) + .HasForeignKey(d => d.IllustrationId) + .HasConstraintName("FK_ProductModelIllustration_Illustration_IllustrationID"); + + builder.HasOne(t => t.ProductModel) + .WithMany(t => t.ProductModelIllustrations) + .HasForeignKey(d => d.ProductModelId) + .HasConstraintName("FK_ProductModelIllustration_ProductModel_ProductModelID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Production"; + /// Table Name constant for entity + public const string Name = "ProductModelIllustration"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string ProductModelId = "ProductModelID"; + /// Column Name constant for property + public const string IllustrationId = "IllustrationID"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductModelProductDescriptionCultureConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductModelProductDescriptionCultureConfiguration.cs new file mode 100644 index 0000000..a75525f --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductModelProductDescriptionCultureConfiguration.cs @@ -0,0 +1,90 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class ProductModelProductDescriptionCultureConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("ProductModelProductDescriptionCulture", "Production"); + + // key + builder.HasKey(t => new { t.ProductModelId, t.ProductDescriptionId, t.CultureId }); + + // properties + builder.Property(t => t.ProductModelId) + .IsRequired() + .HasColumnName("ProductModelID") + .HasColumnType("int"); + + builder.Property(t => t.ProductDescriptionId) + .IsRequired() + .HasColumnName("ProductDescriptionID") + .HasColumnType("int"); + + builder.Property(t => t.CultureId) + .IsRequired() + .HasColumnName("CultureID") + .HasColumnType("nchar(6)") + .HasMaxLength(6); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.Culture) + .WithMany(t => t.ProductModelProductDescriptionCultures) + .HasForeignKey(d => d.CultureId) + .HasConstraintName("FK_ProductModelProductDescriptionCulture_Culture_CultureID"); + + builder.HasOne(t => t.ProductDescription) + .WithMany(t => t.ProductModelProductDescriptionCultures) + .HasForeignKey(d => d.ProductDescriptionId) + .HasConstraintName("FK_ProductModelProductDescriptionCulture_ProductDescription_ProductDescriptionID"); + + builder.HasOne(t => t.ProductModel) + .WithMany(t => t.ProductModelProductDescriptionCultures) + .HasForeignKey(d => d.ProductModelId) + .HasConstraintName("FK_ProductModelProductDescriptionCulture_ProductModel_ProductModelID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Production"; + /// Table Name constant for entity + public const string Name = "ProductModelProductDescriptionCulture"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string ProductModelId = "ProductModelID"; + /// Column Name constant for property + public const string ProductDescriptionId = "ProductDescriptionID"; + /// Column Name constant for property + public const string CultureId = "CultureID"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductPhotoConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductPhotoConfiguration.cs new file mode 100644 index 0000000..2a27c62 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductPhotoConfiguration.cs @@ -0,0 +1,87 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class ProductPhotoConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("ProductPhoto", "Production"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("ProductPhotoID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.ThumbNailPhoto) + .HasColumnName("ThumbNailPhoto") + .HasColumnType("varbinary(max)"); + + builder.Property(t => t.ThumbnailPhotoFileName) + .HasColumnName("ThumbnailPhotoFileName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.LargePhoto) + .HasColumnName("LargePhoto") + .HasColumnType("varbinary(max)"); + + builder.Property(t => t.LargePhotoFileName) + .HasColumnName("LargePhotoFileName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Production"; + /// Table Name constant for entity + public const string Name = "ProductPhoto"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "ProductPhotoID"; + /// Column Name constant for property + public const string ThumbNailPhoto = "ThumbNailPhoto"; + /// Column Name constant for property + public const string ThumbnailPhotoFileName = "ThumbnailPhotoFileName"; + /// Column Name constant for property + public const string LargePhoto = "LargePhoto"; + /// Column Name constant for property + public const string LargePhotoFileName = "LargePhotoFileName"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductProductPhotoConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductProductPhotoConfiguration.cs new file mode 100644 index 0000000..8a528c3 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductProductPhotoConfiguration.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class ProductProductPhotoConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("ProductProductPhoto", "Production"); + + // key + builder.HasKey(t => new { t.ProductId, t.ProductPhotoId }); + + // properties + builder.Property(t => t.ProductId) + .IsRequired() + .HasColumnName("ProductID") + .HasColumnType("int"); + + builder.Property(t => t.ProductPhotoId) + .IsRequired() + .HasColumnName("ProductPhotoID") + .HasColumnType("int"); + + builder.Property(t => t.Primary) + .IsRequired() + .HasColumnName("Primary") + .HasColumnType("bit") + .HasDefaultValue(false); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.Product) + .WithMany(t => t.ProductProductPhotos) + .HasForeignKey(d => d.ProductId) + .HasConstraintName("FK_ProductProductPhoto_Product_ProductID"); + + builder.HasOne(t => t.ProductPhoto) + .WithMany(t => t.ProductProductPhotos) + .HasForeignKey(d => d.ProductPhotoId) + .HasConstraintName("FK_ProductProductPhoto_ProductPhoto_ProductPhotoID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Production"; + /// Table Name constant for entity + public const string Name = "ProductProductPhoto"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string ProductId = "ProductID"; + /// Column Name constant for property + public const string ProductPhotoId = "ProductPhotoID"; + /// Column Name constant for property + public const string Primary = "Primary"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductReviewConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductReviewConfiguration.cs new file mode 100644 index 0000000..87cf85c --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductReviewConfiguration.cs @@ -0,0 +1,111 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class ProductReviewConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("ProductReview", "Production"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("ProductReviewID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.ProductId) + .IsRequired() + .HasColumnName("ProductID") + .HasColumnType("int"); + + builder.Property(t => t.ReviewerName) + .IsRequired() + .HasColumnName("ReviewerName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.ReviewDate) + .IsRequired() + .HasColumnName("ReviewDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + builder.Property(t => t.EmailAddress) + .IsRequired() + .HasColumnName("EmailAddress") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.Rating) + .IsRequired() + .HasColumnName("Rating") + .HasColumnType("int"); + + builder.Property(t => t.Comments) + .HasColumnName("Comments") + .HasColumnType("nvarchar(3850)") + .HasMaxLength(3850); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.Product) + .WithMany(t => t.ProductReviews) + .HasForeignKey(d => d.ProductId) + .HasConstraintName("FK_ProductReview_Product_ProductID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Production"; + /// Table Name constant for entity + public const string Name = "ProductReview"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "ProductReviewID"; + /// Column Name constant for property + public const string ProductId = "ProductID"; + /// Column Name constant for property + public const string ReviewerName = "ReviewerName"; + /// Column Name constant for property + public const string ReviewDate = "ReviewDate"; + /// Column Name constant for property + public const string EmailAddress = "EmailAddress"; + /// Column Name constant for property + public const string Rating = "Rating"; + /// Column Name constant for property + public const string Comments = "Comments"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductSubcategoryConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductSubcategoryConfiguration.cs new file mode 100644 index 0000000..ae31032 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductSubcategoryConfiguration.cs @@ -0,0 +1,89 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class ProductSubcategoryConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("ProductSubcategory", "Production"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("ProductSubcategoryID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.ProductCategoryId) + .IsRequired() + .HasColumnName("ProductCategoryID") + .HasColumnType("int"); + + builder.Property(t => t.Name) + .IsRequired() + .HasColumnName("Name") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.Rowguid) + .IsRequired() + .HasColumnName("rowguid") + .HasColumnType("uniqueidentifier") + .HasDefaultValueSql("(newid())"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.ProductCategory) + .WithMany(t => t.ProductSubcategories) + .HasForeignKey(d => d.ProductCategoryId) + .HasConstraintName("FK_ProductSubcategory_ProductCategory_ProductCategoryID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Production"; + /// Table Name constant for entity + public const string Name = "ProductSubcategory"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "ProductSubcategoryID"; + /// Column Name constant for property + public const string ProductCategoryId = "ProductCategoryID"; + /// Column Name constant for property + public const string Name = "Name"; + /// Column Name constant for property + public const string Rowguid = "rowguid"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductVendorConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductVendorConfiguration.cs new file mode 100644 index 0000000..524a9ae --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductVendorConfiguration.cs @@ -0,0 +1,136 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class ProductVendorConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("ProductVendor", "Purchasing"); + + // key + builder.HasKey(t => new { t.ProductId, t.BusinessEntityId }); + + // properties + builder.Property(t => t.ProductId) + .IsRequired() + .HasColumnName("ProductID") + .HasColumnType("int"); + + builder.Property(t => t.BusinessEntityId) + .IsRequired() + .HasColumnName("BusinessEntityID") + .HasColumnType("int"); + + builder.Property(t => t.AverageLeadTime) + .IsRequired() + .HasColumnName("AverageLeadTime") + .HasColumnType("int"); + + builder.Property(t => t.StandardPrice) + .IsRequired() + .HasColumnName("StandardPrice") + .HasColumnType("money"); + + builder.Property(t => t.LastReceiptCost) + .HasColumnName("LastReceiptCost") + .HasColumnType("money"); + + builder.Property(t => t.LastReceiptDate) + .HasColumnName("LastReceiptDate") + .HasColumnType("datetime"); + + builder.Property(t => t.MinOrderQty) + .IsRequired() + .HasColumnName("MinOrderQty") + .HasColumnType("int"); + + builder.Property(t => t.MaxOrderQty) + .IsRequired() + .HasColumnName("MaxOrderQty") + .HasColumnType("int"); + + builder.Property(t => t.OnOrderQty) + .HasColumnName("OnOrderQty") + .HasColumnType("int"); + + builder.Property(t => t.UnitMeasureCode) + .IsRequired() + .HasColumnName("UnitMeasureCode") + .HasColumnType("nchar(3)") + .HasMaxLength(3); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.Product) + .WithMany(t => t.ProductVendors) + .HasForeignKey(d => d.ProductId) + .HasConstraintName("FK_ProductVendor_Product_ProductID"); + + builder.HasOne(t => t.UnitMeasure) + .WithMany(t => t.ProductVendors) + .HasForeignKey(d => d.UnitMeasureCode) + .HasConstraintName("FK_ProductVendor_UnitMeasure_UnitMeasureCode"); + + builder.HasOne(t => t.Vendor) + .WithMany(t => t.ProductVendors) + .HasForeignKey(d => d.BusinessEntityId) + .HasConstraintName("FK_ProductVendor_Vendor_BusinessEntityID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Purchasing"; + /// Table Name constant for entity + public const string Name = "ProductVendor"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string ProductId = "ProductID"; + /// Column Name constant for property + public const string BusinessEntityId = "BusinessEntityID"; + /// Column Name constant for property + public const string AverageLeadTime = "AverageLeadTime"; + /// Column Name constant for property + public const string StandardPrice = "StandardPrice"; + /// Column Name constant for property + public const string LastReceiptCost = "LastReceiptCost"; + /// Column Name constant for property + public const string LastReceiptDate = "LastReceiptDate"; + /// Column Name constant for property + public const string MinOrderQty = "MinOrderQty"; + /// Column Name constant for property + public const string MaxOrderQty = "MaxOrderQty"; + /// Column Name constant for property + public const string OnOrderQty = "OnOrderQty"; + /// Column Name constant for property + public const string UnitMeasureCode = "UnitMeasureCode"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PurchaseOrderDetailConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PurchaseOrderDetailConfiguration.cs new file mode 100644 index 0000000..886bacc --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PurchaseOrderDetailConfiguration.cs @@ -0,0 +1,136 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class PurchaseOrderDetailConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("PurchaseOrderDetail", "Purchasing"); + + // key + builder.HasKey(t => new { t.PurchaseOrderId, t.Id }); + + // properties + builder.Property(t => t.PurchaseOrderId) + .IsRequired() + .HasColumnName("PurchaseOrderID") + .HasColumnType("int"); + + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("PurchaseOrderDetailID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.DueDate) + .IsRequired() + .HasColumnName("DueDate") + .HasColumnType("datetime"); + + builder.Property(t => t.OrderQty) + .IsRequired() + .HasColumnName("OrderQty") + .HasColumnType("smallint"); + + builder.Property(t => t.ProductId) + .IsRequired() + .HasColumnName("ProductID") + .HasColumnType("int"); + + builder.Property(t => t.UnitPrice) + .IsRequired() + .HasColumnName("UnitPrice") + .HasColumnType("money"); + + builder.Property(t => t.LineTotal) + .IsRequired() + .HasColumnName("LineTotal") + .HasColumnType("money") + .ValueGeneratedOnAddOrUpdate(); + + builder.Property(t => t.ReceivedQty) + .IsRequired() + .HasColumnName("ReceivedQty") + .HasColumnType("decimal(8,2)"); + + builder.Property(t => t.RejectedQty) + .IsRequired() + .HasColumnName("RejectedQty") + .HasColumnType("decimal(8,2)"); + + builder.Property(t => t.StockedQty) + .IsRequired() + .HasColumnName("StockedQty") + .HasColumnType("decimal(9,2)") + .ValueGeneratedOnAddOrUpdate(); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.Product) + .WithMany(t => t.PurchaseOrderDetails) + .HasForeignKey(d => d.ProductId) + .HasConstraintName("FK_PurchaseOrderDetail_Product_ProductID"); + + builder.HasOne(t => t.PurchaseOrderHeader) + .WithMany(t => t.PurchaseOrderDetails) + .HasForeignKey(d => d.PurchaseOrderId) + .HasConstraintName("FK_PurchaseOrderDetail_PurchaseOrderHeader_PurchaseOrderID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Purchasing"; + /// Table Name constant for entity + public const string Name = "PurchaseOrderDetail"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string PurchaseOrderId = "PurchaseOrderID"; + /// Column Name constant for property + public const string Id = "PurchaseOrderDetailID"; + /// Column Name constant for property + public const string DueDate = "DueDate"; + /// Column Name constant for property + public const string OrderQty = "OrderQty"; + /// Column Name constant for property + public const string ProductId = "ProductID"; + /// Column Name constant for property + public const string UnitPrice = "UnitPrice"; + /// Column Name constant for property + public const string LineTotal = "LineTotal"; + /// Column Name constant for property + public const string ReceivedQty = "ReceivedQty"; + /// Column Name constant for property + public const string RejectedQty = "RejectedQty"; + /// Column Name constant for property + public const string StockedQty = "StockedQty"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PurchaseOrderHeaderConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PurchaseOrderHeaderConfiguration.cs new file mode 100644 index 0000000..bbddbbd --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PurchaseOrderHeaderConfiguration.cs @@ -0,0 +1,159 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class PurchaseOrderHeaderConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("PurchaseOrderHeader", "Purchasing"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("PurchaseOrderID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.RevisionNumber) + .IsRequired() + .HasColumnName("RevisionNumber") + .HasColumnType("tinyint") + .HasDefaultValue(0); + + builder.Property(t => t.Status) + .IsRequired() + .HasColumnName("Status") + .HasColumnType("tinyint") + .HasDefaultValue(1); + + builder.Property(t => t.EmployeeId) + .IsRequired() + .HasColumnName("EmployeeID") + .HasColumnType("int"); + + builder.Property(t => t.VendorId) + .IsRequired() + .HasColumnName("VendorID") + .HasColumnType("int"); + + builder.Property(t => t.ShipMethodId) + .IsRequired() + .HasColumnName("ShipMethodID") + .HasColumnType("int"); + + builder.Property(t => t.OrderDate) + .IsRequired() + .HasColumnName("OrderDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + builder.Property(t => t.ShipDate) + .HasColumnName("ShipDate") + .HasColumnType("datetime"); + + builder.Property(t => t.SubTotal) + .IsRequired() + .HasColumnName("SubTotal") + .HasColumnType("money") + .HasDefaultValueSql("((0.00))"); + + builder.Property(t => t.TaxAmt) + .IsRequired() + .HasColumnName("TaxAmt") + .HasColumnType("money") + .HasDefaultValueSql("((0.00))"); + + builder.Property(t => t.Freight) + .IsRequired() + .HasColumnName("Freight") + .HasColumnType("money") + .HasDefaultValueSql("((0.00))"); + + builder.Property(t => t.TotalDue) + .IsRequired() + .HasColumnName("TotalDue") + .HasColumnType("money") + .ValueGeneratedOnAddOrUpdate(); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.Employee) + .WithMany(t => t.PurchaseOrderHeaders) + .HasForeignKey(d => d.EmployeeId) + .HasConstraintName("FK_PurchaseOrderHeader_Employee_EmployeeID"); + + builder.HasOne(t => t.ShipMethod) + .WithMany(t => t.PurchaseOrderHeaders) + .HasForeignKey(d => d.ShipMethodId) + .HasConstraintName("FK_PurchaseOrderHeader_ShipMethod_ShipMethodID"); + + builder.HasOne(t => t.Vendor) + .WithMany(t => t.PurchaseOrderHeaders) + .HasForeignKey(d => d.VendorId) + .HasConstraintName("FK_PurchaseOrderHeader_Vendor_VendorID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Purchasing"; + /// Table Name constant for entity + public const string Name = "PurchaseOrderHeader"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "PurchaseOrderID"; + /// Column Name constant for property + public const string RevisionNumber = "RevisionNumber"; + /// Column Name constant for property + public const string Status = "Status"; + /// Column Name constant for property + public const string EmployeeId = "EmployeeID"; + /// Column Name constant for property + public const string VendorId = "VendorID"; + /// Column Name constant for property + public const string ShipMethodId = "ShipMethodID"; + /// Column Name constant for property + public const string OrderDate = "OrderDate"; + /// Column Name constant for property + public const string ShipDate = "ShipDate"; + /// Column Name constant for property + public const string SubTotal = "SubTotal"; + /// Column Name constant for property + public const string TaxAmt = "TaxAmt"; + /// Column Name constant for property + public const string Freight = "Freight"; + /// Column Name constant for property + public const string TotalDue = "TotalDue"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesOrderDetailConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesOrderDetailConfiguration.cs new file mode 100644 index 0000000..bf8f1dc --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesOrderDetailConfiguration.cs @@ -0,0 +1,137 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class SalesOrderDetailConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("SalesOrderDetail", "Sales"); + + // key + builder.HasKey(t => new { t.SalesOrderId, t.Id }); + + // properties + builder.Property(t => t.SalesOrderId) + .IsRequired() + .HasColumnName("SalesOrderID") + .HasColumnType("int"); + + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("SalesOrderDetailID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.CarrierTrackingNumber) + .HasColumnName("CarrierTrackingNumber") + .HasColumnType("nvarchar(25)") + .HasMaxLength(25); + + builder.Property(t => t.OrderQty) + .IsRequired() + .HasColumnName("OrderQty") + .HasColumnType("smallint"); + + builder.Property(t => t.ProductId) + .IsRequired() + .HasColumnName("ProductID") + .HasColumnType("int"); + + builder.Property(t => t.SpecialOfferId) + .IsRequired() + .HasColumnName("SpecialOfferID") + .HasColumnType("int"); + + builder.Property(t => t.UnitPrice) + .IsRequired() + .HasColumnName("UnitPrice") + .HasColumnType("money"); + + builder.Property(t => t.UnitPriceDiscount) + .IsRequired() + .HasColumnName("UnitPriceDiscount") + .HasColumnType("money") + .HasDefaultValueSql("((0.0))"); + + builder.Property(t => t.LineTotal) + .IsRequired() + .HasColumnName("LineTotal") + .HasColumnType("numeric(38,6)") + .ValueGeneratedOnAddOrUpdate(); + + builder.Property(t => t.Rowguid) + .IsRequired() + .HasColumnName("rowguid") + .HasColumnType("uniqueidentifier") + .HasDefaultValueSql("(newid())"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.SalesOrderHeader) + .WithMany(t => t.SalesOrderDetails) + .HasForeignKey(d => d.SalesOrderId) + .HasConstraintName("FK_SalesOrderDetail_SalesOrderHeader_SalesOrderID"); + + builder.HasOne(t => t.SpecialOfferProduct) + .WithMany(t => t.SalesOrderDetails) + .HasForeignKey(d => new { d.SpecialOfferId, d.ProductId}) + .HasConstraintName("FK_SalesOrderDetail_SpecialOfferProduct_SpecialOfferIDProductID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Sales"; + /// Table Name constant for entity + public const string Name = "SalesOrderDetail"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string SalesOrderId = "SalesOrderID"; + /// Column Name constant for property + public const string Id = "SalesOrderDetailID"; + /// Column Name constant for property + public const string CarrierTrackingNumber = "CarrierTrackingNumber"; + /// Column Name constant for property + public const string OrderQty = "OrderQty"; + /// Column Name constant for property + public const string ProductId = "ProductID"; + /// Column Name constant for property + public const string SpecialOfferId = "SpecialOfferID"; + /// Column Name constant for property + public const string UnitPrice = "UnitPrice"; + /// Column Name constant for property + public const string UnitPriceDiscount = "UnitPriceDiscount"; + /// Column Name constant for property + public const string LineTotal = "LineTotal"; + /// Column Name constant for property + public const string Rowguid = "rowguid"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesOrderHeaderConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesOrderHeaderConfiguration.cs new file mode 100644 index 0000000..3dc32e3 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesOrderHeaderConfiguration.cs @@ -0,0 +1,275 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class SalesOrderHeaderConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("SalesOrderHeader", "Sales"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("SalesOrderID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.RevisionNumber) + .IsRequired() + .HasColumnName("RevisionNumber") + .HasColumnType("tinyint") + .HasDefaultValue(0); + + builder.Property(t => t.OrderDate) + .IsRequired() + .HasColumnName("OrderDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + builder.Property(t => t.DueDate) + .IsRequired() + .HasColumnName("DueDate") + .HasColumnType("datetime"); + + builder.Property(t => t.ShipDate) + .HasColumnName("ShipDate") + .HasColumnType("datetime"); + + builder.Property(t => t.Status) + .IsRequired() + .HasColumnName("Status") + .HasColumnType("tinyint") + .HasDefaultValue(1); + + builder.Property(t => t.OnlineOrderFlag) + .IsRequired() + .HasColumnName("OnlineOrderFlag") + .HasColumnType("bit") + .HasDefaultValue(true); + + builder.Property(t => t.SalesOrderNumber) + .IsRequired() + .HasColumnName("SalesOrderNumber") + .HasColumnType("nvarchar(25)") + .HasMaxLength(25) + .ValueGeneratedOnAddOrUpdate(); + + builder.Property(t => t.PurchaseOrderNumber) + .HasColumnName("PurchaseOrderNumber") + .HasColumnType("nvarchar(25)") + .HasMaxLength(25); + + builder.Property(t => t.AccountNumber) + .HasColumnName("AccountNumber") + .HasColumnType("nvarchar(15)") + .HasMaxLength(15); + + builder.Property(t => t.CustomerId) + .IsRequired() + .HasColumnName("CustomerID") + .HasColumnType("int"); + + builder.Property(t => t.SalesPersonId) + .HasColumnName("SalesPersonID") + .HasColumnType("int"); + + builder.Property(t => t.TerritoryId) + .HasColumnName("TerritoryID") + .HasColumnType("int"); + + builder.Property(t => t.BillToAddressId) + .IsRequired() + .HasColumnName("BillToAddressID") + .HasColumnType("int"); + + builder.Property(t => t.ShipToAddressId) + .IsRequired() + .HasColumnName("ShipToAddressID") + .HasColumnType("int"); + + builder.Property(t => t.ShipMethodId) + .IsRequired() + .HasColumnName("ShipMethodID") + .HasColumnType("int"); + + builder.Property(t => t.CreditCardId) + .HasColumnName("CreditCardID") + .HasColumnType("int"); + + builder.Property(t => t.CreditCardApprovalCode) + .HasColumnName("CreditCardApprovalCode") + .HasColumnType("varchar(15)") + .HasMaxLength(15); + + builder.Property(t => t.CurrencyRateId) + .HasColumnName("CurrencyRateID") + .HasColumnType("int"); + + builder.Property(t => t.SubTotal) + .IsRequired() + .HasColumnName("SubTotal") + .HasColumnType("money") + .HasDefaultValueSql("((0.00))"); + + builder.Property(t => t.TaxAmt) + .IsRequired() + .HasColumnName("TaxAmt") + .HasColumnType("money") + .HasDefaultValueSql("((0.00))"); + + builder.Property(t => t.Freight) + .IsRequired() + .HasColumnName("Freight") + .HasColumnType("money") + .HasDefaultValueSql("((0.00))"); + + builder.Property(t => t.TotalDue) + .IsRequired() + .HasColumnName("TotalDue") + .HasColumnType("money") + .ValueGeneratedOnAddOrUpdate(); + + builder.Property(t => t.Comment) + .HasColumnName("Comment") + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + builder.Property(t => t.Rowguid) + .IsRequired() + .HasColumnName("rowguid") + .HasColumnType("uniqueidentifier") + .HasDefaultValueSql("(newid())"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.BillToAddress) + .WithMany(t => t.BillToSalesOrderHeaders) + .HasForeignKey(d => d.BillToAddressId) + .HasConstraintName("FK_SalesOrderHeader_Address_BillToAddressID"); + + builder.HasOne(t => t.ShipToAddress) + .WithMany(t => t.ShipToSalesOrderHeaders) + .HasForeignKey(d => d.ShipToAddressId) + .HasConstraintName("FK_SalesOrderHeader_Address_ShipToAddressID"); + + builder.HasOne(t => t.CreditCard) + .WithMany(t => t.SalesOrderHeaders) + .HasForeignKey(d => d.CreditCardId) + .HasConstraintName("FK_SalesOrderHeader_CreditCard_CreditCardID"); + + builder.HasOne(t => t.CurrencyRate) + .WithMany(t => t.SalesOrderHeaders) + .HasForeignKey(d => d.CurrencyRateId) + .HasConstraintName("FK_SalesOrderHeader_CurrencyRate_CurrencyRateID"); + + builder.HasOne(t => t.Customer) + .WithMany(t => t.SalesOrderHeaders) + .HasForeignKey(d => d.CustomerId) + .HasConstraintName("FK_SalesOrderHeader_Customer_CustomerID"); + + builder.HasOne(t => t.SalesPerson) + .WithMany(t => t.SalesOrderHeaders) + .HasForeignKey(d => d.SalesPersonId) + .HasConstraintName("FK_SalesOrderHeader_SalesPerson_SalesPersonID"); + + builder.HasOne(t => t.SalesTerritory) + .WithMany(t => t.SalesOrderHeaders) + .HasForeignKey(d => d.TerritoryId) + .HasConstraintName("FK_SalesOrderHeader_SalesTerritory_TerritoryID"); + + builder.HasOne(t => t.ShipMethod) + .WithMany(t => t.SalesOrderHeaders) + .HasForeignKey(d => d.ShipMethodId) + .HasConstraintName("FK_SalesOrderHeader_ShipMethod_ShipMethodID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Sales"; + /// Table Name constant for entity + public const string Name = "SalesOrderHeader"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "SalesOrderID"; + /// Column Name constant for property + public const string RevisionNumber = "RevisionNumber"; + /// Column Name constant for property + public const string OrderDate = "OrderDate"; + /// Column Name constant for property + public const string DueDate = "DueDate"; + /// Column Name constant for property + public const string ShipDate = "ShipDate"; + /// Column Name constant for property + public const string Status = "Status"; + /// Column Name constant for property + public const string OnlineOrderFlag = "OnlineOrderFlag"; + /// Column Name constant for property + public const string SalesOrderNumber = "SalesOrderNumber"; + /// Column Name constant for property + public const string PurchaseOrderNumber = "PurchaseOrderNumber"; + /// Column Name constant for property + public const string AccountNumber = "AccountNumber"; + /// Column Name constant for property + public const string CustomerId = "CustomerID"; + /// Column Name constant for property + public const string SalesPersonId = "SalesPersonID"; + /// Column Name constant for property + public const string TerritoryId = "TerritoryID"; + /// Column Name constant for property + public const string BillToAddressId = "BillToAddressID"; + /// Column Name constant for property + public const string ShipToAddressId = "ShipToAddressID"; + /// Column Name constant for property + public const string ShipMethodId = "ShipMethodID"; + /// Column Name constant for property + public const string CreditCardId = "CreditCardID"; + /// Column Name constant for property + public const string CreditCardApprovalCode = "CreditCardApprovalCode"; + /// Column Name constant for property + public const string CurrencyRateId = "CurrencyRateID"; + /// Column Name constant for property + public const string SubTotal = "SubTotal"; + /// Column Name constant for property + public const string TaxAmt = "TaxAmt"; + /// Column Name constant for property + public const string Freight = "Freight"; + /// Column Name constant for property + public const string TotalDue = "TotalDue"; + /// Column Name constant for property + public const string Comment = "Comment"; + /// Column Name constant for property + public const string Rowguid = "rowguid"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesOrderHeaderSalesReasonConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesOrderHeaderSalesReasonConfiguration.cs new file mode 100644 index 0000000..51562b0 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesOrderHeaderSalesReasonConfiguration.cs @@ -0,0 +1,77 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class SalesOrderHeaderSalesReasonConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("SalesOrderHeaderSalesReason", "Sales"); + + // key + builder.HasKey(t => new { t.SalesOrderId, t.SalesReasonId }); + + // properties + builder.Property(t => t.SalesOrderId) + .IsRequired() + .HasColumnName("SalesOrderID") + .HasColumnType("int"); + + builder.Property(t => t.SalesReasonId) + .IsRequired() + .HasColumnName("SalesReasonID") + .HasColumnType("int"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.SalesOrderHeader) + .WithMany(t => t.SalesOrderHeaderSalesReasons) + .HasForeignKey(d => d.SalesOrderId) + .HasConstraintName("FK_SalesOrderHeaderSalesReason_SalesOrderHeader_SalesOrderID"); + + builder.HasOne(t => t.SalesReason) + .WithMany(t => t.SalesOrderHeaderSalesReasons) + .HasForeignKey(d => d.SalesReasonId) + .HasConstraintName("FK_SalesOrderHeaderSalesReason_SalesReason_SalesReasonID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Sales"; + /// Table Name constant for entity + public const string Name = "SalesOrderHeaderSalesReason"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string SalesOrderId = "SalesOrderID"; + /// Column Name constant for property + public const string SalesReasonId = "SalesReasonID"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesPersonConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesPersonConfiguration.cs new file mode 100644 index 0000000..e60d216 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesPersonConfiguration.cs @@ -0,0 +1,122 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class SalesPersonConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("SalesPerson", "Sales"); + + // key + builder.HasKey(t => t.BusinessEntityId); + + // properties + builder.Property(t => t.BusinessEntityId) + .IsRequired() + .HasColumnName("BusinessEntityID") + .HasColumnType("int"); + + builder.Property(t => t.TerritoryId) + .HasColumnName("TerritoryID") + .HasColumnType("int"); + + builder.Property(t => t.SalesQuota) + .HasColumnName("SalesQuota") + .HasColumnType("money"); + + builder.Property(t => t.Bonus) + .IsRequired() + .HasColumnName("Bonus") + .HasColumnType("money") + .HasDefaultValueSql("((0.00))"); + + builder.Property(t => t.CommissionPct) + .IsRequired() + .HasColumnName("CommissionPct") + .HasColumnType("smallmoney") + .HasDefaultValueSql("((0.00))"); + + builder.Property(t => t.SalesYTD) + .IsRequired() + .HasColumnName("SalesYTD") + .HasColumnType("money") + .HasDefaultValueSql("((0.00))"); + + builder.Property(t => t.SalesLastYear) + .IsRequired() + .HasColumnName("SalesLastYear") + .HasColumnType("money") + .HasDefaultValueSql("((0.00))"); + + builder.Property(t => t.Rowguid) + .IsRequired() + .HasColumnName("rowguid") + .HasColumnType("uniqueidentifier") + .HasDefaultValueSql("(newid())"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.Employee) + .WithOne(t => t.SalesPerson) + .HasForeignKey(d => d.BusinessEntityId) + .HasConstraintName("FK_SalesPerson_Employee_BusinessEntityID"); + + builder.HasOne(t => t.SalesTerritory) + .WithMany(t => t.SalesPeople) + .HasForeignKey(d => d.TerritoryId) + .HasConstraintName("FK_SalesPerson_SalesTerritory_TerritoryID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Sales"; + /// Table Name constant for entity + public const string Name = "SalesPerson"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string BusinessEntityId = "BusinessEntityID"; + /// Column Name constant for property + public const string TerritoryId = "TerritoryID"; + /// Column Name constant for property + public const string SalesQuota = "SalesQuota"; + /// Column Name constant for property + public const string Bonus = "Bonus"; + /// Column Name constant for property + public const string CommissionPct = "CommissionPct"; + /// Column Name constant for property + public const string SalesYTD = "SalesYTD"; + /// Column Name constant for property + public const string SalesLastYear = "SalesLastYear"; + /// Column Name constant for property + public const string Rowguid = "rowguid"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesPersonQuotaHistoryConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesPersonQuotaHistoryConfiguration.cs new file mode 100644 index 0000000..52761a3 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesPersonQuotaHistoryConfiguration.cs @@ -0,0 +1,87 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class SalesPersonQuotaHistoryConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("SalesPersonQuotaHistory", "Sales"); + + // key + builder.HasKey(t => new { t.BusinessEntityId, t.QuotaDate }); + + // properties + builder.Property(t => t.BusinessEntityId) + .IsRequired() + .HasColumnName("BusinessEntityID") + .HasColumnType("int"); + + builder.Property(t => t.QuotaDate) + .IsRequired() + .HasColumnName("QuotaDate") + .HasColumnType("datetime"); + + builder.Property(t => t.SalesQuota) + .IsRequired() + .HasColumnName("SalesQuota") + .HasColumnType("money"); + + builder.Property(t => t.Rowguid) + .IsRequired() + .HasColumnName("rowguid") + .HasColumnType("uniqueidentifier") + .HasDefaultValueSql("(newid())"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.SalesPerson) + .WithMany(t => t.SalesPersonQuotaHistories) + .HasForeignKey(d => d.BusinessEntityId) + .HasConstraintName("FK_SalesPersonQuotaHistory_SalesPerson_BusinessEntityID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Sales"; + /// Table Name constant for entity + public const string Name = "SalesPersonQuotaHistory"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string BusinessEntityId = "BusinessEntityID"; + /// Column Name constant for property + public const string QuotaDate = "QuotaDate"; + /// Column Name constant for property + public const string SalesQuota = "SalesQuota"; + /// Column Name constant for property + public const string Rowguid = "rowguid"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesReasonConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesReasonConfiguration.cs new file mode 100644 index 0000000..c303204 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesReasonConfiguration.cs @@ -0,0 +1,77 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class SalesReasonConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("SalesReason", "Sales"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("SalesReasonID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.Name) + .IsRequired() + .HasColumnName("Name") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.ReasonType) + .IsRequired() + .HasColumnName("ReasonType") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Sales"; + /// Table Name constant for entity + public const string Name = "SalesReason"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "SalesReasonID"; + /// Column Name constant for property + public const string Name = "Name"; + /// Column Name constant for property + public const string ReasonType = "ReasonType"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesTaxRateConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesTaxRateConfiguration.cs new file mode 100644 index 0000000..c42ed56 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesTaxRateConfiguration.cs @@ -0,0 +1,104 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class SalesTaxRateConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("SalesTaxRate", "Sales"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("SalesTaxRateID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.StateProvinceId) + .IsRequired() + .HasColumnName("StateProvinceID") + .HasColumnType("int"); + + builder.Property(t => t.TaxType) + .IsRequired() + .HasColumnName("TaxType") + .HasColumnType("tinyint"); + + builder.Property(t => t.TaxRate) + .IsRequired() + .HasColumnName("TaxRate") + .HasColumnType("smallmoney") + .HasDefaultValueSql("((0.00))"); + + builder.Property(t => t.Name) + .IsRequired() + .HasColumnName("Name") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.Rowguid) + .IsRequired() + .HasColumnName("rowguid") + .HasColumnType("uniqueidentifier") + .HasDefaultValueSql("(newid())"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.StateProvince) + .WithMany(t => t.SalesTaxRates) + .HasForeignKey(d => d.StateProvinceId) + .HasConstraintName("FK_SalesTaxRate_StateProvince_StateProvinceID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Sales"; + /// Table Name constant for entity + public const string Name = "SalesTaxRate"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "SalesTaxRateID"; + /// Column Name constant for property + public const string StateProvinceId = "StateProvinceID"; + /// Column Name constant for property + public const string TaxType = "TaxType"; + /// Column Name constant for property + public const string TaxRate = "TaxRate"; + /// Column Name constant for property + public const string Name = "Name"; + /// Column Name constant for property + public const string Rowguid = "rowguid"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesTerritoryConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesTerritoryConfiguration.cs new file mode 100644 index 0000000..bd9a951 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesTerritoryConfiguration.cs @@ -0,0 +1,130 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class SalesTerritoryConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("SalesTerritory", "Sales"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("TerritoryID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.Name) + .IsRequired() + .HasColumnName("Name") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.CountryRegionCode) + .IsRequired() + .HasColumnName("CountryRegionCode") + .HasColumnType("nvarchar(3)") + .HasMaxLength(3); + + builder.Property(t => t.Group) + .IsRequired() + .HasColumnName("Group") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.SalesYTD) + .IsRequired() + .HasColumnName("SalesYTD") + .HasColumnType("money") + .HasDefaultValueSql("((0.00))"); + + builder.Property(t => t.SalesLastYear) + .IsRequired() + .HasColumnName("SalesLastYear") + .HasColumnType("money") + .HasDefaultValueSql("((0.00))"); + + builder.Property(t => t.CostYTD) + .IsRequired() + .HasColumnName("CostYTD") + .HasColumnType("money") + .HasDefaultValueSql("((0.00))"); + + builder.Property(t => t.CostLastYear) + .IsRequired() + .HasColumnName("CostLastYear") + .HasColumnType("money") + .HasDefaultValueSql("((0.00))"); + + builder.Property(t => t.Rowguid) + .IsRequired() + .HasColumnName("rowguid") + .HasColumnType("uniqueidentifier") + .HasDefaultValueSql("(newid())"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.CountryRegion) + .WithMany(t => t.SalesTerritories) + .HasForeignKey(d => d.CountryRegionCode) + .HasConstraintName("FK_SalesTerritory_CountryRegion_CountryRegionCode"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Sales"; + /// Table Name constant for entity + public const string Name = "SalesTerritory"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "TerritoryID"; + /// Column Name constant for property + public const string Name = "Name"; + /// Column Name constant for property + public const string CountryRegionCode = "CountryRegionCode"; + /// Column Name constant for property + public const string Group = "Group"; + /// Column Name constant for property + public const string SalesYTD = "SalesYTD"; + /// Column Name constant for property + public const string SalesLastYear = "SalesLastYear"; + /// Column Name constant for property + public const string CostYTD = "CostYTD"; + /// Column Name constant for property + public const string CostLastYear = "CostLastYear"; + /// Column Name constant for property + public const string Rowguid = "rowguid"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesTerritoryHistoryConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesTerritoryHistoryConfiguration.cs new file mode 100644 index 0000000..bdb3cbb --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesTerritoryHistoryConfiguration.cs @@ -0,0 +1,98 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class SalesTerritoryHistoryConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("SalesTerritoryHistory", "Sales"); + + // key + builder.HasKey(t => new { t.BusinessEntityId, t.TerritoryId, t.StartDate }); + + // properties + builder.Property(t => t.BusinessEntityId) + .IsRequired() + .HasColumnName("BusinessEntityID") + .HasColumnType("int"); + + builder.Property(t => t.TerritoryId) + .IsRequired() + .HasColumnName("TerritoryID") + .HasColumnType("int"); + + builder.Property(t => t.StartDate) + .IsRequired() + .HasColumnName("StartDate") + .HasColumnType("datetime"); + + builder.Property(t => t.EndDate) + .HasColumnName("EndDate") + .HasColumnType("datetime"); + + builder.Property(t => t.Rowguid) + .IsRequired() + .HasColumnName("rowguid") + .HasColumnType("uniqueidentifier") + .HasDefaultValueSql("(newid())"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.SalesPerson) + .WithMany(t => t.SalesTerritoryHistories) + .HasForeignKey(d => d.BusinessEntityId) + .HasConstraintName("FK_SalesTerritoryHistory_SalesPerson_BusinessEntityID"); + + builder.HasOne(t => t.SalesTerritory) + .WithMany(t => t.SalesTerritoryHistories) + .HasForeignKey(d => d.TerritoryId) + .HasConstraintName("FK_SalesTerritoryHistory_SalesTerritory_TerritoryID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Sales"; + /// Table Name constant for entity + public const string Name = "SalesTerritoryHistory"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string BusinessEntityId = "BusinessEntityID"; + /// Column Name constant for property + public const string TerritoryId = "TerritoryID"; + /// Column Name constant for property + public const string StartDate = "StartDate"; + /// Column Name constant for property + public const string EndDate = "EndDate"; + /// Column Name constant for property + public const string Rowguid = "rowguid"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ScrapReasonConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ScrapReasonConfiguration.cs new file mode 100644 index 0000000..e7eacb7 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ScrapReasonConfiguration.cs @@ -0,0 +1,69 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class ScrapReasonConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("ScrapReason", "Production"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("ScrapReasonID") + .HasColumnType("smallint") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.Name) + .IsRequired() + .HasColumnName("Name") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Production"; + /// Table Name constant for entity + public const string Name = "ScrapReason"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "ScrapReasonID"; + /// Column Name constant for property + public const string Name = "Name"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ShiftConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ShiftConfiguration.cs new file mode 100644 index 0000000..9a85a8a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ShiftConfiguration.cs @@ -0,0 +1,83 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class ShiftConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("Shift", "HumanResources"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("ShiftID") + .HasColumnType("tinyint") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.Name) + .IsRequired() + .HasColumnName("Name") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.StartTime) + .IsRequired() + .HasColumnName("StartTime") + .HasColumnType("time"); + + builder.Property(t => t.EndTime) + .IsRequired() + .HasColumnName("EndTime") + .HasColumnType("time"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "HumanResources"; + /// Table Name constant for entity + public const string Name = "Shift"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "ShiftID"; + /// Column Name constant for property + public const string Name = "Name"; + /// Column Name constant for property + public const string StartTime = "StartTime"; + /// Column Name constant for property + public const string EndTime = "EndTime"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ShipMethodConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ShipMethodConfiguration.cs new file mode 100644 index 0000000..8308750 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ShipMethodConfiguration.cs @@ -0,0 +1,93 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class ShipMethodConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("ShipMethod", "Purchasing"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("ShipMethodID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.Name) + .IsRequired() + .HasColumnName("Name") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.ShipBase) + .IsRequired() + .HasColumnName("ShipBase") + .HasColumnType("money") + .HasDefaultValueSql("((0.00))"); + + builder.Property(t => t.ShipRate) + .IsRequired() + .HasColumnName("ShipRate") + .HasColumnType("money") + .HasDefaultValueSql("((0.00))"); + + builder.Property(t => t.Rowguid) + .IsRequired() + .HasColumnName("rowguid") + .HasColumnType("uniqueidentifier") + .HasDefaultValueSql("(newid())"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Purchasing"; + /// Table Name constant for entity + public const string Name = "ShipMethod"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "ShipMethodID"; + /// Column Name constant for property + public const string Name = "Name"; + /// Column Name constant for property + public const string ShipBase = "ShipBase"; + /// Column Name constant for property + public const string ShipRate = "ShipRate"; + /// Column Name constant for property + public const string Rowguid = "rowguid"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ShoppingCartItemConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ShoppingCartItemConfiguration.cs new file mode 100644 index 0000000..a567ec1 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ShoppingCartItemConfiguration.cs @@ -0,0 +1,97 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class ShoppingCartItemConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("ShoppingCartItem", "Sales"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("ShoppingCartItemID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.ShoppingCartId) + .IsRequired() + .HasColumnName("ShoppingCartID") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.Quantity) + .IsRequired() + .HasColumnName("Quantity") + .HasColumnType("int") + .HasDefaultValue(1); + + builder.Property(t => t.ProductId) + .IsRequired() + .HasColumnName("ProductID") + .HasColumnType("int"); + + builder.Property(t => t.DateCreated) + .IsRequired() + .HasColumnName("DateCreated") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.Product) + .WithMany(t => t.ShoppingCartItems) + .HasForeignKey(d => d.ProductId) + .HasConstraintName("FK_ShoppingCartItem_Product_ProductID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Sales"; + /// Table Name constant for entity + public const string Name = "ShoppingCartItem"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "ShoppingCartItemID"; + /// Column Name constant for property + public const string ShoppingCartId = "ShoppingCartID"; + /// Column Name constant for property + public const string Quantity = "Quantity"; + /// Column Name constant for property + public const string ProductId = "ProductID"; + /// Column Name constant for property + public const string DateCreated = "DateCreated"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SpecialOfferConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SpecialOfferConfiguration.cs new file mode 100644 index 0000000..80b02b5 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SpecialOfferConfiguration.cs @@ -0,0 +1,129 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class SpecialOfferConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("SpecialOffer", "Sales"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("SpecialOfferID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.Description) + .IsRequired() + .HasColumnName("Description") + .HasColumnType("nvarchar(255)") + .HasMaxLength(255); + + builder.Property(t => t.DiscountPct) + .IsRequired() + .HasColumnName("DiscountPct") + .HasColumnType("smallmoney") + .HasDefaultValueSql("((0.00))"); + + builder.Property(t => t.Type) + .IsRequired() + .HasColumnName("Type") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.Category) + .IsRequired() + .HasColumnName("Category") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.StartDate) + .IsRequired() + .HasColumnName("StartDate") + .HasColumnType("datetime"); + + builder.Property(t => t.EndDate) + .IsRequired() + .HasColumnName("EndDate") + .HasColumnType("datetime"); + + builder.Property(t => t.MinQty) + .IsRequired() + .HasColumnName("MinQty") + .HasColumnType("int") + .HasDefaultValue(0); + + builder.Property(t => t.MaxQty) + .HasColumnName("MaxQty") + .HasColumnType("int"); + + builder.Property(t => t.Rowguid) + .IsRequired() + .HasColumnName("rowguid") + .HasColumnType("uniqueidentifier") + .HasDefaultValueSql("(newid())"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Sales"; + /// Table Name constant for entity + public const string Name = "SpecialOffer"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "SpecialOfferID"; + /// Column Name constant for property + public const string Description = "Description"; + /// Column Name constant for property + public const string DiscountPct = "DiscountPct"; + /// Column Name constant for property + public const string Type = "Type"; + /// Column Name constant for property + public const string Category = "Category"; + /// Column Name constant for property + public const string StartDate = "StartDate"; + /// Column Name constant for property + public const string EndDate = "EndDate"; + /// Column Name constant for property + public const string MinQty = "MinQty"; + /// Column Name constant for property + public const string MaxQty = "MaxQty"; + /// Column Name constant for property + public const string Rowguid = "rowguid"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SpecialOfferProductConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SpecialOfferProductConfiguration.cs new file mode 100644 index 0000000..6bea0d4 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SpecialOfferProductConfiguration.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class SpecialOfferProductConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("SpecialOfferProduct", "Sales"); + + // key + builder.HasKey(t => new { t.SpecialOfferId, t.ProductId }); + + // properties + builder.Property(t => t.SpecialOfferId) + .IsRequired() + .HasColumnName("SpecialOfferID") + .HasColumnType("int"); + + builder.Property(t => t.ProductId) + .IsRequired() + .HasColumnName("ProductID") + .HasColumnType("int"); + + builder.Property(t => t.Rowguid) + .IsRequired() + .HasColumnName("rowguid") + .HasColumnType("uniqueidentifier") + .HasDefaultValueSql("(newid())"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.Product) + .WithMany(t => t.SpecialOfferProducts) + .HasForeignKey(d => d.ProductId) + .HasConstraintName("FK_SpecialOfferProduct_Product_ProductID"); + + builder.HasOne(t => t.SpecialOffer) + .WithMany(t => t.SpecialOfferProducts) + .HasForeignKey(d => d.SpecialOfferId) + .HasConstraintName("FK_SpecialOfferProduct_SpecialOffer_SpecialOfferID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Sales"; + /// Table Name constant for entity + public const string Name = "SpecialOfferProduct"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string SpecialOfferId = "SpecialOfferID"; + /// Column Name constant for property + public const string ProductId = "ProductID"; + /// Column Name constant for property + public const string Rowguid = "rowguid"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/StateProvinceConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/StateProvinceConfiguration.cs new file mode 100644 index 0000000..07c6366 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/StateProvinceConfiguration.cs @@ -0,0 +1,118 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class StateProvinceConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("StateProvince", "Person"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("StateProvinceID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.StateProvinceCode) + .IsRequired() + .HasColumnName("StateProvinceCode") + .HasColumnType("nchar(3)") + .HasMaxLength(3); + + builder.Property(t => t.CountryRegionCode) + .IsRequired() + .HasColumnName("CountryRegionCode") + .HasColumnType("nvarchar(3)") + .HasMaxLength(3); + + builder.Property(t => t.IsOnlyStateProvinceFlag) + .IsRequired() + .HasColumnName("IsOnlyStateProvinceFlag") + .HasColumnType("bit") + .HasDefaultValue(true); + + builder.Property(t => t.Name) + .IsRequired() + .HasColumnName("Name") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.TerritoryId) + .IsRequired() + .HasColumnName("TerritoryID") + .HasColumnType("int"); + + builder.Property(t => t.Rowguid) + .IsRequired() + .HasColumnName("rowguid") + .HasColumnType("uniqueidentifier") + .HasDefaultValueSql("(newid())"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.CountryRegion) + .WithMany(t => t.StateProvinces) + .HasForeignKey(d => d.CountryRegionCode) + .HasConstraintName("FK_StateProvince_CountryRegion_CountryRegionCode"); + + builder.HasOne(t => t.SalesTerritory) + .WithMany(t => t.StateProvinces) + .HasForeignKey(d => d.TerritoryId) + .HasConstraintName("FK_StateProvince_SalesTerritory_TerritoryID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Person"; + /// Table Name constant for entity + public const string Name = "StateProvince"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "StateProvinceID"; + /// Column Name constant for property + public const string StateProvinceCode = "StateProvinceCode"; + /// Column Name constant for property + public const string CountryRegionCode = "CountryRegionCode"; + /// Column Name constant for property + public const string IsOnlyStateProvinceFlag = "IsOnlyStateProvinceFlag"; + /// Column Name constant for property + public const string Name = "Name"; + /// Column Name constant for property + public const string TerritoryId = "TerritoryID"; + /// Column Name constant for property + public const string Rowguid = "rowguid"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/StoreConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/StoreConfiguration.cs new file mode 100644 index 0000000..d0e56b1 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/StoreConfiguration.cs @@ -0,0 +1,98 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class StoreConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("Store", "Sales"); + + // key + builder.HasKey(t => t.BusinessEntityId); + + // properties + builder.Property(t => t.BusinessEntityId) + .IsRequired() + .HasColumnName("BusinessEntityID") + .HasColumnType("int"); + + builder.Property(t => t.Name) + .IsRequired() + .HasColumnName("Name") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.SalesPersonId) + .HasColumnName("SalesPersonID") + .HasColumnType("int"); + + builder.Property(t => t.Demographics) + .HasColumnName("Demographics") + .HasColumnType("xml"); + + builder.Property(t => t.Rowguid) + .IsRequired() + .HasColumnName("rowguid") + .HasColumnType("uniqueidentifier") + .HasDefaultValueSql("(newid())"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.BusinessEntity) + .WithOne(t => t.Store) + .HasForeignKey(d => d.BusinessEntityId) + .HasConstraintName("FK_Store_BusinessEntity_BusinessEntityID"); + + builder.HasOne(t => t.SalesPerson) + .WithMany(t => t.Stores) + .HasForeignKey(d => d.SalesPersonId) + .HasConstraintName("FK_Store_SalesPerson_SalesPersonID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Sales"; + /// Table Name constant for entity + public const string Name = "Store"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string BusinessEntityId = "BusinessEntityID"; + /// Column Name constant for property + public const string Name = "Name"; + /// Column Name constant for property + public const string SalesPersonId = "SalesPersonID"; + /// Column Name constant for property + public const string Demographics = "Demographics"; + /// Column Name constant for property + public const string Rowguid = "rowguid"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/TransactionHistoryArchiveConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/TransactionHistoryArchiveConfiguration.cs new file mode 100644 index 0000000..9273ced --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/TransactionHistoryArchiveConfiguration.cs @@ -0,0 +1,112 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class TransactionHistoryArchiveConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("TransactionHistoryArchive", "Production"); + + // key + builder.HasKey(t => t.TransactionId); + + // properties + builder.Property(t => t.TransactionId) + .IsRequired() + .HasColumnName("TransactionID") + .HasColumnType("int"); + + builder.Property(t => t.ProductId) + .IsRequired() + .HasColumnName("ProductID") + .HasColumnType("int"); + + builder.Property(t => t.ReferenceOrderId) + .IsRequired() + .HasColumnName("ReferenceOrderID") + .HasColumnType("int"); + + builder.Property(t => t.ReferenceOrderLineId) + .IsRequired() + .HasColumnName("ReferenceOrderLineID") + .HasColumnType("int") + .HasDefaultValue(0); + + builder.Property(t => t.TransactionDate) + .IsRequired() + .HasColumnName("TransactionDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + builder.Property(t => t.TransactionType) + .IsRequired() + .HasColumnName("TransactionType") + .HasColumnType("nchar(1)") + .HasMaxLength(1); + + builder.Property(t => t.Quantity) + .IsRequired() + .HasColumnName("Quantity") + .HasColumnType("int"); + + builder.Property(t => t.ActualCost) + .IsRequired() + .HasColumnName("ActualCost") + .HasColumnType("money"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Production"; + /// Table Name constant for entity + public const string Name = "TransactionHistoryArchive"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string TransactionId = "TransactionID"; + /// Column Name constant for property + public const string ProductId = "ProductID"; + /// Column Name constant for property + public const string ReferenceOrderId = "ReferenceOrderID"; + /// Column Name constant for property + public const string ReferenceOrderLineId = "ReferenceOrderLineID"; + /// Column Name constant for property + public const string TransactionDate = "TransactionDate"; + /// Column Name constant for property + public const string TransactionType = "TransactionType"; + /// Column Name constant for property + public const string Quantity = "Quantity"; + /// Column Name constant for property + public const string ActualCost = "ActualCost"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/TransactionHistoryConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/TransactionHistoryConfiguration.cs new file mode 100644 index 0000000..053fc6a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/TransactionHistoryConfiguration.cs @@ -0,0 +1,118 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class TransactionHistoryConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("TransactionHistory", "Production"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("TransactionID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.ProductId) + .IsRequired() + .HasColumnName("ProductID") + .HasColumnType("int"); + + builder.Property(t => t.ReferenceOrderId) + .IsRequired() + .HasColumnName("ReferenceOrderID") + .HasColumnType("int"); + + builder.Property(t => t.ReferenceOrderLineId) + .IsRequired() + .HasColumnName("ReferenceOrderLineID") + .HasColumnType("int") + .HasDefaultValue(0); + + builder.Property(t => t.TransactionDate) + .IsRequired() + .HasColumnName("TransactionDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + builder.Property(t => t.TransactionType) + .IsRequired() + .HasColumnName("TransactionType") + .HasColumnType("nchar(1)") + .HasMaxLength(1); + + builder.Property(t => t.Quantity) + .IsRequired() + .HasColumnName("Quantity") + .HasColumnType("int"); + + builder.Property(t => t.ActualCost) + .IsRequired() + .HasColumnName("ActualCost") + .HasColumnType("money"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.Product) + .WithMany(t => t.TransactionHistories) + .HasForeignKey(d => d.ProductId) + .HasConstraintName("FK_TransactionHistory_Product_ProductID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Production"; + /// Table Name constant for entity + public const string Name = "TransactionHistory"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "TransactionID"; + /// Column Name constant for property + public const string ProductId = "ProductID"; + /// Column Name constant for property + public const string ReferenceOrderId = "ReferenceOrderID"; + /// Column Name constant for property + public const string ReferenceOrderLineId = "ReferenceOrderLineID"; + /// Column Name constant for property + public const string TransactionDate = "TransactionDate"; + /// Column Name constant for property + public const string TransactionType = "TransactionType"; + /// Column Name constant for property + public const string Quantity = "Quantity"; + /// Column Name constant for property + public const string ActualCost = "ActualCost"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/UnitMeasureConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/UnitMeasureConfiguration.cs new file mode 100644 index 0000000..fca30b4 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/UnitMeasureConfiguration.cs @@ -0,0 +1,69 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class UnitMeasureConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("UnitMeasure", "Production"); + + // key + builder.HasKey(t => t.UnitMeasureCode); + + // properties + builder.Property(t => t.UnitMeasureCode) + .IsRequired() + .HasColumnName("UnitMeasureCode") + .HasColumnType("nchar(3)") + .HasMaxLength(3); + + builder.Property(t => t.Name) + .IsRequired() + .HasColumnName("Name") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Production"; + /// Table Name constant for entity + public const string Name = "UnitMeasure"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string UnitMeasureCode = "UnitMeasureCode"; + /// Column Name constant for property + public const string Name = "Name"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VAdditionalContactInfoConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VAdditionalContactInfoConfiguration.cs new file mode 100644 index 0000000..8621163 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VAdditionalContactInfoConfiguration.cs @@ -0,0 +1,163 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class VAdditionalContactInfoConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToView("vAdditionalContactInfo", "Person"); + + // key + builder.HasNoKey(); + + // properties + builder.Property(t => t.BusinessEntityId) + .IsRequired() + .HasColumnName("BusinessEntityID") + .HasColumnType("int"); + + builder.Property(t => t.FirstName) + .IsRequired() + .HasColumnName("FirstName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.MiddleName) + .HasColumnName("MiddleName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.LastName) + .IsRequired() + .HasColumnName("LastName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.TelephoneNumber) + .HasColumnName("TelephoneNumber") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.TelephoneSpecialInstructions) + .HasColumnName("TelephoneSpecialInstructions") + .HasColumnType("nvarchar(max)"); + + builder.Property(t => t.Street) + .HasColumnName("Street") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.City) + .HasColumnName("City") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.StateProvince) + .HasColumnName("StateProvince") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.PostalCode) + .HasColumnName("PostalCode") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.CountryRegion) + .HasColumnName("CountryRegion") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.HomeAddressSpecialInstructions) + .HasColumnName("HomeAddressSpecialInstructions") + .HasColumnType("nvarchar(max)"); + + builder.Property(t => t.EMailAddress) + .HasColumnName("EMailAddress") + .HasColumnType("nvarchar(128)") + .HasMaxLength(128); + + builder.Property(t => t.EMailSpecialInstructions) + .HasColumnName("EMailSpecialInstructions") + .HasColumnType("nvarchar(max)"); + + builder.Property(t => t.EMailTelephoneNumber) + .HasColumnName("EMailTelephoneNumber") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.Rowguid) + .IsRequired() + .HasColumnName("rowguid") + .HasColumnType("uniqueidentifier"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Person"; + /// Table Name constant for entity + public const string Name = "vAdditionalContactInfo"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string BusinessEntityId = "BusinessEntityID"; + /// Column Name constant for property + public const string FirstName = "FirstName"; + /// Column Name constant for property + public const string MiddleName = "MiddleName"; + /// Column Name constant for property + public const string LastName = "LastName"; + /// Column Name constant for property + public const string TelephoneNumber = "TelephoneNumber"; + /// Column Name constant for property + public const string TelephoneSpecialInstructions = "TelephoneSpecialInstructions"; + /// Column Name constant for property + public const string Street = "Street"; + /// Column Name constant for property + public const string City = "City"; + /// Column Name constant for property + public const string StateProvince = "StateProvince"; + /// Column Name constant for property + public const string PostalCode = "PostalCode"; + /// Column Name constant for property + public const string CountryRegion = "CountryRegion"; + /// Column Name constant for property + public const string HomeAddressSpecialInstructions = "HomeAddressSpecialInstructions"; + /// Column Name constant for property + public const string EMailAddress = "EMailAddress"; + /// Column Name constant for property + public const string EMailSpecialInstructions = "EMailSpecialInstructions"; + /// Column Name constant for property + public const string EMailTelephoneNumber = "EMailTelephoneNumber"; + /// Column Name constant for property + public const string Rowguid = "rowguid"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VEmployeeConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VEmployeeConfiguration.cs new file mode 100644 index 0000000..d57386b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VEmployeeConfiguration.cs @@ -0,0 +1,178 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class VEmployeeConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToView("vEmployee", "HumanResources"); + + // key + builder.HasNoKey(); + + // properties + builder.Property(t => t.BusinessEntityId) + .IsRequired() + .HasColumnName("BusinessEntityID") + .HasColumnType("int"); + + builder.Property(t => t.Title) + .HasColumnName("Title") + .HasColumnType("nvarchar(8)") + .HasMaxLength(8); + + builder.Property(t => t.FirstName) + .IsRequired() + .HasColumnName("FirstName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.MiddleName) + .HasColumnName("MiddleName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.LastName) + .IsRequired() + .HasColumnName("LastName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.Suffix) + .HasColumnName("Suffix") + .HasColumnType("nvarchar(10)") + .HasMaxLength(10); + + builder.Property(t => t.JobTitle) + .IsRequired() + .HasColumnName("JobTitle") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.PhoneNumber) + .HasColumnName("PhoneNumber") + .HasColumnType("nvarchar(25)") + .HasMaxLength(25); + + builder.Property(t => t.PhoneNumberType) + .HasColumnName("PhoneNumberType") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.EmailAddress) + .HasColumnName("EmailAddress") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.EmailPromotion) + .IsRequired() + .HasColumnName("EmailPromotion") + .HasColumnType("int"); + + builder.Property(t => t.AddressLine1) + .IsRequired() + .HasColumnName("AddressLine1") + .HasColumnType("nvarchar(60)") + .HasMaxLength(60); + + builder.Property(t => t.AddressLine2) + .HasColumnName("AddressLine2") + .HasColumnType("nvarchar(60)") + .HasMaxLength(60); + + builder.Property(t => t.City) + .IsRequired() + .HasColumnName("City") + .HasColumnType("nvarchar(30)") + .HasMaxLength(30); + + builder.Property(t => t.StateProvinceName) + .IsRequired() + .HasColumnName("StateProvinceName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.PostalCode) + .IsRequired() + .HasColumnName("PostalCode") + .HasColumnType("nvarchar(15)") + .HasMaxLength(15); + + builder.Property(t => t.CountryRegionName) + .IsRequired() + .HasColumnName("CountryRegionName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.AdditionalContactInfo) + .HasColumnName("AdditionalContactInfo") + .HasColumnType("xml"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "HumanResources"; + /// Table Name constant for entity + public const string Name = "vEmployee"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string BusinessEntityId = "BusinessEntityID"; + /// Column Name constant for property + public const string Title = "Title"; + /// Column Name constant for property + public const string FirstName = "FirstName"; + /// Column Name constant for property + public const string MiddleName = "MiddleName"; + /// Column Name constant for property + public const string LastName = "LastName"; + /// Column Name constant for property + public const string Suffix = "Suffix"; + /// Column Name constant for property + public const string JobTitle = "JobTitle"; + /// Column Name constant for property + public const string PhoneNumber = "PhoneNumber"; + /// Column Name constant for property + public const string PhoneNumberType = "PhoneNumberType"; + /// Column Name constant for property + public const string EmailAddress = "EmailAddress"; + /// Column Name constant for property + public const string EmailPromotion = "EmailPromotion"; + /// Column Name constant for property + public const string AddressLine1 = "AddressLine1"; + /// Column Name constant for property + public const string AddressLine2 = "AddressLine2"; + /// Column Name constant for property + public const string City = "City"; + /// Column Name constant for property + public const string StateProvinceName = "StateProvinceName"; + /// Column Name constant for property + public const string PostalCode = "PostalCode"; + /// Column Name constant for property + public const string CountryRegionName = "CountryRegionName"; + /// Column Name constant for property + public const string AdditionalContactInfo = "AdditionalContactInfo"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VEmployeeDepartmentConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VEmployeeDepartmentConfiguration.cs new file mode 100644 index 0000000..e07c36b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VEmployeeDepartmentConfiguration.cs @@ -0,0 +1,120 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class VEmployeeDepartmentConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToView("vEmployeeDepartment", "HumanResources"); + + // key + builder.HasNoKey(); + + // properties + builder.Property(t => t.BusinessEntityId) + .IsRequired() + .HasColumnName("BusinessEntityID") + .HasColumnType("int"); + + builder.Property(t => t.Title) + .HasColumnName("Title") + .HasColumnType("nvarchar(8)") + .HasMaxLength(8); + + builder.Property(t => t.FirstName) + .IsRequired() + .HasColumnName("FirstName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.MiddleName) + .HasColumnName("MiddleName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.LastName) + .IsRequired() + .HasColumnName("LastName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.Suffix) + .HasColumnName("Suffix") + .HasColumnType("nvarchar(10)") + .HasMaxLength(10); + + builder.Property(t => t.JobTitle) + .IsRequired() + .HasColumnName("JobTitle") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.Department) + .IsRequired() + .HasColumnName("Department") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.GroupName) + .IsRequired() + .HasColumnName("GroupName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.StartDate) + .IsRequired() + .HasColumnName("StartDate") + .HasColumnType("date"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "HumanResources"; + /// Table Name constant for entity + public const string Name = "vEmployeeDepartment"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string BusinessEntityId = "BusinessEntityID"; + /// Column Name constant for property + public const string Title = "Title"; + /// Column Name constant for property + public const string FirstName = "FirstName"; + /// Column Name constant for property + public const string MiddleName = "MiddleName"; + /// Column Name constant for property + public const string LastName = "LastName"; + /// Column Name constant for property + public const string Suffix = "Suffix"; + /// Column Name constant for property + public const string JobTitle = "JobTitle"; + /// Column Name constant for property + public const string Department = "Department"; + /// Column Name constant for property + public const string GroupName = "GroupName"; + /// Column Name constant for property + public const string StartDate = "StartDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VEmployeeDepartmentHistoryConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VEmployeeDepartmentHistoryConfiguration.cs new file mode 100644 index 0000000..a1b409e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VEmployeeDepartmentHistoryConfiguration.cs @@ -0,0 +1,126 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class VEmployeeDepartmentHistoryConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToView("vEmployeeDepartmentHistory", "HumanResources"); + + // key + builder.HasNoKey(); + + // properties + builder.Property(t => t.BusinessEntityId) + .IsRequired() + .HasColumnName("BusinessEntityID") + .HasColumnType("int"); + + builder.Property(t => t.Title) + .HasColumnName("Title") + .HasColumnType("nvarchar(8)") + .HasMaxLength(8); + + builder.Property(t => t.FirstName) + .IsRequired() + .HasColumnName("FirstName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.MiddleName) + .HasColumnName("MiddleName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.LastName) + .IsRequired() + .HasColumnName("LastName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.Suffix) + .HasColumnName("Suffix") + .HasColumnType("nvarchar(10)") + .HasMaxLength(10); + + builder.Property(t => t.Shift) + .IsRequired() + .HasColumnName("Shift") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.Department) + .IsRequired() + .HasColumnName("Department") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.GroupName) + .IsRequired() + .HasColumnName("GroupName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.StartDate) + .IsRequired() + .HasColumnName("StartDate") + .HasColumnType("date"); + + builder.Property(t => t.EndDate) + .HasColumnName("EndDate") + .HasColumnType("date"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "HumanResources"; + /// Table Name constant for entity + public const string Name = "vEmployeeDepartmentHistory"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string BusinessEntityId = "BusinessEntityID"; + /// Column Name constant for property + public const string Title = "Title"; + /// Column Name constant for property + public const string FirstName = "FirstName"; + /// Column Name constant for property + public const string MiddleName = "MiddleName"; + /// Column Name constant for property + public const string LastName = "LastName"; + /// Column Name constant for property + public const string Suffix = "Suffix"; + /// Column Name constant for property + public const string Shift = "Shift"; + /// Column Name constant for property + public const string Department = "Department"; + /// Column Name constant for property + public const string GroupName = "GroupName"; + /// Column Name constant for property + public const string StartDate = "StartDate"; + /// Column Name constant for property + public const string EndDate = "EndDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VIndividualCustomerConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VIndividualCustomerConfiguration.cs new file mode 100644 index 0000000..8339bed --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VIndividualCustomerConfiguration.cs @@ -0,0 +1,178 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class VIndividualCustomerConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToView("vIndividualCustomer", "Sales"); + + // key + builder.HasNoKey(); + + // properties + builder.Property(t => t.BusinessEntityId) + .IsRequired() + .HasColumnName("BusinessEntityID") + .HasColumnType("int"); + + builder.Property(t => t.Title) + .HasColumnName("Title") + .HasColumnType("nvarchar(8)") + .HasMaxLength(8); + + builder.Property(t => t.FirstName) + .IsRequired() + .HasColumnName("FirstName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.MiddleName) + .HasColumnName("MiddleName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.LastName) + .IsRequired() + .HasColumnName("LastName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.Suffix) + .HasColumnName("Suffix") + .HasColumnType("nvarchar(10)") + .HasMaxLength(10); + + builder.Property(t => t.PhoneNumber) + .HasColumnName("PhoneNumber") + .HasColumnType("nvarchar(25)") + .HasMaxLength(25); + + builder.Property(t => t.PhoneNumberType) + .HasColumnName("PhoneNumberType") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.EmailAddress) + .HasColumnName("EmailAddress") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.EmailPromotion) + .IsRequired() + .HasColumnName("EmailPromotion") + .HasColumnType("int"); + + builder.Property(t => t.AddressType) + .IsRequired() + .HasColumnName("AddressType") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.AddressLine1) + .IsRequired() + .HasColumnName("AddressLine1") + .HasColumnType("nvarchar(60)") + .HasMaxLength(60); + + builder.Property(t => t.AddressLine2) + .HasColumnName("AddressLine2") + .HasColumnType("nvarchar(60)") + .HasMaxLength(60); + + builder.Property(t => t.City) + .IsRequired() + .HasColumnName("City") + .HasColumnType("nvarchar(30)") + .HasMaxLength(30); + + builder.Property(t => t.StateProvinceName) + .IsRequired() + .HasColumnName("StateProvinceName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.PostalCode) + .IsRequired() + .HasColumnName("PostalCode") + .HasColumnType("nvarchar(15)") + .HasMaxLength(15); + + builder.Property(t => t.CountryRegionName) + .IsRequired() + .HasColumnName("CountryRegionName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.Demographics) + .HasColumnName("Demographics") + .HasColumnType("xml"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Sales"; + /// Table Name constant for entity + public const string Name = "vIndividualCustomer"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string BusinessEntityId = "BusinessEntityID"; + /// Column Name constant for property + public const string Title = "Title"; + /// Column Name constant for property + public const string FirstName = "FirstName"; + /// Column Name constant for property + public const string MiddleName = "MiddleName"; + /// Column Name constant for property + public const string LastName = "LastName"; + /// Column Name constant for property + public const string Suffix = "Suffix"; + /// Column Name constant for property + public const string PhoneNumber = "PhoneNumber"; + /// Column Name constant for property + public const string PhoneNumberType = "PhoneNumberType"; + /// Column Name constant for property + public const string EmailAddress = "EmailAddress"; + /// Column Name constant for property + public const string EmailPromotion = "EmailPromotion"; + /// Column Name constant for property + public const string AddressType = "AddressType"; + /// Column Name constant for property + public const string AddressLine1 = "AddressLine1"; + /// Column Name constant for property + public const string AddressLine2 = "AddressLine2"; + /// Column Name constant for property + public const string City = "City"; + /// Column Name constant for property + public const string StateProvinceName = "StateProvinceName"; + /// Column Name constant for property + public const string PostalCode = "PostalCode"; + /// Column Name constant for property + public const string CountryRegionName = "CountryRegionName"; + /// Column Name constant for property + public const string Demographics = "Demographics"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VJobCandidateConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VJobCandidateConfiguration.cs new file mode 100644 index 0000000..0746f78 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VJobCandidateConfiguration.cs @@ -0,0 +1,154 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class VJobCandidateConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToView("vJobCandidate", "HumanResources"); + + // key + builder.HasNoKey(); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("JobCandidateID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.BusinessEntityId) + .HasColumnName("BusinessEntityID") + .HasColumnType("int"); + + builder.Property(t => t.NamePrefix) + .HasColumnName("Name.Prefix") + .HasColumnType("nvarchar(30)") + .HasMaxLength(30); + + builder.Property(t => t.NameFirst) + .HasColumnName("Name.First") + .HasColumnType("nvarchar(30)") + .HasMaxLength(30); + + builder.Property(t => t.NameMiddle) + .HasColumnName("Name.Middle") + .HasColumnType("nvarchar(30)") + .HasMaxLength(30); + + builder.Property(t => t.NameLast) + .HasColumnName("Name.Last") + .HasColumnType("nvarchar(30)") + .HasMaxLength(30); + + builder.Property(t => t.NameSuffix) + .HasColumnName("Name.Suffix") + .HasColumnType("nvarchar(30)") + .HasMaxLength(30); + + builder.Property(t => t.Skills) + .HasColumnName("Skills") + .HasColumnType("nvarchar(max)"); + + builder.Property(t => t.AddrType) + .HasColumnName("Addr.Type") + .HasColumnType("nvarchar(30)") + .HasMaxLength(30); + + builder.Property(t => t.AddrLocCountryRegion) + .HasColumnName("Addr.Loc.CountryRegion") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + builder.Property(t => t.AddrLocState) + .HasColumnName("Addr.Loc.State") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + builder.Property(t => t.AddrLocCity) + .HasColumnName("Addr.Loc.City") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + builder.Property(t => t.AddrPostalCode) + .HasColumnName("Addr.PostalCode") + .HasColumnType("nvarchar(20)") + .HasMaxLength(20); + + builder.Property(t => t.EMail) + .HasColumnName("EMail") + .HasColumnType("nvarchar(max)"); + + builder.Property(t => t.WebSite) + .HasColumnName("WebSite") + .HasColumnType("nvarchar(max)"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "HumanResources"; + /// Table Name constant for entity + public const string Name = "vJobCandidate"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "JobCandidateID"; + /// Column Name constant for property + public const string BusinessEntityId = "BusinessEntityID"; + /// Column Name constant for property + public const string NamePrefix = "Name.Prefix"; + /// Column Name constant for property + public const string NameFirst = "Name.First"; + /// Column Name constant for property + public const string NameMiddle = "Name.Middle"; + /// Column Name constant for property + public const string NameLast = "Name.Last"; + /// Column Name constant for property + public const string NameSuffix = "Name.Suffix"; + /// Column Name constant for property + public const string Skills = "Skills"; + /// Column Name constant for property + public const string AddrType = "Addr.Type"; + /// Column Name constant for property + public const string AddrLocCountryRegion = "Addr.Loc.CountryRegion"; + /// Column Name constant for property + public const string AddrLocState = "Addr.Loc.State"; + /// Column Name constant for property + public const string AddrLocCity = "Addr.Loc.City"; + /// Column Name constant for property + public const string AddrPostalCode = "Addr.PostalCode"; + /// Column Name constant for property + public const string EMail = "EMail"; + /// Column Name constant for property + public const string WebSite = "WebSite"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VJobCandidateEducationConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VJobCandidateEducationConfiguration.cs new file mode 100644 index 0000000..09134dc --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VJobCandidateEducationConfiguration.cs @@ -0,0 +1,134 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class VJobCandidateEducationConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToView("vJobCandidateEducation", "HumanResources"); + + // key + builder.HasNoKey(); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("JobCandidateID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.EduLevel) + .HasColumnName("Edu.Level") + .HasColumnType("nvarchar(max)"); + + builder.Property(t => t.EduStartDate) + .HasColumnName("Edu.StartDate") + .HasColumnType("datetime"); + + builder.Property(t => t.EduEndDate) + .HasColumnName("Edu.EndDate") + .HasColumnType("datetime"); + + builder.Property(t => t.EduDegree) + .HasColumnName("Edu.Degree") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.EduMajor) + .HasColumnName("Edu.Major") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.EduMinor) + .HasColumnName("Edu.Minor") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.EduGPA) + .HasColumnName("Edu.GPA") + .HasColumnType("nvarchar(5)") + .HasMaxLength(5); + + builder.Property(t => t.EduGPAScale) + .HasColumnName("Edu.GPAScale") + .HasColumnType("nvarchar(5)") + .HasMaxLength(5); + + builder.Property(t => t.EduSchool) + .HasColumnName("Edu.School") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + builder.Property(t => t.EduLocCountryRegion) + .HasColumnName("Edu.Loc.CountryRegion") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + builder.Property(t => t.EduLocState) + .HasColumnName("Edu.Loc.State") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + builder.Property(t => t.EduLocCity) + .HasColumnName("Edu.Loc.City") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "HumanResources"; + /// Table Name constant for entity + public const string Name = "vJobCandidateEducation"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "JobCandidateID"; + /// Column Name constant for property + public const string EduLevel = "Edu.Level"; + /// Column Name constant for property + public const string EduStartDate = "Edu.StartDate"; + /// Column Name constant for property + public const string EduEndDate = "Edu.EndDate"; + /// Column Name constant for property + public const string EduDegree = "Edu.Degree"; + /// Column Name constant for property + public const string EduMajor = "Edu.Major"; + /// Column Name constant for property + public const string EduMinor = "Edu.Minor"; + /// Column Name constant for property + public const string EduGPA = "Edu.GPA"; + /// Column Name constant for property + public const string EduGPAScale = "Edu.GPAScale"; + /// Column Name constant for property + public const string EduSchool = "Edu.School"; + /// Column Name constant for property + public const string EduLocCountryRegion = "Edu.Loc.CountryRegion"; + /// Column Name constant for property + public const string EduLocState = "Edu.Loc.State"; + /// Column Name constant for property + public const string EduLocCity = "Edu.Loc.City"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VJobCandidateEmploymentConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VJobCandidateEmploymentConfiguration.cs new file mode 100644 index 0000000..98de36d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VJobCandidateEmploymentConfiguration.cs @@ -0,0 +1,115 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class VJobCandidateEmploymentConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToView("vJobCandidateEmployment", "HumanResources"); + + // key + builder.HasNoKey(); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("JobCandidateID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.EmpStartDate) + .HasColumnName("Emp.StartDate") + .HasColumnType("datetime"); + + builder.Property(t => t.EmpEndDate) + .HasColumnName("Emp.EndDate") + .HasColumnType("datetime"); + + builder.Property(t => t.EmpOrgName) + .HasColumnName("Emp.OrgName") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + builder.Property(t => t.EmpJobTitle) + .HasColumnName("Emp.JobTitle") + .HasColumnType("nvarchar(100)") + .HasMaxLength(100); + + builder.Property(t => t.EmpResponsibility) + .HasColumnName("Emp.Responsibility") + .HasColumnType("nvarchar(max)"); + + builder.Property(t => t.EmpFunctionCategory) + .HasColumnName("Emp.FunctionCategory") + .HasColumnType("nvarchar(max)"); + + builder.Property(t => t.EmpIndustryCategory) + .HasColumnName("Emp.IndustryCategory") + .HasColumnType("nvarchar(max)"); + + builder.Property(t => t.EmpLocCountryRegion) + .HasColumnName("Emp.Loc.CountryRegion") + .HasColumnType("nvarchar(max)"); + + builder.Property(t => t.EmpLocState) + .HasColumnName("Emp.Loc.State") + .HasColumnType("nvarchar(max)"); + + builder.Property(t => t.EmpLocCity) + .HasColumnName("Emp.Loc.City") + .HasColumnType("nvarchar(max)"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "HumanResources"; + /// Table Name constant for entity + public const string Name = "vJobCandidateEmployment"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "JobCandidateID"; + /// Column Name constant for property + public const string EmpStartDate = "Emp.StartDate"; + /// Column Name constant for property + public const string EmpEndDate = "Emp.EndDate"; + /// Column Name constant for property + public const string EmpOrgName = "Emp.OrgName"; + /// Column Name constant for property + public const string EmpJobTitle = "Emp.JobTitle"; + /// Column Name constant for property + public const string EmpResponsibility = "Emp.Responsibility"; + /// Column Name constant for property + public const string EmpFunctionCategory = "Emp.FunctionCategory"; + /// Column Name constant for property + public const string EmpIndustryCategory = "Emp.IndustryCategory"; + /// Column Name constant for property + public const string EmpLocCountryRegion = "Emp.Loc.CountryRegion"; + /// Column Name constant for property + public const string EmpLocState = "Emp.Loc.State"; + /// Column Name constant for property + public const string EmpLocCity = "Emp.Loc.City"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VPersonDemographicsConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VPersonDemographicsConfiguration.cs new file mode 100644 index 0000000..32b15e9 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VPersonDemographicsConfiguration.cs @@ -0,0 +1,129 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class VPersonDemographicsConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToView("vPersonDemographics", "Sales"); + + // key + builder.HasNoKey(); + + // properties + builder.Property(t => t.BusinessEntityId) + .IsRequired() + .HasColumnName("BusinessEntityID") + .HasColumnType("int"); + + builder.Property(t => t.TotalPurchaseYTD) + .HasColumnName("TotalPurchaseYTD") + .HasColumnType("money"); + + builder.Property(t => t.DateFirstPurchase) + .HasColumnName("DateFirstPurchase") + .HasColumnType("datetime"); + + builder.Property(t => t.BirthDate) + .HasColumnName("BirthDate") + .HasColumnType("datetime"); + + builder.Property(t => t.MaritalStatus) + .HasColumnName("MaritalStatus") + .HasColumnType("nvarchar(1)") + .HasMaxLength(1); + + builder.Property(t => t.YearlyIncome) + .HasColumnName("YearlyIncome") + .HasColumnType("nvarchar(30)") + .HasMaxLength(30); + + builder.Property(t => t.Gender) + .HasColumnName("Gender") + .HasColumnType("nvarchar(1)") + .HasMaxLength(1); + + builder.Property(t => t.TotalChildren) + .HasColumnName("TotalChildren") + .HasColumnType("int"); + + builder.Property(t => t.NumberChildrenAtHome) + .HasColumnName("NumberChildrenAtHome") + .HasColumnType("int"); + + builder.Property(t => t.Education) + .HasColumnName("Education") + .HasColumnType("nvarchar(30)") + .HasMaxLength(30); + + builder.Property(t => t.Occupation) + .HasColumnName("Occupation") + .HasColumnType("nvarchar(30)") + .HasMaxLength(30); + + builder.Property(t => t.HomeOwnerFlag) + .HasColumnName("HomeOwnerFlag") + .HasColumnType("bit"); + + builder.Property(t => t.NumberCarsOwned) + .HasColumnName("NumberCarsOwned") + .HasColumnType("int"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Sales"; + /// Table Name constant for entity + public const string Name = "vPersonDemographics"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string BusinessEntityId = "BusinessEntityID"; + /// Column Name constant for property + public const string TotalPurchaseYTD = "TotalPurchaseYTD"; + /// Column Name constant for property + public const string DateFirstPurchase = "DateFirstPurchase"; + /// Column Name constant for property + public const string BirthDate = "BirthDate"; + /// Column Name constant for property + public const string MaritalStatus = "MaritalStatus"; + /// Column Name constant for property + public const string YearlyIncome = "YearlyIncome"; + /// Column Name constant for property + public const string Gender = "Gender"; + /// Column Name constant for property + public const string TotalChildren = "TotalChildren"; + /// Column Name constant for property + public const string NumberChildrenAtHome = "NumberChildrenAtHome"; + /// Column Name constant for property + public const string Education = "Education"; + /// Column Name constant for property + public const string Occupation = "Occupation"; + /// Column Name constant for property + public const string HomeOwnerFlag = "HomeOwnerFlag"; + /// Column Name constant for property + public const string NumberCarsOwned = "NumberCarsOwned"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VProductAndDescriptionConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VProductAndDescriptionConfiguration.cs new file mode 100644 index 0000000..cee85a0 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VProductAndDescriptionConfiguration.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class VProductAndDescriptionConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToView("vProductAndDescription", "Production"); + + // key + builder.HasNoKey(); + + // properties + builder.Property(t => t.ProductId) + .IsRequired() + .HasColumnName("ProductID") + .HasColumnType("int"); + + builder.Property(t => t.Name) + .IsRequired() + .HasColumnName("Name") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.ProductModel) + .IsRequired() + .HasColumnName("ProductModel") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.CultureId) + .IsRequired() + .HasColumnName("CultureID") + .HasColumnType("nchar(6)") + .HasMaxLength(6); + + builder.Property(t => t.Description) + .IsRequired() + .HasColumnName("Description") + .HasColumnType("nvarchar(400)") + .HasMaxLength(400); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Production"; + /// Table Name constant for entity + public const string Name = "vProductAndDescription"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string ProductId = "ProductID"; + /// Column Name constant for property + public const string Name = "Name"; + /// Column Name constant for property + public const string ProductModel = "ProductModel"; + /// Column Name constant for property + public const string CultureId = "CultureID"; + /// Column Name constant for property + public const string Description = "Description"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VProductModelCatalogDescriptionConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VProductModelCatalogDescriptionConfiguration.cs new file mode 100644 index 0000000..cfe17b6 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VProductModelCatalogDescriptionConfiguration.cs @@ -0,0 +1,219 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class VProductModelCatalogDescriptionConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToView("vProductModelCatalogDescription", "Production"); + + // key + builder.HasNoKey(); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("ProductModelID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.Name) + .IsRequired() + .HasColumnName("Name") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.Summary) + .HasColumnName("Summary") + .HasColumnType("nvarchar(max)"); + + builder.Property(t => t.Manufacturer) + .HasColumnName("Manufacturer") + .HasColumnType("nvarchar(max)"); + + builder.Property(t => t.Copyright) + .HasColumnName("Copyright") + .HasColumnType("nvarchar(30)") + .HasMaxLength(30); + + builder.Property(t => t.ProductURL) + .HasColumnName("ProductURL") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + builder.Property(t => t.WarrantyPeriod) + .HasColumnName("WarrantyPeriod") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + builder.Property(t => t.WarrantyDescription) + .HasColumnName("WarrantyDescription") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + builder.Property(t => t.NoOfYears) + .HasColumnName("NoOfYears") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + builder.Property(t => t.MaintenanceDescription) + .HasColumnName("MaintenanceDescription") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + builder.Property(t => t.Wheel) + .HasColumnName("Wheel") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + builder.Property(t => t.Saddle) + .HasColumnName("Saddle") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + builder.Property(t => t.Pedal) + .HasColumnName("Pedal") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + builder.Property(t => t.BikeFrame) + .HasColumnName("BikeFrame") + .HasColumnType("nvarchar(max)"); + + builder.Property(t => t.Crankset) + .HasColumnName("Crankset") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + builder.Property(t => t.PictureAngle) + .HasColumnName("PictureAngle") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + builder.Property(t => t.PictureSize) + .HasColumnName("PictureSize") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + builder.Property(t => t.ProductPhotoId) + .HasColumnName("ProductPhotoID") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + builder.Property(t => t.Material) + .HasColumnName("Material") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + builder.Property(t => t.Color) + .HasColumnName("Color") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + builder.Property(t => t.ProductLine) + .HasColumnName("ProductLine") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + builder.Property(t => t.Style) + .HasColumnName("Style") + .HasColumnType("nvarchar(256)") + .HasMaxLength(256); + + builder.Property(t => t.RiderExperience) + .HasColumnName("RiderExperience") + .HasColumnType("nvarchar(1024)") + .HasMaxLength(1024); + + builder.Property(t => t.Rowguid) + .IsRequired() + .HasColumnName("rowguid") + .HasColumnType("uniqueidentifier"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Production"; + /// Table Name constant for entity + public const string Name = "vProductModelCatalogDescription"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "ProductModelID"; + /// Column Name constant for property + public const string Name = "Name"; + /// Column Name constant for property + public const string Summary = "Summary"; + /// Column Name constant for property + public const string Manufacturer = "Manufacturer"; + /// Column Name constant for property + public const string Copyright = "Copyright"; + /// Column Name constant for property + public const string ProductURL = "ProductURL"; + /// Column Name constant for property + public const string WarrantyPeriod = "WarrantyPeriod"; + /// Column Name constant for property + public const string WarrantyDescription = "WarrantyDescription"; + /// Column Name constant for property + public const string NoOfYears = "NoOfYears"; + /// Column Name constant for property + public const string MaintenanceDescription = "MaintenanceDescription"; + /// Column Name constant for property + public const string Wheel = "Wheel"; + /// Column Name constant for property + public const string Saddle = "Saddle"; + /// Column Name constant for property + public const string Pedal = "Pedal"; + /// Column Name constant for property + public const string BikeFrame = "BikeFrame"; + /// Column Name constant for property + public const string Crankset = "Crankset"; + /// Column Name constant for property + public const string PictureAngle = "PictureAngle"; + /// Column Name constant for property + public const string PictureSize = "PictureSize"; + /// Column Name constant for property + public const string ProductPhotoId = "ProductPhotoID"; + /// Column Name constant for property + public const string Material = "Material"; + /// Column Name constant for property + public const string Color = "Color"; + /// Column Name constant for property + public const string ProductLine = "ProductLine"; + /// Column Name constant for property + public const string Style = "Style"; + /// Column Name constant for property + public const string RiderExperience = "RiderExperience"; + /// Column Name constant for property + public const string Rowguid = "rowguid"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VProductModelInstructionsConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VProductModelInstructionsConfiguration.cs new file mode 100644 index 0000000..80a68c1 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VProductModelInstructionsConfiguration.cs @@ -0,0 +1,118 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class VProductModelInstructionsConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToView("vProductModelInstructions", "Production"); + + // key + builder.HasNoKey(); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("ProductModelID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.Name) + .IsRequired() + .HasColumnName("Name") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.Instructions) + .HasColumnName("Instructions") + .HasColumnType("nvarchar(max)"); + + builder.Property(t => t.LocationId) + .HasColumnName("LocationID") + .HasColumnType("int"); + + builder.Property(t => t.SetupHours) + .HasColumnName("SetupHours") + .HasColumnType("decimal(9,4)"); + + builder.Property(t => t.MachineHours) + .HasColumnName("MachineHours") + .HasColumnType("decimal(9,4)"); + + builder.Property(t => t.LaborHours) + .HasColumnName("LaborHours") + .HasColumnType("decimal(9,4)"); + + builder.Property(t => t.LotSize) + .HasColumnName("LotSize") + .HasColumnType("int"); + + builder.Property(t => t.Step) + .HasColumnName("Step") + .HasColumnType("nvarchar(1024)") + .HasMaxLength(1024); + + builder.Property(t => t.Rowguid) + .IsRequired() + .HasColumnName("rowguid") + .HasColumnType("uniqueidentifier"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Production"; + /// Table Name constant for entity + public const string Name = "vProductModelInstructions"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "ProductModelID"; + /// Column Name constant for property + public const string Name = "Name"; + /// Column Name constant for property + public const string Instructions = "Instructions"; + /// Column Name constant for property + public const string LocationId = "LocationID"; + /// Column Name constant for property + public const string SetupHours = "SetupHours"; + /// Column Name constant for property + public const string MachineHours = "MachineHours"; + /// Column Name constant for property + public const string LaborHours = "LaborHours"; + /// Column Name constant for property + public const string LotSize = "LotSize"; + /// Column Name constant for property + public const string Step = "Step"; + /// Column Name constant for property + public const string Rowguid = "rowguid"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VSalesPersonConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VSalesPersonConfiguration.cs new file mode 100644 index 0000000..0a0cc85 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VSalesPersonConfiguration.cs @@ -0,0 +1,206 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class VSalesPersonConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToView("vSalesPerson", "Sales"); + + // key + builder.HasNoKey(); + + // properties + builder.Property(t => t.BusinessEntityId) + .IsRequired() + .HasColumnName("BusinessEntityID") + .HasColumnType("int"); + + builder.Property(t => t.Title) + .HasColumnName("Title") + .HasColumnType("nvarchar(8)") + .HasMaxLength(8); + + builder.Property(t => t.FirstName) + .IsRequired() + .HasColumnName("FirstName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.MiddleName) + .HasColumnName("MiddleName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.LastName) + .IsRequired() + .HasColumnName("LastName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.Suffix) + .HasColumnName("Suffix") + .HasColumnType("nvarchar(10)") + .HasMaxLength(10); + + builder.Property(t => t.JobTitle) + .IsRequired() + .HasColumnName("JobTitle") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.PhoneNumber) + .HasColumnName("PhoneNumber") + .HasColumnType("nvarchar(25)") + .HasMaxLength(25); + + builder.Property(t => t.PhoneNumberType) + .HasColumnName("PhoneNumberType") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.EmailAddress) + .HasColumnName("EmailAddress") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.EmailPromotion) + .IsRequired() + .HasColumnName("EmailPromotion") + .HasColumnType("int"); + + builder.Property(t => t.AddressLine1) + .IsRequired() + .HasColumnName("AddressLine1") + .HasColumnType("nvarchar(60)") + .HasMaxLength(60); + + builder.Property(t => t.AddressLine2) + .HasColumnName("AddressLine2") + .HasColumnType("nvarchar(60)") + .HasMaxLength(60); + + builder.Property(t => t.City) + .IsRequired() + .HasColumnName("City") + .HasColumnType("nvarchar(30)") + .HasMaxLength(30); + + builder.Property(t => t.StateProvinceName) + .IsRequired() + .HasColumnName("StateProvinceName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.PostalCode) + .IsRequired() + .HasColumnName("PostalCode") + .HasColumnType("nvarchar(15)") + .HasMaxLength(15); + + builder.Property(t => t.CountryRegionName) + .IsRequired() + .HasColumnName("CountryRegionName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.TerritoryName) + .HasColumnName("TerritoryName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.TerritoryGroup) + .HasColumnName("TerritoryGroup") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.SalesQuota) + .HasColumnName("SalesQuota") + .HasColumnType("money"); + + builder.Property(t => t.SalesYTD) + .IsRequired() + .HasColumnName("SalesYTD") + .HasColumnType("money"); + + builder.Property(t => t.SalesLastYear) + .IsRequired() + .HasColumnName("SalesLastYear") + .HasColumnType("money"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Sales"; + /// Table Name constant for entity + public const string Name = "vSalesPerson"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string BusinessEntityId = "BusinessEntityID"; + /// Column Name constant for property + public const string Title = "Title"; + /// Column Name constant for property + public const string FirstName = "FirstName"; + /// Column Name constant for property + public const string MiddleName = "MiddleName"; + /// Column Name constant for property + public const string LastName = "LastName"; + /// Column Name constant for property + public const string Suffix = "Suffix"; + /// Column Name constant for property + public const string JobTitle = "JobTitle"; + /// Column Name constant for property + public const string PhoneNumber = "PhoneNumber"; + /// Column Name constant for property + public const string PhoneNumberType = "PhoneNumberType"; + /// Column Name constant for property + public const string EmailAddress = "EmailAddress"; + /// Column Name constant for property + public const string EmailPromotion = "EmailPromotion"; + /// Column Name constant for property + public const string AddressLine1 = "AddressLine1"; + /// Column Name constant for property + public const string AddressLine2 = "AddressLine2"; + /// Column Name constant for property + public const string City = "City"; + /// Column Name constant for property + public const string StateProvinceName = "StateProvinceName"; + /// Column Name constant for property + public const string PostalCode = "PostalCode"; + /// Column Name constant for property + public const string CountryRegionName = "CountryRegionName"; + /// Column Name constant for property + public const string TerritoryName = "TerritoryName"; + /// Column Name constant for property + public const string TerritoryGroup = "TerritoryGroup"; + /// Column Name constant for property + public const string SalesQuota = "SalesQuota"; + /// Column Name constant for property + public const string SalesYTD = "SalesYTD"; + /// Column Name constant for property + public const string SalesLastYear = "SalesLastYear"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VSalesPersonSalesByFiscalYearsConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VSalesPersonSalesByFiscalYearsConfiguration.cs new file mode 100644 index 0000000..468ffa3 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VSalesPersonSalesByFiscalYearsConfiguration.cs @@ -0,0 +1,92 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class VSalesPersonSalesByFiscalYearsConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToView("vSalesPersonSalesByFiscalYears", "Sales"); + + // key + builder.HasNoKey(); + + // properties + builder.Property(t => t.SalesPersonId) + .HasColumnName("SalesPersonID") + .HasColumnType("int"); + + builder.Property(t => t.FullName) + .HasColumnName("FullName") + .HasColumnType("nvarchar(152)") + .HasMaxLength(152); + + builder.Property(t => t.JobTitle) + .IsRequired() + .HasColumnName("JobTitle") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.SalesTerritory) + .IsRequired() + .HasColumnName("SalesTerritory") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.Number2002) + .HasColumnName("2002") + .HasColumnType("money"); + + builder.Property(t => t.Number2003) + .HasColumnName("2003") + .HasColumnType("money"); + + builder.Property(t => t.Number2004) + .HasColumnName("2004") + .HasColumnType("money"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Sales"; + /// Table Name constant for entity + public const string Name = "vSalesPersonSalesByFiscalYears"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string SalesPersonId = "SalesPersonID"; + /// Column Name constant for property + public const string FullName = "FullName"; + /// Column Name constant for property + public const string JobTitle = "JobTitle"; + /// Column Name constant for property + public const string SalesTerritory = "SalesTerritory"; + /// Column Name constant for property + public const string Number2002 = "2002"; + /// Column Name constant for property + public const string Number2003 = "2003"; + /// Column Name constant for property + public const string Number2004 = "2004"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStateProvinceCountryRegionConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStateProvinceCountryRegionConfiguration.cs new file mode 100644 index 0000000..bc80f1b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStateProvinceCountryRegionConfiguration.cs @@ -0,0 +1,98 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class VStateProvinceCountryRegionConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToView("vStateProvinceCountryRegion", "Person"); + + // key + builder.HasNoKey(); + + // properties + builder.Property(t => t.StateProvinceId) + .IsRequired() + .HasColumnName("StateProvinceID") + .HasColumnType("int"); + + builder.Property(t => t.StateProvinceCode) + .IsRequired() + .HasColumnName("StateProvinceCode") + .HasColumnType("nchar(3)") + .HasMaxLength(3); + + builder.Property(t => t.IsOnlyStateProvinceFlag) + .IsRequired() + .HasColumnName("IsOnlyStateProvinceFlag") + .HasColumnType("bit"); + + builder.Property(t => t.StateProvinceName) + .IsRequired() + .HasColumnName("StateProvinceName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.TerritoryId) + .IsRequired() + .HasColumnName("TerritoryID") + .HasColumnType("int"); + + builder.Property(t => t.CountryRegionCode) + .IsRequired() + .HasColumnName("CountryRegionCode") + .HasColumnType("nvarchar(3)") + .HasMaxLength(3); + + builder.Property(t => t.CountryRegionName) + .IsRequired() + .HasColumnName("CountryRegionName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Person"; + /// Table Name constant for entity + public const string Name = "vStateProvinceCountryRegion"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string StateProvinceId = "StateProvinceID"; + /// Column Name constant for property + public const string StateProvinceCode = "StateProvinceCode"; + /// Column Name constant for property + public const string IsOnlyStateProvinceFlag = "IsOnlyStateProvinceFlag"; + /// Column Name constant for property + public const string StateProvinceName = "StateProvinceName"; + /// Column Name constant for property + public const string TerritoryId = "TerritoryID"; + /// Column Name constant for property + public const string CountryRegionCode = "CountryRegionCode"; + /// Column Name constant for property + public const string CountryRegionName = "CountryRegionName"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStoreWithAddressesConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStoreWithAddressesConfiguration.cs new file mode 100644 index 0000000..4ed8066 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStoreWithAddressesConfiguration.cs @@ -0,0 +1,115 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class VStoreWithAddressesConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToView("vStoreWithAddresses", "Sales"); + + // key + builder.HasNoKey(); + + // properties + builder.Property(t => t.BusinessEntityId) + .IsRequired() + .HasColumnName("BusinessEntityID") + .HasColumnType("int"); + + builder.Property(t => t.Name) + .IsRequired() + .HasColumnName("Name") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.AddressType) + .IsRequired() + .HasColumnName("AddressType") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.AddressLine1) + .IsRequired() + .HasColumnName("AddressLine1") + .HasColumnType("nvarchar(60)") + .HasMaxLength(60); + + builder.Property(t => t.AddressLine2) + .HasColumnName("AddressLine2") + .HasColumnType("nvarchar(60)") + .HasMaxLength(60); + + builder.Property(t => t.City) + .IsRequired() + .HasColumnName("City") + .HasColumnType("nvarchar(30)") + .HasMaxLength(30); + + builder.Property(t => t.StateProvinceName) + .IsRequired() + .HasColumnName("StateProvinceName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.PostalCode) + .IsRequired() + .HasColumnName("PostalCode") + .HasColumnType("nvarchar(15)") + .HasMaxLength(15); + + builder.Property(t => t.CountryRegionName) + .IsRequired() + .HasColumnName("CountryRegionName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Sales"; + /// Table Name constant for entity + public const string Name = "vStoreWithAddresses"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string BusinessEntityId = "BusinessEntityID"; + /// Column Name constant for property + public const string Name = "Name"; + /// Column Name constant for property + public const string AddressType = "AddressType"; + /// Column Name constant for property + public const string AddressLine1 = "AddressLine1"; + /// Column Name constant for property + public const string AddressLine2 = "AddressLine2"; + /// Column Name constant for property + public const string City = "City"; + /// Column Name constant for property + public const string StateProvinceName = "StateProvinceName"; + /// Column Name constant for property + public const string PostalCode = "PostalCode"; + /// Column Name constant for property + public const string CountryRegionName = "CountryRegionName"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStoreWithContactsConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStoreWithContactsConfiguration.cs new file mode 100644 index 0000000..52fea03 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStoreWithContactsConfiguration.cs @@ -0,0 +1,133 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class VStoreWithContactsConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToView("vStoreWithContacts", "Sales"); + + // key + builder.HasNoKey(); + + // properties + builder.Property(t => t.BusinessEntityId) + .IsRequired() + .HasColumnName("BusinessEntityID") + .HasColumnType("int"); + + builder.Property(t => t.Name) + .IsRequired() + .HasColumnName("Name") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.ContactType) + .IsRequired() + .HasColumnName("ContactType") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.Title) + .HasColumnName("Title") + .HasColumnType("nvarchar(8)") + .HasMaxLength(8); + + builder.Property(t => t.FirstName) + .IsRequired() + .HasColumnName("FirstName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.MiddleName) + .HasColumnName("MiddleName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.LastName) + .IsRequired() + .HasColumnName("LastName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.Suffix) + .HasColumnName("Suffix") + .HasColumnType("nvarchar(10)") + .HasMaxLength(10); + + builder.Property(t => t.PhoneNumber) + .HasColumnName("PhoneNumber") + .HasColumnType("nvarchar(25)") + .HasMaxLength(25); + + builder.Property(t => t.PhoneNumberType) + .HasColumnName("PhoneNumberType") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.EmailAddress) + .HasColumnName("EmailAddress") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.EmailPromotion) + .IsRequired() + .HasColumnName("EmailPromotion") + .HasColumnType("int"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Sales"; + /// Table Name constant for entity + public const string Name = "vStoreWithContacts"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string BusinessEntityId = "BusinessEntityID"; + /// Column Name constant for property + public const string Name = "Name"; + /// Column Name constant for property + public const string ContactType = "ContactType"; + /// Column Name constant for property + public const string Title = "Title"; + /// Column Name constant for property + public const string FirstName = "FirstName"; + /// Column Name constant for property + public const string MiddleName = "MiddleName"; + /// Column Name constant for property + public const string LastName = "LastName"; + /// Column Name constant for property + public const string Suffix = "Suffix"; + /// Column Name constant for property + public const string PhoneNumber = "PhoneNumber"; + /// Column Name constant for property + public const string PhoneNumberType = "PhoneNumberType"; + /// Column Name constant for property + public const string EmailAddress = "EmailAddress"; + /// Column Name constant for property + public const string EmailPromotion = "EmailPromotion"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStoreWithDemographicsConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStoreWithDemographicsConfiguration.cs new file mode 100644 index 0000000..9c21122 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStoreWithDemographicsConfiguration.cs @@ -0,0 +1,125 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class VStoreWithDemographicsConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToView("vStoreWithDemographics", "Sales"); + + // key + builder.HasNoKey(); + + // properties + builder.Property(t => t.BusinessEntityId) + .IsRequired() + .HasColumnName("BusinessEntityID") + .HasColumnType("int"); + + builder.Property(t => t.Name) + .IsRequired() + .HasColumnName("Name") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.AnnualSales) + .HasColumnName("AnnualSales") + .HasColumnType("money"); + + builder.Property(t => t.AnnualRevenue) + .HasColumnName("AnnualRevenue") + .HasColumnType("money"); + + builder.Property(t => t.BankName) + .HasColumnName("BankName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.BusinessType) + .HasColumnName("BusinessType") + .HasColumnType("nvarchar(5)") + .HasMaxLength(5); + + builder.Property(t => t.YearOpened) + .HasColumnName("YearOpened") + .HasColumnType("int"); + + builder.Property(t => t.Specialty) + .HasColumnName("Specialty") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.SquareFeet) + .HasColumnName("SquareFeet") + .HasColumnType("int"); + + builder.Property(t => t.Brands) + .HasColumnName("Brands") + .HasColumnType("nvarchar(30)") + .HasMaxLength(30); + + builder.Property(t => t.Internet) + .HasColumnName("Internet") + .HasColumnType("nvarchar(30)") + .HasMaxLength(30); + + builder.Property(t => t.NumberEmployees) + .HasColumnName("NumberEmployees") + .HasColumnType("int"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Sales"; + /// Table Name constant for entity + public const string Name = "vStoreWithDemographics"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string BusinessEntityId = "BusinessEntityID"; + /// Column Name constant for property + public const string Name = "Name"; + /// Column Name constant for property + public const string AnnualSales = "AnnualSales"; + /// Column Name constant for property + public const string AnnualRevenue = "AnnualRevenue"; + /// Column Name constant for property + public const string BankName = "BankName"; + /// Column Name constant for property + public const string BusinessType = "BusinessType"; + /// Column Name constant for property + public const string YearOpened = "YearOpened"; + /// Column Name constant for property + public const string Specialty = "Specialty"; + /// Column Name constant for property + public const string SquareFeet = "SquareFeet"; + /// Column Name constant for property + public const string Brands = "Brands"; + /// Column Name constant for property + public const string Internet = "Internet"; + /// Column Name constant for property + public const string NumberEmployees = "NumberEmployees"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VVendorWithAddressesConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VVendorWithAddressesConfiguration.cs new file mode 100644 index 0000000..6f1df03 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VVendorWithAddressesConfiguration.cs @@ -0,0 +1,115 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class VVendorWithAddressesConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToView("vVendorWithAddresses", "Purchasing"); + + // key + builder.HasNoKey(); + + // properties + builder.Property(t => t.BusinessEntityId) + .IsRequired() + .HasColumnName("BusinessEntityID") + .HasColumnType("int"); + + builder.Property(t => t.Name) + .IsRequired() + .HasColumnName("Name") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.AddressType) + .IsRequired() + .HasColumnName("AddressType") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.AddressLine1) + .IsRequired() + .HasColumnName("AddressLine1") + .HasColumnType("nvarchar(60)") + .HasMaxLength(60); + + builder.Property(t => t.AddressLine2) + .HasColumnName("AddressLine2") + .HasColumnType("nvarchar(60)") + .HasMaxLength(60); + + builder.Property(t => t.City) + .IsRequired() + .HasColumnName("City") + .HasColumnType("nvarchar(30)") + .HasMaxLength(30); + + builder.Property(t => t.StateProvinceName) + .IsRequired() + .HasColumnName("StateProvinceName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.PostalCode) + .IsRequired() + .HasColumnName("PostalCode") + .HasColumnType("nvarchar(15)") + .HasMaxLength(15); + + builder.Property(t => t.CountryRegionName) + .IsRequired() + .HasColumnName("CountryRegionName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Purchasing"; + /// Table Name constant for entity + public const string Name = "vVendorWithAddresses"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string BusinessEntityId = "BusinessEntityID"; + /// Column Name constant for property + public const string Name = "Name"; + /// Column Name constant for property + public const string AddressType = "AddressType"; + /// Column Name constant for property + public const string AddressLine1 = "AddressLine1"; + /// Column Name constant for property + public const string AddressLine2 = "AddressLine2"; + /// Column Name constant for property + public const string City = "City"; + /// Column Name constant for property + public const string StateProvinceName = "StateProvinceName"; + /// Column Name constant for property + public const string PostalCode = "PostalCode"; + /// Column Name constant for property + public const string CountryRegionName = "CountryRegionName"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VVendorWithContactsConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VVendorWithContactsConfiguration.cs new file mode 100644 index 0000000..c8766e6 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VVendorWithContactsConfiguration.cs @@ -0,0 +1,133 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class VVendorWithContactsConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToView("vVendorWithContacts", "Purchasing"); + + // key + builder.HasNoKey(); + + // properties + builder.Property(t => t.BusinessEntityId) + .IsRequired() + .HasColumnName("BusinessEntityID") + .HasColumnType("int"); + + builder.Property(t => t.Name) + .IsRequired() + .HasColumnName("Name") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.ContactType) + .IsRequired() + .HasColumnName("ContactType") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.Title) + .HasColumnName("Title") + .HasColumnType("nvarchar(8)") + .HasMaxLength(8); + + builder.Property(t => t.FirstName) + .IsRequired() + .HasColumnName("FirstName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.MiddleName) + .HasColumnName("MiddleName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.LastName) + .IsRequired() + .HasColumnName("LastName") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.Suffix) + .HasColumnName("Suffix") + .HasColumnType("nvarchar(10)") + .HasMaxLength(10); + + builder.Property(t => t.PhoneNumber) + .HasColumnName("PhoneNumber") + .HasColumnType("nvarchar(25)") + .HasMaxLength(25); + + builder.Property(t => t.PhoneNumberType) + .HasColumnName("PhoneNumberType") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.EmailAddress) + .HasColumnName("EmailAddress") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.EmailPromotion) + .IsRequired() + .HasColumnName("EmailPromotion") + .HasColumnType("int"); + + // relationships + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Purchasing"; + /// Table Name constant for entity + public const string Name = "vVendorWithContacts"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string BusinessEntityId = "BusinessEntityID"; + /// Column Name constant for property + public const string Name = "Name"; + /// Column Name constant for property + public const string ContactType = "ContactType"; + /// Column Name constant for property + public const string Title = "Title"; + /// Column Name constant for property + public const string FirstName = "FirstName"; + /// Column Name constant for property + public const string MiddleName = "MiddleName"; + /// Column Name constant for property + public const string LastName = "LastName"; + /// Column Name constant for property + public const string Suffix = "Suffix"; + /// Column Name constant for property + public const string PhoneNumber = "PhoneNumber"; + /// Column Name constant for property + public const string PhoneNumberType = "PhoneNumberType"; + /// Column Name constant for property + public const string EmailAddress = "EmailAddress"; + /// Column Name constant for property + public const string EmailPromotion = "EmailPromotion"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VendorConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VendorConfiguration.cs new file mode 100644 index 0000000..b908f23 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VendorConfiguration.cs @@ -0,0 +1,111 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class VendorConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("Vendor", "Purchasing"); + + // key + builder.HasKey(t => t.BusinessEntityId); + + // properties + builder.Property(t => t.BusinessEntityId) + .IsRequired() + .HasColumnName("BusinessEntityID") + .HasColumnType("int"); + + builder.Property(t => t.AccountNumber) + .IsRequired() + .HasColumnName("AccountNumber") + .HasColumnType("nvarchar(15)") + .HasMaxLength(15); + + builder.Property(t => t.Name) + .IsRequired() + .HasColumnName("Name") + .HasColumnType("nvarchar(50)") + .HasMaxLength(50); + + builder.Property(t => t.CreditRating) + .IsRequired() + .HasColumnName("CreditRating") + .HasColumnType("tinyint"); + + builder.Property(t => t.PreferredVendorStatus) + .IsRequired() + .HasColumnName("PreferredVendorStatus") + .HasColumnType("bit") + .HasDefaultValue(true); + + builder.Property(t => t.ActiveFlag) + .IsRequired() + .HasColumnName("ActiveFlag") + .HasColumnType("bit") + .HasDefaultValue(true); + + builder.Property(t => t.PurchasingWebServiceURL) + .HasColumnName("PurchasingWebServiceURL") + .HasColumnType("nvarchar(1024)") + .HasMaxLength(1024); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.BusinessEntity) + .WithOne(t => t.Vendor) + .HasForeignKey(d => d.BusinessEntityId) + .HasConstraintName("FK_Vendor_BusinessEntity_BusinessEntityID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Purchasing"; + /// Table Name constant for entity + public const string Name = "Vendor"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string BusinessEntityId = "BusinessEntityID"; + /// Column Name constant for property + public const string AccountNumber = "AccountNumber"; + /// Column Name constant for property + public const string Name = "Name"; + /// Column Name constant for property + public const string CreditRating = "CreditRating"; + /// Column Name constant for property + public const string PreferredVendorStatus = "PreferredVendorStatus"; + /// Column Name constant for property + public const string ActiveFlag = "ActiveFlag"; + /// Column Name constant for property + public const string PurchasingWebServiceURL = "PurchasingWebServiceURL"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/WorkOrderConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/WorkOrderConfiguration.cs new file mode 100644 index 0000000..2808b0f --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/WorkOrderConfiguration.cs @@ -0,0 +1,126 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class WorkOrderConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("WorkOrder", "Production"); + + // key + builder.HasKey(t => t.Id); + + // properties + builder.Property(t => t.Id) + .IsRequired() + .HasColumnName("WorkOrderID") + .HasColumnType("int") + .ValueGeneratedOnAdd(); + + builder.Property(t => t.ProductId) + .IsRequired() + .HasColumnName("ProductID") + .HasColumnType("int"); + + builder.Property(t => t.OrderQty) + .IsRequired() + .HasColumnName("OrderQty") + .HasColumnType("int"); + + builder.Property(t => t.StockedQty) + .IsRequired() + .HasColumnName("StockedQty") + .HasColumnType("int") + .ValueGeneratedOnAddOrUpdate(); + + builder.Property(t => t.ScrappedQty) + .IsRequired() + .HasColumnName("ScrappedQty") + .HasColumnType("smallint"); + + builder.Property(t => t.StartDate) + .IsRequired() + .HasColumnName("StartDate") + .HasColumnType("datetime"); + + builder.Property(t => t.EndDate) + .HasColumnName("EndDate") + .HasColumnType("datetime"); + + builder.Property(t => t.DueDate) + .IsRequired() + .HasColumnName("DueDate") + .HasColumnType("datetime"); + + builder.Property(t => t.ScrapReasonId) + .HasColumnName("ScrapReasonID") + .HasColumnType("smallint"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.Product) + .WithMany(t => t.WorkOrders) + .HasForeignKey(d => d.ProductId) + .HasConstraintName("FK_WorkOrder_Product_ProductID"); + + builder.HasOne(t => t.ScrapReason) + .WithMany(t => t.WorkOrders) + .HasForeignKey(d => d.ScrapReasonId) + .HasConstraintName("FK_WorkOrder_ScrapReason_ScrapReasonID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Production"; + /// Table Name constant for entity + public const string Name = "WorkOrder"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string Id = "WorkOrderID"; + /// Column Name constant for property + public const string ProductId = "ProductID"; + /// Column Name constant for property + public const string OrderQty = "OrderQty"; + /// Column Name constant for property + public const string StockedQty = "StockedQty"; + /// Column Name constant for property + public const string ScrappedQty = "ScrappedQty"; + /// Column Name constant for property + public const string StartDate = "StartDate"; + /// Column Name constant for property + public const string EndDate = "EndDate"; + /// Column Name constant for property + public const string DueDate = "DueDate"; + /// Column Name constant for property + public const string ScrapReasonId = "ScrapReasonID"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/WorkOrderRoutingConfiguration.cs b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/WorkOrderRoutingConfiguration.cs new file mode 100644 index 0000000..f1dae21 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/WorkOrderRoutingConfiguration.cs @@ -0,0 +1,136 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; + +namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; + +/// +/// Allows configuration for an entity type +/// +internal partial class WorkOrderRoutingConfiguration + : IEntityTypeConfiguration +{ + /// + /// Configures the entity of type + /// + /// The builder to be used to configure the entity type. + public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder builder) + { + #region Generated Configure + // table + builder.ToTable("WorkOrderRouting", "Production"); + + // key + builder.HasKey(t => new { t.WorkOrderId, t.ProductId, t.OperationSequence }); + + // properties + builder.Property(t => t.WorkOrderId) + .IsRequired() + .HasColumnName("WorkOrderID") + .HasColumnType("int"); + + builder.Property(t => t.ProductId) + .IsRequired() + .HasColumnName("ProductID") + .HasColumnType("int"); + + builder.Property(t => t.OperationSequence) + .IsRequired() + .HasColumnName("OperationSequence") + .HasColumnType("smallint"); + + builder.Property(t => t.LocationId) + .IsRequired() + .HasColumnName("LocationID") + .HasColumnType("smallint"); + + builder.Property(t => t.ScheduledStartDate) + .IsRequired() + .HasColumnName("ScheduledStartDate") + .HasColumnType("datetime"); + + builder.Property(t => t.ScheduledEndDate) + .IsRequired() + .HasColumnName("ScheduledEndDate") + .HasColumnType("datetime"); + + builder.Property(t => t.ActualStartDate) + .HasColumnName("ActualStartDate") + .HasColumnType("datetime"); + + builder.Property(t => t.ActualEndDate) + .HasColumnName("ActualEndDate") + .HasColumnType("datetime"); + + builder.Property(t => t.ActualResourceHrs) + .HasColumnName("ActualResourceHrs") + .HasColumnType("decimal(9,4)"); + + builder.Property(t => t.PlannedCost) + .IsRequired() + .HasColumnName("PlannedCost") + .HasColumnType("money"); + + builder.Property(t => t.ActualCost) + .HasColumnName("ActualCost") + .HasColumnType("money"); + + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); + + // relationships + builder.HasOne(t => t.Location) + .WithMany(t => t.WorkOrderRoutings) + .HasForeignKey(d => d.LocationId) + .HasConstraintName("FK_WorkOrderRouting_Location_LocationID"); + + builder.HasOne(t => t.WorkOrder) + .WithMany(t => t.WorkOrderRoutings) + .HasForeignKey(d => d.WorkOrderId) + .HasConstraintName("FK_WorkOrderRouting_WorkOrder_WorkOrderID"); + + #endregion + } + + #region Generated Constants + internal readonly struct Table + { + /// Table Schema name constant for entity + public const string Schema = "Production"; + /// Table Name constant for entity + public const string Name = "WorkOrderRouting"; + } + + internal readonly struct Columns + { + /// Column Name constant for property + public const string WorkOrderId = "WorkOrderID"; + /// Column Name constant for property + public const string ProductId = "ProductID"; + /// Column Name constant for property + public const string OperationSequence = "OperationSequence"; + /// Column Name constant for property + public const string LocationId = "LocationID"; + /// Column Name constant for property + public const string ScheduledStartDate = "ScheduledStartDate"; + /// Column Name constant for property + public const string ScheduledEndDate = "ScheduledEndDate"; + /// Column Name constant for property + public const string ActualStartDate = "ActualStartDate"; + /// Column Name constant for property + public const string ActualEndDate = "ActualEndDate"; + /// Column Name constant for property + public const string ActualResourceHrs = "ActualResourceHrs"; + /// Column Name constant for property + public const string PlannedCost = "PlannedCost"; + /// Column Name constant for property + public const string ActualCost = "ActualCost"; + /// Column Name constant for property + public const string ModifiedDate = "ModifiedDate"; + } + #endregion +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Address/Mapping/AddressProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Address/Mapping/AddressProfile.cs new file mode 100644 index 0000000..4c84570 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Address/Mapping/AddressProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class AddressProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public AddressProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressCreateModel.cs new file mode 100644 index 0000000..7af647d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressCreateModel.cs @@ -0,0 +1,79 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class AddressCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'AddressLine1'. + /// + /// + /// The property value for 'AddressLine1'. + /// + public string AddressLine1 { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressLine2'. + /// + /// + /// The property value for 'AddressLine2'. + /// + public string? AddressLine2 { get; set; } + + /// + /// Gets or sets the property value for 'City'. + /// + /// + /// The property value for 'City'. + /// + public string City { get; set; } = null!; + + /// + /// Gets or sets the property value for 'StateProvinceId'. + /// + /// + /// The property value for 'StateProvinceId'. + /// + public int StateProvinceId { get; set; } + + /// + /// Gets or sets the property value for 'PostalCode'. + /// + /// + /// The property value for 'PostalCode'. + /// + public string PostalCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressReadModel.cs new file mode 100644 index 0000000..cdf133c --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressReadModel.cs @@ -0,0 +1,79 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class AddressReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'AddressLine1'. + /// + /// + /// The property value for 'AddressLine1'. + /// + public string AddressLine1 { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressLine2'. + /// + /// + /// The property value for 'AddressLine2'. + /// + public string? AddressLine2 { get; set; } + + /// + /// Gets or sets the property value for 'City'. + /// + /// + /// The property value for 'City'. + /// + public string City { get; set; } = null!; + + /// + /// Gets or sets the property value for 'StateProvinceId'. + /// + /// + /// The property value for 'StateProvinceId'. + /// + public int StateProvinceId { get; set; } + + /// + /// Gets or sets the property value for 'PostalCode'. + /// + /// + /// The property value for 'PostalCode'. + /// + public string PostalCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressUpdateModel.cs new file mode 100644 index 0000000..56576d8 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressUpdateModel.cs @@ -0,0 +1,79 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class AddressUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'AddressLine1'. + /// + /// + /// The property value for 'AddressLine1'. + /// + public string AddressLine1 { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressLine2'. + /// + /// + /// The property value for 'AddressLine2'. + /// + public string? AddressLine2 { get; set; } + + /// + /// Gets or sets the property value for 'City'. + /// + /// + /// The property value for 'City'. + /// + public string City { get; set; } = null!; + + /// + /// Gets or sets the property value for 'StateProvinceId'. + /// + /// + /// The property value for 'StateProvinceId'. + /// + public int StateProvinceId { get; set; } + + /// + /// Gets or sets the property value for 'PostalCode'. + /// + /// + /// The property value for 'PostalCode'. + /// + public string PostalCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Address/Validation/AddressCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Address/Validation/AddressCreateModelValidator.cs new file mode 100644 index 0000000..5419b02 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Address/Validation/AddressCreateModelValidator.cs @@ -0,0 +1,31 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class AddressCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public AddressCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.AddressLine1).NotEmpty(); + RuleFor(p => p.AddressLine1).MaximumLength(60); + RuleFor(p => p.AddressLine2).MaximumLength(60); + RuleFor(p => p.City).NotEmpty(); + RuleFor(p => p.City).MaximumLength(30); + RuleFor(p => p.PostalCode).NotEmpty(); + RuleFor(p => p.PostalCode).MaximumLength(15); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Address/Validation/AddressUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Address/Validation/AddressUpdateModelValidator.cs new file mode 100644 index 0000000..fa8ac52 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Address/Validation/AddressUpdateModelValidator.cs @@ -0,0 +1,31 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class AddressUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public AddressUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.AddressLine1).NotEmpty(); + RuleFor(p => p.AddressLine1).MaximumLength(60); + RuleFor(p => p.AddressLine2).MaximumLength(60); + RuleFor(p => p.City).NotEmpty(); + RuleFor(p => p.City).MaximumLength(30); + RuleFor(p => p.PostalCode).NotEmpty(); + RuleFor(p => p.PostalCode).MaximumLength(15); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/AddressType/Mapping/AddressTypeProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/AddressType/Mapping/AddressTypeProfile.cs new file mode 100644 index 0000000..119664a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/AddressType/Mapping/AddressTypeProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class AddressTypeProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public AddressTypeProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeCreateModel.cs new file mode 100644 index 0000000..1e9a8d6 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeCreateModel.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class AddressTypeCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeReadModel.cs new file mode 100644 index 0000000..9493e71 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeReadModel.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class AddressTypeReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeUpdateModel.cs new file mode 100644 index 0000000..46aa2b5 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeUpdateModel.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class AddressTypeUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/AddressType/Validation/AddressTypeCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/AddressType/Validation/AddressTypeCreateModelValidator.cs new file mode 100644 index 0000000..14a65f2 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/AddressType/Validation/AddressTypeCreateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class AddressTypeCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public AddressTypeCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/AddressType/Validation/AddressTypeUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/AddressType/Validation/AddressTypeUpdateModelValidator.cs new file mode 100644 index 0000000..32472f8 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/AddressType/Validation/AddressTypeUpdateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class AddressTypeUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public AddressTypeUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Mapping/BillOfMaterialsProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Mapping/BillOfMaterialsProfile.cs new file mode 100644 index 0000000..e2753bd --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Mapping/BillOfMaterialsProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class BillOfMaterialsProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public BillOfMaterialsProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsCreateModel.cs new file mode 100644 index 0000000..d15d02d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsCreateModel.cs @@ -0,0 +1,87 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class BillOfMaterialsCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'ProductAssemblyId'. + /// + /// + /// The property value for 'ProductAssemblyId'. + /// + public int? ProductAssemblyId { get; set; } + + /// + /// Gets or sets the property value for 'ComponentId'. + /// + /// + /// The property value for 'ComponentId'. + /// + public int ComponentId { get; set; } + + /// + /// Gets or sets the property value for 'StartDate'. + /// + /// + /// The property value for 'StartDate'. + /// + public DateTime StartDate { get; set; } + + /// + /// Gets or sets the property value for 'EndDate'. + /// + /// + /// The property value for 'EndDate'. + /// + public DateTime? EndDate { get; set; } + + /// + /// Gets or sets the property value for 'UnitMeasureCode'. + /// + /// + /// The property value for 'UnitMeasureCode'. + /// + public string UnitMeasureCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'BOMLevel'. + /// + /// + /// The property value for 'BOMLevel'. + /// + public short BOMLevel { get; set; } + + /// + /// Gets or sets the property value for 'PerAssemblyQty'. + /// + /// + /// The property value for 'PerAssemblyQty'. + /// + public decimal PerAssemblyQty { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsReadModel.cs new file mode 100644 index 0000000..8c4e015 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsReadModel.cs @@ -0,0 +1,87 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class BillOfMaterialsReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'ProductAssemblyId'. + /// + /// + /// The property value for 'ProductAssemblyId'. + /// + public int? ProductAssemblyId { get; set; } + + /// + /// Gets or sets the property value for 'ComponentId'. + /// + /// + /// The property value for 'ComponentId'. + /// + public int ComponentId { get; set; } + + /// + /// Gets or sets the property value for 'StartDate'. + /// + /// + /// The property value for 'StartDate'. + /// + public DateTime StartDate { get; set; } + + /// + /// Gets or sets the property value for 'EndDate'. + /// + /// + /// The property value for 'EndDate'. + /// + public DateTime? EndDate { get; set; } + + /// + /// Gets or sets the property value for 'UnitMeasureCode'. + /// + /// + /// The property value for 'UnitMeasureCode'. + /// + public string UnitMeasureCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'BOMLevel'. + /// + /// + /// The property value for 'BOMLevel'. + /// + public short BOMLevel { get; set; } + + /// + /// Gets or sets the property value for 'PerAssemblyQty'. + /// + /// + /// The property value for 'PerAssemblyQty'. + /// + public decimal PerAssemblyQty { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsUpdateModel.cs new file mode 100644 index 0000000..730b069 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsUpdateModel.cs @@ -0,0 +1,87 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class BillOfMaterialsUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'ProductAssemblyId'. + /// + /// + /// The property value for 'ProductAssemblyId'. + /// + public int? ProductAssemblyId { get; set; } + + /// + /// Gets or sets the property value for 'ComponentId'. + /// + /// + /// The property value for 'ComponentId'. + /// + public int ComponentId { get; set; } + + /// + /// Gets or sets the property value for 'StartDate'. + /// + /// + /// The property value for 'StartDate'. + /// + public DateTime StartDate { get; set; } + + /// + /// Gets or sets the property value for 'EndDate'. + /// + /// + /// The property value for 'EndDate'. + /// + public DateTime? EndDate { get; set; } + + /// + /// Gets or sets the property value for 'UnitMeasureCode'. + /// + /// + /// The property value for 'UnitMeasureCode'. + /// + public string UnitMeasureCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'BOMLevel'. + /// + /// + /// The property value for 'BOMLevel'. + /// + public short BOMLevel { get; set; } + + /// + /// Gets or sets the property value for 'PerAssemblyQty'. + /// + /// + /// The property value for 'PerAssemblyQty'. + /// + public decimal PerAssemblyQty { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Validation/BillOfMaterialsCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Validation/BillOfMaterialsCreateModelValidator.cs new file mode 100644 index 0000000..6e4a986 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Validation/BillOfMaterialsCreateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class BillOfMaterialsCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public BillOfMaterialsCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.UnitMeasureCode).NotEmpty(); + RuleFor(p => p.UnitMeasureCode).MaximumLength(3); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Validation/BillOfMaterialsUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Validation/BillOfMaterialsUpdateModelValidator.cs new file mode 100644 index 0000000..149e6f4 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Validation/BillOfMaterialsUpdateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class BillOfMaterialsUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public BillOfMaterialsUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.UnitMeasureCode).NotEmpty(); + RuleFor(p => p.UnitMeasureCode).MaximumLength(3); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Mapping/BusinessEntityProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Mapping/BusinessEntityProfile.cs new file mode 100644 index 0000000..734a8f7 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Mapping/BusinessEntityProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class BusinessEntityProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public BusinessEntityProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityCreateModel.cs new file mode 100644 index 0000000..430f94d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityCreateModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class BusinessEntityCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityReadModel.cs new file mode 100644 index 0000000..809fd44 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityReadModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class BusinessEntityReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityUpdateModel.cs new file mode 100644 index 0000000..abeb4c2 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityUpdateModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class BusinessEntityUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Validation/BusinessEntityCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Validation/BusinessEntityCreateModelValidator.cs new file mode 100644 index 0000000..61242cc --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Validation/BusinessEntityCreateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class BusinessEntityCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public BusinessEntityCreateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Validation/BusinessEntityUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Validation/BusinessEntityUpdateModelValidator.cs new file mode 100644 index 0000000..74ba674 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Validation/BusinessEntityUpdateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class BusinessEntityUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public BusinessEntityUpdateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Mapping/BusinessEntityAddressProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Mapping/BusinessEntityAddressProfile.cs new file mode 100644 index 0000000..b49c903 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Mapping/BusinessEntityAddressProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class BusinessEntityAddressProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public BusinessEntityAddressProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Models/BusinessEntityAddressCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Models/BusinessEntityAddressCreateModel.cs new file mode 100644 index 0000000..bb75f67 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Models/BusinessEntityAddressCreateModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class BusinessEntityAddressCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'AddressId'. + /// + /// + /// The property value for 'AddressId'. + /// + public int AddressId { get; set; } + + /// + /// Gets or sets the property value for 'AddressTypeId'. + /// + /// + /// The property value for 'AddressTypeId'. + /// + public int AddressTypeId { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Models/BusinessEntityAddressReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Models/BusinessEntityAddressReadModel.cs new file mode 100644 index 0000000..a18271b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Models/BusinessEntityAddressReadModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class BusinessEntityAddressReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'AddressId'. + /// + /// + /// The property value for 'AddressId'. + /// + public int AddressId { get; set; } + + /// + /// Gets or sets the property value for 'AddressTypeId'. + /// + /// + /// The property value for 'AddressTypeId'. + /// + public int AddressTypeId { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Models/BusinessEntityAddressUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Models/BusinessEntityAddressUpdateModel.cs new file mode 100644 index 0000000..0838d93 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Models/BusinessEntityAddressUpdateModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class BusinessEntityAddressUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'AddressId'. + /// + /// + /// The property value for 'AddressId'. + /// + public int AddressId { get; set; } + + /// + /// Gets or sets the property value for 'AddressTypeId'. + /// + /// + /// The property value for 'AddressTypeId'. + /// + public int AddressTypeId { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Validation/BusinessEntityAddressCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Validation/BusinessEntityAddressCreateModelValidator.cs new file mode 100644 index 0000000..170a152 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Validation/BusinessEntityAddressCreateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class BusinessEntityAddressCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public BusinessEntityAddressCreateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Validation/BusinessEntityAddressUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Validation/BusinessEntityAddressUpdateModelValidator.cs new file mode 100644 index 0000000..236ad47 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Validation/BusinessEntityAddressUpdateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class BusinessEntityAddressUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public BusinessEntityAddressUpdateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Mapping/BusinessEntityContactProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Mapping/BusinessEntityContactProfile.cs new file mode 100644 index 0000000..0bfed46 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Mapping/BusinessEntityContactProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class BusinessEntityContactProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public BusinessEntityContactProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Models/BusinessEntityContactCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Models/BusinessEntityContactCreateModel.cs new file mode 100644 index 0000000..61dbd95 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Models/BusinessEntityContactCreateModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class BusinessEntityContactCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'PersonId'. + /// + /// + /// The property value for 'PersonId'. + /// + public int PersonId { get; set; } + + /// + /// Gets or sets the property value for 'ContactTypeId'. + /// + /// + /// The property value for 'ContactTypeId'. + /// + public int ContactTypeId { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Models/BusinessEntityContactReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Models/BusinessEntityContactReadModel.cs new file mode 100644 index 0000000..82a97f2 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Models/BusinessEntityContactReadModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class BusinessEntityContactReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'PersonId'. + /// + /// + /// The property value for 'PersonId'. + /// + public int PersonId { get; set; } + + /// + /// Gets or sets the property value for 'ContactTypeId'. + /// + /// + /// The property value for 'ContactTypeId'. + /// + public int ContactTypeId { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Models/BusinessEntityContactUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Models/BusinessEntityContactUpdateModel.cs new file mode 100644 index 0000000..93dbd4b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Models/BusinessEntityContactUpdateModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class BusinessEntityContactUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'PersonId'. + /// + /// + /// The property value for 'PersonId'. + /// + public int PersonId { get; set; } + + /// + /// Gets or sets the property value for 'ContactTypeId'. + /// + /// + /// The property value for 'ContactTypeId'. + /// + public int ContactTypeId { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Validation/BusinessEntityContactCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Validation/BusinessEntityContactCreateModelValidator.cs new file mode 100644 index 0000000..e476d65 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Validation/BusinessEntityContactCreateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class BusinessEntityContactCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public BusinessEntityContactCreateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Validation/BusinessEntityContactUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Validation/BusinessEntityContactUpdateModelValidator.cs new file mode 100644 index 0000000..f1336e6 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Validation/BusinessEntityContactUpdateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class BusinessEntityContactUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public BusinessEntityContactUpdateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ContactType/Mapping/ContactTypeProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ContactType/Mapping/ContactTypeProfile.cs new file mode 100644 index 0000000..c72ab4b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ContactType/Mapping/ContactTypeProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class ContactTypeProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public ContactTypeProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeCreateModel.cs new file mode 100644 index 0000000..9c890eb --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeCreateModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ContactTypeCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeReadModel.cs new file mode 100644 index 0000000..4880c29 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeReadModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ContactTypeReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeUpdateModel.cs new file mode 100644 index 0000000..6dee8c6 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeUpdateModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ContactTypeUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ContactType/Validation/ContactTypeCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ContactType/Validation/ContactTypeCreateModelValidator.cs new file mode 100644 index 0000000..75919ea --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ContactType/Validation/ContactTypeCreateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ContactTypeCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ContactTypeCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ContactType/Validation/ContactTypeUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ContactType/Validation/ContactTypeUpdateModelValidator.cs new file mode 100644 index 0000000..94d5a73 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ContactType/Validation/ContactTypeUpdateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ContactTypeUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ContactTypeUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Mapping/CountryRegionProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Mapping/CountryRegionProfile.cs new file mode 100644 index 0000000..1f89dda --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Mapping/CountryRegionProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class CountryRegionProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public CountryRegionProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionCreateModel.cs new file mode 100644 index 0000000..5d791f6 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionCreateModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class CountryRegionCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'CountryRegionCode'. + /// + /// + /// The property value for 'CountryRegionCode'. + /// + public string CountryRegionCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionReadModel.cs new file mode 100644 index 0000000..9f8dd3f --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionReadModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class CountryRegionReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'CountryRegionCode'. + /// + /// + /// The property value for 'CountryRegionCode'. + /// + public string CountryRegionCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionUpdateModel.cs new file mode 100644 index 0000000..96490e8 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionUpdateModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class CountryRegionUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'CountryRegionCode'. + /// + /// + /// The property value for 'CountryRegionCode'. + /// + public string CountryRegionCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Validation/CountryRegionCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Validation/CountryRegionCreateModelValidator.cs new file mode 100644 index 0000000..40cea0f --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Validation/CountryRegionCreateModelValidator.cs @@ -0,0 +1,28 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class CountryRegionCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public CountryRegionCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.CountryRegionCode).NotEmpty(); + RuleFor(p => p.CountryRegionCode).MaximumLength(3); + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Validation/CountryRegionUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Validation/CountryRegionUpdateModelValidator.cs new file mode 100644 index 0000000..f3d2a8a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Validation/CountryRegionUpdateModelValidator.cs @@ -0,0 +1,28 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class CountryRegionUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public CountryRegionUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.CountryRegionCode).NotEmpty(); + RuleFor(p => p.CountryRegionCode).MaximumLength(3); + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Mapping/CountryRegionCurrencyProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Mapping/CountryRegionCurrencyProfile.cs new file mode 100644 index 0000000..9cb6141 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Mapping/CountryRegionCurrencyProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class CountryRegionCurrencyProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public CountryRegionCurrencyProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyCreateModel.cs new file mode 100644 index 0000000..fbf989e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyCreateModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class CountryRegionCurrencyCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'CountryRegionCode'. + /// + /// + /// The property value for 'CountryRegionCode'. + /// + public string CountryRegionCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CurrencyCode'. + /// + /// + /// The property value for 'CurrencyCode'. + /// + public string CurrencyCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyReadModel.cs new file mode 100644 index 0000000..64dac34 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyReadModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class CountryRegionCurrencyReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'CountryRegionCode'. + /// + /// + /// The property value for 'CountryRegionCode'. + /// + public string CountryRegionCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CurrencyCode'. + /// + /// + /// The property value for 'CurrencyCode'. + /// + public string CurrencyCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyUpdateModel.cs new file mode 100644 index 0000000..9fcd5be --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyUpdateModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class CountryRegionCurrencyUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'CountryRegionCode'. + /// + /// + /// The property value for 'CountryRegionCode'. + /// + public string CountryRegionCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CurrencyCode'. + /// + /// + /// The property value for 'CurrencyCode'. + /// + public string CurrencyCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Validation/CountryRegionCurrencyCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Validation/CountryRegionCurrencyCreateModelValidator.cs new file mode 100644 index 0000000..6f3abfa --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Validation/CountryRegionCurrencyCreateModelValidator.cs @@ -0,0 +1,28 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class CountryRegionCurrencyCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public CountryRegionCurrencyCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.CountryRegionCode).NotEmpty(); + RuleFor(p => p.CountryRegionCode).MaximumLength(3); + RuleFor(p => p.CurrencyCode).NotEmpty(); + RuleFor(p => p.CurrencyCode).MaximumLength(3); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Validation/CountryRegionCurrencyUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Validation/CountryRegionCurrencyUpdateModelValidator.cs new file mode 100644 index 0000000..8e1e06a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Validation/CountryRegionCurrencyUpdateModelValidator.cs @@ -0,0 +1,28 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class CountryRegionCurrencyUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public CountryRegionCurrencyUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.CountryRegionCode).NotEmpty(); + RuleFor(p => p.CountryRegionCode).MaximumLength(3); + RuleFor(p => p.CurrencyCode).NotEmpty(); + RuleFor(p => p.CurrencyCode).MaximumLength(3); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Mapping/CreditCardProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Mapping/CreditCardProfile.cs new file mode 100644 index 0000000..6a8823c --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Mapping/CreditCardProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class CreditCardProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public CreditCardProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Models/CreditCardCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Models/CreditCardCreateModel.cs new file mode 100644 index 0000000..895c124 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Models/CreditCardCreateModel.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class CreditCardCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'CardType'. + /// + /// + /// The property value for 'CardType'. + /// + public string CardType { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CardNumber'. + /// + /// + /// The property value for 'CardNumber'. + /// + public string CardNumber { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ExpMonth'. + /// + /// + /// The property value for 'ExpMonth'. + /// + public byte ExpMonth { get; set; } + + /// + /// Gets or sets the property value for 'ExpYear'. + /// + /// + /// The property value for 'ExpYear'. + /// + public short ExpYear { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Models/CreditCardReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Models/CreditCardReadModel.cs new file mode 100644 index 0000000..b9f9ccd --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Models/CreditCardReadModel.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class CreditCardReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'CardType'. + /// + /// + /// The property value for 'CardType'. + /// + public string CardType { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CardNumber'. + /// + /// + /// The property value for 'CardNumber'. + /// + public string CardNumber { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ExpMonth'. + /// + /// + /// The property value for 'ExpMonth'. + /// + public byte ExpMonth { get; set; } + + /// + /// Gets or sets the property value for 'ExpYear'. + /// + /// + /// The property value for 'ExpYear'. + /// + public short ExpYear { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Models/CreditCardUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Models/CreditCardUpdateModel.cs new file mode 100644 index 0000000..bc1d04b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Models/CreditCardUpdateModel.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class CreditCardUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'CardType'. + /// + /// + /// The property value for 'CardType'. + /// + public string CardType { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CardNumber'. + /// + /// + /// The property value for 'CardNumber'. + /// + public string CardNumber { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ExpMonth'. + /// + /// + /// The property value for 'ExpMonth'. + /// + public byte ExpMonth { get; set; } + + /// + /// Gets or sets the property value for 'ExpYear'. + /// + /// + /// The property value for 'ExpYear'. + /// + public short ExpYear { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Validation/CreditCardCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Validation/CreditCardCreateModelValidator.cs new file mode 100644 index 0000000..acde9fd --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Validation/CreditCardCreateModelValidator.cs @@ -0,0 +1,28 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class CreditCardCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public CreditCardCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.CardType).NotEmpty(); + RuleFor(p => p.CardType).MaximumLength(50); + RuleFor(p => p.CardNumber).NotEmpty(); + RuleFor(p => p.CardNumber).MaximumLength(25); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Validation/CreditCardUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Validation/CreditCardUpdateModelValidator.cs new file mode 100644 index 0000000..9e432b6 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Validation/CreditCardUpdateModelValidator.cs @@ -0,0 +1,28 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class CreditCardUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public CreditCardUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.CardType).NotEmpty(); + RuleFor(p => p.CardType).MaximumLength(50); + RuleFor(p => p.CardNumber).NotEmpty(); + RuleFor(p => p.CardNumber).MaximumLength(25); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Culture/Mapping/CultureProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Culture/Mapping/CultureProfile.cs new file mode 100644 index 0000000..bd0e938 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Culture/Mapping/CultureProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class CultureProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public CultureProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureCreateModel.cs new file mode 100644 index 0000000..40b9210 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureCreateModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class CultureCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public string Id { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureReadModel.cs new file mode 100644 index 0000000..9c0a4a1 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureReadModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class CultureReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public string Id { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureUpdateModel.cs new file mode 100644 index 0000000..5225771 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureUpdateModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class CultureUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public string Id { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Culture/Validation/CultureCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Culture/Validation/CultureCreateModelValidator.cs new file mode 100644 index 0000000..ac57b42 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Culture/Validation/CultureCreateModelValidator.cs @@ -0,0 +1,28 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class CultureCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public CultureCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Id).NotEmpty(); + RuleFor(p => p.Id).MaximumLength(6); + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Culture/Validation/CultureUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Culture/Validation/CultureUpdateModelValidator.cs new file mode 100644 index 0000000..d2e61e3 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Culture/Validation/CultureUpdateModelValidator.cs @@ -0,0 +1,28 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class CultureUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public CultureUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Id).NotEmpty(); + RuleFor(p => p.Id).MaximumLength(6); + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Currency/Mapping/CurrencyProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Currency/Mapping/CurrencyProfile.cs new file mode 100644 index 0000000..2af775c --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Currency/Mapping/CurrencyProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class CurrencyProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public CurrencyProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyCreateModel.cs new file mode 100644 index 0000000..9ddcb0d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyCreateModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class CurrencyCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'CurrencyCode'. + /// + /// + /// The property value for 'CurrencyCode'. + /// + public string CurrencyCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyReadModel.cs new file mode 100644 index 0000000..d90c1b4 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyReadModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class CurrencyReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'CurrencyCode'. + /// + /// + /// The property value for 'CurrencyCode'. + /// + public string CurrencyCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyUpdateModel.cs new file mode 100644 index 0000000..988f6bf --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyUpdateModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class CurrencyUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'CurrencyCode'. + /// + /// + /// The property value for 'CurrencyCode'. + /// + public string CurrencyCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Currency/Validation/CurrencyCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Currency/Validation/CurrencyCreateModelValidator.cs new file mode 100644 index 0000000..f538dec --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Currency/Validation/CurrencyCreateModelValidator.cs @@ -0,0 +1,28 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class CurrencyCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public CurrencyCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.CurrencyCode).NotEmpty(); + RuleFor(p => p.CurrencyCode).MaximumLength(3); + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Currency/Validation/CurrencyUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Currency/Validation/CurrencyUpdateModelValidator.cs new file mode 100644 index 0000000..5d3ca9d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Currency/Validation/CurrencyUpdateModelValidator.cs @@ -0,0 +1,28 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class CurrencyUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public CurrencyUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.CurrencyCode).NotEmpty(); + RuleFor(p => p.CurrencyCode).MaximumLength(3); + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Mapping/CurrencyRateProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Mapping/CurrencyRateProfile.cs new file mode 100644 index 0000000..43d5c17 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Mapping/CurrencyRateProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class CurrencyRateProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public CurrencyRateProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateCreateModel.cs new file mode 100644 index 0000000..5442f74 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateCreateModel.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class CurrencyRateCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'CurrencyRateDate'. + /// + /// + /// The property value for 'CurrencyRateDate'. + /// + public DateTime CurrencyRateDate { get; set; } + + /// + /// Gets or sets the property value for 'FromCurrencyCode'. + /// + /// + /// The property value for 'FromCurrencyCode'. + /// + public string FromCurrencyCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ToCurrencyCode'. + /// + /// + /// The property value for 'ToCurrencyCode'. + /// + public string ToCurrencyCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AverageRate'. + /// + /// + /// The property value for 'AverageRate'. + /// + public decimal AverageRate { get; set; } + + /// + /// Gets or sets the property value for 'EndOfDayRate'. + /// + /// + /// The property value for 'EndOfDayRate'. + /// + public decimal EndOfDayRate { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateReadModel.cs new file mode 100644 index 0000000..81784a0 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateReadModel.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class CurrencyRateReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'CurrencyRateDate'. + /// + /// + /// The property value for 'CurrencyRateDate'. + /// + public DateTime CurrencyRateDate { get; set; } + + /// + /// Gets or sets the property value for 'FromCurrencyCode'. + /// + /// + /// The property value for 'FromCurrencyCode'. + /// + public string FromCurrencyCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ToCurrencyCode'. + /// + /// + /// The property value for 'ToCurrencyCode'. + /// + public string ToCurrencyCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AverageRate'. + /// + /// + /// The property value for 'AverageRate'. + /// + public decimal AverageRate { get; set; } + + /// + /// Gets or sets the property value for 'EndOfDayRate'. + /// + /// + /// The property value for 'EndOfDayRate'. + /// + public decimal EndOfDayRate { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateUpdateModel.cs new file mode 100644 index 0000000..10cfb6a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateUpdateModel.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class CurrencyRateUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'CurrencyRateDate'. + /// + /// + /// The property value for 'CurrencyRateDate'. + /// + public DateTime CurrencyRateDate { get; set; } + + /// + /// Gets or sets the property value for 'FromCurrencyCode'. + /// + /// + /// The property value for 'FromCurrencyCode'. + /// + public string FromCurrencyCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ToCurrencyCode'. + /// + /// + /// The property value for 'ToCurrencyCode'. + /// + public string ToCurrencyCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AverageRate'. + /// + /// + /// The property value for 'AverageRate'. + /// + public decimal AverageRate { get; set; } + + /// + /// Gets or sets the property value for 'EndOfDayRate'. + /// + /// + /// The property value for 'EndOfDayRate'. + /// + public decimal EndOfDayRate { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Validation/CurrencyRateCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Validation/CurrencyRateCreateModelValidator.cs new file mode 100644 index 0000000..1af1bf4 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Validation/CurrencyRateCreateModelValidator.cs @@ -0,0 +1,28 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class CurrencyRateCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public CurrencyRateCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.FromCurrencyCode).NotEmpty(); + RuleFor(p => p.FromCurrencyCode).MaximumLength(3); + RuleFor(p => p.ToCurrencyCode).NotEmpty(); + RuleFor(p => p.ToCurrencyCode).MaximumLength(3); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Validation/CurrencyRateUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Validation/CurrencyRateUpdateModelValidator.cs new file mode 100644 index 0000000..3583f06 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Validation/CurrencyRateUpdateModelValidator.cs @@ -0,0 +1,28 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class CurrencyRateUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public CurrencyRateUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.FromCurrencyCode).NotEmpty(); + RuleFor(p => p.FromCurrencyCode).MaximumLength(3); + RuleFor(p => p.ToCurrencyCode).NotEmpty(); + RuleFor(p => p.ToCurrencyCode).MaximumLength(3); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Customer/Mapping/CustomerProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Customer/Mapping/CustomerProfile.cs new file mode 100644 index 0000000..0ce97d0 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Customer/Mapping/CustomerProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class CustomerProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public CustomerProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerCreateModel.cs new file mode 100644 index 0000000..e7ef1df --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerCreateModel.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class CustomerCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'PersonId'. + /// + /// + /// The property value for 'PersonId'. + /// + public int? PersonId { get; set; } + + /// + /// Gets or sets the property value for 'StoreId'. + /// + /// + /// The property value for 'StoreId'. + /// + public int? StoreId { get; set; } + + /// + /// Gets or sets the property value for 'TerritoryId'. + /// + /// + /// The property value for 'TerritoryId'. + /// + public int? TerritoryId { get; set; } + + /// + /// Gets or sets the property value for 'AccountNumber'. + /// + /// + /// The property value for 'AccountNumber'. + /// + public string AccountNumber { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerReadModel.cs new file mode 100644 index 0000000..0e6de64 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerReadModel.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class CustomerReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'PersonId'. + /// + /// + /// The property value for 'PersonId'. + /// + public int? PersonId { get; set; } + + /// + /// Gets or sets the property value for 'StoreId'. + /// + /// + /// The property value for 'StoreId'. + /// + public int? StoreId { get; set; } + + /// + /// Gets or sets the property value for 'TerritoryId'. + /// + /// + /// The property value for 'TerritoryId'. + /// + public int? TerritoryId { get; set; } + + /// + /// Gets or sets the property value for 'AccountNumber'. + /// + /// + /// The property value for 'AccountNumber'. + /// + public string AccountNumber { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerUpdateModel.cs new file mode 100644 index 0000000..67a906e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerUpdateModel.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class CustomerUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'PersonId'. + /// + /// + /// The property value for 'PersonId'. + /// + public int? PersonId { get; set; } + + /// + /// Gets or sets the property value for 'StoreId'. + /// + /// + /// The property value for 'StoreId'. + /// + public int? StoreId { get; set; } + + /// + /// Gets or sets the property value for 'TerritoryId'. + /// + /// + /// The property value for 'TerritoryId'. + /// + public int? TerritoryId { get; set; } + + /// + /// Gets or sets the property value for 'AccountNumber'. + /// + /// + /// The property value for 'AccountNumber'. + /// + public string AccountNumber { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Customer/Validation/CustomerCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Customer/Validation/CustomerCreateModelValidator.cs new file mode 100644 index 0000000..fdceca5 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Customer/Validation/CustomerCreateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class CustomerCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public CustomerCreateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Customer/Validation/CustomerUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Customer/Validation/CustomerUpdateModelValidator.cs new file mode 100644 index 0000000..e014d51 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Customer/Validation/CustomerUpdateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class CustomerUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public CustomerUpdateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Department/Mapping/DepartmentProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Department/Mapping/DepartmentProfile.cs new file mode 100644 index 0000000..1ce62e4 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Department/Mapping/DepartmentProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class DepartmentProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public DepartmentProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentCreateModel.cs new file mode 100644 index 0000000..94ee31b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentCreateModel.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class DepartmentCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public short Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'GroupName'. + /// + /// + /// The property value for 'GroupName'. + /// + public string GroupName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentReadModel.cs new file mode 100644 index 0000000..0824f8e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentReadModel.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class DepartmentReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public short Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'GroupName'. + /// + /// + /// The property value for 'GroupName'. + /// + public string GroupName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentUpdateModel.cs new file mode 100644 index 0000000..d92e173 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentUpdateModel.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class DepartmentUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public short Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'GroupName'. + /// + /// + /// The property value for 'GroupName'. + /// + public string GroupName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Department/Validation/DepartmentCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Department/Validation/DepartmentCreateModelValidator.cs new file mode 100644 index 0000000..6abe6e9 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Department/Validation/DepartmentCreateModelValidator.cs @@ -0,0 +1,28 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class DepartmentCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public DepartmentCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + RuleFor(p => p.GroupName).NotEmpty(); + RuleFor(p => p.GroupName).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Department/Validation/DepartmentUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Department/Validation/DepartmentUpdateModelValidator.cs new file mode 100644 index 0000000..c960411 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Department/Validation/DepartmentUpdateModelValidator.cs @@ -0,0 +1,28 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class DepartmentUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public DepartmentUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + RuleFor(p => p.GroupName).NotEmpty(); + RuleFor(p => p.GroupName).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Mapping/EmailAddressProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Mapping/EmailAddressProfile.cs new file mode 100644 index 0000000..d4ce05e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Mapping/EmailAddressProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class EmailAddressProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public EmailAddressProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Models/EmailAddressCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Models/EmailAddressCreateModel.cs new file mode 100644 index 0000000..fbb81b0 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Models/EmailAddressCreateModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class EmailAddressCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'EmailAddressMember'. + /// + /// + /// The property value for 'EmailAddressMember'. + /// + public string? EmailAddressMember { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Models/EmailAddressReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Models/EmailAddressReadModel.cs new file mode 100644 index 0000000..6f77017 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Models/EmailAddressReadModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class EmailAddressReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'EmailAddressMember'. + /// + /// + /// The property value for 'EmailAddressMember'. + /// + public string? EmailAddressMember { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Models/EmailAddressUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Models/EmailAddressUpdateModel.cs new file mode 100644 index 0000000..61daf4b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Models/EmailAddressUpdateModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class EmailAddressUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'EmailAddressMember'. + /// + /// + /// The property value for 'EmailAddressMember'. + /// + public string? EmailAddressMember { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Validation/EmailAddressCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Validation/EmailAddressCreateModelValidator.cs new file mode 100644 index 0000000..0949bc2 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Validation/EmailAddressCreateModelValidator.cs @@ -0,0 +1,25 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class EmailAddressCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public EmailAddressCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.EmailAddressMember).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Validation/EmailAddressUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Validation/EmailAddressUpdateModelValidator.cs new file mode 100644 index 0000000..f43bd83 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Validation/EmailAddressUpdateModelValidator.cs @@ -0,0 +1,25 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class EmailAddressUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public EmailAddressUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.EmailAddressMember).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Employee/Mapping/EmployeeProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Employee/Mapping/EmployeeProfile.cs new file mode 100644 index 0000000..6065775 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Employee/Mapping/EmployeeProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class EmployeeProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public EmployeeProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Employee/Models/EmployeeCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Employee/Models/EmployeeCreateModel.cs new file mode 100644 index 0000000..560bef9 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Employee/Models/EmployeeCreateModel.cs @@ -0,0 +1,135 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class EmployeeCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'NationalIdNumber'. + /// + /// + /// The property value for 'NationalIdNumber'. + /// + public string NationalIdNumber { get; set; } = null!; + + /// + /// Gets or sets the property value for 'LoginId'. + /// + /// + /// The property value for 'LoginId'. + /// + public string LoginId { get; set; } = null!; + + /// + /// Gets or sets the property value for 'OrganizationLevel'. + /// + /// + /// The property value for 'OrganizationLevel'. + /// + public short? OrganizationLevel { get; set; } + + /// + /// Gets or sets the property value for 'JobTitle'. + /// + /// + /// The property value for 'JobTitle'. + /// + public string JobTitle { get; set; } = null!; + + /// + /// Gets or sets the property value for 'BirthDate'. + /// + /// + /// The property value for 'BirthDate'. + /// + public DateOnly BirthDate { get; set; } + + /// + /// Gets or sets the property value for 'MaritalStatus'. + /// + /// + /// The property value for 'MaritalStatus'. + /// + public string MaritalStatus { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Gender'. + /// + /// + /// The property value for 'Gender'. + /// + public string Gender { get; set; } = null!; + + /// + /// Gets or sets the property value for 'HireDate'. + /// + /// + /// The property value for 'HireDate'. + /// + public DateOnly HireDate { get; set; } + + /// + /// Gets or sets the property value for 'SalariedFlag'. + /// + /// + /// The property value for 'SalariedFlag'. + /// + public bool SalariedFlag { get; set; } + + /// + /// Gets or sets the property value for 'VacationHours'. + /// + /// + /// The property value for 'VacationHours'. + /// + public short VacationHours { get; set; } + + /// + /// Gets or sets the property value for 'SickLeaveHours'. + /// + /// + /// The property value for 'SickLeaveHours'. + /// + public short SickLeaveHours { get; set; } + + /// + /// Gets or sets the property value for 'CurrentFlag'. + /// + /// + /// The property value for 'CurrentFlag'. + /// + public bool CurrentFlag { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Employee/Models/EmployeeReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Employee/Models/EmployeeReadModel.cs new file mode 100644 index 0000000..788bd59 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Employee/Models/EmployeeReadModel.cs @@ -0,0 +1,135 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class EmployeeReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'NationalIdNumber'. + /// + /// + /// The property value for 'NationalIdNumber'. + /// + public string NationalIdNumber { get; set; } = null!; + + /// + /// Gets or sets the property value for 'LoginId'. + /// + /// + /// The property value for 'LoginId'. + /// + public string LoginId { get; set; } = null!; + + /// + /// Gets or sets the property value for 'OrganizationLevel'. + /// + /// + /// The property value for 'OrganizationLevel'. + /// + public short? OrganizationLevel { get; set; } + + /// + /// Gets or sets the property value for 'JobTitle'. + /// + /// + /// The property value for 'JobTitle'. + /// + public string JobTitle { get; set; } = null!; + + /// + /// Gets or sets the property value for 'BirthDate'. + /// + /// + /// The property value for 'BirthDate'. + /// + public DateOnly BirthDate { get; set; } + + /// + /// Gets or sets the property value for 'MaritalStatus'. + /// + /// + /// The property value for 'MaritalStatus'. + /// + public string MaritalStatus { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Gender'. + /// + /// + /// The property value for 'Gender'. + /// + public string Gender { get; set; } = null!; + + /// + /// Gets or sets the property value for 'HireDate'. + /// + /// + /// The property value for 'HireDate'. + /// + public DateOnly HireDate { get; set; } + + /// + /// Gets or sets the property value for 'SalariedFlag'. + /// + /// + /// The property value for 'SalariedFlag'. + /// + public bool SalariedFlag { get; set; } + + /// + /// Gets or sets the property value for 'VacationHours'. + /// + /// + /// The property value for 'VacationHours'. + /// + public short VacationHours { get; set; } + + /// + /// Gets or sets the property value for 'SickLeaveHours'. + /// + /// + /// The property value for 'SickLeaveHours'. + /// + public short SickLeaveHours { get; set; } + + /// + /// Gets or sets the property value for 'CurrentFlag'. + /// + /// + /// The property value for 'CurrentFlag'. + /// + public bool CurrentFlag { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Employee/Models/EmployeeUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Employee/Models/EmployeeUpdateModel.cs new file mode 100644 index 0000000..f45d6b2 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Employee/Models/EmployeeUpdateModel.cs @@ -0,0 +1,135 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class EmployeeUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'NationalIdNumber'. + /// + /// + /// The property value for 'NationalIdNumber'. + /// + public string NationalIdNumber { get; set; } = null!; + + /// + /// Gets or sets the property value for 'LoginId'. + /// + /// + /// The property value for 'LoginId'. + /// + public string LoginId { get; set; } = null!; + + /// + /// Gets or sets the property value for 'OrganizationLevel'. + /// + /// + /// The property value for 'OrganizationLevel'. + /// + public short? OrganizationLevel { get; set; } + + /// + /// Gets or sets the property value for 'JobTitle'. + /// + /// + /// The property value for 'JobTitle'. + /// + public string JobTitle { get; set; } = null!; + + /// + /// Gets or sets the property value for 'BirthDate'. + /// + /// + /// The property value for 'BirthDate'. + /// + public DateOnly BirthDate { get; set; } + + /// + /// Gets or sets the property value for 'MaritalStatus'. + /// + /// + /// The property value for 'MaritalStatus'. + /// + public string MaritalStatus { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Gender'. + /// + /// + /// The property value for 'Gender'. + /// + public string Gender { get; set; } = null!; + + /// + /// Gets or sets the property value for 'HireDate'. + /// + /// + /// The property value for 'HireDate'. + /// + public DateOnly HireDate { get; set; } + + /// + /// Gets or sets the property value for 'SalariedFlag'. + /// + /// + /// The property value for 'SalariedFlag'. + /// + public bool SalariedFlag { get; set; } + + /// + /// Gets or sets the property value for 'VacationHours'. + /// + /// + /// The property value for 'VacationHours'. + /// + public short VacationHours { get; set; } + + /// + /// Gets or sets the property value for 'SickLeaveHours'. + /// + /// + /// The property value for 'SickLeaveHours'. + /// + public short SickLeaveHours { get; set; } + + /// + /// Gets or sets the property value for 'CurrentFlag'. + /// + /// + /// The property value for 'CurrentFlag'. + /// + public bool CurrentFlag { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Employee/Validation/EmployeeCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Employee/Validation/EmployeeCreateModelValidator.cs new file mode 100644 index 0000000..f8160ec --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Employee/Validation/EmployeeCreateModelValidator.cs @@ -0,0 +1,34 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class EmployeeCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public EmployeeCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.NationalIdNumber).NotEmpty(); + RuleFor(p => p.NationalIdNumber).MaximumLength(15); + RuleFor(p => p.LoginId).NotEmpty(); + RuleFor(p => p.LoginId).MaximumLength(256); + RuleFor(p => p.JobTitle).NotEmpty(); + RuleFor(p => p.JobTitle).MaximumLength(50); + RuleFor(p => p.MaritalStatus).NotEmpty(); + RuleFor(p => p.MaritalStatus).MaximumLength(1); + RuleFor(p => p.Gender).NotEmpty(); + RuleFor(p => p.Gender).MaximumLength(1); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Employee/Validation/EmployeeUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Employee/Validation/EmployeeUpdateModelValidator.cs new file mode 100644 index 0000000..e879ae4 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Employee/Validation/EmployeeUpdateModelValidator.cs @@ -0,0 +1,34 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class EmployeeUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public EmployeeUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.NationalIdNumber).NotEmpty(); + RuleFor(p => p.NationalIdNumber).MaximumLength(15); + RuleFor(p => p.LoginId).NotEmpty(); + RuleFor(p => p.LoginId).MaximumLength(256); + RuleFor(p => p.JobTitle).NotEmpty(); + RuleFor(p => p.JobTitle).MaximumLength(50); + RuleFor(p => p.MaritalStatus).NotEmpty(); + RuleFor(p => p.MaritalStatus).MaximumLength(1); + RuleFor(p => p.Gender).NotEmpty(); + RuleFor(p => p.Gender).MaximumLength(1); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Mapping/EmployeeDepartmentHistoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Mapping/EmployeeDepartmentHistoryProfile.cs new file mode 100644 index 0000000..a47501a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Mapping/EmployeeDepartmentHistoryProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class EmployeeDepartmentHistoryProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public EmployeeDepartmentHistoryProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Models/EmployeeDepartmentHistoryCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Models/EmployeeDepartmentHistoryCreateModel.cs new file mode 100644 index 0000000..8962d9b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Models/EmployeeDepartmentHistoryCreateModel.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class EmployeeDepartmentHistoryCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'DepartmentId'. + /// + /// + /// The property value for 'DepartmentId'. + /// + public short DepartmentId { get; set; } + + /// + /// Gets or sets the property value for 'ShiftId'. + /// + /// + /// The property value for 'ShiftId'. + /// + public byte ShiftId { get; set; } + + /// + /// Gets or sets the property value for 'StartDate'. + /// + /// + /// The property value for 'StartDate'. + /// + public DateOnly StartDate { get; set; } + + /// + /// Gets or sets the property value for 'EndDate'. + /// + /// + /// The property value for 'EndDate'. + /// + public DateOnly? EndDate { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Models/EmployeeDepartmentHistoryReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Models/EmployeeDepartmentHistoryReadModel.cs new file mode 100644 index 0000000..9e8edb6 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Models/EmployeeDepartmentHistoryReadModel.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class EmployeeDepartmentHistoryReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'DepartmentId'. + /// + /// + /// The property value for 'DepartmentId'. + /// + public short DepartmentId { get; set; } + + /// + /// Gets or sets the property value for 'ShiftId'. + /// + /// + /// The property value for 'ShiftId'. + /// + public byte ShiftId { get; set; } + + /// + /// Gets or sets the property value for 'StartDate'. + /// + /// + /// The property value for 'StartDate'. + /// + public DateOnly StartDate { get; set; } + + /// + /// Gets or sets the property value for 'EndDate'. + /// + /// + /// The property value for 'EndDate'. + /// + public DateOnly? EndDate { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Models/EmployeeDepartmentHistoryUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Models/EmployeeDepartmentHistoryUpdateModel.cs new file mode 100644 index 0000000..80c9b85 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Models/EmployeeDepartmentHistoryUpdateModel.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class EmployeeDepartmentHistoryUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'DepartmentId'. + /// + /// + /// The property value for 'DepartmentId'. + /// + public short DepartmentId { get; set; } + + /// + /// Gets or sets the property value for 'ShiftId'. + /// + /// + /// The property value for 'ShiftId'. + /// + public byte ShiftId { get; set; } + + /// + /// Gets or sets the property value for 'StartDate'. + /// + /// + /// The property value for 'StartDate'. + /// + public DateOnly StartDate { get; set; } + + /// + /// Gets or sets the property value for 'EndDate'. + /// + /// + /// The property value for 'EndDate'. + /// + public DateOnly? EndDate { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Validation/EmployeeDepartmentHistoryCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Validation/EmployeeDepartmentHistoryCreateModelValidator.cs new file mode 100644 index 0000000..fef4d6c --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Validation/EmployeeDepartmentHistoryCreateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class EmployeeDepartmentHistoryCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public EmployeeDepartmentHistoryCreateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Validation/EmployeeDepartmentHistoryUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Validation/EmployeeDepartmentHistoryUpdateModelValidator.cs new file mode 100644 index 0000000..4eabd31 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Validation/EmployeeDepartmentHistoryUpdateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class EmployeeDepartmentHistoryUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public EmployeeDepartmentHistoryUpdateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Mapping/EmployeePayHistoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Mapping/EmployeePayHistoryProfile.cs new file mode 100644 index 0000000..c0983af --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Mapping/EmployeePayHistoryProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class EmployeePayHistoryProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public EmployeePayHistoryProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Models/EmployeePayHistoryCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Models/EmployeePayHistoryCreateModel.cs new file mode 100644 index 0000000..1c67c1e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Models/EmployeePayHistoryCreateModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class EmployeePayHistoryCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'RateChangeDate'. + /// + /// + /// The property value for 'RateChangeDate'. + /// + public DateTime RateChangeDate { get; set; } + + /// + /// Gets or sets the property value for 'Rate'. + /// + /// + /// The property value for 'Rate'. + /// + public decimal Rate { get; set; } + + /// + /// Gets or sets the property value for 'PayFrequency'. + /// + /// + /// The property value for 'PayFrequency'. + /// + public byte PayFrequency { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Models/EmployeePayHistoryReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Models/EmployeePayHistoryReadModel.cs new file mode 100644 index 0000000..4852d96 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Models/EmployeePayHistoryReadModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class EmployeePayHistoryReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'RateChangeDate'. + /// + /// + /// The property value for 'RateChangeDate'. + /// + public DateTime RateChangeDate { get; set; } + + /// + /// Gets or sets the property value for 'Rate'. + /// + /// + /// The property value for 'Rate'. + /// + public decimal Rate { get; set; } + + /// + /// Gets or sets the property value for 'PayFrequency'. + /// + /// + /// The property value for 'PayFrequency'. + /// + public byte PayFrequency { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Models/EmployeePayHistoryUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Models/EmployeePayHistoryUpdateModel.cs new file mode 100644 index 0000000..02c2cf4 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Models/EmployeePayHistoryUpdateModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class EmployeePayHistoryUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'RateChangeDate'. + /// + /// + /// The property value for 'RateChangeDate'. + /// + public DateTime RateChangeDate { get; set; } + + /// + /// Gets or sets the property value for 'Rate'. + /// + /// + /// The property value for 'Rate'. + /// + public decimal Rate { get; set; } + + /// + /// Gets or sets the property value for 'PayFrequency'. + /// + /// + /// The property value for 'PayFrequency'. + /// + public byte PayFrequency { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Validation/EmployeePayHistoryCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Validation/EmployeePayHistoryCreateModelValidator.cs new file mode 100644 index 0000000..ac8079d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Validation/EmployeePayHistoryCreateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class EmployeePayHistoryCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public EmployeePayHistoryCreateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Validation/EmployeePayHistoryUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Validation/EmployeePayHistoryUpdateModelValidator.cs new file mode 100644 index 0000000..7a9b8cf --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Validation/EmployeePayHistoryUpdateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class EmployeePayHistoryUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public EmployeePayHistoryUpdateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Illustration/Mapping/IllustrationProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Illustration/Mapping/IllustrationProfile.cs new file mode 100644 index 0000000..e9e53dc --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Illustration/Mapping/IllustrationProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class IllustrationProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public IllustrationProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationCreateModel.cs new file mode 100644 index 0000000..71bb040 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationCreateModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class IllustrationCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Diagram'. + /// + /// + /// The property value for 'Diagram'. + /// + public string? Diagram { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationReadModel.cs new file mode 100644 index 0000000..58cc3e8 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationReadModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class IllustrationReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Diagram'. + /// + /// + /// The property value for 'Diagram'. + /// + public string? Diagram { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationUpdateModel.cs new file mode 100644 index 0000000..fbea31b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationUpdateModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class IllustrationUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Diagram'. + /// + /// + /// The property value for 'Diagram'. + /// + public string? Diagram { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Illustration/Validation/IllustrationCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Illustration/Validation/IllustrationCreateModelValidator.cs new file mode 100644 index 0000000..3a93d21 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Illustration/Validation/IllustrationCreateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class IllustrationCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public IllustrationCreateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Illustration/Validation/IllustrationUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Illustration/Validation/IllustrationUpdateModelValidator.cs new file mode 100644 index 0000000..be96d64 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Illustration/Validation/IllustrationUpdateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class IllustrationUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public IllustrationUpdateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Mapping/JobCandidateProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Mapping/JobCandidateProfile.cs new file mode 100644 index 0000000..793d709 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Mapping/JobCandidateProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class JobCandidateProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public JobCandidateProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateCreateModel.cs new file mode 100644 index 0000000..dcfef29 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateCreateModel.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class JobCandidateCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int? BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Resume'. + /// + /// + /// The property value for 'Resume'. + /// + public string? Resume { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateReadModel.cs new file mode 100644 index 0000000..e8f1798 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateReadModel.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class JobCandidateReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int? BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Resume'. + /// + /// + /// The property value for 'Resume'. + /// + public string? Resume { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateUpdateModel.cs new file mode 100644 index 0000000..8a556dd --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateUpdateModel.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class JobCandidateUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int? BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Resume'. + /// + /// + /// The property value for 'Resume'. + /// + public string? Resume { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Validation/JobCandidateCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Validation/JobCandidateCreateModelValidator.cs new file mode 100644 index 0000000..18b5442 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Validation/JobCandidateCreateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class JobCandidateCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public JobCandidateCreateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Validation/JobCandidateUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Validation/JobCandidateUpdateModelValidator.cs new file mode 100644 index 0000000..35d3837 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Validation/JobCandidateUpdateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class JobCandidateUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public JobCandidateUpdateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Location/Mapping/LocationProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Location/Mapping/LocationProfile.cs new file mode 100644 index 0000000..9202fbb --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Location/Mapping/LocationProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class LocationProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public LocationProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Location/Models/LocationCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Location/Models/LocationCreateModel.cs new file mode 100644 index 0000000..3a63b8b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Location/Models/LocationCreateModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class LocationCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public short Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CostRate'. + /// + /// + /// The property value for 'CostRate'. + /// + public decimal CostRate { get; set; } + + /// + /// Gets or sets the property value for 'Availability'. + /// + /// + /// The property value for 'Availability'. + /// + public decimal Availability { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Location/Models/LocationReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Location/Models/LocationReadModel.cs new file mode 100644 index 0000000..f28c342 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Location/Models/LocationReadModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class LocationReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public short Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CostRate'. + /// + /// + /// The property value for 'CostRate'. + /// + public decimal CostRate { get; set; } + + /// + /// Gets or sets the property value for 'Availability'. + /// + /// + /// The property value for 'Availability'. + /// + public decimal Availability { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Location/Models/LocationUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Location/Models/LocationUpdateModel.cs new file mode 100644 index 0000000..77b3194 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Location/Models/LocationUpdateModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class LocationUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public short Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CostRate'. + /// + /// + /// The property value for 'CostRate'. + /// + public decimal CostRate { get; set; } + + /// + /// Gets or sets the property value for 'Availability'. + /// + /// + /// The property value for 'Availability'. + /// + public decimal Availability { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Location/Validation/LocationCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Location/Validation/LocationCreateModelValidator.cs new file mode 100644 index 0000000..249bc1e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Location/Validation/LocationCreateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class LocationCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public LocationCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Location/Validation/LocationUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Location/Validation/LocationUpdateModelValidator.cs new file mode 100644 index 0000000..055f6df --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Location/Validation/LocationUpdateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class LocationUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public LocationUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Password/Mapping/PasswordProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Password/Mapping/PasswordProfile.cs new file mode 100644 index 0000000..3d4e163 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Password/Mapping/PasswordProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class PasswordProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public PasswordProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Password/Models/PasswordCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Password/Models/PasswordCreateModel.cs new file mode 100644 index 0000000..a681acf --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Password/Models/PasswordCreateModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class PasswordCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'PasswordHash'. + /// + /// + /// The property value for 'PasswordHash'. + /// + public string PasswordHash { get; set; } = null!; + + /// + /// Gets or sets the property value for 'PasswordSalt'. + /// + /// + /// The property value for 'PasswordSalt'. + /// + public string PasswordSalt { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Password/Models/PasswordReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Password/Models/PasswordReadModel.cs new file mode 100644 index 0000000..43eb4fd --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Password/Models/PasswordReadModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class PasswordReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'PasswordHash'. + /// + /// + /// The property value for 'PasswordHash'. + /// + public string PasswordHash { get; set; } = null!; + + /// + /// Gets or sets the property value for 'PasswordSalt'. + /// + /// + /// The property value for 'PasswordSalt'. + /// + public string PasswordSalt { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Password/Models/PasswordUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Password/Models/PasswordUpdateModel.cs new file mode 100644 index 0000000..fdd48a4 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Password/Models/PasswordUpdateModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class PasswordUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'PasswordHash'. + /// + /// + /// The property value for 'PasswordHash'. + /// + public string PasswordHash { get; set; } = null!; + + /// + /// Gets or sets the property value for 'PasswordSalt'. + /// + /// + /// The property value for 'PasswordSalt'. + /// + public string PasswordSalt { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Password/Validation/PasswordCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Password/Validation/PasswordCreateModelValidator.cs new file mode 100644 index 0000000..3e2a350 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Password/Validation/PasswordCreateModelValidator.cs @@ -0,0 +1,28 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class PasswordCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public PasswordCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.PasswordHash).NotEmpty(); + RuleFor(p => p.PasswordHash).MaximumLength(128); + RuleFor(p => p.PasswordSalt).NotEmpty(); + RuleFor(p => p.PasswordSalt).MaximumLength(10); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Password/Validation/PasswordUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Password/Validation/PasswordUpdateModelValidator.cs new file mode 100644 index 0000000..f187c80 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Password/Validation/PasswordUpdateModelValidator.cs @@ -0,0 +1,28 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class PasswordUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public PasswordUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.PasswordHash).NotEmpty(); + RuleFor(p => p.PasswordHash).MaximumLength(128); + RuleFor(p => p.PasswordSalt).NotEmpty(); + RuleFor(p => p.PasswordSalt).MaximumLength(10); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Person/Mapping/PersonProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Person/Mapping/PersonProfile.cs new file mode 100644 index 0000000..902754c --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Person/Mapping/PersonProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class PersonProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public PersonProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Person/Models/PersonCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Person/Models/PersonCreateModel.cs new file mode 100644 index 0000000..26fd176 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Person/Models/PersonCreateModel.cs @@ -0,0 +1,119 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class PersonCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'PersonType'. + /// + /// + /// The property value for 'PersonType'. + /// + public string PersonType { get; set; } = null!; + + /// + /// Gets or sets the property value for 'NameStyle'. + /// + /// + /// The property value for 'NameStyle'. + /// + public bool NameStyle { get; set; } + + /// + /// Gets or sets the property value for 'Title'. + /// + /// + /// The property value for 'Title'. + /// + public string? Title { get; set; } + + /// + /// Gets or sets the property value for 'FirstName'. + /// + /// + /// The property value for 'FirstName'. + /// + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'MiddleName'. + /// + /// + /// The property value for 'MiddleName'. + /// + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value for 'LastName'. + /// + /// + /// The property value for 'LastName'. + /// + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Suffix'. + /// + /// + /// The property value for 'Suffix'. + /// + public string? Suffix { get; set; } + + /// + /// Gets or sets the property value for 'EmailPromotion'. + /// + /// + /// The property value for 'EmailPromotion'. + /// + public int EmailPromotion { get; set; } + + /// + /// Gets or sets the property value for 'AdditionalContactInfo'. + /// + /// + /// The property value for 'AdditionalContactInfo'. + /// + public string? AdditionalContactInfo { get; set; } + + /// + /// Gets or sets the property value for 'Demographics'. + /// + /// + /// The property value for 'Demographics'. + /// + public string? Demographics { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Person/Models/PersonReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Person/Models/PersonReadModel.cs new file mode 100644 index 0000000..2d67a9a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Person/Models/PersonReadModel.cs @@ -0,0 +1,119 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class PersonReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'PersonType'. + /// + /// + /// The property value for 'PersonType'. + /// + public string PersonType { get; set; } = null!; + + /// + /// Gets or sets the property value for 'NameStyle'. + /// + /// + /// The property value for 'NameStyle'. + /// + public bool NameStyle { get; set; } + + /// + /// Gets or sets the property value for 'Title'. + /// + /// + /// The property value for 'Title'. + /// + public string? Title { get; set; } + + /// + /// Gets or sets the property value for 'FirstName'. + /// + /// + /// The property value for 'FirstName'. + /// + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'MiddleName'. + /// + /// + /// The property value for 'MiddleName'. + /// + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value for 'LastName'. + /// + /// + /// The property value for 'LastName'. + /// + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Suffix'. + /// + /// + /// The property value for 'Suffix'. + /// + public string? Suffix { get; set; } + + /// + /// Gets or sets the property value for 'EmailPromotion'. + /// + /// + /// The property value for 'EmailPromotion'. + /// + public int EmailPromotion { get; set; } + + /// + /// Gets or sets the property value for 'AdditionalContactInfo'. + /// + /// + /// The property value for 'AdditionalContactInfo'. + /// + public string? AdditionalContactInfo { get; set; } + + /// + /// Gets or sets the property value for 'Demographics'. + /// + /// + /// The property value for 'Demographics'. + /// + public string? Demographics { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Person/Models/PersonUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Person/Models/PersonUpdateModel.cs new file mode 100644 index 0000000..c87eccd --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Person/Models/PersonUpdateModel.cs @@ -0,0 +1,119 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class PersonUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'PersonType'. + /// + /// + /// The property value for 'PersonType'. + /// + public string PersonType { get; set; } = null!; + + /// + /// Gets or sets the property value for 'NameStyle'. + /// + /// + /// The property value for 'NameStyle'. + /// + public bool NameStyle { get; set; } + + /// + /// Gets or sets the property value for 'Title'. + /// + /// + /// The property value for 'Title'. + /// + public string? Title { get; set; } + + /// + /// Gets or sets the property value for 'FirstName'. + /// + /// + /// The property value for 'FirstName'. + /// + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'MiddleName'. + /// + /// + /// The property value for 'MiddleName'. + /// + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value for 'LastName'. + /// + /// + /// The property value for 'LastName'. + /// + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Suffix'. + /// + /// + /// The property value for 'Suffix'. + /// + public string? Suffix { get; set; } + + /// + /// Gets or sets the property value for 'EmailPromotion'. + /// + /// + /// The property value for 'EmailPromotion'. + /// + public int EmailPromotion { get; set; } + + /// + /// Gets or sets the property value for 'AdditionalContactInfo'. + /// + /// + /// The property value for 'AdditionalContactInfo'. + /// + public string? AdditionalContactInfo { get; set; } + + /// + /// Gets or sets the property value for 'Demographics'. + /// + /// + /// The property value for 'Demographics'. + /// + public string? Demographics { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Person/Validation/PersonCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Person/Validation/PersonCreateModelValidator.cs new file mode 100644 index 0000000..e4dadc9 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Person/Validation/PersonCreateModelValidator.cs @@ -0,0 +1,33 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class PersonCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public PersonCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.PersonType).NotEmpty(); + RuleFor(p => p.PersonType).MaximumLength(2); + RuleFor(p => p.Title).MaximumLength(8); + RuleFor(p => p.FirstName).NotEmpty(); + RuleFor(p => p.FirstName).MaximumLength(50); + RuleFor(p => p.MiddleName).MaximumLength(50); + RuleFor(p => p.LastName).NotEmpty(); + RuleFor(p => p.LastName).MaximumLength(50); + RuleFor(p => p.Suffix).MaximumLength(10); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Person/Validation/PersonUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Person/Validation/PersonUpdateModelValidator.cs new file mode 100644 index 0000000..4e25e99 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Person/Validation/PersonUpdateModelValidator.cs @@ -0,0 +1,33 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class PersonUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public PersonUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.PersonType).NotEmpty(); + RuleFor(p => p.PersonType).MaximumLength(2); + RuleFor(p => p.Title).MaximumLength(8); + RuleFor(p => p.FirstName).NotEmpty(); + RuleFor(p => p.FirstName).MaximumLength(50); + RuleFor(p => p.MiddleName).MaximumLength(50); + RuleFor(p => p.LastName).NotEmpty(); + RuleFor(p => p.LastName).MaximumLength(50); + RuleFor(p => p.Suffix).MaximumLength(10); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Mapping/PersonCreditCardProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Mapping/PersonCreditCardProfile.cs new file mode 100644 index 0000000..280153a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Mapping/PersonCreditCardProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class PersonCreditCardProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public PersonCreditCardProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardCreateModel.cs new file mode 100644 index 0000000..d8a7b24 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardCreateModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class PersonCreditCardCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'CreditCardId'. + /// + /// + /// The property value for 'CreditCardId'. + /// + public int CreditCardId { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardReadModel.cs new file mode 100644 index 0000000..87c8a50 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardReadModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class PersonCreditCardReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'CreditCardId'. + /// + /// + /// The property value for 'CreditCardId'. + /// + public int CreditCardId { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardUpdateModel.cs new file mode 100644 index 0000000..8180b7c --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardUpdateModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class PersonCreditCardUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'CreditCardId'. + /// + /// + /// The property value for 'CreditCardId'. + /// + public int CreditCardId { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Validation/PersonCreditCardCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Validation/PersonCreditCardCreateModelValidator.cs new file mode 100644 index 0000000..c3355b0 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Validation/PersonCreditCardCreateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class PersonCreditCardCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public PersonCreditCardCreateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Validation/PersonCreditCardUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Validation/PersonCreditCardUpdateModelValidator.cs new file mode 100644 index 0000000..c653b16 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Validation/PersonCreditCardUpdateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class PersonCreditCardUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public PersonCreditCardUpdateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Mapping/PersonPhoneProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Mapping/PersonPhoneProfile.cs new file mode 100644 index 0000000..50667f9 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Mapping/PersonPhoneProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class PersonPhoneProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public PersonPhoneProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneCreateModel.cs new file mode 100644 index 0000000..305b4bf --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneCreateModel.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class PersonPhoneCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'PhoneNumber'. + /// + /// + /// The property value for 'PhoneNumber'. + /// + public string PhoneNumber { get; set; } = null!; + + /// + /// Gets or sets the property value for 'PhoneNumberTypeId'. + /// + /// + /// The property value for 'PhoneNumberTypeId'. + /// + public int PhoneNumberTypeId { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneReadModel.cs new file mode 100644 index 0000000..3dcb7b6 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneReadModel.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class PersonPhoneReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'PhoneNumber'. + /// + /// + /// The property value for 'PhoneNumber'. + /// + public string PhoneNumber { get; set; } = null!; + + /// + /// Gets or sets the property value for 'PhoneNumberTypeId'. + /// + /// + /// The property value for 'PhoneNumberTypeId'. + /// + public int PhoneNumberTypeId { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneUpdateModel.cs new file mode 100644 index 0000000..f9cd749 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneUpdateModel.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class PersonPhoneUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'PhoneNumber'. + /// + /// + /// The property value for 'PhoneNumber'. + /// + public string PhoneNumber { get; set; } = null!; + + /// + /// Gets or sets the property value for 'PhoneNumberTypeId'. + /// + /// + /// The property value for 'PhoneNumberTypeId'. + /// + public int PhoneNumberTypeId { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Validation/PersonPhoneCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Validation/PersonPhoneCreateModelValidator.cs new file mode 100644 index 0000000..ba6b926 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Validation/PersonPhoneCreateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class PersonPhoneCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public PersonPhoneCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.PhoneNumber).NotEmpty(); + RuleFor(p => p.PhoneNumber).MaximumLength(25); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Validation/PersonPhoneUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Validation/PersonPhoneUpdateModelValidator.cs new file mode 100644 index 0000000..34ce49a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Validation/PersonPhoneUpdateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class PersonPhoneUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public PersonPhoneUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.PhoneNumber).NotEmpty(); + RuleFor(p => p.PhoneNumber).MaximumLength(25); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Mapping/PhoneNumberTypeProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Mapping/PhoneNumberTypeProfile.cs new file mode 100644 index 0000000..73ff2f4 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Mapping/PhoneNumberTypeProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class PhoneNumberTypeProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public PhoneNumberTypeProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeCreateModel.cs new file mode 100644 index 0000000..ca590dc --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeCreateModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class PhoneNumberTypeCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeReadModel.cs new file mode 100644 index 0000000..db9ef7a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeReadModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class PhoneNumberTypeReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeUpdateModel.cs new file mode 100644 index 0000000..3e7835a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeUpdateModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class PhoneNumberTypeUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Validation/PhoneNumberTypeCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Validation/PhoneNumberTypeCreateModelValidator.cs new file mode 100644 index 0000000..5680ad6 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Validation/PhoneNumberTypeCreateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class PhoneNumberTypeCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public PhoneNumberTypeCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Validation/PhoneNumberTypeUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Validation/PhoneNumberTypeUpdateModelValidator.cs new file mode 100644 index 0000000..8df349d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Validation/PhoneNumberTypeUpdateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class PhoneNumberTypeUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public PhoneNumberTypeUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Product/Mapping/ProductProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Product/Mapping/ProductProfile.cs new file mode 100644 index 0000000..f3726f9 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Product/Mapping/ProductProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class ProductProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public ProductProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Product/Models/ProductCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Product/Models/ProductCreateModel.cs new file mode 100644 index 0000000..0f1bc35 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Product/Models/ProductCreateModel.cs @@ -0,0 +1,215 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ProductNumber'. + /// + /// + /// The property value for 'ProductNumber'. + /// + public string ProductNumber { get; set; } = null!; + + /// + /// Gets or sets the property value for 'MakeFlag'. + /// + /// + /// The property value for 'MakeFlag'. + /// + public bool MakeFlag { get; set; } + + /// + /// Gets or sets the property value for 'FinishedGoodsFlag'. + /// + /// + /// The property value for 'FinishedGoodsFlag'. + /// + public bool FinishedGoodsFlag { get; set; } + + /// + /// Gets or sets the property value for 'Color'. + /// + /// + /// The property value for 'Color'. + /// + public string? Color { get; set; } + + /// + /// Gets or sets the property value for 'SafetyStockLevel'. + /// + /// + /// The property value for 'SafetyStockLevel'. + /// + public short SafetyStockLevel { get; set; } + + /// + /// Gets or sets the property value for 'ReorderPoint'. + /// + /// + /// The property value for 'ReorderPoint'. + /// + public short ReorderPoint { get; set; } + + /// + /// Gets or sets the property value for 'StandardCost'. + /// + /// + /// The property value for 'StandardCost'. + /// + public decimal StandardCost { get; set; } + + /// + /// Gets or sets the property value for 'ListPrice'. + /// + /// + /// The property value for 'ListPrice'. + /// + public decimal ListPrice { get; set; } + + /// + /// Gets or sets the property value for 'Size'. + /// + /// + /// The property value for 'Size'. + /// + public string? Size { get; set; } + + /// + /// Gets or sets the property value for 'SizeUnitMeasureCode'. + /// + /// + /// The property value for 'SizeUnitMeasureCode'. + /// + public string? SizeUnitMeasureCode { get; set; } + + /// + /// Gets or sets the property value for 'WeightUnitMeasureCode'. + /// + /// + /// The property value for 'WeightUnitMeasureCode'. + /// + public string? WeightUnitMeasureCode { get; set; } + + /// + /// Gets or sets the property value for 'Weight'. + /// + /// + /// The property value for 'Weight'. + /// + public decimal? Weight { get; set; } + + /// + /// Gets or sets the property value for 'DaysToManufacture'. + /// + /// + /// The property value for 'DaysToManufacture'. + /// + public int DaysToManufacture { get; set; } + + /// + /// Gets or sets the property value for 'ProductLine'. + /// + /// + /// The property value for 'ProductLine'. + /// + public string? ProductLine { get; set; } + + /// + /// Gets or sets the property value for 'Class'. + /// + /// + /// The property value for 'Class'. + /// + public string? Class { get; set; } + + /// + /// Gets or sets the property value for 'Style'. + /// + /// + /// The property value for 'Style'. + /// + public string? Style { get; set; } + + /// + /// Gets or sets the property value for 'ProductSubcategoryId'. + /// + /// + /// The property value for 'ProductSubcategoryId'. + /// + public int? ProductSubcategoryId { get; set; } + + /// + /// Gets or sets the property value for 'ProductModelId'. + /// + /// + /// The property value for 'ProductModelId'. + /// + public int? ProductModelId { get; set; } + + /// + /// Gets or sets the property value for 'SellStartDate'. + /// + /// + /// The property value for 'SellStartDate'. + /// + public DateTime SellStartDate { get; set; } + + /// + /// Gets or sets the property value for 'SellEndDate'. + /// + /// + /// The property value for 'SellEndDate'. + /// + public DateTime? SellEndDate { get; set; } + + /// + /// Gets or sets the property value for 'DiscontinuedDate'. + /// + /// + /// The property value for 'DiscontinuedDate'. + /// + public DateTime? DiscontinuedDate { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Product/Models/ProductReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Product/Models/ProductReadModel.cs new file mode 100644 index 0000000..41a33e0 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Product/Models/ProductReadModel.cs @@ -0,0 +1,215 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ProductNumber'. + /// + /// + /// The property value for 'ProductNumber'. + /// + public string ProductNumber { get; set; } = null!; + + /// + /// Gets or sets the property value for 'MakeFlag'. + /// + /// + /// The property value for 'MakeFlag'. + /// + public bool MakeFlag { get; set; } + + /// + /// Gets or sets the property value for 'FinishedGoodsFlag'. + /// + /// + /// The property value for 'FinishedGoodsFlag'. + /// + public bool FinishedGoodsFlag { get; set; } + + /// + /// Gets or sets the property value for 'Color'. + /// + /// + /// The property value for 'Color'. + /// + public string? Color { get; set; } + + /// + /// Gets or sets the property value for 'SafetyStockLevel'. + /// + /// + /// The property value for 'SafetyStockLevel'. + /// + public short SafetyStockLevel { get; set; } + + /// + /// Gets or sets the property value for 'ReorderPoint'. + /// + /// + /// The property value for 'ReorderPoint'. + /// + public short ReorderPoint { get; set; } + + /// + /// Gets or sets the property value for 'StandardCost'. + /// + /// + /// The property value for 'StandardCost'. + /// + public decimal StandardCost { get; set; } + + /// + /// Gets or sets the property value for 'ListPrice'. + /// + /// + /// The property value for 'ListPrice'. + /// + public decimal ListPrice { get; set; } + + /// + /// Gets or sets the property value for 'Size'. + /// + /// + /// The property value for 'Size'. + /// + public string? Size { get; set; } + + /// + /// Gets or sets the property value for 'SizeUnitMeasureCode'. + /// + /// + /// The property value for 'SizeUnitMeasureCode'. + /// + public string? SizeUnitMeasureCode { get; set; } + + /// + /// Gets or sets the property value for 'WeightUnitMeasureCode'. + /// + /// + /// The property value for 'WeightUnitMeasureCode'. + /// + public string? WeightUnitMeasureCode { get; set; } + + /// + /// Gets or sets the property value for 'Weight'. + /// + /// + /// The property value for 'Weight'. + /// + public decimal? Weight { get; set; } + + /// + /// Gets or sets the property value for 'DaysToManufacture'. + /// + /// + /// The property value for 'DaysToManufacture'. + /// + public int DaysToManufacture { get; set; } + + /// + /// Gets or sets the property value for 'ProductLine'. + /// + /// + /// The property value for 'ProductLine'. + /// + public string? ProductLine { get; set; } + + /// + /// Gets or sets the property value for 'Class'. + /// + /// + /// The property value for 'Class'. + /// + public string? Class { get; set; } + + /// + /// Gets or sets the property value for 'Style'. + /// + /// + /// The property value for 'Style'. + /// + public string? Style { get; set; } + + /// + /// Gets or sets the property value for 'ProductSubcategoryId'. + /// + /// + /// The property value for 'ProductSubcategoryId'. + /// + public int? ProductSubcategoryId { get; set; } + + /// + /// Gets or sets the property value for 'ProductModelId'. + /// + /// + /// The property value for 'ProductModelId'. + /// + public int? ProductModelId { get; set; } + + /// + /// Gets or sets the property value for 'SellStartDate'. + /// + /// + /// The property value for 'SellStartDate'. + /// + public DateTime SellStartDate { get; set; } + + /// + /// Gets or sets the property value for 'SellEndDate'. + /// + /// + /// The property value for 'SellEndDate'. + /// + public DateTime? SellEndDate { get; set; } + + /// + /// Gets or sets the property value for 'DiscontinuedDate'. + /// + /// + /// The property value for 'DiscontinuedDate'. + /// + public DateTime? DiscontinuedDate { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Product/Models/ProductUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Product/Models/ProductUpdateModel.cs new file mode 100644 index 0000000..e50d215 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Product/Models/ProductUpdateModel.cs @@ -0,0 +1,215 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ProductNumber'. + /// + /// + /// The property value for 'ProductNumber'. + /// + public string ProductNumber { get; set; } = null!; + + /// + /// Gets or sets the property value for 'MakeFlag'. + /// + /// + /// The property value for 'MakeFlag'. + /// + public bool MakeFlag { get; set; } + + /// + /// Gets or sets the property value for 'FinishedGoodsFlag'. + /// + /// + /// The property value for 'FinishedGoodsFlag'. + /// + public bool FinishedGoodsFlag { get; set; } + + /// + /// Gets or sets the property value for 'Color'. + /// + /// + /// The property value for 'Color'. + /// + public string? Color { get; set; } + + /// + /// Gets or sets the property value for 'SafetyStockLevel'. + /// + /// + /// The property value for 'SafetyStockLevel'. + /// + public short SafetyStockLevel { get; set; } + + /// + /// Gets or sets the property value for 'ReorderPoint'. + /// + /// + /// The property value for 'ReorderPoint'. + /// + public short ReorderPoint { get; set; } + + /// + /// Gets or sets the property value for 'StandardCost'. + /// + /// + /// The property value for 'StandardCost'. + /// + public decimal StandardCost { get; set; } + + /// + /// Gets or sets the property value for 'ListPrice'. + /// + /// + /// The property value for 'ListPrice'. + /// + public decimal ListPrice { get; set; } + + /// + /// Gets or sets the property value for 'Size'. + /// + /// + /// The property value for 'Size'. + /// + public string? Size { get; set; } + + /// + /// Gets or sets the property value for 'SizeUnitMeasureCode'. + /// + /// + /// The property value for 'SizeUnitMeasureCode'. + /// + public string? SizeUnitMeasureCode { get; set; } + + /// + /// Gets or sets the property value for 'WeightUnitMeasureCode'. + /// + /// + /// The property value for 'WeightUnitMeasureCode'. + /// + public string? WeightUnitMeasureCode { get; set; } + + /// + /// Gets or sets the property value for 'Weight'. + /// + /// + /// The property value for 'Weight'. + /// + public decimal? Weight { get; set; } + + /// + /// Gets or sets the property value for 'DaysToManufacture'. + /// + /// + /// The property value for 'DaysToManufacture'. + /// + public int DaysToManufacture { get; set; } + + /// + /// Gets or sets the property value for 'ProductLine'. + /// + /// + /// The property value for 'ProductLine'. + /// + public string? ProductLine { get; set; } + + /// + /// Gets or sets the property value for 'Class'. + /// + /// + /// The property value for 'Class'. + /// + public string? Class { get; set; } + + /// + /// Gets or sets the property value for 'Style'. + /// + /// + /// The property value for 'Style'. + /// + public string? Style { get; set; } + + /// + /// Gets or sets the property value for 'ProductSubcategoryId'. + /// + /// + /// The property value for 'ProductSubcategoryId'. + /// + public int? ProductSubcategoryId { get; set; } + + /// + /// Gets or sets the property value for 'ProductModelId'. + /// + /// + /// The property value for 'ProductModelId'. + /// + public int? ProductModelId { get; set; } + + /// + /// Gets or sets the property value for 'SellStartDate'. + /// + /// + /// The property value for 'SellStartDate'. + /// + public DateTime SellStartDate { get; set; } + + /// + /// Gets or sets the property value for 'SellEndDate'. + /// + /// + /// The property value for 'SellEndDate'. + /// + public DateTime? SellEndDate { get; set; } + + /// + /// Gets or sets the property value for 'DiscontinuedDate'. + /// + /// + /// The property value for 'DiscontinuedDate'. + /// + public DateTime? DiscontinuedDate { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Product/Validation/ProductCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Product/Validation/ProductCreateModelValidator.cs new file mode 100644 index 0000000..e22f9c2 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Product/Validation/ProductCreateModelValidator.cs @@ -0,0 +1,35 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ProductCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ProductCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + RuleFor(p => p.ProductNumber).NotEmpty(); + RuleFor(p => p.ProductNumber).MaximumLength(25); + RuleFor(p => p.Color).MaximumLength(15); + RuleFor(p => p.Size).MaximumLength(5); + RuleFor(p => p.SizeUnitMeasureCode).MaximumLength(3); + RuleFor(p => p.WeightUnitMeasureCode).MaximumLength(3); + RuleFor(p => p.ProductLine).MaximumLength(2); + RuleFor(p => p.Class).MaximumLength(2); + RuleFor(p => p.Style).MaximumLength(2); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Product/Validation/ProductUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Product/Validation/ProductUpdateModelValidator.cs new file mode 100644 index 0000000..7265fc3 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Product/Validation/ProductUpdateModelValidator.cs @@ -0,0 +1,35 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ProductUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ProductUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + RuleFor(p => p.ProductNumber).NotEmpty(); + RuleFor(p => p.ProductNumber).MaximumLength(25); + RuleFor(p => p.Color).MaximumLength(15); + RuleFor(p => p.Size).MaximumLength(5); + RuleFor(p => p.SizeUnitMeasureCode).MaximumLength(3); + RuleFor(p => p.WeightUnitMeasureCode).MaximumLength(3); + RuleFor(p => p.ProductLine).MaximumLength(2); + RuleFor(p => p.Class).MaximumLength(2); + RuleFor(p => p.Style).MaximumLength(2); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Mapping/ProductCategoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Mapping/ProductCategoryProfile.cs new file mode 100644 index 0000000..3ed45a1 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Mapping/ProductCategoryProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class ProductCategoryProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public ProductCategoryProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryCreateModel.cs new file mode 100644 index 0000000..c1f16d5 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryCreateModel.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductCategoryCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryReadModel.cs new file mode 100644 index 0000000..1c37023 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryReadModel.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductCategoryReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryUpdateModel.cs new file mode 100644 index 0000000..fd029c9 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryUpdateModel.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductCategoryUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Validation/ProductCategoryCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Validation/ProductCategoryCreateModelValidator.cs new file mode 100644 index 0000000..3300e6b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Validation/ProductCategoryCreateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ProductCategoryCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ProductCategoryCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Validation/ProductCategoryUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Validation/ProductCategoryUpdateModelValidator.cs new file mode 100644 index 0000000..52e5c85 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Validation/ProductCategoryUpdateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ProductCategoryUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ProductCategoryUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Mapping/ProductCostHistoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Mapping/ProductCostHistoryProfile.cs new file mode 100644 index 0000000..f2600ac --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Mapping/ProductCostHistoryProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class ProductCostHistoryProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public ProductCostHistoryProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Models/ProductCostHistoryCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Models/ProductCostHistoryCreateModel.cs new file mode 100644 index 0000000..25da2bb --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Models/ProductCostHistoryCreateModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductCostHistoryCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'StartDate'. + /// + /// + /// The property value for 'StartDate'. + /// + public DateTime StartDate { get; set; } + + /// + /// Gets or sets the property value for 'EndDate'. + /// + /// + /// The property value for 'EndDate'. + /// + public DateTime? EndDate { get; set; } + + /// + /// Gets or sets the property value for 'StandardCost'. + /// + /// + /// The property value for 'StandardCost'. + /// + public decimal StandardCost { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Models/ProductCostHistoryReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Models/ProductCostHistoryReadModel.cs new file mode 100644 index 0000000..75357a2 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Models/ProductCostHistoryReadModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductCostHistoryReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'StartDate'. + /// + /// + /// The property value for 'StartDate'. + /// + public DateTime StartDate { get; set; } + + /// + /// Gets or sets the property value for 'EndDate'. + /// + /// + /// The property value for 'EndDate'. + /// + public DateTime? EndDate { get; set; } + + /// + /// Gets or sets the property value for 'StandardCost'. + /// + /// + /// The property value for 'StandardCost'. + /// + public decimal StandardCost { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Models/ProductCostHistoryUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Models/ProductCostHistoryUpdateModel.cs new file mode 100644 index 0000000..ef002ec --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Models/ProductCostHistoryUpdateModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductCostHistoryUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'StartDate'. + /// + /// + /// The property value for 'StartDate'. + /// + public DateTime StartDate { get; set; } + + /// + /// Gets or sets the property value for 'EndDate'. + /// + /// + /// The property value for 'EndDate'. + /// + public DateTime? EndDate { get; set; } + + /// + /// Gets or sets the property value for 'StandardCost'. + /// + /// + /// The property value for 'StandardCost'. + /// + public decimal StandardCost { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Validation/ProductCostHistoryCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Validation/ProductCostHistoryCreateModelValidator.cs new file mode 100644 index 0000000..9751339 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Validation/ProductCostHistoryCreateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ProductCostHistoryCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ProductCostHistoryCreateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Validation/ProductCostHistoryUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Validation/ProductCostHistoryUpdateModelValidator.cs new file mode 100644 index 0000000..7754a84 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Validation/ProductCostHistoryUpdateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ProductCostHistoryUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ProductCostHistoryUpdateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Mapping/ProductDescriptionProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Mapping/ProductDescriptionProfile.cs new file mode 100644 index 0000000..43d0770 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Mapping/ProductDescriptionProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class ProductDescriptionProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public ProductDescriptionProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionCreateModel.cs new file mode 100644 index 0000000..07d1aa4 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionCreateModel.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductDescriptionCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Description'. + /// + /// + /// The property value for 'Description'. + /// + public string Description { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionReadModel.cs new file mode 100644 index 0000000..796cab6 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionReadModel.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductDescriptionReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Description'. + /// + /// + /// The property value for 'Description'. + /// + public string Description { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionUpdateModel.cs new file mode 100644 index 0000000..2b6d6af --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionUpdateModel.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductDescriptionUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Description'. + /// + /// + /// The property value for 'Description'. + /// + public string Description { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Validation/ProductDescriptionCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Validation/ProductDescriptionCreateModelValidator.cs new file mode 100644 index 0000000..0faea9c --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Validation/ProductDescriptionCreateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ProductDescriptionCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ProductDescriptionCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Description).NotEmpty(); + RuleFor(p => p.Description).MaximumLength(400); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Validation/ProductDescriptionUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Validation/ProductDescriptionUpdateModelValidator.cs new file mode 100644 index 0000000..a4b7379 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Validation/ProductDescriptionUpdateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ProductDescriptionUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ProductDescriptionUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Description).NotEmpty(); + RuleFor(p => p.Description).MaximumLength(400); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Mapping/ProductDocumentProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Mapping/ProductDocumentProfile.cs new file mode 100644 index 0000000..a8543c9 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Mapping/ProductDocumentProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class ProductDocumentProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public ProductDocumentProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentCreateModel.cs new file mode 100644 index 0000000..f91fcc2 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentCreateModel.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductDocumentCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentReadModel.cs new file mode 100644 index 0000000..028c545 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentReadModel.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductDocumentReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentUpdateModel.cs new file mode 100644 index 0000000..b33e6ef --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentUpdateModel.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductDocumentUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Validation/ProductDocumentCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Validation/ProductDocumentCreateModelValidator.cs new file mode 100644 index 0000000..ad8dfed --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Validation/ProductDocumentCreateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ProductDocumentCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ProductDocumentCreateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Validation/ProductDocumentUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Validation/ProductDocumentUpdateModelValidator.cs new file mode 100644 index 0000000..3abef6c --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Validation/ProductDocumentUpdateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ProductDocumentUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ProductDocumentUpdateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Mapping/ProductInventoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Mapping/ProductInventoryProfile.cs new file mode 100644 index 0000000..f3c5a73 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Mapping/ProductInventoryProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class ProductInventoryProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public ProductInventoryProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryCreateModel.cs new file mode 100644 index 0000000..40f6fd1 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryCreateModel.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductInventoryCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'LocationId'. + /// + /// + /// The property value for 'LocationId'. + /// + public short LocationId { get; set; } + + /// + /// Gets or sets the property value for 'Shelf'. + /// + /// + /// The property value for 'Shelf'. + /// + public string Shelf { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Bin'. + /// + /// + /// The property value for 'Bin'. + /// + public byte Bin { get; set; } + + /// + /// Gets or sets the property value for 'Quantity'. + /// + /// + /// The property value for 'Quantity'. + /// + public short Quantity { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryReadModel.cs new file mode 100644 index 0000000..caeb809 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryReadModel.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductInventoryReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'LocationId'. + /// + /// + /// The property value for 'LocationId'. + /// + public short LocationId { get; set; } + + /// + /// Gets or sets the property value for 'Shelf'. + /// + /// + /// The property value for 'Shelf'. + /// + public string Shelf { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Bin'. + /// + /// + /// The property value for 'Bin'. + /// + public byte Bin { get; set; } + + /// + /// Gets or sets the property value for 'Quantity'. + /// + /// + /// The property value for 'Quantity'. + /// + public short Quantity { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryUpdateModel.cs new file mode 100644 index 0000000..8d47c4d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryUpdateModel.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductInventoryUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'LocationId'. + /// + /// + /// The property value for 'LocationId'. + /// + public short LocationId { get; set; } + + /// + /// Gets or sets the property value for 'Shelf'. + /// + /// + /// The property value for 'Shelf'. + /// + public string Shelf { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Bin'. + /// + /// + /// The property value for 'Bin'. + /// + public byte Bin { get; set; } + + /// + /// Gets or sets the property value for 'Quantity'. + /// + /// + /// The property value for 'Quantity'. + /// + public short Quantity { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Validation/ProductInventoryCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Validation/ProductInventoryCreateModelValidator.cs new file mode 100644 index 0000000..91c1089 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Validation/ProductInventoryCreateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ProductInventoryCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ProductInventoryCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Shelf).NotEmpty(); + RuleFor(p => p.Shelf).MaximumLength(10); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Validation/ProductInventoryUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Validation/ProductInventoryUpdateModelValidator.cs new file mode 100644 index 0000000..791eddf --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Validation/ProductInventoryUpdateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ProductInventoryUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ProductInventoryUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Shelf).NotEmpty(); + RuleFor(p => p.Shelf).MaximumLength(10); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Mapping/ProductListPriceHistoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Mapping/ProductListPriceHistoryProfile.cs new file mode 100644 index 0000000..85bc850 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Mapping/ProductListPriceHistoryProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class ProductListPriceHistoryProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public ProductListPriceHistoryProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Models/ProductListPriceHistoryCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Models/ProductListPriceHistoryCreateModel.cs new file mode 100644 index 0000000..2e71e7d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Models/ProductListPriceHistoryCreateModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductListPriceHistoryCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'StartDate'. + /// + /// + /// The property value for 'StartDate'. + /// + public DateTime StartDate { get; set; } + + /// + /// Gets or sets the property value for 'EndDate'. + /// + /// + /// The property value for 'EndDate'. + /// + public DateTime? EndDate { get; set; } + + /// + /// Gets or sets the property value for 'ListPrice'. + /// + /// + /// The property value for 'ListPrice'. + /// + public decimal ListPrice { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Models/ProductListPriceHistoryReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Models/ProductListPriceHistoryReadModel.cs new file mode 100644 index 0000000..5501dcd --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Models/ProductListPriceHistoryReadModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductListPriceHistoryReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'StartDate'. + /// + /// + /// The property value for 'StartDate'. + /// + public DateTime StartDate { get; set; } + + /// + /// Gets or sets the property value for 'EndDate'. + /// + /// + /// The property value for 'EndDate'. + /// + public DateTime? EndDate { get; set; } + + /// + /// Gets or sets the property value for 'ListPrice'. + /// + /// + /// The property value for 'ListPrice'. + /// + public decimal ListPrice { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Models/ProductListPriceHistoryUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Models/ProductListPriceHistoryUpdateModel.cs new file mode 100644 index 0000000..c886454 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Models/ProductListPriceHistoryUpdateModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductListPriceHistoryUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'StartDate'. + /// + /// + /// The property value for 'StartDate'. + /// + public DateTime StartDate { get; set; } + + /// + /// Gets or sets the property value for 'EndDate'. + /// + /// + /// The property value for 'EndDate'. + /// + public DateTime? EndDate { get; set; } + + /// + /// Gets or sets the property value for 'ListPrice'. + /// + /// + /// The property value for 'ListPrice'. + /// + public decimal ListPrice { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Validation/ProductListPriceHistoryCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Validation/ProductListPriceHistoryCreateModelValidator.cs new file mode 100644 index 0000000..50ae82a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Validation/ProductListPriceHistoryCreateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ProductListPriceHistoryCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ProductListPriceHistoryCreateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Validation/ProductListPriceHistoryUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Validation/ProductListPriceHistoryUpdateModelValidator.cs new file mode 100644 index 0000000..559ba20 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Validation/ProductListPriceHistoryUpdateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ProductListPriceHistoryUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ProductListPriceHistoryUpdateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Mapping/ProductModelProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Mapping/ProductModelProfile.cs new file mode 100644 index 0000000..322c296 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Mapping/ProductModelProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class ProductModelProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public ProductModelProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Models/ProductModelCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Models/ProductModelCreateModel.cs new file mode 100644 index 0000000..6d87f80 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Models/ProductModelCreateModel.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductModelCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CatalogDescription'. + /// + /// + /// The property value for 'CatalogDescription'. + /// + public string? CatalogDescription { get; set; } + + /// + /// Gets or sets the property value for 'Instructions'. + /// + /// + /// The property value for 'Instructions'. + /// + public string? Instructions { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Models/ProductModelReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Models/ProductModelReadModel.cs new file mode 100644 index 0000000..f603162 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Models/ProductModelReadModel.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductModelReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CatalogDescription'. + /// + /// + /// The property value for 'CatalogDescription'. + /// + public string? CatalogDescription { get; set; } + + /// + /// Gets or sets the property value for 'Instructions'. + /// + /// + /// The property value for 'Instructions'. + /// + public string? Instructions { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Models/ProductModelUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Models/ProductModelUpdateModel.cs new file mode 100644 index 0000000..50fad37 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Models/ProductModelUpdateModel.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductModelUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CatalogDescription'. + /// + /// + /// The property value for 'CatalogDescription'. + /// + public string? CatalogDescription { get; set; } + + /// + /// Gets or sets the property value for 'Instructions'. + /// + /// + /// The property value for 'Instructions'. + /// + public string? Instructions { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Validation/ProductModelCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Validation/ProductModelCreateModelValidator.cs new file mode 100644 index 0000000..57845ac --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Validation/ProductModelCreateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ProductModelCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ProductModelCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Validation/ProductModelUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Validation/ProductModelUpdateModelValidator.cs new file mode 100644 index 0000000..23354b6 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Validation/ProductModelUpdateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ProductModelUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ProductModelUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Mapping/ProductModelIllustrationProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Mapping/ProductModelIllustrationProfile.cs new file mode 100644 index 0000000..c939403 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Mapping/ProductModelIllustrationProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class ProductModelIllustrationProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public ProductModelIllustrationProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationCreateModel.cs new file mode 100644 index 0000000..ce8b827 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationCreateModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductModelIllustrationCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'ProductModelId'. + /// + /// + /// The property value for 'ProductModelId'. + /// + public int ProductModelId { get; set; } + + /// + /// Gets or sets the property value for 'IllustrationId'. + /// + /// + /// The property value for 'IllustrationId'. + /// + public int IllustrationId { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationReadModel.cs new file mode 100644 index 0000000..edf2b36 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationReadModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductModelIllustrationReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'ProductModelId'. + /// + /// + /// The property value for 'ProductModelId'. + /// + public int ProductModelId { get; set; } + + /// + /// Gets or sets the property value for 'IllustrationId'. + /// + /// + /// The property value for 'IllustrationId'. + /// + public int IllustrationId { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationUpdateModel.cs new file mode 100644 index 0000000..c70ae95 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationUpdateModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductModelIllustrationUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'ProductModelId'. + /// + /// + /// The property value for 'ProductModelId'. + /// + public int ProductModelId { get; set; } + + /// + /// Gets or sets the property value for 'IllustrationId'. + /// + /// + /// The property value for 'IllustrationId'. + /// + public int IllustrationId { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Validation/ProductModelIllustrationCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Validation/ProductModelIllustrationCreateModelValidator.cs new file mode 100644 index 0000000..8318d96 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Validation/ProductModelIllustrationCreateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ProductModelIllustrationCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ProductModelIllustrationCreateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Validation/ProductModelIllustrationUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Validation/ProductModelIllustrationUpdateModelValidator.cs new file mode 100644 index 0000000..bcd7359 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Validation/ProductModelIllustrationUpdateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ProductModelIllustrationUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ProductModelIllustrationUpdateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Mapping/ProductModelProductDescriptionCultureProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Mapping/ProductModelProductDescriptionCultureProfile.cs new file mode 100644 index 0000000..5d7b822 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Mapping/ProductModelProductDescriptionCultureProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class ProductModelProductDescriptionCultureProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public ProductModelProductDescriptionCultureProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureCreateModel.cs new file mode 100644 index 0000000..7167a21 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureCreateModel.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductModelProductDescriptionCultureCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'ProductModelId'. + /// + /// + /// The property value for 'ProductModelId'. + /// + public int ProductModelId { get; set; } + + /// + /// Gets or sets the property value for 'ProductDescriptionId'. + /// + /// + /// The property value for 'ProductDescriptionId'. + /// + public int ProductDescriptionId { get; set; } + + /// + /// Gets or sets the property value for 'CultureId'. + /// + /// + /// The property value for 'CultureId'. + /// + public string CultureId { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureReadModel.cs new file mode 100644 index 0000000..19a9afc --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureReadModel.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductModelProductDescriptionCultureReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'ProductModelId'. + /// + /// + /// The property value for 'ProductModelId'. + /// + public int ProductModelId { get; set; } + + /// + /// Gets or sets the property value for 'ProductDescriptionId'. + /// + /// + /// The property value for 'ProductDescriptionId'. + /// + public int ProductDescriptionId { get; set; } + + /// + /// Gets or sets the property value for 'CultureId'. + /// + /// + /// The property value for 'CultureId'. + /// + public string CultureId { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureUpdateModel.cs new file mode 100644 index 0000000..d369ee8 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureUpdateModel.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductModelProductDescriptionCultureUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'ProductModelId'. + /// + /// + /// The property value for 'ProductModelId'. + /// + public int ProductModelId { get; set; } + + /// + /// Gets or sets the property value for 'ProductDescriptionId'. + /// + /// + /// The property value for 'ProductDescriptionId'. + /// + public int ProductDescriptionId { get; set; } + + /// + /// Gets or sets the property value for 'CultureId'. + /// + /// + /// The property value for 'CultureId'. + /// + public string CultureId { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Validation/ProductModelProductDescriptionCultureCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Validation/ProductModelProductDescriptionCultureCreateModelValidator.cs new file mode 100644 index 0000000..14eca78 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Validation/ProductModelProductDescriptionCultureCreateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ProductModelProductDescriptionCultureCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ProductModelProductDescriptionCultureCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.CultureId).NotEmpty(); + RuleFor(p => p.CultureId).MaximumLength(6); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Validation/ProductModelProductDescriptionCultureUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Validation/ProductModelProductDescriptionCultureUpdateModelValidator.cs new file mode 100644 index 0000000..4384f21 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Validation/ProductModelProductDescriptionCultureUpdateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ProductModelProductDescriptionCultureUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ProductModelProductDescriptionCultureUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.CultureId).NotEmpty(); + RuleFor(p => p.CultureId).MaximumLength(6); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Mapping/ProductPhotoProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Mapping/ProductPhotoProfile.cs new file mode 100644 index 0000000..e5fc818 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Mapping/ProductPhotoProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class ProductPhotoProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public ProductPhotoProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Models/ProductPhotoCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Models/ProductPhotoCreateModel.cs new file mode 100644 index 0000000..f65a260 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Models/ProductPhotoCreateModel.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductPhotoCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'ThumbNailPhoto'. + /// + /// + /// The property value for 'ThumbNailPhoto'. + /// + public byte[]? ThumbNailPhoto { get; set; } + + /// + /// Gets or sets the property value for 'ThumbnailPhotoFileName'. + /// + /// + /// The property value for 'ThumbnailPhotoFileName'. + /// + public string? ThumbnailPhotoFileName { get; set; } + + /// + /// Gets or sets the property value for 'LargePhoto'. + /// + /// + /// The property value for 'LargePhoto'. + /// + public byte[]? LargePhoto { get; set; } + + /// + /// Gets or sets the property value for 'LargePhotoFileName'. + /// + /// + /// The property value for 'LargePhotoFileName'. + /// + public string? LargePhotoFileName { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Models/ProductPhotoReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Models/ProductPhotoReadModel.cs new file mode 100644 index 0000000..c21c23c --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Models/ProductPhotoReadModel.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductPhotoReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'ThumbNailPhoto'. + /// + /// + /// The property value for 'ThumbNailPhoto'. + /// + public byte[]? ThumbNailPhoto { get; set; } + + /// + /// Gets or sets the property value for 'ThumbnailPhotoFileName'. + /// + /// + /// The property value for 'ThumbnailPhotoFileName'. + /// + public string? ThumbnailPhotoFileName { get; set; } + + /// + /// Gets or sets the property value for 'LargePhoto'. + /// + /// + /// The property value for 'LargePhoto'. + /// + public byte[]? LargePhoto { get; set; } + + /// + /// Gets or sets the property value for 'LargePhotoFileName'. + /// + /// + /// The property value for 'LargePhotoFileName'. + /// + public string? LargePhotoFileName { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Models/ProductPhotoUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Models/ProductPhotoUpdateModel.cs new file mode 100644 index 0000000..cc4edd6 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Models/ProductPhotoUpdateModel.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductPhotoUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'ThumbNailPhoto'. + /// + /// + /// The property value for 'ThumbNailPhoto'. + /// + public byte[]? ThumbNailPhoto { get; set; } + + /// + /// Gets or sets the property value for 'ThumbnailPhotoFileName'. + /// + /// + /// The property value for 'ThumbnailPhotoFileName'. + /// + public string? ThumbnailPhotoFileName { get; set; } + + /// + /// Gets or sets the property value for 'LargePhoto'. + /// + /// + /// The property value for 'LargePhoto'. + /// + public byte[]? LargePhoto { get; set; } + + /// + /// Gets or sets the property value for 'LargePhotoFileName'. + /// + /// + /// The property value for 'LargePhotoFileName'. + /// + public string? LargePhotoFileName { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Validation/ProductPhotoCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Validation/ProductPhotoCreateModelValidator.cs new file mode 100644 index 0000000..61f8496 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Validation/ProductPhotoCreateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ProductPhotoCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ProductPhotoCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.ThumbnailPhotoFileName).MaximumLength(50); + RuleFor(p => p.LargePhotoFileName).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Validation/ProductPhotoUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Validation/ProductPhotoUpdateModelValidator.cs new file mode 100644 index 0000000..91e7657 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Validation/ProductPhotoUpdateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ProductPhotoUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ProductPhotoUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.ThumbnailPhotoFileName).MaximumLength(50); + RuleFor(p => p.LargePhotoFileName).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Mapping/ProductProductPhotoProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Mapping/ProductProductPhotoProfile.cs new file mode 100644 index 0000000..f81cceb --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Mapping/ProductProductPhotoProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class ProductProductPhotoProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public ProductProductPhotoProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoCreateModel.cs new file mode 100644 index 0000000..403453a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoCreateModel.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductProductPhotoCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'ProductPhotoId'. + /// + /// + /// The property value for 'ProductPhotoId'. + /// + public int ProductPhotoId { get; set; } + + /// + /// Gets or sets the property value for 'Primary'. + /// + /// + /// The property value for 'Primary'. + /// + public bool Primary { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoReadModel.cs new file mode 100644 index 0000000..bab65b4 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoReadModel.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductProductPhotoReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'ProductPhotoId'. + /// + /// + /// The property value for 'ProductPhotoId'. + /// + public int ProductPhotoId { get; set; } + + /// + /// Gets or sets the property value for 'Primary'. + /// + /// + /// The property value for 'Primary'. + /// + public bool Primary { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoUpdateModel.cs new file mode 100644 index 0000000..90f9b9c --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoUpdateModel.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductProductPhotoUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'ProductPhotoId'. + /// + /// + /// The property value for 'ProductPhotoId'. + /// + public int ProductPhotoId { get; set; } + + /// + /// Gets or sets the property value for 'Primary'. + /// + /// + /// The property value for 'Primary'. + /// + public bool Primary { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Validation/ProductProductPhotoCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Validation/ProductProductPhotoCreateModelValidator.cs new file mode 100644 index 0000000..3f6084c --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Validation/ProductProductPhotoCreateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ProductProductPhotoCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ProductProductPhotoCreateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Validation/ProductProductPhotoUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Validation/ProductProductPhotoUpdateModelValidator.cs new file mode 100644 index 0000000..38985f1 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Validation/ProductProductPhotoUpdateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ProductProductPhotoUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ProductProductPhotoUpdateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Mapping/ProductReviewProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Mapping/ProductReviewProfile.cs new file mode 100644 index 0000000..ad9c6cf --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Mapping/ProductReviewProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class ProductReviewProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public ProductReviewProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewCreateModel.cs new file mode 100644 index 0000000..6199c11 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewCreateModel.cs @@ -0,0 +1,79 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductReviewCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'ReviewerName'. + /// + /// + /// The property value for 'ReviewerName'. + /// + public string ReviewerName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ReviewDate'. + /// + /// + /// The property value for 'ReviewDate'. + /// + public DateTime ReviewDate { get; set; } + + /// + /// Gets or sets the property value for 'EmailAddress'. + /// + /// + /// The property value for 'EmailAddress'. + /// + public string EmailAddress { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Rating'. + /// + /// + /// The property value for 'Rating'. + /// + public int Rating { get; set; } + + /// + /// Gets or sets the property value for 'Comments'. + /// + /// + /// The property value for 'Comments'. + /// + public string? Comments { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewReadModel.cs new file mode 100644 index 0000000..e40e0c2 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewReadModel.cs @@ -0,0 +1,79 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductReviewReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'ReviewerName'. + /// + /// + /// The property value for 'ReviewerName'. + /// + public string ReviewerName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ReviewDate'. + /// + /// + /// The property value for 'ReviewDate'. + /// + public DateTime ReviewDate { get; set; } + + /// + /// Gets or sets the property value for 'EmailAddress'. + /// + /// + /// The property value for 'EmailAddress'. + /// + public string EmailAddress { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Rating'. + /// + /// + /// The property value for 'Rating'. + /// + public int Rating { get; set; } + + /// + /// Gets or sets the property value for 'Comments'. + /// + /// + /// The property value for 'Comments'. + /// + public string? Comments { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewUpdateModel.cs new file mode 100644 index 0000000..94dacd6 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewUpdateModel.cs @@ -0,0 +1,79 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductReviewUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'ReviewerName'. + /// + /// + /// The property value for 'ReviewerName'. + /// + public string ReviewerName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ReviewDate'. + /// + /// + /// The property value for 'ReviewDate'. + /// + public DateTime ReviewDate { get; set; } + + /// + /// Gets or sets the property value for 'EmailAddress'. + /// + /// + /// The property value for 'EmailAddress'. + /// + public string EmailAddress { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Rating'. + /// + /// + /// The property value for 'Rating'. + /// + public int Rating { get; set; } + + /// + /// Gets or sets the property value for 'Comments'. + /// + /// + /// The property value for 'Comments'. + /// + public string? Comments { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Validation/ProductReviewCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Validation/ProductReviewCreateModelValidator.cs new file mode 100644 index 0000000..86ba125 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Validation/ProductReviewCreateModelValidator.cs @@ -0,0 +1,29 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ProductReviewCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ProductReviewCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.ReviewerName).NotEmpty(); + RuleFor(p => p.ReviewerName).MaximumLength(50); + RuleFor(p => p.EmailAddress).NotEmpty(); + RuleFor(p => p.EmailAddress).MaximumLength(50); + RuleFor(p => p.Comments).MaximumLength(3850); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Validation/ProductReviewUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Validation/ProductReviewUpdateModelValidator.cs new file mode 100644 index 0000000..3f36cb1 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Validation/ProductReviewUpdateModelValidator.cs @@ -0,0 +1,29 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ProductReviewUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ProductReviewUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.ReviewerName).NotEmpty(); + RuleFor(p => p.ReviewerName).MaximumLength(50); + RuleFor(p => p.EmailAddress).NotEmpty(); + RuleFor(p => p.EmailAddress).MaximumLength(50); + RuleFor(p => p.Comments).MaximumLength(3850); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Mapping/ProductSubcategoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Mapping/ProductSubcategoryProfile.cs new file mode 100644 index 0000000..0f41d7f --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Mapping/ProductSubcategoryProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class ProductSubcategoryProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public ProductSubcategoryProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Models/ProductSubcategoryCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Models/ProductSubcategoryCreateModel.cs new file mode 100644 index 0000000..c35114e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Models/ProductSubcategoryCreateModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductSubcategoryCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'ProductCategoryId'. + /// + /// + /// The property value for 'ProductCategoryId'. + /// + public int ProductCategoryId { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Models/ProductSubcategoryReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Models/ProductSubcategoryReadModel.cs new file mode 100644 index 0000000..90258ad --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Models/ProductSubcategoryReadModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductSubcategoryReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'ProductCategoryId'. + /// + /// + /// The property value for 'ProductCategoryId'. + /// + public int ProductCategoryId { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Models/ProductSubcategoryUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Models/ProductSubcategoryUpdateModel.cs new file mode 100644 index 0000000..f927391 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Models/ProductSubcategoryUpdateModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductSubcategoryUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'ProductCategoryId'. + /// + /// + /// The property value for 'ProductCategoryId'. + /// + public int ProductCategoryId { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Validation/ProductSubcategoryCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Validation/ProductSubcategoryCreateModelValidator.cs new file mode 100644 index 0000000..afa7237 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Validation/ProductSubcategoryCreateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ProductSubcategoryCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ProductSubcategoryCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Validation/ProductSubcategoryUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Validation/ProductSubcategoryUpdateModelValidator.cs new file mode 100644 index 0000000..52fa56d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Validation/ProductSubcategoryUpdateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ProductSubcategoryUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ProductSubcategoryUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Mapping/ProductVendorProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Mapping/ProductVendorProfile.cs new file mode 100644 index 0000000..b23f1d4 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Mapping/ProductVendorProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class ProductVendorProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public ProductVendorProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorCreateModel.cs new file mode 100644 index 0000000..ab2b973 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorCreateModel.cs @@ -0,0 +1,103 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductVendorCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'AverageLeadTime'. + /// + /// + /// The property value for 'AverageLeadTime'. + /// + public int AverageLeadTime { get; set; } + + /// + /// Gets or sets the property value for 'StandardPrice'. + /// + /// + /// The property value for 'StandardPrice'. + /// + public decimal StandardPrice { get; set; } + + /// + /// Gets or sets the property value for 'LastReceiptCost'. + /// + /// + /// The property value for 'LastReceiptCost'. + /// + public decimal? LastReceiptCost { get; set; } + + /// + /// Gets or sets the property value for 'LastReceiptDate'. + /// + /// + /// The property value for 'LastReceiptDate'. + /// + public DateTime? LastReceiptDate { get; set; } + + /// + /// Gets or sets the property value for 'MinOrderQty'. + /// + /// + /// The property value for 'MinOrderQty'. + /// + public int MinOrderQty { get; set; } + + /// + /// Gets or sets the property value for 'MaxOrderQty'. + /// + /// + /// The property value for 'MaxOrderQty'. + /// + public int MaxOrderQty { get; set; } + + /// + /// Gets or sets the property value for 'OnOrderQty'. + /// + /// + /// The property value for 'OnOrderQty'. + /// + public int? OnOrderQty { get; set; } + + /// + /// Gets or sets the property value for 'UnitMeasureCode'. + /// + /// + /// The property value for 'UnitMeasureCode'. + /// + public string UnitMeasureCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorReadModel.cs new file mode 100644 index 0000000..41bba1d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorReadModel.cs @@ -0,0 +1,103 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductVendorReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'AverageLeadTime'. + /// + /// + /// The property value for 'AverageLeadTime'. + /// + public int AverageLeadTime { get; set; } + + /// + /// Gets or sets the property value for 'StandardPrice'. + /// + /// + /// The property value for 'StandardPrice'. + /// + public decimal StandardPrice { get; set; } + + /// + /// Gets or sets the property value for 'LastReceiptCost'. + /// + /// + /// The property value for 'LastReceiptCost'. + /// + public decimal? LastReceiptCost { get; set; } + + /// + /// Gets or sets the property value for 'LastReceiptDate'. + /// + /// + /// The property value for 'LastReceiptDate'. + /// + public DateTime? LastReceiptDate { get; set; } + + /// + /// Gets or sets the property value for 'MinOrderQty'. + /// + /// + /// The property value for 'MinOrderQty'. + /// + public int MinOrderQty { get; set; } + + /// + /// Gets or sets the property value for 'MaxOrderQty'. + /// + /// + /// The property value for 'MaxOrderQty'. + /// + public int MaxOrderQty { get; set; } + + /// + /// Gets or sets the property value for 'OnOrderQty'. + /// + /// + /// The property value for 'OnOrderQty'. + /// + public int? OnOrderQty { get; set; } + + /// + /// Gets or sets the property value for 'UnitMeasureCode'. + /// + /// + /// The property value for 'UnitMeasureCode'. + /// + public string UnitMeasureCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorUpdateModel.cs new file mode 100644 index 0000000..2348d2d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorUpdateModel.cs @@ -0,0 +1,103 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ProductVendorUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'AverageLeadTime'. + /// + /// + /// The property value for 'AverageLeadTime'. + /// + public int AverageLeadTime { get; set; } + + /// + /// Gets or sets the property value for 'StandardPrice'. + /// + /// + /// The property value for 'StandardPrice'. + /// + public decimal StandardPrice { get; set; } + + /// + /// Gets or sets the property value for 'LastReceiptCost'. + /// + /// + /// The property value for 'LastReceiptCost'. + /// + public decimal? LastReceiptCost { get; set; } + + /// + /// Gets or sets the property value for 'LastReceiptDate'. + /// + /// + /// The property value for 'LastReceiptDate'. + /// + public DateTime? LastReceiptDate { get; set; } + + /// + /// Gets or sets the property value for 'MinOrderQty'. + /// + /// + /// The property value for 'MinOrderQty'. + /// + public int MinOrderQty { get; set; } + + /// + /// Gets or sets the property value for 'MaxOrderQty'. + /// + /// + /// The property value for 'MaxOrderQty'. + /// + public int MaxOrderQty { get; set; } + + /// + /// Gets or sets the property value for 'OnOrderQty'. + /// + /// + /// The property value for 'OnOrderQty'. + /// + public int? OnOrderQty { get; set; } + + /// + /// Gets or sets the property value for 'UnitMeasureCode'. + /// + /// + /// The property value for 'UnitMeasureCode'. + /// + public string UnitMeasureCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Validation/ProductVendorCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Validation/ProductVendorCreateModelValidator.cs new file mode 100644 index 0000000..51d7a0d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Validation/ProductVendorCreateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ProductVendorCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ProductVendorCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.UnitMeasureCode).NotEmpty(); + RuleFor(p => p.UnitMeasureCode).MaximumLength(3); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Validation/ProductVendorUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Validation/ProductVendorUpdateModelValidator.cs new file mode 100644 index 0000000..52e5843 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Validation/ProductVendorUpdateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ProductVendorUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ProductVendorUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.UnitMeasureCode).NotEmpty(); + RuleFor(p => p.UnitMeasureCode).MaximumLength(3); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Mapping/PurchaseOrderDetailProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Mapping/PurchaseOrderDetailProfile.cs new file mode 100644 index 0000000..d0195fc --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Mapping/PurchaseOrderDetailProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class PurchaseOrderDetailProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public PurchaseOrderDetailProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailCreateModel.cs new file mode 100644 index 0000000..df7a283 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailCreateModel.cs @@ -0,0 +1,103 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class PurchaseOrderDetailCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'PurchaseOrderId'. + /// + /// + /// The property value for 'PurchaseOrderId'. + /// + public int PurchaseOrderId { get; set; } + + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'DueDate'. + /// + /// + /// The property value for 'DueDate'. + /// + public DateTime DueDate { get; set; } + + /// + /// Gets or sets the property value for 'OrderQty'. + /// + /// + /// The property value for 'OrderQty'. + /// + public short OrderQty { get; set; } + + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'UnitPrice'. + /// + /// + /// The property value for 'UnitPrice'. + /// + public decimal UnitPrice { get; set; } + + /// + /// Gets or sets the property value for 'LineTotal'. + /// + /// + /// The property value for 'LineTotal'. + /// + public decimal LineTotal { get; set; } + + /// + /// Gets or sets the property value for 'ReceivedQty'. + /// + /// + /// The property value for 'ReceivedQty'. + /// + public decimal ReceivedQty { get; set; } + + /// + /// Gets or sets the property value for 'RejectedQty'. + /// + /// + /// The property value for 'RejectedQty'. + /// + public decimal RejectedQty { get; set; } + + /// + /// Gets or sets the property value for 'StockedQty'. + /// + /// + /// The property value for 'StockedQty'. + /// + public decimal StockedQty { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailReadModel.cs new file mode 100644 index 0000000..31fd896 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailReadModel.cs @@ -0,0 +1,103 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class PurchaseOrderDetailReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'PurchaseOrderId'. + /// + /// + /// The property value for 'PurchaseOrderId'. + /// + public int PurchaseOrderId { get; set; } + + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'DueDate'. + /// + /// + /// The property value for 'DueDate'. + /// + public DateTime DueDate { get; set; } + + /// + /// Gets or sets the property value for 'OrderQty'. + /// + /// + /// The property value for 'OrderQty'. + /// + public short OrderQty { get; set; } + + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'UnitPrice'. + /// + /// + /// The property value for 'UnitPrice'. + /// + public decimal UnitPrice { get; set; } + + /// + /// Gets or sets the property value for 'LineTotal'. + /// + /// + /// The property value for 'LineTotal'. + /// + public decimal LineTotal { get; set; } + + /// + /// Gets or sets the property value for 'ReceivedQty'. + /// + /// + /// The property value for 'ReceivedQty'. + /// + public decimal ReceivedQty { get; set; } + + /// + /// Gets or sets the property value for 'RejectedQty'. + /// + /// + /// The property value for 'RejectedQty'. + /// + public decimal RejectedQty { get; set; } + + /// + /// Gets or sets the property value for 'StockedQty'. + /// + /// + /// The property value for 'StockedQty'. + /// + public decimal StockedQty { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailUpdateModel.cs new file mode 100644 index 0000000..82be493 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailUpdateModel.cs @@ -0,0 +1,103 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class PurchaseOrderDetailUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'PurchaseOrderId'. + /// + /// + /// The property value for 'PurchaseOrderId'. + /// + public int PurchaseOrderId { get; set; } + + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'DueDate'. + /// + /// + /// The property value for 'DueDate'. + /// + public DateTime DueDate { get; set; } + + /// + /// Gets or sets the property value for 'OrderQty'. + /// + /// + /// The property value for 'OrderQty'. + /// + public short OrderQty { get; set; } + + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'UnitPrice'. + /// + /// + /// The property value for 'UnitPrice'. + /// + public decimal UnitPrice { get; set; } + + /// + /// Gets or sets the property value for 'LineTotal'. + /// + /// + /// The property value for 'LineTotal'. + /// + public decimal LineTotal { get; set; } + + /// + /// Gets or sets the property value for 'ReceivedQty'. + /// + /// + /// The property value for 'ReceivedQty'. + /// + public decimal ReceivedQty { get; set; } + + /// + /// Gets or sets the property value for 'RejectedQty'. + /// + /// + /// The property value for 'RejectedQty'. + /// + public decimal RejectedQty { get; set; } + + /// + /// Gets or sets the property value for 'StockedQty'. + /// + /// + /// The property value for 'StockedQty'. + /// + public decimal StockedQty { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Validation/PurchaseOrderDetailCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Validation/PurchaseOrderDetailCreateModelValidator.cs new file mode 100644 index 0000000..fed8e97 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Validation/PurchaseOrderDetailCreateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class PurchaseOrderDetailCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public PurchaseOrderDetailCreateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Validation/PurchaseOrderDetailUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Validation/PurchaseOrderDetailUpdateModelValidator.cs new file mode 100644 index 0000000..3701d5d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Validation/PurchaseOrderDetailUpdateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class PurchaseOrderDetailUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public PurchaseOrderDetailUpdateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Mapping/PurchaseOrderHeaderProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Mapping/PurchaseOrderHeaderProfile.cs new file mode 100644 index 0000000..8f96719 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Mapping/PurchaseOrderHeaderProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class PurchaseOrderHeaderProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public PurchaseOrderHeaderProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Models/PurchaseOrderHeaderCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Models/PurchaseOrderHeaderCreateModel.cs new file mode 100644 index 0000000..a002515 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Models/PurchaseOrderHeaderCreateModel.cs @@ -0,0 +1,119 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class PurchaseOrderHeaderCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'RevisionNumber'. + /// + /// + /// The property value for 'RevisionNumber'. + /// + public byte RevisionNumber { get; set; } + + /// + /// Gets or sets the property value for 'Status'. + /// + /// + /// The property value for 'Status'. + /// + public byte Status { get; set; } + + /// + /// Gets or sets the property value for 'EmployeeId'. + /// + /// + /// The property value for 'EmployeeId'. + /// + public int EmployeeId { get; set; } + + /// + /// Gets or sets the property value for 'VendorId'. + /// + /// + /// The property value for 'VendorId'. + /// + public int VendorId { get; set; } + + /// + /// Gets or sets the property value for 'ShipMethodId'. + /// + /// + /// The property value for 'ShipMethodId'. + /// + public int ShipMethodId { get; set; } + + /// + /// Gets or sets the property value for 'OrderDate'. + /// + /// + /// The property value for 'OrderDate'. + /// + public DateTime OrderDate { get; set; } + + /// + /// Gets or sets the property value for 'ShipDate'. + /// + /// + /// The property value for 'ShipDate'. + /// + public DateTime? ShipDate { get; set; } + + /// + /// Gets or sets the property value for 'SubTotal'. + /// + /// + /// The property value for 'SubTotal'. + /// + public decimal SubTotal { get; set; } + + /// + /// Gets or sets the property value for 'TaxAmt'. + /// + /// + /// The property value for 'TaxAmt'. + /// + public decimal TaxAmt { get; set; } + + /// + /// Gets or sets the property value for 'Freight'. + /// + /// + /// The property value for 'Freight'. + /// + public decimal Freight { get; set; } + + /// + /// Gets or sets the property value for 'TotalDue'. + /// + /// + /// The property value for 'TotalDue'. + /// + public decimal TotalDue { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Models/PurchaseOrderHeaderReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Models/PurchaseOrderHeaderReadModel.cs new file mode 100644 index 0000000..49a778c --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Models/PurchaseOrderHeaderReadModel.cs @@ -0,0 +1,119 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class PurchaseOrderHeaderReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'RevisionNumber'. + /// + /// + /// The property value for 'RevisionNumber'. + /// + public byte RevisionNumber { get; set; } + + /// + /// Gets or sets the property value for 'Status'. + /// + /// + /// The property value for 'Status'. + /// + public byte Status { get; set; } + + /// + /// Gets or sets the property value for 'EmployeeId'. + /// + /// + /// The property value for 'EmployeeId'. + /// + public int EmployeeId { get; set; } + + /// + /// Gets or sets the property value for 'VendorId'. + /// + /// + /// The property value for 'VendorId'. + /// + public int VendorId { get; set; } + + /// + /// Gets or sets the property value for 'ShipMethodId'. + /// + /// + /// The property value for 'ShipMethodId'. + /// + public int ShipMethodId { get; set; } + + /// + /// Gets or sets the property value for 'OrderDate'. + /// + /// + /// The property value for 'OrderDate'. + /// + public DateTime OrderDate { get; set; } + + /// + /// Gets or sets the property value for 'ShipDate'. + /// + /// + /// The property value for 'ShipDate'. + /// + public DateTime? ShipDate { get; set; } + + /// + /// Gets or sets the property value for 'SubTotal'. + /// + /// + /// The property value for 'SubTotal'. + /// + public decimal SubTotal { get; set; } + + /// + /// Gets or sets the property value for 'TaxAmt'. + /// + /// + /// The property value for 'TaxAmt'. + /// + public decimal TaxAmt { get; set; } + + /// + /// Gets or sets the property value for 'Freight'. + /// + /// + /// The property value for 'Freight'. + /// + public decimal Freight { get; set; } + + /// + /// Gets or sets the property value for 'TotalDue'. + /// + /// + /// The property value for 'TotalDue'. + /// + public decimal TotalDue { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Models/PurchaseOrderHeaderUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Models/PurchaseOrderHeaderUpdateModel.cs new file mode 100644 index 0000000..876f1b2 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Models/PurchaseOrderHeaderUpdateModel.cs @@ -0,0 +1,119 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class PurchaseOrderHeaderUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'RevisionNumber'. + /// + /// + /// The property value for 'RevisionNumber'. + /// + public byte RevisionNumber { get; set; } + + /// + /// Gets or sets the property value for 'Status'. + /// + /// + /// The property value for 'Status'. + /// + public byte Status { get; set; } + + /// + /// Gets or sets the property value for 'EmployeeId'. + /// + /// + /// The property value for 'EmployeeId'. + /// + public int EmployeeId { get; set; } + + /// + /// Gets or sets the property value for 'VendorId'. + /// + /// + /// The property value for 'VendorId'. + /// + public int VendorId { get; set; } + + /// + /// Gets or sets the property value for 'ShipMethodId'. + /// + /// + /// The property value for 'ShipMethodId'. + /// + public int ShipMethodId { get; set; } + + /// + /// Gets or sets the property value for 'OrderDate'. + /// + /// + /// The property value for 'OrderDate'. + /// + public DateTime OrderDate { get; set; } + + /// + /// Gets or sets the property value for 'ShipDate'. + /// + /// + /// The property value for 'ShipDate'. + /// + public DateTime? ShipDate { get; set; } + + /// + /// Gets or sets the property value for 'SubTotal'. + /// + /// + /// The property value for 'SubTotal'. + /// + public decimal SubTotal { get; set; } + + /// + /// Gets or sets the property value for 'TaxAmt'. + /// + /// + /// The property value for 'TaxAmt'. + /// + public decimal TaxAmt { get; set; } + + /// + /// Gets or sets the property value for 'Freight'. + /// + /// + /// The property value for 'Freight'. + /// + public decimal Freight { get; set; } + + /// + /// Gets or sets the property value for 'TotalDue'. + /// + /// + /// The property value for 'TotalDue'. + /// + public decimal TotalDue { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Validation/PurchaseOrderHeaderCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Validation/PurchaseOrderHeaderCreateModelValidator.cs new file mode 100644 index 0000000..19a4ba7 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Validation/PurchaseOrderHeaderCreateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class PurchaseOrderHeaderCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public PurchaseOrderHeaderCreateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Validation/PurchaseOrderHeaderUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Validation/PurchaseOrderHeaderUpdateModelValidator.cs new file mode 100644 index 0000000..1e9a9f5 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Validation/PurchaseOrderHeaderUpdateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class PurchaseOrderHeaderUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public PurchaseOrderHeaderUpdateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Mapping/SalesOrderDetailProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Mapping/SalesOrderDetailProfile.cs new file mode 100644 index 0000000..4323d8a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Mapping/SalesOrderDetailProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class SalesOrderDetailProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public SalesOrderDetailProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailCreateModel.cs new file mode 100644 index 0000000..97868cd --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailCreateModel.cs @@ -0,0 +1,103 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SalesOrderDetailCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'SalesOrderId'. + /// + /// + /// The property value for 'SalesOrderId'. + /// + public int SalesOrderId { get; set; } + + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'CarrierTrackingNumber'. + /// + /// + /// The property value for 'CarrierTrackingNumber'. + /// + public string? CarrierTrackingNumber { get; set; } + + /// + /// Gets or sets the property value for 'OrderQty'. + /// + /// + /// The property value for 'OrderQty'. + /// + public short OrderQty { get; set; } + + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'SpecialOfferId'. + /// + /// + /// The property value for 'SpecialOfferId'. + /// + public int SpecialOfferId { get; set; } + + /// + /// Gets or sets the property value for 'UnitPrice'. + /// + /// + /// The property value for 'UnitPrice'. + /// + public decimal UnitPrice { get; set; } + + /// + /// Gets or sets the property value for 'UnitPriceDiscount'. + /// + /// + /// The property value for 'UnitPriceDiscount'. + /// + public decimal UnitPriceDiscount { get; set; } + + /// + /// Gets or sets the property value for 'LineTotal'. + /// + /// + /// The property value for 'LineTotal'. + /// + public decimal LineTotal { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailReadModel.cs new file mode 100644 index 0000000..c4f98b8 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailReadModel.cs @@ -0,0 +1,103 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SalesOrderDetailReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'SalesOrderId'. + /// + /// + /// The property value for 'SalesOrderId'. + /// + public int SalesOrderId { get; set; } + + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'CarrierTrackingNumber'. + /// + /// + /// The property value for 'CarrierTrackingNumber'. + /// + public string? CarrierTrackingNumber { get; set; } + + /// + /// Gets or sets the property value for 'OrderQty'. + /// + /// + /// The property value for 'OrderQty'. + /// + public short OrderQty { get; set; } + + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'SpecialOfferId'. + /// + /// + /// The property value for 'SpecialOfferId'. + /// + public int SpecialOfferId { get; set; } + + /// + /// Gets or sets the property value for 'UnitPrice'. + /// + /// + /// The property value for 'UnitPrice'. + /// + public decimal UnitPrice { get; set; } + + /// + /// Gets or sets the property value for 'UnitPriceDiscount'. + /// + /// + /// The property value for 'UnitPriceDiscount'. + /// + public decimal UnitPriceDiscount { get; set; } + + /// + /// Gets or sets the property value for 'LineTotal'. + /// + /// + /// The property value for 'LineTotal'. + /// + public decimal LineTotal { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailUpdateModel.cs new file mode 100644 index 0000000..ed90719 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailUpdateModel.cs @@ -0,0 +1,103 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SalesOrderDetailUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'SalesOrderId'. + /// + /// + /// The property value for 'SalesOrderId'. + /// + public int SalesOrderId { get; set; } + + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'CarrierTrackingNumber'. + /// + /// + /// The property value for 'CarrierTrackingNumber'. + /// + public string? CarrierTrackingNumber { get; set; } + + /// + /// Gets or sets the property value for 'OrderQty'. + /// + /// + /// The property value for 'OrderQty'. + /// + public short OrderQty { get; set; } + + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'SpecialOfferId'. + /// + /// + /// The property value for 'SpecialOfferId'. + /// + public int SpecialOfferId { get; set; } + + /// + /// Gets or sets the property value for 'UnitPrice'. + /// + /// + /// The property value for 'UnitPrice'. + /// + public decimal UnitPrice { get; set; } + + /// + /// Gets or sets the property value for 'UnitPriceDiscount'. + /// + /// + /// The property value for 'UnitPriceDiscount'. + /// + public decimal UnitPriceDiscount { get; set; } + + /// + /// Gets or sets the property value for 'LineTotal'. + /// + /// + /// The property value for 'LineTotal'. + /// + public decimal LineTotal { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Validation/SalesOrderDetailCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Validation/SalesOrderDetailCreateModelValidator.cs new file mode 100644 index 0000000..0801598 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Validation/SalesOrderDetailCreateModelValidator.cs @@ -0,0 +1,25 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class SalesOrderDetailCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public SalesOrderDetailCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.CarrierTrackingNumber).MaximumLength(25); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Validation/SalesOrderDetailUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Validation/SalesOrderDetailUpdateModelValidator.cs new file mode 100644 index 0000000..3873750 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Validation/SalesOrderDetailUpdateModelValidator.cs @@ -0,0 +1,25 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class SalesOrderDetailUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public SalesOrderDetailUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.CarrierTrackingNumber).MaximumLength(25); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Mapping/SalesOrderHeaderProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Mapping/SalesOrderHeaderProfile.cs new file mode 100644 index 0000000..9e7e695 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Mapping/SalesOrderHeaderProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class SalesOrderHeaderProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public SalesOrderHeaderProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Models/SalesOrderHeaderCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Models/SalesOrderHeaderCreateModel.cs new file mode 100644 index 0000000..d29f2d9 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Models/SalesOrderHeaderCreateModel.cs @@ -0,0 +1,223 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SalesOrderHeaderCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'RevisionNumber'. + /// + /// + /// The property value for 'RevisionNumber'. + /// + public byte RevisionNumber { get; set; } + + /// + /// Gets or sets the property value for 'OrderDate'. + /// + /// + /// The property value for 'OrderDate'. + /// + public DateTime OrderDate { get; set; } + + /// + /// Gets or sets the property value for 'DueDate'. + /// + /// + /// The property value for 'DueDate'. + /// + public DateTime DueDate { get; set; } + + /// + /// Gets or sets the property value for 'ShipDate'. + /// + /// + /// The property value for 'ShipDate'. + /// + public DateTime? ShipDate { get; set; } + + /// + /// Gets or sets the property value for 'Status'. + /// + /// + /// The property value for 'Status'. + /// + public byte Status { get; set; } + + /// + /// Gets or sets the property value for 'OnlineOrderFlag'. + /// + /// + /// The property value for 'OnlineOrderFlag'. + /// + public bool OnlineOrderFlag { get; set; } + + /// + /// Gets or sets the property value for 'SalesOrderNumber'. + /// + /// + /// The property value for 'SalesOrderNumber'. + /// + public string SalesOrderNumber { get; set; } = null!; + + /// + /// Gets or sets the property value for 'PurchaseOrderNumber'. + /// + /// + /// The property value for 'PurchaseOrderNumber'. + /// + public string? PurchaseOrderNumber { get; set; } + + /// + /// Gets or sets the property value for 'AccountNumber'. + /// + /// + /// The property value for 'AccountNumber'. + /// + public string? AccountNumber { get; set; } + + /// + /// Gets or sets the property value for 'CustomerId'. + /// + /// + /// The property value for 'CustomerId'. + /// + public int CustomerId { get; set; } + + /// + /// Gets or sets the property value for 'SalesPersonId'. + /// + /// + /// The property value for 'SalesPersonId'. + /// + public int? SalesPersonId { get; set; } + + /// + /// Gets or sets the property value for 'TerritoryId'. + /// + /// + /// The property value for 'TerritoryId'. + /// + public int? TerritoryId { get; set; } + + /// + /// Gets or sets the property value for 'BillToAddressId'. + /// + /// + /// The property value for 'BillToAddressId'. + /// + public int BillToAddressId { get; set; } + + /// + /// Gets or sets the property value for 'ShipToAddressId'. + /// + /// + /// The property value for 'ShipToAddressId'. + /// + public int ShipToAddressId { get; set; } + + /// + /// Gets or sets the property value for 'ShipMethodId'. + /// + /// + /// The property value for 'ShipMethodId'. + /// + public int ShipMethodId { get; set; } + + /// + /// Gets or sets the property value for 'CreditCardId'. + /// + /// + /// The property value for 'CreditCardId'. + /// + public int? CreditCardId { get; set; } + + /// + /// Gets or sets the property value for 'CreditCardApprovalCode'. + /// + /// + /// The property value for 'CreditCardApprovalCode'. + /// + public string? CreditCardApprovalCode { get; set; } + + /// + /// Gets or sets the property value for 'CurrencyRateId'. + /// + /// + /// The property value for 'CurrencyRateId'. + /// + public int? CurrencyRateId { get; set; } + + /// + /// Gets or sets the property value for 'SubTotal'. + /// + /// + /// The property value for 'SubTotal'. + /// + public decimal SubTotal { get; set; } + + /// + /// Gets or sets the property value for 'TaxAmt'. + /// + /// + /// The property value for 'TaxAmt'. + /// + public decimal TaxAmt { get; set; } + + /// + /// Gets or sets the property value for 'Freight'. + /// + /// + /// The property value for 'Freight'. + /// + public decimal Freight { get; set; } + + /// + /// Gets or sets the property value for 'TotalDue'. + /// + /// + /// The property value for 'TotalDue'. + /// + public decimal TotalDue { get; set; } + + /// + /// Gets or sets the property value for 'Comment'. + /// + /// + /// The property value for 'Comment'. + /// + public string? Comment { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Models/SalesOrderHeaderReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Models/SalesOrderHeaderReadModel.cs new file mode 100644 index 0000000..66eb65f --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Models/SalesOrderHeaderReadModel.cs @@ -0,0 +1,223 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SalesOrderHeaderReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'RevisionNumber'. + /// + /// + /// The property value for 'RevisionNumber'. + /// + public byte RevisionNumber { get; set; } + + /// + /// Gets or sets the property value for 'OrderDate'. + /// + /// + /// The property value for 'OrderDate'. + /// + public DateTime OrderDate { get; set; } + + /// + /// Gets or sets the property value for 'DueDate'. + /// + /// + /// The property value for 'DueDate'. + /// + public DateTime DueDate { get; set; } + + /// + /// Gets or sets the property value for 'ShipDate'. + /// + /// + /// The property value for 'ShipDate'. + /// + public DateTime? ShipDate { get; set; } + + /// + /// Gets or sets the property value for 'Status'. + /// + /// + /// The property value for 'Status'. + /// + public byte Status { get; set; } + + /// + /// Gets or sets the property value for 'OnlineOrderFlag'. + /// + /// + /// The property value for 'OnlineOrderFlag'. + /// + public bool OnlineOrderFlag { get; set; } + + /// + /// Gets or sets the property value for 'SalesOrderNumber'. + /// + /// + /// The property value for 'SalesOrderNumber'. + /// + public string SalesOrderNumber { get; set; } = null!; + + /// + /// Gets or sets the property value for 'PurchaseOrderNumber'. + /// + /// + /// The property value for 'PurchaseOrderNumber'. + /// + public string? PurchaseOrderNumber { get; set; } + + /// + /// Gets or sets the property value for 'AccountNumber'. + /// + /// + /// The property value for 'AccountNumber'. + /// + public string? AccountNumber { get; set; } + + /// + /// Gets or sets the property value for 'CustomerId'. + /// + /// + /// The property value for 'CustomerId'. + /// + public int CustomerId { get; set; } + + /// + /// Gets or sets the property value for 'SalesPersonId'. + /// + /// + /// The property value for 'SalesPersonId'. + /// + public int? SalesPersonId { get; set; } + + /// + /// Gets or sets the property value for 'TerritoryId'. + /// + /// + /// The property value for 'TerritoryId'. + /// + public int? TerritoryId { get; set; } + + /// + /// Gets or sets the property value for 'BillToAddressId'. + /// + /// + /// The property value for 'BillToAddressId'. + /// + public int BillToAddressId { get; set; } + + /// + /// Gets or sets the property value for 'ShipToAddressId'. + /// + /// + /// The property value for 'ShipToAddressId'. + /// + public int ShipToAddressId { get; set; } + + /// + /// Gets or sets the property value for 'ShipMethodId'. + /// + /// + /// The property value for 'ShipMethodId'. + /// + public int ShipMethodId { get; set; } + + /// + /// Gets or sets the property value for 'CreditCardId'. + /// + /// + /// The property value for 'CreditCardId'. + /// + public int? CreditCardId { get; set; } + + /// + /// Gets or sets the property value for 'CreditCardApprovalCode'. + /// + /// + /// The property value for 'CreditCardApprovalCode'. + /// + public string? CreditCardApprovalCode { get; set; } + + /// + /// Gets or sets the property value for 'CurrencyRateId'. + /// + /// + /// The property value for 'CurrencyRateId'. + /// + public int? CurrencyRateId { get; set; } + + /// + /// Gets or sets the property value for 'SubTotal'. + /// + /// + /// The property value for 'SubTotal'. + /// + public decimal SubTotal { get; set; } + + /// + /// Gets or sets the property value for 'TaxAmt'. + /// + /// + /// The property value for 'TaxAmt'. + /// + public decimal TaxAmt { get; set; } + + /// + /// Gets or sets the property value for 'Freight'. + /// + /// + /// The property value for 'Freight'. + /// + public decimal Freight { get; set; } + + /// + /// Gets or sets the property value for 'TotalDue'. + /// + /// + /// The property value for 'TotalDue'. + /// + public decimal TotalDue { get; set; } + + /// + /// Gets or sets the property value for 'Comment'. + /// + /// + /// The property value for 'Comment'. + /// + public string? Comment { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Models/SalesOrderHeaderUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Models/SalesOrderHeaderUpdateModel.cs new file mode 100644 index 0000000..8d5b81b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Models/SalesOrderHeaderUpdateModel.cs @@ -0,0 +1,223 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SalesOrderHeaderUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'RevisionNumber'. + /// + /// + /// The property value for 'RevisionNumber'. + /// + public byte RevisionNumber { get; set; } + + /// + /// Gets or sets the property value for 'OrderDate'. + /// + /// + /// The property value for 'OrderDate'. + /// + public DateTime OrderDate { get; set; } + + /// + /// Gets or sets the property value for 'DueDate'. + /// + /// + /// The property value for 'DueDate'. + /// + public DateTime DueDate { get; set; } + + /// + /// Gets or sets the property value for 'ShipDate'. + /// + /// + /// The property value for 'ShipDate'. + /// + public DateTime? ShipDate { get; set; } + + /// + /// Gets or sets the property value for 'Status'. + /// + /// + /// The property value for 'Status'. + /// + public byte Status { get; set; } + + /// + /// Gets or sets the property value for 'OnlineOrderFlag'. + /// + /// + /// The property value for 'OnlineOrderFlag'. + /// + public bool OnlineOrderFlag { get; set; } + + /// + /// Gets or sets the property value for 'SalesOrderNumber'. + /// + /// + /// The property value for 'SalesOrderNumber'. + /// + public string SalesOrderNumber { get; set; } = null!; + + /// + /// Gets or sets the property value for 'PurchaseOrderNumber'. + /// + /// + /// The property value for 'PurchaseOrderNumber'. + /// + public string? PurchaseOrderNumber { get; set; } + + /// + /// Gets or sets the property value for 'AccountNumber'. + /// + /// + /// The property value for 'AccountNumber'. + /// + public string? AccountNumber { get; set; } + + /// + /// Gets or sets the property value for 'CustomerId'. + /// + /// + /// The property value for 'CustomerId'. + /// + public int CustomerId { get; set; } + + /// + /// Gets or sets the property value for 'SalesPersonId'. + /// + /// + /// The property value for 'SalesPersonId'. + /// + public int? SalesPersonId { get; set; } + + /// + /// Gets or sets the property value for 'TerritoryId'. + /// + /// + /// The property value for 'TerritoryId'. + /// + public int? TerritoryId { get; set; } + + /// + /// Gets or sets the property value for 'BillToAddressId'. + /// + /// + /// The property value for 'BillToAddressId'. + /// + public int BillToAddressId { get; set; } + + /// + /// Gets or sets the property value for 'ShipToAddressId'. + /// + /// + /// The property value for 'ShipToAddressId'. + /// + public int ShipToAddressId { get; set; } + + /// + /// Gets or sets the property value for 'ShipMethodId'. + /// + /// + /// The property value for 'ShipMethodId'. + /// + public int ShipMethodId { get; set; } + + /// + /// Gets or sets the property value for 'CreditCardId'. + /// + /// + /// The property value for 'CreditCardId'. + /// + public int? CreditCardId { get; set; } + + /// + /// Gets or sets the property value for 'CreditCardApprovalCode'. + /// + /// + /// The property value for 'CreditCardApprovalCode'. + /// + public string? CreditCardApprovalCode { get; set; } + + /// + /// Gets or sets the property value for 'CurrencyRateId'. + /// + /// + /// The property value for 'CurrencyRateId'. + /// + public int? CurrencyRateId { get; set; } + + /// + /// Gets or sets the property value for 'SubTotal'. + /// + /// + /// The property value for 'SubTotal'. + /// + public decimal SubTotal { get; set; } + + /// + /// Gets or sets the property value for 'TaxAmt'. + /// + /// + /// The property value for 'TaxAmt'. + /// + public decimal TaxAmt { get; set; } + + /// + /// Gets or sets the property value for 'Freight'. + /// + /// + /// The property value for 'Freight'. + /// + public decimal Freight { get; set; } + + /// + /// Gets or sets the property value for 'TotalDue'. + /// + /// + /// The property value for 'TotalDue'. + /// + public decimal TotalDue { get; set; } + + /// + /// Gets or sets the property value for 'Comment'. + /// + /// + /// The property value for 'Comment'. + /// + public string? Comment { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Validation/SalesOrderHeaderCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Validation/SalesOrderHeaderCreateModelValidator.cs new file mode 100644 index 0000000..efccecc --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Validation/SalesOrderHeaderCreateModelValidator.cs @@ -0,0 +1,28 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class SalesOrderHeaderCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public SalesOrderHeaderCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.PurchaseOrderNumber).MaximumLength(25); + RuleFor(p => p.AccountNumber).MaximumLength(15); + RuleFor(p => p.CreditCardApprovalCode).MaximumLength(15); + RuleFor(p => p.Comment).MaximumLength(128); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Validation/SalesOrderHeaderUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Validation/SalesOrderHeaderUpdateModelValidator.cs new file mode 100644 index 0000000..b787631 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Validation/SalesOrderHeaderUpdateModelValidator.cs @@ -0,0 +1,28 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class SalesOrderHeaderUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public SalesOrderHeaderUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.PurchaseOrderNumber).MaximumLength(25); + RuleFor(p => p.AccountNumber).MaximumLength(15); + RuleFor(p => p.CreditCardApprovalCode).MaximumLength(15); + RuleFor(p => p.Comment).MaximumLength(128); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Mapping/SalesOrderHeaderSalesReasonProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Mapping/SalesOrderHeaderSalesReasonProfile.cs new file mode 100644 index 0000000..db67c58 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Mapping/SalesOrderHeaderSalesReasonProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class SalesOrderHeaderSalesReasonProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public SalesOrderHeaderSalesReasonProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonCreateModel.cs new file mode 100644 index 0000000..85c55bf --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonCreateModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SalesOrderHeaderSalesReasonCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'SalesOrderId'. + /// + /// + /// The property value for 'SalesOrderId'. + /// + public int SalesOrderId { get; set; } + + /// + /// Gets or sets the property value for 'SalesReasonId'. + /// + /// + /// The property value for 'SalesReasonId'. + /// + public int SalesReasonId { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonReadModel.cs new file mode 100644 index 0000000..b1008d4 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonReadModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SalesOrderHeaderSalesReasonReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'SalesOrderId'. + /// + /// + /// The property value for 'SalesOrderId'. + /// + public int SalesOrderId { get; set; } + + /// + /// Gets or sets the property value for 'SalesReasonId'. + /// + /// + /// The property value for 'SalesReasonId'. + /// + public int SalesReasonId { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonUpdateModel.cs new file mode 100644 index 0000000..f8030d2 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonUpdateModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SalesOrderHeaderSalesReasonUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'SalesOrderId'. + /// + /// + /// The property value for 'SalesOrderId'. + /// + public int SalesOrderId { get; set; } + + /// + /// Gets or sets the property value for 'SalesReasonId'. + /// + /// + /// The property value for 'SalesReasonId'. + /// + public int SalesReasonId { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Validation/SalesOrderHeaderSalesReasonCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Validation/SalesOrderHeaderSalesReasonCreateModelValidator.cs new file mode 100644 index 0000000..596c454 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Validation/SalesOrderHeaderSalesReasonCreateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class SalesOrderHeaderSalesReasonCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public SalesOrderHeaderSalesReasonCreateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Validation/SalesOrderHeaderSalesReasonUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Validation/SalesOrderHeaderSalesReasonUpdateModelValidator.cs new file mode 100644 index 0000000..e83ebfd --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Validation/SalesOrderHeaderSalesReasonUpdateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class SalesOrderHeaderSalesReasonUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public SalesOrderHeaderSalesReasonUpdateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Mapping/SalesPersonProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Mapping/SalesPersonProfile.cs new file mode 100644 index 0000000..e424118 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Mapping/SalesPersonProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class SalesPersonProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public SalesPersonProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonCreateModel.cs new file mode 100644 index 0000000..a446788 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonCreateModel.cs @@ -0,0 +1,87 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SalesPersonCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'TerritoryId'. + /// + /// + /// The property value for 'TerritoryId'. + /// + public int? TerritoryId { get; set; } + + /// + /// Gets or sets the property value for 'SalesQuota'. + /// + /// + /// The property value for 'SalesQuota'. + /// + public decimal? SalesQuota { get; set; } + + /// + /// Gets or sets the property value for 'Bonus'. + /// + /// + /// The property value for 'Bonus'. + /// + public decimal Bonus { get; set; } + + /// + /// Gets or sets the property value for 'CommissionPct'. + /// + /// + /// The property value for 'CommissionPct'. + /// + public decimal CommissionPct { get; set; } + + /// + /// Gets or sets the property value for 'SalesYTD'. + /// + /// + /// The property value for 'SalesYTD'. + /// + public decimal SalesYTD { get; set; } + + /// + /// Gets or sets the property value for 'SalesLastYear'. + /// + /// + /// The property value for 'SalesLastYear'. + /// + public decimal SalesLastYear { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonReadModel.cs new file mode 100644 index 0000000..b175dbc --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonReadModel.cs @@ -0,0 +1,87 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SalesPersonReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'TerritoryId'. + /// + /// + /// The property value for 'TerritoryId'. + /// + public int? TerritoryId { get; set; } + + /// + /// Gets or sets the property value for 'SalesQuota'. + /// + /// + /// The property value for 'SalesQuota'. + /// + public decimal? SalesQuota { get; set; } + + /// + /// Gets or sets the property value for 'Bonus'. + /// + /// + /// The property value for 'Bonus'. + /// + public decimal Bonus { get; set; } + + /// + /// Gets or sets the property value for 'CommissionPct'. + /// + /// + /// The property value for 'CommissionPct'. + /// + public decimal CommissionPct { get; set; } + + /// + /// Gets or sets the property value for 'SalesYTD'. + /// + /// + /// The property value for 'SalesYTD'. + /// + public decimal SalesYTD { get; set; } + + /// + /// Gets or sets the property value for 'SalesLastYear'. + /// + /// + /// The property value for 'SalesLastYear'. + /// + public decimal SalesLastYear { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonUpdateModel.cs new file mode 100644 index 0000000..3682c7a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonUpdateModel.cs @@ -0,0 +1,87 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SalesPersonUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'TerritoryId'. + /// + /// + /// The property value for 'TerritoryId'. + /// + public int? TerritoryId { get; set; } + + /// + /// Gets or sets the property value for 'SalesQuota'. + /// + /// + /// The property value for 'SalesQuota'. + /// + public decimal? SalesQuota { get; set; } + + /// + /// Gets or sets the property value for 'Bonus'. + /// + /// + /// The property value for 'Bonus'. + /// + public decimal Bonus { get; set; } + + /// + /// Gets or sets the property value for 'CommissionPct'. + /// + /// + /// The property value for 'CommissionPct'. + /// + public decimal CommissionPct { get; set; } + + /// + /// Gets or sets the property value for 'SalesYTD'. + /// + /// + /// The property value for 'SalesYTD'. + /// + public decimal SalesYTD { get; set; } + + /// + /// Gets or sets the property value for 'SalesLastYear'. + /// + /// + /// The property value for 'SalesLastYear'. + /// + public decimal SalesLastYear { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Validation/SalesPersonCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Validation/SalesPersonCreateModelValidator.cs new file mode 100644 index 0000000..0bee94a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Validation/SalesPersonCreateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class SalesPersonCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public SalesPersonCreateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Validation/SalesPersonUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Validation/SalesPersonUpdateModelValidator.cs new file mode 100644 index 0000000..c6aa7da --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Validation/SalesPersonUpdateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class SalesPersonUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public SalesPersonUpdateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Mapping/SalesPersonQuotaHistoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Mapping/SalesPersonQuotaHistoryProfile.cs new file mode 100644 index 0000000..d5eec08 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Mapping/SalesPersonQuotaHistoryProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class SalesPersonQuotaHistoryProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public SalesPersonQuotaHistoryProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Models/SalesPersonQuotaHistoryCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Models/SalesPersonQuotaHistoryCreateModel.cs new file mode 100644 index 0000000..9ce467e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Models/SalesPersonQuotaHistoryCreateModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SalesPersonQuotaHistoryCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'QuotaDate'. + /// + /// + /// The property value for 'QuotaDate'. + /// + public DateTime QuotaDate { get; set; } + + /// + /// Gets or sets the property value for 'SalesQuota'. + /// + /// + /// The property value for 'SalesQuota'. + /// + public decimal SalesQuota { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Models/SalesPersonQuotaHistoryReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Models/SalesPersonQuotaHistoryReadModel.cs new file mode 100644 index 0000000..7219322 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Models/SalesPersonQuotaHistoryReadModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SalesPersonQuotaHistoryReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'QuotaDate'. + /// + /// + /// The property value for 'QuotaDate'. + /// + public DateTime QuotaDate { get; set; } + + /// + /// Gets or sets the property value for 'SalesQuota'. + /// + /// + /// The property value for 'SalesQuota'. + /// + public decimal SalesQuota { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Models/SalesPersonQuotaHistoryUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Models/SalesPersonQuotaHistoryUpdateModel.cs new file mode 100644 index 0000000..e9e28a1 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Models/SalesPersonQuotaHistoryUpdateModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SalesPersonQuotaHistoryUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'QuotaDate'. + /// + /// + /// The property value for 'QuotaDate'. + /// + public DateTime QuotaDate { get; set; } + + /// + /// Gets or sets the property value for 'SalesQuota'. + /// + /// + /// The property value for 'SalesQuota'. + /// + public decimal SalesQuota { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Validation/SalesPersonQuotaHistoryCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Validation/SalesPersonQuotaHistoryCreateModelValidator.cs new file mode 100644 index 0000000..d9da854 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Validation/SalesPersonQuotaHistoryCreateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class SalesPersonQuotaHistoryCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public SalesPersonQuotaHistoryCreateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Validation/SalesPersonQuotaHistoryUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Validation/SalesPersonQuotaHistoryUpdateModelValidator.cs new file mode 100644 index 0000000..894c6c8 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Validation/SalesPersonQuotaHistoryUpdateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class SalesPersonQuotaHistoryUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public SalesPersonQuotaHistoryUpdateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Mapping/SalesReasonProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Mapping/SalesReasonProfile.cs new file mode 100644 index 0000000..d2d638e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Mapping/SalesReasonProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class SalesReasonProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public SalesReasonProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonCreateModel.cs new file mode 100644 index 0000000..f98ddab --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonCreateModel.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SalesReasonCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ReasonType'. + /// + /// + /// The property value for 'ReasonType'. + /// + public string ReasonType { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonReadModel.cs new file mode 100644 index 0000000..98775f8 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonReadModel.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SalesReasonReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ReasonType'. + /// + /// + /// The property value for 'ReasonType'. + /// + public string ReasonType { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonUpdateModel.cs new file mode 100644 index 0000000..5804e49 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonUpdateModel.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SalesReasonUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ReasonType'. + /// + /// + /// The property value for 'ReasonType'. + /// + public string ReasonType { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Validation/SalesReasonCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Validation/SalesReasonCreateModelValidator.cs new file mode 100644 index 0000000..4c88b91 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Validation/SalesReasonCreateModelValidator.cs @@ -0,0 +1,28 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class SalesReasonCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public SalesReasonCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + RuleFor(p => p.ReasonType).NotEmpty(); + RuleFor(p => p.ReasonType).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Validation/SalesReasonUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Validation/SalesReasonUpdateModelValidator.cs new file mode 100644 index 0000000..da7b5b9 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Validation/SalesReasonUpdateModelValidator.cs @@ -0,0 +1,28 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class SalesReasonUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public SalesReasonUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + RuleFor(p => p.ReasonType).NotEmpty(); + RuleFor(p => p.ReasonType).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Mapping/SalesTaxRateProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Mapping/SalesTaxRateProfile.cs new file mode 100644 index 0000000..2ea4a78 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Mapping/SalesTaxRateProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class SalesTaxRateProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public SalesTaxRateProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateCreateModel.cs new file mode 100644 index 0000000..4cdfa85 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateCreateModel.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SalesTaxRateCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'StateProvinceId'. + /// + /// + /// The property value for 'StateProvinceId'. + /// + public int StateProvinceId { get; set; } + + /// + /// Gets or sets the property value for 'TaxType'. + /// + /// + /// The property value for 'TaxType'. + /// + public byte TaxType { get; set; } + + /// + /// Gets or sets the property value for 'TaxRate'. + /// + /// + /// The property value for 'TaxRate'. + /// + public decimal TaxRate { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateReadModel.cs new file mode 100644 index 0000000..0b09023 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateReadModel.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SalesTaxRateReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'StateProvinceId'. + /// + /// + /// The property value for 'StateProvinceId'. + /// + public int StateProvinceId { get; set; } + + /// + /// Gets or sets the property value for 'TaxType'. + /// + /// + /// The property value for 'TaxType'. + /// + public byte TaxType { get; set; } + + /// + /// Gets or sets the property value for 'TaxRate'. + /// + /// + /// The property value for 'TaxRate'. + /// + public decimal TaxRate { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateUpdateModel.cs new file mode 100644 index 0000000..aa6e60f --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateUpdateModel.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SalesTaxRateUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'StateProvinceId'. + /// + /// + /// The property value for 'StateProvinceId'. + /// + public int StateProvinceId { get; set; } + + /// + /// Gets or sets the property value for 'TaxType'. + /// + /// + /// The property value for 'TaxType'. + /// + public byte TaxType { get; set; } + + /// + /// Gets or sets the property value for 'TaxRate'. + /// + /// + /// The property value for 'TaxRate'. + /// + public decimal TaxRate { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Validation/SalesTaxRateCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Validation/SalesTaxRateCreateModelValidator.cs new file mode 100644 index 0000000..81af04b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Validation/SalesTaxRateCreateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class SalesTaxRateCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public SalesTaxRateCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Validation/SalesTaxRateUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Validation/SalesTaxRateUpdateModelValidator.cs new file mode 100644 index 0000000..3694fae --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Validation/SalesTaxRateUpdateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class SalesTaxRateUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public SalesTaxRateUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Mapping/SalesTerritoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Mapping/SalesTerritoryProfile.cs new file mode 100644 index 0000000..ad6651a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Mapping/SalesTerritoryProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class SalesTerritoryProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public SalesTerritoryProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryCreateModel.cs new file mode 100644 index 0000000..3516228 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryCreateModel.cs @@ -0,0 +1,95 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SalesTerritoryCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CountryRegionCode'. + /// + /// + /// The property value for 'CountryRegionCode'. + /// + public string CountryRegionCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Group'. + /// + /// + /// The property value for 'Group'. + /// + public string Group { get; set; } = null!; + + /// + /// Gets or sets the property value for 'SalesYTD'. + /// + /// + /// The property value for 'SalesYTD'. + /// + public decimal SalesYTD { get; set; } + + /// + /// Gets or sets the property value for 'SalesLastYear'. + /// + /// + /// The property value for 'SalesLastYear'. + /// + public decimal SalesLastYear { get; set; } + + /// + /// Gets or sets the property value for 'CostYTD'. + /// + /// + /// The property value for 'CostYTD'. + /// + public decimal CostYTD { get; set; } + + /// + /// Gets or sets the property value for 'CostLastYear'. + /// + /// + /// The property value for 'CostLastYear'. + /// + public decimal CostLastYear { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryReadModel.cs new file mode 100644 index 0000000..da3e5df --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryReadModel.cs @@ -0,0 +1,95 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SalesTerritoryReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CountryRegionCode'. + /// + /// + /// The property value for 'CountryRegionCode'. + /// + public string CountryRegionCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Group'. + /// + /// + /// The property value for 'Group'. + /// + public string Group { get; set; } = null!; + + /// + /// Gets or sets the property value for 'SalesYTD'. + /// + /// + /// The property value for 'SalesYTD'. + /// + public decimal SalesYTD { get; set; } + + /// + /// Gets or sets the property value for 'SalesLastYear'. + /// + /// + /// The property value for 'SalesLastYear'. + /// + public decimal SalesLastYear { get; set; } + + /// + /// Gets or sets the property value for 'CostYTD'. + /// + /// + /// The property value for 'CostYTD'. + /// + public decimal CostYTD { get; set; } + + /// + /// Gets or sets the property value for 'CostLastYear'. + /// + /// + /// The property value for 'CostLastYear'. + /// + public decimal CostLastYear { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryUpdateModel.cs new file mode 100644 index 0000000..2331f8f --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryUpdateModel.cs @@ -0,0 +1,95 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SalesTerritoryUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CountryRegionCode'. + /// + /// + /// The property value for 'CountryRegionCode'. + /// + public string CountryRegionCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Group'. + /// + /// + /// The property value for 'Group'. + /// + public string Group { get; set; } = null!; + + /// + /// Gets or sets the property value for 'SalesYTD'. + /// + /// + /// The property value for 'SalesYTD'. + /// + public decimal SalesYTD { get; set; } + + /// + /// Gets or sets the property value for 'SalesLastYear'. + /// + /// + /// The property value for 'SalesLastYear'. + /// + public decimal SalesLastYear { get; set; } + + /// + /// Gets or sets the property value for 'CostYTD'. + /// + /// + /// The property value for 'CostYTD'. + /// + public decimal CostYTD { get; set; } + + /// + /// Gets or sets the property value for 'CostLastYear'. + /// + /// + /// The property value for 'CostLastYear'. + /// + public decimal CostLastYear { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Validation/SalesTerritoryCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Validation/SalesTerritoryCreateModelValidator.cs new file mode 100644 index 0000000..40ed2ea --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Validation/SalesTerritoryCreateModelValidator.cs @@ -0,0 +1,30 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class SalesTerritoryCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public SalesTerritoryCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + RuleFor(p => p.CountryRegionCode).NotEmpty(); + RuleFor(p => p.CountryRegionCode).MaximumLength(3); + RuleFor(p => p.Group).NotEmpty(); + RuleFor(p => p.Group).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Validation/SalesTerritoryUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Validation/SalesTerritoryUpdateModelValidator.cs new file mode 100644 index 0000000..53f20f0 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Validation/SalesTerritoryUpdateModelValidator.cs @@ -0,0 +1,30 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class SalesTerritoryUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public SalesTerritoryUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + RuleFor(p => p.CountryRegionCode).NotEmpty(); + RuleFor(p => p.CountryRegionCode).MaximumLength(3); + RuleFor(p => p.Group).NotEmpty(); + RuleFor(p => p.Group).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Mapping/SalesTerritoryHistoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Mapping/SalesTerritoryHistoryProfile.cs new file mode 100644 index 0000000..c64d964 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Mapping/SalesTerritoryHistoryProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class SalesTerritoryHistoryProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public SalesTerritoryHistoryProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Models/SalesTerritoryHistoryCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Models/SalesTerritoryHistoryCreateModel.cs new file mode 100644 index 0000000..5df3069 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Models/SalesTerritoryHistoryCreateModel.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SalesTerritoryHistoryCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'TerritoryId'. + /// + /// + /// The property value for 'TerritoryId'. + /// + public int TerritoryId { get; set; } + + /// + /// Gets or sets the property value for 'StartDate'. + /// + /// + /// The property value for 'StartDate'. + /// + public DateTime StartDate { get; set; } + + /// + /// Gets or sets the property value for 'EndDate'. + /// + /// + /// The property value for 'EndDate'. + /// + public DateTime? EndDate { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Models/SalesTerritoryHistoryReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Models/SalesTerritoryHistoryReadModel.cs new file mode 100644 index 0000000..339cc74 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Models/SalesTerritoryHistoryReadModel.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SalesTerritoryHistoryReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'TerritoryId'. + /// + /// + /// The property value for 'TerritoryId'. + /// + public int TerritoryId { get; set; } + + /// + /// Gets or sets the property value for 'StartDate'. + /// + /// + /// The property value for 'StartDate'. + /// + public DateTime StartDate { get; set; } + + /// + /// Gets or sets the property value for 'EndDate'. + /// + /// + /// The property value for 'EndDate'. + /// + public DateTime? EndDate { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Models/SalesTerritoryHistoryUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Models/SalesTerritoryHistoryUpdateModel.cs new file mode 100644 index 0000000..65b23b4 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Models/SalesTerritoryHistoryUpdateModel.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SalesTerritoryHistoryUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'TerritoryId'. + /// + /// + /// The property value for 'TerritoryId'. + /// + public int TerritoryId { get; set; } + + /// + /// Gets or sets the property value for 'StartDate'. + /// + /// + /// The property value for 'StartDate'. + /// + public DateTime StartDate { get; set; } + + /// + /// Gets or sets the property value for 'EndDate'. + /// + /// + /// The property value for 'EndDate'. + /// + public DateTime? EndDate { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Validation/SalesTerritoryHistoryCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Validation/SalesTerritoryHistoryCreateModelValidator.cs new file mode 100644 index 0000000..017aa90 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Validation/SalesTerritoryHistoryCreateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class SalesTerritoryHistoryCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public SalesTerritoryHistoryCreateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Validation/SalesTerritoryHistoryUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Validation/SalesTerritoryHistoryUpdateModelValidator.cs new file mode 100644 index 0000000..06b7d5c --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Validation/SalesTerritoryHistoryUpdateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class SalesTerritoryHistoryUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public SalesTerritoryHistoryUpdateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Mapping/ScrapReasonProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Mapping/ScrapReasonProfile.cs new file mode 100644 index 0000000..96b6fa3 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Mapping/ScrapReasonProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class ScrapReasonProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public ScrapReasonProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonCreateModel.cs new file mode 100644 index 0000000..685475f --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonCreateModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ScrapReasonCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public short Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonReadModel.cs new file mode 100644 index 0000000..e61f440 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonReadModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ScrapReasonReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public short Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonUpdateModel.cs new file mode 100644 index 0000000..f79e607 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonUpdateModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ScrapReasonUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public short Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Validation/ScrapReasonCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Validation/ScrapReasonCreateModelValidator.cs new file mode 100644 index 0000000..c15e156 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Validation/ScrapReasonCreateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ScrapReasonCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ScrapReasonCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Validation/ScrapReasonUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Validation/ScrapReasonUpdateModelValidator.cs new file mode 100644 index 0000000..0236b6d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Validation/ScrapReasonUpdateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ScrapReasonUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ScrapReasonUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Shift/Mapping/ShiftProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Shift/Mapping/ShiftProfile.cs new file mode 100644 index 0000000..3a1d7f7 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Shift/Mapping/ShiftProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class ShiftProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public ShiftProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Shift/Models/ShiftCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Shift/Models/ShiftCreateModel.cs new file mode 100644 index 0000000..1d8fcbe --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Shift/Models/ShiftCreateModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ShiftCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public byte Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'StartTime'. + /// + /// + /// The property value for 'StartTime'. + /// + public TimeOnly StartTime { get; set; } + + /// + /// Gets or sets the property value for 'EndTime'. + /// + /// + /// The property value for 'EndTime'. + /// + public TimeOnly EndTime { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Shift/Models/ShiftReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Shift/Models/ShiftReadModel.cs new file mode 100644 index 0000000..15948d5 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Shift/Models/ShiftReadModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ShiftReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public byte Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'StartTime'. + /// + /// + /// The property value for 'StartTime'. + /// + public TimeOnly StartTime { get; set; } + + /// + /// Gets or sets the property value for 'EndTime'. + /// + /// + /// The property value for 'EndTime'. + /// + public TimeOnly EndTime { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Shift/Models/ShiftUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Shift/Models/ShiftUpdateModel.cs new file mode 100644 index 0000000..bc13b05 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Shift/Models/ShiftUpdateModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ShiftUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public byte Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'StartTime'. + /// + /// + /// The property value for 'StartTime'. + /// + public TimeOnly StartTime { get; set; } + + /// + /// Gets or sets the property value for 'EndTime'. + /// + /// + /// The property value for 'EndTime'. + /// + public TimeOnly EndTime { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Shift/Validation/ShiftCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Shift/Validation/ShiftCreateModelValidator.cs new file mode 100644 index 0000000..37a4d23 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Shift/Validation/ShiftCreateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ShiftCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ShiftCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Shift/Validation/ShiftUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Shift/Validation/ShiftUpdateModelValidator.cs new file mode 100644 index 0000000..f9c4182 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Shift/Validation/ShiftUpdateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ShiftUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ShiftUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Mapping/ShipMethodProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Mapping/ShipMethodProfile.cs new file mode 100644 index 0000000..6fde9fa --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Mapping/ShipMethodProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class ShipMethodProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public ShipMethodProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Models/ShipMethodCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Models/ShipMethodCreateModel.cs new file mode 100644 index 0000000..86b1a7d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Models/ShipMethodCreateModel.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ShipMethodCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ShipBase'. + /// + /// + /// The property value for 'ShipBase'. + /// + public decimal ShipBase { get; set; } + + /// + /// Gets or sets the property value for 'ShipRate'. + /// + /// + /// The property value for 'ShipRate'. + /// + public decimal ShipRate { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Models/ShipMethodReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Models/ShipMethodReadModel.cs new file mode 100644 index 0000000..98cc3b0 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Models/ShipMethodReadModel.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ShipMethodReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ShipBase'. + /// + /// + /// The property value for 'ShipBase'. + /// + public decimal ShipBase { get; set; } + + /// + /// Gets or sets the property value for 'ShipRate'. + /// + /// + /// The property value for 'ShipRate'. + /// + public decimal ShipRate { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Models/ShipMethodUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Models/ShipMethodUpdateModel.cs new file mode 100644 index 0000000..a47dd4b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Models/ShipMethodUpdateModel.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ShipMethodUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ShipBase'. + /// + /// + /// The property value for 'ShipBase'. + /// + public decimal ShipBase { get; set; } + + /// + /// Gets or sets the property value for 'ShipRate'. + /// + /// + /// The property value for 'ShipRate'. + /// + public decimal ShipRate { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Validation/ShipMethodCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Validation/ShipMethodCreateModelValidator.cs new file mode 100644 index 0000000..2e14b36 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Validation/ShipMethodCreateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ShipMethodCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ShipMethodCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Validation/ShipMethodUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Validation/ShipMethodUpdateModelValidator.cs new file mode 100644 index 0000000..a8927d1 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Validation/ShipMethodUpdateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ShipMethodUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ShipMethodUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Mapping/ShoppingCartItemProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Mapping/ShoppingCartItemProfile.cs new file mode 100644 index 0000000..6e45b98 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Mapping/ShoppingCartItemProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class ShoppingCartItemProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public ShoppingCartItemProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Models/ShoppingCartItemCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Models/ShoppingCartItemCreateModel.cs new file mode 100644 index 0000000..48dc065 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Models/ShoppingCartItemCreateModel.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ShoppingCartItemCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'ShoppingCartId'. + /// + /// + /// The property value for 'ShoppingCartId'. + /// + public string ShoppingCartId { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Quantity'. + /// + /// + /// The property value for 'Quantity'. + /// + public int Quantity { get; set; } + + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'DateCreated'. + /// + /// + /// The property value for 'DateCreated'. + /// + public DateTime DateCreated { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Models/ShoppingCartItemReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Models/ShoppingCartItemReadModel.cs new file mode 100644 index 0000000..b2f08c8 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Models/ShoppingCartItemReadModel.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ShoppingCartItemReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'ShoppingCartId'. + /// + /// + /// The property value for 'ShoppingCartId'. + /// + public string ShoppingCartId { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Quantity'. + /// + /// + /// The property value for 'Quantity'. + /// + public int Quantity { get; set; } + + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'DateCreated'. + /// + /// + /// The property value for 'DateCreated'. + /// + public DateTime DateCreated { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Models/ShoppingCartItemUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Models/ShoppingCartItemUpdateModel.cs new file mode 100644 index 0000000..c895261 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Models/ShoppingCartItemUpdateModel.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class ShoppingCartItemUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'ShoppingCartId'. + /// + /// + /// The property value for 'ShoppingCartId'. + /// + public string ShoppingCartId { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Quantity'. + /// + /// + /// The property value for 'Quantity'. + /// + public int Quantity { get; set; } + + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'DateCreated'. + /// + /// + /// The property value for 'DateCreated'. + /// + public DateTime DateCreated { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Validation/ShoppingCartItemCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Validation/ShoppingCartItemCreateModelValidator.cs new file mode 100644 index 0000000..6be3659 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Validation/ShoppingCartItemCreateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ShoppingCartItemCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ShoppingCartItemCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.ShoppingCartId).NotEmpty(); + RuleFor(p => p.ShoppingCartId).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Validation/ShoppingCartItemUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Validation/ShoppingCartItemUpdateModelValidator.cs new file mode 100644 index 0000000..d187292 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Validation/ShoppingCartItemUpdateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class ShoppingCartItemUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public ShoppingCartItemUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.ShoppingCartId).NotEmpty(); + RuleFor(p => p.ShoppingCartId).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Mapping/SpecialOfferProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Mapping/SpecialOfferProfile.cs new file mode 100644 index 0000000..3df47ec --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Mapping/SpecialOfferProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class SpecialOfferProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public SpecialOfferProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferCreateModel.cs new file mode 100644 index 0000000..e7463a8 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferCreateModel.cs @@ -0,0 +1,103 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SpecialOfferCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Description'. + /// + /// + /// The property value for 'Description'. + /// + public string Description { get; set; } = null!; + + /// + /// Gets or sets the property value for 'DiscountPct'. + /// + /// + /// The property value for 'DiscountPct'. + /// + public decimal DiscountPct { get; set; } + + /// + /// Gets or sets the property value for 'Type'. + /// + /// + /// The property value for 'Type'. + /// + public string Type { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Category'. + /// + /// + /// The property value for 'Category'. + /// + public string Category { get; set; } = null!; + + /// + /// Gets or sets the property value for 'StartDate'. + /// + /// + /// The property value for 'StartDate'. + /// + public DateTime StartDate { get; set; } + + /// + /// Gets or sets the property value for 'EndDate'. + /// + /// + /// The property value for 'EndDate'. + /// + public DateTime EndDate { get; set; } + + /// + /// Gets or sets the property value for 'MinQty'. + /// + /// + /// The property value for 'MinQty'. + /// + public int MinQty { get; set; } + + /// + /// Gets or sets the property value for 'MaxQty'. + /// + /// + /// The property value for 'MaxQty'. + /// + public int? MaxQty { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferReadModel.cs new file mode 100644 index 0000000..e004a1b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferReadModel.cs @@ -0,0 +1,103 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SpecialOfferReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Description'. + /// + /// + /// The property value for 'Description'. + /// + public string Description { get; set; } = null!; + + /// + /// Gets or sets the property value for 'DiscountPct'. + /// + /// + /// The property value for 'DiscountPct'. + /// + public decimal DiscountPct { get; set; } + + /// + /// Gets or sets the property value for 'Type'. + /// + /// + /// The property value for 'Type'. + /// + public string Type { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Category'. + /// + /// + /// The property value for 'Category'. + /// + public string Category { get; set; } = null!; + + /// + /// Gets or sets the property value for 'StartDate'. + /// + /// + /// The property value for 'StartDate'. + /// + public DateTime StartDate { get; set; } + + /// + /// Gets or sets the property value for 'EndDate'. + /// + /// + /// The property value for 'EndDate'. + /// + public DateTime EndDate { get; set; } + + /// + /// Gets or sets the property value for 'MinQty'. + /// + /// + /// The property value for 'MinQty'. + /// + public int MinQty { get; set; } + + /// + /// Gets or sets the property value for 'MaxQty'. + /// + /// + /// The property value for 'MaxQty'. + /// + public int? MaxQty { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferUpdateModel.cs new file mode 100644 index 0000000..dad9fad --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferUpdateModel.cs @@ -0,0 +1,103 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SpecialOfferUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Description'. + /// + /// + /// The property value for 'Description'. + /// + public string Description { get; set; } = null!; + + /// + /// Gets or sets the property value for 'DiscountPct'. + /// + /// + /// The property value for 'DiscountPct'. + /// + public decimal DiscountPct { get; set; } + + /// + /// Gets or sets the property value for 'Type'. + /// + /// + /// The property value for 'Type'. + /// + public string Type { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Category'. + /// + /// + /// The property value for 'Category'. + /// + public string Category { get; set; } = null!; + + /// + /// Gets or sets the property value for 'StartDate'. + /// + /// + /// The property value for 'StartDate'. + /// + public DateTime StartDate { get; set; } + + /// + /// Gets or sets the property value for 'EndDate'. + /// + /// + /// The property value for 'EndDate'. + /// + public DateTime EndDate { get; set; } + + /// + /// Gets or sets the property value for 'MinQty'. + /// + /// + /// The property value for 'MinQty'. + /// + public int MinQty { get; set; } + + /// + /// Gets or sets the property value for 'MaxQty'. + /// + /// + /// The property value for 'MaxQty'. + /// + public int? MaxQty { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Validation/SpecialOfferCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Validation/SpecialOfferCreateModelValidator.cs new file mode 100644 index 0000000..4b67cd0 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Validation/SpecialOfferCreateModelValidator.cs @@ -0,0 +1,30 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class SpecialOfferCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public SpecialOfferCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Description).NotEmpty(); + RuleFor(p => p.Description).MaximumLength(255); + RuleFor(p => p.Type).NotEmpty(); + RuleFor(p => p.Type).MaximumLength(50); + RuleFor(p => p.Category).NotEmpty(); + RuleFor(p => p.Category).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Validation/SpecialOfferUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Validation/SpecialOfferUpdateModelValidator.cs new file mode 100644 index 0000000..353db00 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Validation/SpecialOfferUpdateModelValidator.cs @@ -0,0 +1,30 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class SpecialOfferUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public SpecialOfferUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Description).NotEmpty(); + RuleFor(p => p.Description).MaximumLength(255); + RuleFor(p => p.Type).NotEmpty(); + RuleFor(p => p.Type).MaximumLength(50); + RuleFor(p => p.Category).NotEmpty(); + RuleFor(p => p.Category).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Mapping/SpecialOfferProductProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Mapping/SpecialOfferProductProfile.cs new file mode 100644 index 0000000..6003415 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Mapping/SpecialOfferProductProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class SpecialOfferProductProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public SpecialOfferProductProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductCreateModel.cs new file mode 100644 index 0000000..18a413a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductCreateModel.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SpecialOfferProductCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'SpecialOfferId'. + /// + /// + /// The property value for 'SpecialOfferId'. + /// + public int SpecialOfferId { get; set; } + + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductReadModel.cs new file mode 100644 index 0000000..76dd0cd --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductReadModel.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SpecialOfferProductReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'SpecialOfferId'. + /// + /// + /// The property value for 'SpecialOfferId'. + /// + public int SpecialOfferId { get; set; } + + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductUpdateModel.cs new file mode 100644 index 0000000..ae2b087 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductUpdateModel.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class SpecialOfferProductUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'SpecialOfferId'. + /// + /// + /// The property value for 'SpecialOfferId'. + /// + public int SpecialOfferId { get; set; } + + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Validation/SpecialOfferProductCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Validation/SpecialOfferProductCreateModelValidator.cs new file mode 100644 index 0000000..f5de9f5 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Validation/SpecialOfferProductCreateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class SpecialOfferProductCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public SpecialOfferProductCreateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Validation/SpecialOfferProductUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Validation/SpecialOfferProductUpdateModelValidator.cs new file mode 100644 index 0000000..8932795 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Validation/SpecialOfferProductUpdateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class SpecialOfferProductUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public SpecialOfferProductUpdateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Mapping/StateProvinceProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Mapping/StateProvinceProfile.cs new file mode 100644 index 0000000..f0eb7b3 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Mapping/StateProvinceProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class StateProvinceProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public StateProvinceProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceCreateModel.cs new file mode 100644 index 0000000..e0f2a71 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceCreateModel.cs @@ -0,0 +1,79 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class StateProvinceCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'StateProvinceCode'. + /// + /// + /// The property value for 'StateProvinceCode'. + /// + public string StateProvinceCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CountryRegionCode'. + /// + /// + /// The property value for 'CountryRegionCode'. + /// + public string CountryRegionCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'IsOnlyStateProvinceFlag'. + /// + /// + /// The property value for 'IsOnlyStateProvinceFlag'. + /// + public bool IsOnlyStateProvinceFlag { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'TerritoryId'. + /// + /// + /// The property value for 'TerritoryId'. + /// + public int TerritoryId { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceReadModel.cs new file mode 100644 index 0000000..7d29209 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceReadModel.cs @@ -0,0 +1,79 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class StateProvinceReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'StateProvinceCode'. + /// + /// + /// The property value for 'StateProvinceCode'. + /// + public string StateProvinceCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CountryRegionCode'. + /// + /// + /// The property value for 'CountryRegionCode'. + /// + public string CountryRegionCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'IsOnlyStateProvinceFlag'. + /// + /// + /// The property value for 'IsOnlyStateProvinceFlag'. + /// + public bool IsOnlyStateProvinceFlag { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'TerritoryId'. + /// + /// + /// The property value for 'TerritoryId'. + /// + public int TerritoryId { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceUpdateModel.cs new file mode 100644 index 0000000..7133ec6 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceUpdateModel.cs @@ -0,0 +1,79 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class StateProvinceUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'StateProvinceCode'. + /// + /// + /// The property value for 'StateProvinceCode'. + /// + public string StateProvinceCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CountryRegionCode'. + /// + /// + /// The property value for 'CountryRegionCode'. + /// + public string CountryRegionCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'IsOnlyStateProvinceFlag'. + /// + /// + /// The property value for 'IsOnlyStateProvinceFlag'. + /// + public bool IsOnlyStateProvinceFlag { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'TerritoryId'. + /// + /// + /// The property value for 'TerritoryId'. + /// + public int TerritoryId { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Validation/StateProvinceCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Validation/StateProvinceCreateModelValidator.cs new file mode 100644 index 0000000..14cb5d3 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Validation/StateProvinceCreateModelValidator.cs @@ -0,0 +1,30 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class StateProvinceCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public StateProvinceCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.StateProvinceCode).NotEmpty(); + RuleFor(p => p.StateProvinceCode).MaximumLength(3); + RuleFor(p => p.CountryRegionCode).NotEmpty(); + RuleFor(p => p.CountryRegionCode).MaximumLength(3); + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Validation/StateProvinceUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Validation/StateProvinceUpdateModelValidator.cs new file mode 100644 index 0000000..80fd72c --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Validation/StateProvinceUpdateModelValidator.cs @@ -0,0 +1,30 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class StateProvinceUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public StateProvinceUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.StateProvinceCode).NotEmpty(); + RuleFor(p => p.StateProvinceCode).MaximumLength(3); + RuleFor(p => p.CountryRegionCode).NotEmpty(); + RuleFor(p => p.CountryRegionCode).MaximumLength(3); + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Store/Mapping/StoreProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Store/Mapping/StoreProfile.cs new file mode 100644 index 0000000..bbc26d9 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Store/Mapping/StoreProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class StoreProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public StoreProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Store/Models/StoreCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Store/Models/StoreCreateModel.cs new file mode 100644 index 0000000..2f0f1e2 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Store/Models/StoreCreateModel.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class StoreCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'SalesPersonId'. + /// + /// + /// The property value for 'SalesPersonId'. + /// + public int? SalesPersonId { get; set; } + + /// + /// Gets or sets the property value for 'Demographics'. + /// + /// + /// The property value for 'Demographics'. + /// + public string? Demographics { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Store/Models/StoreReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Store/Models/StoreReadModel.cs new file mode 100644 index 0000000..fdc291f --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Store/Models/StoreReadModel.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class StoreReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'SalesPersonId'. + /// + /// + /// The property value for 'SalesPersonId'. + /// + public int? SalesPersonId { get; set; } + + /// + /// Gets or sets the property value for 'Demographics'. + /// + /// + /// The property value for 'Demographics'. + /// + public string? Demographics { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Store/Models/StoreUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Store/Models/StoreUpdateModel.cs new file mode 100644 index 0000000..7679f4c --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Store/Models/StoreUpdateModel.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class StoreUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'SalesPersonId'. + /// + /// + /// The property value for 'SalesPersonId'. + /// + public int? SalesPersonId { get; set; } + + /// + /// Gets or sets the property value for 'Demographics'. + /// + /// + /// The property value for 'Demographics'. + /// + public string? Demographics { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Store/Validation/StoreCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Store/Validation/StoreCreateModelValidator.cs new file mode 100644 index 0000000..e47fe9d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Store/Validation/StoreCreateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class StoreCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public StoreCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Store/Validation/StoreUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Store/Validation/StoreUpdateModelValidator.cs new file mode 100644 index 0000000..8b86fe1 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Store/Validation/StoreUpdateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class StoreUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public StoreUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Mapping/TransactionHistoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Mapping/TransactionHistoryProfile.cs new file mode 100644 index 0000000..8cd16d3 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Mapping/TransactionHistoryProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class TransactionHistoryProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public TransactionHistoryProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryCreateModel.cs new file mode 100644 index 0000000..3bedaee --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryCreateModel.cs @@ -0,0 +1,87 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class TransactionHistoryCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'ReferenceOrderId'. + /// + /// + /// The property value for 'ReferenceOrderId'. + /// + public int ReferenceOrderId { get; set; } + + /// + /// Gets or sets the property value for 'ReferenceOrderLineId'. + /// + /// + /// The property value for 'ReferenceOrderLineId'. + /// + public int ReferenceOrderLineId { get; set; } + + /// + /// Gets or sets the property value for 'TransactionDate'. + /// + /// + /// The property value for 'TransactionDate'. + /// + public DateTime TransactionDate { get; set; } + + /// + /// Gets or sets the property value for 'TransactionType'. + /// + /// + /// The property value for 'TransactionType'. + /// + public string TransactionType { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Quantity'. + /// + /// + /// The property value for 'Quantity'. + /// + public int Quantity { get; set; } + + /// + /// Gets or sets the property value for 'ActualCost'. + /// + /// + /// The property value for 'ActualCost'. + /// + public decimal ActualCost { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryReadModel.cs new file mode 100644 index 0000000..553a84a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryReadModel.cs @@ -0,0 +1,87 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class TransactionHistoryReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'ReferenceOrderId'. + /// + /// + /// The property value for 'ReferenceOrderId'. + /// + public int ReferenceOrderId { get; set; } + + /// + /// Gets or sets the property value for 'ReferenceOrderLineId'. + /// + /// + /// The property value for 'ReferenceOrderLineId'. + /// + public int ReferenceOrderLineId { get; set; } + + /// + /// Gets or sets the property value for 'TransactionDate'. + /// + /// + /// The property value for 'TransactionDate'. + /// + public DateTime TransactionDate { get; set; } + + /// + /// Gets or sets the property value for 'TransactionType'. + /// + /// + /// The property value for 'TransactionType'. + /// + public string TransactionType { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Quantity'. + /// + /// + /// The property value for 'Quantity'. + /// + public int Quantity { get; set; } + + /// + /// Gets or sets the property value for 'ActualCost'. + /// + /// + /// The property value for 'ActualCost'. + /// + public decimal ActualCost { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryUpdateModel.cs new file mode 100644 index 0000000..e05a7cb --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryUpdateModel.cs @@ -0,0 +1,87 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class TransactionHistoryUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'ReferenceOrderId'. + /// + /// + /// The property value for 'ReferenceOrderId'. + /// + public int ReferenceOrderId { get; set; } + + /// + /// Gets or sets the property value for 'ReferenceOrderLineId'. + /// + /// + /// The property value for 'ReferenceOrderLineId'. + /// + public int ReferenceOrderLineId { get; set; } + + /// + /// Gets or sets the property value for 'TransactionDate'. + /// + /// + /// The property value for 'TransactionDate'. + /// + public DateTime TransactionDate { get; set; } + + /// + /// Gets or sets the property value for 'TransactionType'. + /// + /// + /// The property value for 'TransactionType'. + /// + public string TransactionType { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Quantity'. + /// + /// + /// The property value for 'Quantity'. + /// + public int Quantity { get; set; } + + /// + /// Gets or sets the property value for 'ActualCost'. + /// + /// + /// The property value for 'ActualCost'. + /// + public decimal ActualCost { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Validation/TransactionHistoryCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Validation/TransactionHistoryCreateModelValidator.cs new file mode 100644 index 0000000..dfc5b4c --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Validation/TransactionHistoryCreateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class TransactionHistoryCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public TransactionHistoryCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.TransactionType).NotEmpty(); + RuleFor(p => p.TransactionType).MaximumLength(1); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Validation/TransactionHistoryUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Validation/TransactionHistoryUpdateModelValidator.cs new file mode 100644 index 0000000..7d256e9 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Validation/TransactionHistoryUpdateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class TransactionHistoryUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public TransactionHistoryUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.TransactionType).NotEmpty(); + RuleFor(p => p.TransactionType).MaximumLength(1); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Mapping/TransactionHistoryArchiveProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Mapping/TransactionHistoryArchiveProfile.cs new file mode 100644 index 0000000..c4ce781 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Mapping/TransactionHistoryArchiveProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class TransactionHistoryArchiveProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public TransactionHistoryArchiveProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveCreateModel.cs new file mode 100644 index 0000000..8083c18 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveCreateModel.cs @@ -0,0 +1,87 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class TransactionHistoryArchiveCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'TransactionId'. + /// + /// + /// The property value for 'TransactionId'. + /// + public int TransactionId { get; set; } + + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'ReferenceOrderId'. + /// + /// + /// The property value for 'ReferenceOrderId'. + /// + public int ReferenceOrderId { get; set; } + + /// + /// Gets or sets the property value for 'ReferenceOrderLineId'. + /// + /// + /// The property value for 'ReferenceOrderLineId'. + /// + public int ReferenceOrderLineId { get; set; } + + /// + /// Gets or sets the property value for 'TransactionDate'. + /// + /// + /// The property value for 'TransactionDate'. + /// + public DateTime TransactionDate { get; set; } + + /// + /// Gets or sets the property value for 'TransactionType'. + /// + /// + /// The property value for 'TransactionType'. + /// + public string TransactionType { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Quantity'. + /// + /// + /// The property value for 'Quantity'. + /// + public int Quantity { get; set; } + + /// + /// Gets or sets the property value for 'ActualCost'. + /// + /// + /// The property value for 'ActualCost'. + /// + public decimal ActualCost { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveReadModel.cs new file mode 100644 index 0000000..a34752e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveReadModel.cs @@ -0,0 +1,87 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class TransactionHistoryArchiveReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'TransactionId'. + /// + /// + /// The property value for 'TransactionId'. + /// + public int TransactionId { get; set; } + + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'ReferenceOrderId'. + /// + /// + /// The property value for 'ReferenceOrderId'. + /// + public int ReferenceOrderId { get; set; } + + /// + /// Gets or sets the property value for 'ReferenceOrderLineId'. + /// + /// + /// The property value for 'ReferenceOrderLineId'. + /// + public int ReferenceOrderLineId { get; set; } + + /// + /// Gets or sets the property value for 'TransactionDate'. + /// + /// + /// The property value for 'TransactionDate'. + /// + public DateTime TransactionDate { get; set; } + + /// + /// Gets or sets the property value for 'TransactionType'. + /// + /// + /// The property value for 'TransactionType'. + /// + public string TransactionType { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Quantity'. + /// + /// + /// The property value for 'Quantity'. + /// + public int Quantity { get; set; } + + /// + /// Gets or sets the property value for 'ActualCost'. + /// + /// + /// The property value for 'ActualCost'. + /// + public decimal ActualCost { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveUpdateModel.cs new file mode 100644 index 0000000..b734038 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveUpdateModel.cs @@ -0,0 +1,87 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class TransactionHistoryArchiveUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'TransactionId'. + /// + /// + /// The property value for 'TransactionId'. + /// + public int TransactionId { get; set; } + + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'ReferenceOrderId'. + /// + /// + /// The property value for 'ReferenceOrderId'. + /// + public int ReferenceOrderId { get; set; } + + /// + /// Gets or sets the property value for 'ReferenceOrderLineId'. + /// + /// + /// The property value for 'ReferenceOrderLineId'. + /// + public int ReferenceOrderLineId { get; set; } + + /// + /// Gets or sets the property value for 'TransactionDate'. + /// + /// + /// The property value for 'TransactionDate'. + /// + public DateTime TransactionDate { get; set; } + + /// + /// Gets or sets the property value for 'TransactionType'. + /// + /// + /// The property value for 'TransactionType'. + /// + public string TransactionType { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Quantity'. + /// + /// + /// The property value for 'Quantity'. + /// + public int Quantity { get; set; } + + /// + /// Gets or sets the property value for 'ActualCost'. + /// + /// + /// The property value for 'ActualCost'. + /// + public decimal ActualCost { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Validation/TransactionHistoryArchiveCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Validation/TransactionHistoryArchiveCreateModelValidator.cs new file mode 100644 index 0000000..a6f68ff --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Validation/TransactionHistoryArchiveCreateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class TransactionHistoryArchiveCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public TransactionHistoryArchiveCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.TransactionType).NotEmpty(); + RuleFor(p => p.TransactionType).MaximumLength(1); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Validation/TransactionHistoryArchiveUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Validation/TransactionHistoryArchiveUpdateModelValidator.cs new file mode 100644 index 0000000..d864d5d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Validation/TransactionHistoryArchiveUpdateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class TransactionHistoryArchiveUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public TransactionHistoryArchiveUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.TransactionType).NotEmpty(); + RuleFor(p => p.TransactionType).MaximumLength(1); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Mapping/UnitMeasureProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Mapping/UnitMeasureProfile.cs new file mode 100644 index 0000000..1a8a44e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Mapping/UnitMeasureProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class UnitMeasureProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public UnitMeasureProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureCreateModel.cs new file mode 100644 index 0000000..8e71e38 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureCreateModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class UnitMeasureCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'UnitMeasureCode'. + /// + /// + /// The property value for 'UnitMeasureCode'. + /// + public string UnitMeasureCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureReadModel.cs new file mode 100644 index 0000000..5bdb4f7 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureReadModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class UnitMeasureReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'UnitMeasureCode'. + /// + /// + /// The property value for 'UnitMeasureCode'. + /// + public string UnitMeasureCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureUpdateModel.cs new file mode 100644 index 0000000..cf96acc --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureUpdateModel.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class UnitMeasureUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'UnitMeasureCode'. + /// + /// + /// The property value for 'UnitMeasureCode'. + /// + public string UnitMeasureCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Validation/UnitMeasureCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Validation/UnitMeasureCreateModelValidator.cs new file mode 100644 index 0000000..aaabeee --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Validation/UnitMeasureCreateModelValidator.cs @@ -0,0 +1,28 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class UnitMeasureCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public UnitMeasureCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.UnitMeasureCode).NotEmpty(); + RuleFor(p => p.UnitMeasureCode).MaximumLength(3); + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Validation/UnitMeasureUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Validation/UnitMeasureUpdateModelValidator.cs new file mode 100644 index 0000000..fa9b52a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Validation/UnitMeasureUpdateModelValidator.cs @@ -0,0 +1,28 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class UnitMeasureUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public UnitMeasureUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.UnitMeasureCode).NotEmpty(); + RuleFor(p => p.UnitMeasureCode).MaximumLength(3); + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Mapping/VAdditionalContactInfoProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Mapping/VAdditionalContactInfoProfile.cs new file mode 100644 index 0000000..7debf6d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Mapping/VAdditionalContactInfoProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class VAdditionalContactInfoProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public VAdditionalContactInfoProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Models/VAdditionalContactInfoCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Models/VAdditionalContactInfoCreateModel.cs new file mode 100644 index 0000000..ec62c12 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Models/VAdditionalContactInfoCreateModel.cs @@ -0,0 +1,151 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VAdditionalContactInfoCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'FirstName'. + /// + /// + /// The property value for 'FirstName'. + /// + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'MiddleName'. + /// + /// + /// The property value for 'MiddleName'. + /// + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value for 'LastName'. + /// + /// + /// The property value for 'LastName'. + /// + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'TelephoneNumber'. + /// + /// + /// The property value for 'TelephoneNumber'. + /// + public string? TelephoneNumber { get; set; } + + /// + /// Gets or sets the property value for 'TelephoneSpecialInstructions'. + /// + /// + /// The property value for 'TelephoneSpecialInstructions'. + /// + public string? TelephoneSpecialInstructions { get; set; } + + /// + /// Gets or sets the property value for 'Street'. + /// + /// + /// The property value for 'Street'. + /// + public string? Street { get; set; } + + /// + /// Gets or sets the property value for 'City'. + /// + /// + /// The property value for 'City'. + /// + public string? City { get; set; } + + /// + /// Gets or sets the property value for 'StateProvince'. + /// + /// + /// The property value for 'StateProvince'. + /// + public string? StateProvince { get; set; } + + /// + /// Gets or sets the property value for 'PostalCode'. + /// + /// + /// The property value for 'PostalCode'. + /// + public string? PostalCode { get; set; } + + /// + /// Gets or sets the property value for 'CountryRegion'. + /// + /// + /// The property value for 'CountryRegion'. + /// + public string? CountryRegion { get; set; } + + /// + /// Gets or sets the property value for 'HomeAddressSpecialInstructions'. + /// + /// + /// The property value for 'HomeAddressSpecialInstructions'. + /// + public string? HomeAddressSpecialInstructions { get; set; } + + /// + /// Gets or sets the property value for 'EMailAddress'. + /// + /// + /// The property value for 'EMailAddress'. + /// + public string? EMailAddress { get; set; } + + /// + /// Gets or sets the property value for 'EMailSpecialInstructions'. + /// + /// + /// The property value for 'EMailSpecialInstructions'. + /// + public string? EMailSpecialInstructions { get; set; } + + /// + /// Gets or sets the property value for 'EMailTelephoneNumber'. + /// + /// + /// The property value for 'EMailTelephoneNumber'. + /// + public string? EMailTelephoneNumber { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Models/VAdditionalContactInfoReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Models/VAdditionalContactInfoReadModel.cs new file mode 100644 index 0000000..7eb0372 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Models/VAdditionalContactInfoReadModel.cs @@ -0,0 +1,151 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VAdditionalContactInfoReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'FirstName'. + /// + /// + /// The property value for 'FirstName'. + /// + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'MiddleName'. + /// + /// + /// The property value for 'MiddleName'. + /// + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value for 'LastName'. + /// + /// + /// The property value for 'LastName'. + /// + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'TelephoneNumber'. + /// + /// + /// The property value for 'TelephoneNumber'. + /// + public string? TelephoneNumber { get; set; } + + /// + /// Gets or sets the property value for 'TelephoneSpecialInstructions'. + /// + /// + /// The property value for 'TelephoneSpecialInstructions'. + /// + public string? TelephoneSpecialInstructions { get; set; } + + /// + /// Gets or sets the property value for 'Street'. + /// + /// + /// The property value for 'Street'. + /// + public string? Street { get; set; } + + /// + /// Gets or sets the property value for 'City'. + /// + /// + /// The property value for 'City'. + /// + public string? City { get; set; } + + /// + /// Gets or sets the property value for 'StateProvince'. + /// + /// + /// The property value for 'StateProvince'. + /// + public string? StateProvince { get; set; } + + /// + /// Gets or sets the property value for 'PostalCode'. + /// + /// + /// The property value for 'PostalCode'. + /// + public string? PostalCode { get; set; } + + /// + /// Gets or sets the property value for 'CountryRegion'. + /// + /// + /// The property value for 'CountryRegion'. + /// + public string? CountryRegion { get; set; } + + /// + /// Gets or sets the property value for 'HomeAddressSpecialInstructions'. + /// + /// + /// The property value for 'HomeAddressSpecialInstructions'. + /// + public string? HomeAddressSpecialInstructions { get; set; } + + /// + /// Gets or sets the property value for 'EMailAddress'. + /// + /// + /// The property value for 'EMailAddress'. + /// + public string? EMailAddress { get; set; } + + /// + /// Gets or sets the property value for 'EMailSpecialInstructions'. + /// + /// + /// The property value for 'EMailSpecialInstructions'. + /// + public string? EMailSpecialInstructions { get; set; } + + /// + /// Gets or sets the property value for 'EMailTelephoneNumber'. + /// + /// + /// The property value for 'EMailTelephoneNumber'. + /// + public string? EMailTelephoneNumber { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Models/VAdditionalContactInfoUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Models/VAdditionalContactInfoUpdateModel.cs new file mode 100644 index 0000000..3b8feac --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Models/VAdditionalContactInfoUpdateModel.cs @@ -0,0 +1,151 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VAdditionalContactInfoUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'FirstName'. + /// + /// + /// The property value for 'FirstName'. + /// + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'MiddleName'. + /// + /// + /// The property value for 'MiddleName'. + /// + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value for 'LastName'. + /// + /// + /// The property value for 'LastName'. + /// + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'TelephoneNumber'. + /// + /// + /// The property value for 'TelephoneNumber'. + /// + public string? TelephoneNumber { get; set; } + + /// + /// Gets or sets the property value for 'TelephoneSpecialInstructions'. + /// + /// + /// The property value for 'TelephoneSpecialInstructions'. + /// + public string? TelephoneSpecialInstructions { get; set; } + + /// + /// Gets or sets the property value for 'Street'. + /// + /// + /// The property value for 'Street'. + /// + public string? Street { get; set; } + + /// + /// Gets or sets the property value for 'City'. + /// + /// + /// The property value for 'City'. + /// + public string? City { get; set; } + + /// + /// Gets or sets the property value for 'StateProvince'. + /// + /// + /// The property value for 'StateProvince'. + /// + public string? StateProvince { get; set; } + + /// + /// Gets or sets the property value for 'PostalCode'. + /// + /// + /// The property value for 'PostalCode'. + /// + public string? PostalCode { get; set; } + + /// + /// Gets or sets the property value for 'CountryRegion'. + /// + /// + /// The property value for 'CountryRegion'. + /// + public string? CountryRegion { get; set; } + + /// + /// Gets or sets the property value for 'HomeAddressSpecialInstructions'. + /// + /// + /// The property value for 'HomeAddressSpecialInstructions'. + /// + public string? HomeAddressSpecialInstructions { get; set; } + + /// + /// Gets or sets the property value for 'EMailAddress'. + /// + /// + /// The property value for 'EMailAddress'. + /// + public string? EMailAddress { get; set; } + + /// + /// Gets or sets the property value for 'EMailSpecialInstructions'. + /// + /// + /// The property value for 'EMailSpecialInstructions'. + /// + public string? EMailSpecialInstructions { get; set; } + + /// + /// Gets or sets the property value for 'EMailTelephoneNumber'. + /// + /// + /// The property value for 'EMailTelephoneNumber'. + /// + public string? EMailTelephoneNumber { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Validation/VAdditionalContactInfoCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Validation/VAdditionalContactInfoCreateModelValidator.cs new file mode 100644 index 0000000..7b5a89f --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Validation/VAdditionalContactInfoCreateModelValidator.cs @@ -0,0 +1,37 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VAdditionalContactInfoCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VAdditionalContactInfoCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.FirstName).NotEmpty(); + RuleFor(p => p.FirstName).MaximumLength(50); + RuleFor(p => p.MiddleName).MaximumLength(50); + RuleFor(p => p.LastName).NotEmpty(); + RuleFor(p => p.LastName).MaximumLength(50); + RuleFor(p => p.TelephoneNumber).MaximumLength(50); + RuleFor(p => p.Street).MaximumLength(50); + RuleFor(p => p.City).MaximumLength(50); + RuleFor(p => p.StateProvince).MaximumLength(50); + RuleFor(p => p.PostalCode).MaximumLength(50); + RuleFor(p => p.CountryRegion).MaximumLength(50); + RuleFor(p => p.EMailAddress).MaximumLength(128); + RuleFor(p => p.EMailTelephoneNumber).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Validation/VAdditionalContactInfoUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Validation/VAdditionalContactInfoUpdateModelValidator.cs new file mode 100644 index 0000000..803e46c --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Validation/VAdditionalContactInfoUpdateModelValidator.cs @@ -0,0 +1,37 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VAdditionalContactInfoUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VAdditionalContactInfoUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.FirstName).NotEmpty(); + RuleFor(p => p.FirstName).MaximumLength(50); + RuleFor(p => p.MiddleName).MaximumLength(50); + RuleFor(p => p.LastName).NotEmpty(); + RuleFor(p => p.LastName).MaximumLength(50); + RuleFor(p => p.TelephoneNumber).MaximumLength(50); + RuleFor(p => p.Street).MaximumLength(50); + RuleFor(p => p.City).MaximumLength(50); + RuleFor(p => p.StateProvince).MaximumLength(50); + RuleFor(p => p.PostalCode).MaximumLength(50); + RuleFor(p => p.CountryRegion).MaximumLength(50); + RuleFor(p => p.EMailAddress).MaximumLength(128); + RuleFor(p => p.EMailTelephoneNumber).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Mapping/VEmployeeProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Mapping/VEmployeeProfile.cs new file mode 100644 index 0000000..7232d16 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Mapping/VEmployeeProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class VEmployeeProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public VEmployeeProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Models/VEmployeeCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Models/VEmployeeCreateModel.cs new file mode 100644 index 0000000..5d0939e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Models/VEmployeeCreateModel.cs @@ -0,0 +1,159 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VEmployeeCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Title'. + /// + /// + /// The property value for 'Title'. + /// + public string? Title { get; set; } + + /// + /// Gets or sets the property value for 'FirstName'. + /// + /// + /// The property value for 'FirstName'. + /// + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'MiddleName'. + /// + /// + /// The property value for 'MiddleName'. + /// + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value for 'LastName'. + /// + /// + /// The property value for 'LastName'. + /// + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Suffix'. + /// + /// + /// The property value for 'Suffix'. + /// + public string? Suffix { get; set; } + + /// + /// Gets or sets the property value for 'JobTitle'. + /// + /// + /// The property value for 'JobTitle'. + /// + public string JobTitle { get; set; } = null!; + + /// + /// Gets or sets the property value for 'PhoneNumber'. + /// + /// + /// The property value for 'PhoneNumber'. + /// + public string? PhoneNumber { get; set; } + + /// + /// Gets or sets the property value for 'PhoneNumberType'. + /// + /// + /// The property value for 'PhoneNumberType'. + /// + public string? PhoneNumberType { get; set; } + + /// + /// Gets or sets the property value for 'EmailAddress'. + /// + /// + /// The property value for 'EmailAddress'. + /// + public string? EmailAddress { get; set; } + + /// + /// Gets or sets the property value for 'EmailPromotion'. + /// + /// + /// The property value for 'EmailPromotion'. + /// + public int EmailPromotion { get; set; } + + /// + /// Gets or sets the property value for 'AddressLine1'. + /// + /// + /// The property value for 'AddressLine1'. + /// + public string AddressLine1 { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressLine2'. + /// + /// + /// The property value for 'AddressLine2'. + /// + public string? AddressLine2 { get; set; } + + /// + /// Gets or sets the property value for 'City'. + /// + /// + /// The property value for 'City'. + /// + public string City { get; set; } = null!; + + /// + /// Gets or sets the property value for 'StateProvinceName'. + /// + /// + /// The property value for 'StateProvinceName'. + /// + public string StateProvinceName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'PostalCode'. + /// + /// + /// The property value for 'PostalCode'. + /// + public string PostalCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CountryRegionName'. + /// + /// + /// The property value for 'CountryRegionName'. + /// + public string CountryRegionName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AdditionalContactInfo'. + /// + /// + /// The property value for 'AdditionalContactInfo'. + /// + public string? AdditionalContactInfo { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Models/VEmployeeReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Models/VEmployeeReadModel.cs new file mode 100644 index 0000000..2bd6a26 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Models/VEmployeeReadModel.cs @@ -0,0 +1,159 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VEmployeeReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Title'. + /// + /// + /// The property value for 'Title'. + /// + public string? Title { get; set; } + + /// + /// Gets or sets the property value for 'FirstName'. + /// + /// + /// The property value for 'FirstName'. + /// + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'MiddleName'. + /// + /// + /// The property value for 'MiddleName'. + /// + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value for 'LastName'. + /// + /// + /// The property value for 'LastName'. + /// + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Suffix'. + /// + /// + /// The property value for 'Suffix'. + /// + public string? Suffix { get; set; } + + /// + /// Gets or sets the property value for 'JobTitle'. + /// + /// + /// The property value for 'JobTitle'. + /// + public string JobTitle { get; set; } = null!; + + /// + /// Gets or sets the property value for 'PhoneNumber'. + /// + /// + /// The property value for 'PhoneNumber'. + /// + public string? PhoneNumber { get; set; } + + /// + /// Gets or sets the property value for 'PhoneNumberType'. + /// + /// + /// The property value for 'PhoneNumberType'. + /// + public string? PhoneNumberType { get; set; } + + /// + /// Gets or sets the property value for 'EmailAddress'. + /// + /// + /// The property value for 'EmailAddress'. + /// + public string? EmailAddress { get; set; } + + /// + /// Gets or sets the property value for 'EmailPromotion'. + /// + /// + /// The property value for 'EmailPromotion'. + /// + public int EmailPromotion { get; set; } + + /// + /// Gets or sets the property value for 'AddressLine1'. + /// + /// + /// The property value for 'AddressLine1'. + /// + public string AddressLine1 { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressLine2'. + /// + /// + /// The property value for 'AddressLine2'. + /// + public string? AddressLine2 { get; set; } + + /// + /// Gets or sets the property value for 'City'. + /// + /// + /// The property value for 'City'. + /// + public string City { get; set; } = null!; + + /// + /// Gets or sets the property value for 'StateProvinceName'. + /// + /// + /// The property value for 'StateProvinceName'. + /// + public string StateProvinceName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'PostalCode'. + /// + /// + /// The property value for 'PostalCode'. + /// + public string PostalCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CountryRegionName'. + /// + /// + /// The property value for 'CountryRegionName'. + /// + public string CountryRegionName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AdditionalContactInfo'. + /// + /// + /// The property value for 'AdditionalContactInfo'. + /// + public string? AdditionalContactInfo { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Models/VEmployeeUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Models/VEmployeeUpdateModel.cs new file mode 100644 index 0000000..1e083a0 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Models/VEmployeeUpdateModel.cs @@ -0,0 +1,159 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VEmployeeUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Title'. + /// + /// + /// The property value for 'Title'. + /// + public string? Title { get; set; } + + /// + /// Gets or sets the property value for 'FirstName'. + /// + /// + /// The property value for 'FirstName'. + /// + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'MiddleName'. + /// + /// + /// The property value for 'MiddleName'. + /// + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value for 'LastName'. + /// + /// + /// The property value for 'LastName'. + /// + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Suffix'. + /// + /// + /// The property value for 'Suffix'. + /// + public string? Suffix { get; set; } + + /// + /// Gets or sets the property value for 'JobTitle'. + /// + /// + /// The property value for 'JobTitle'. + /// + public string JobTitle { get; set; } = null!; + + /// + /// Gets or sets the property value for 'PhoneNumber'. + /// + /// + /// The property value for 'PhoneNumber'. + /// + public string? PhoneNumber { get; set; } + + /// + /// Gets or sets the property value for 'PhoneNumberType'. + /// + /// + /// The property value for 'PhoneNumberType'. + /// + public string? PhoneNumberType { get; set; } + + /// + /// Gets or sets the property value for 'EmailAddress'. + /// + /// + /// The property value for 'EmailAddress'. + /// + public string? EmailAddress { get; set; } + + /// + /// Gets or sets the property value for 'EmailPromotion'. + /// + /// + /// The property value for 'EmailPromotion'. + /// + public int EmailPromotion { get; set; } + + /// + /// Gets or sets the property value for 'AddressLine1'. + /// + /// + /// The property value for 'AddressLine1'. + /// + public string AddressLine1 { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressLine2'. + /// + /// + /// The property value for 'AddressLine2'. + /// + public string? AddressLine2 { get; set; } + + /// + /// Gets or sets the property value for 'City'. + /// + /// + /// The property value for 'City'. + /// + public string City { get; set; } = null!; + + /// + /// Gets or sets the property value for 'StateProvinceName'. + /// + /// + /// The property value for 'StateProvinceName'. + /// + public string StateProvinceName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'PostalCode'. + /// + /// + /// The property value for 'PostalCode'. + /// + public string PostalCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CountryRegionName'. + /// + /// + /// The property value for 'CountryRegionName'. + /// + public string CountryRegionName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AdditionalContactInfo'. + /// + /// + /// The property value for 'AdditionalContactInfo'. + /// + public string? AdditionalContactInfo { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Validation/VEmployeeCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Validation/VEmployeeCreateModelValidator.cs new file mode 100644 index 0000000..0b4a240 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Validation/VEmployeeCreateModelValidator.cs @@ -0,0 +1,47 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VEmployeeCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VEmployeeCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Title).MaximumLength(8); + RuleFor(p => p.FirstName).NotEmpty(); + RuleFor(p => p.FirstName).MaximumLength(50); + RuleFor(p => p.MiddleName).MaximumLength(50); + RuleFor(p => p.LastName).NotEmpty(); + RuleFor(p => p.LastName).MaximumLength(50); + RuleFor(p => p.Suffix).MaximumLength(10); + RuleFor(p => p.JobTitle).NotEmpty(); + RuleFor(p => p.JobTitle).MaximumLength(50); + RuleFor(p => p.PhoneNumber).MaximumLength(25); + RuleFor(p => p.PhoneNumberType).MaximumLength(50); + RuleFor(p => p.EmailAddress).MaximumLength(50); + RuleFor(p => p.AddressLine1).NotEmpty(); + RuleFor(p => p.AddressLine1).MaximumLength(60); + RuleFor(p => p.AddressLine2).MaximumLength(60); + RuleFor(p => p.City).NotEmpty(); + RuleFor(p => p.City).MaximumLength(30); + RuleFor(p => p.StateProvinceName).NotEmpty(); + RuleFor(p => p.StateProvinceName).MaximumLength(50); + RuleFor(p => p.PostalCode).NotEmpty(); + RuleFor(p => p.PostalCode).MaximumLength(15); + RuleFor(p => p.CountryRegionName).NotEmpty(); + RuleFor(p => p.CountryRegionName).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Validation/VEmployeeUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Validation/VEmployeeUpdateModelValidator.cs new file mode 100644 index 0000000..79feab1 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Validation/VEmployeeUpdateModelValidator.cs @@ -0,0 +1,47 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VEmployeeUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VEmployeeUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Title).MaximumLength(8); + RuleFor(p => p.FirstName).NotEmpty(); + RuleFor(p => p.FirstName).MaximumLength(50); + RuleFor(p => p.MiddleName).MaximumLength(50); + RuleFor(p => p.LastName).NotEmpty(); + RuleFor(p => p.LastName).MaximumLength(50); + RuleFor(p => p.Suffix).MaximumLength(10); + RuleFor(p => p.JobTitle).NotEmpty(); + RuleFor(p => p.JobTitle).MaximumLength(50); + RuleFor(p => p.PhoneNumber).MaximumLength(25); + RuleFor(p => p.PhoneNumberType).MaximumLength(50); + RuleFor(p => p.EmailAddress).MaximumLength(50); + RuleFor(p => p.AddressLine1).NotEmpty(); + RuleFor(p => p.AddressLine1).MaximumLength(60); + RuleFor(p => p.AddressLine2).MaximumLength(60); + RuleFor(p => p.City).NotEmpty(); + RuleFor(p => p.City).MaximumLength(30); + RuleFor(p => p.StateProvinceName).NotEmpty(); + RuleFor(p => p.StateProvinceName).MaximumLength(50); + RuleFor(p => p.PostalCode).NotEmpty(); + RuleFor(p => p.PostalCode).MaximumLength(15); + RuleFor(p => p.CountryRegionName).NotEmpty(); + RuleFor(p => p.CountryRegionName).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Mapping/VEmployeeDepartmentProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Mapping/VEmployeeDepartmentProfile.cs new file mode 100644 index 0000000..12dd4b1 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Mapping/VEmployeeDepartmentProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class VEmployeeDepartmentProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public VEmployeeDepartmentProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentCreateModel.cs new file mode 100644 index 0000000..a5adb8f --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentCreateModel.cs @@ -0,0 +1,95 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VEmployeeDepartmentCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Title'. + /// + /// + /// The property value for 'Title'. + /// + public string? Title { get; set; } + + /// + /// Gets or sets the property value for 'FirstName'. + /// + /// + /// The property value for 'FirstName'. + /// + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'MiddleName'. + /// + /// + /// The property value for 'MiddleName'. + /// + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value for 'LastName'. + /// + /// + /// The property value for 'LastName'. + /// + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Suffix'. + /// + /// + /// The property value for 'Suffix'. + /// + public string? Suffix { get; set; } + + /// + /// Gets or sets the property value for 'JobTitle'. + /// + /// + /// The property value for 'JobTitle'. + /// + public string JobTitle { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Department'. + /// + /// + /// The property value for 'Department'. + /// + public string Department { get; set; } = null!; + + /// + /// Gets or sets the property value for 'GroupName'. + /// + /// + /// The property value for 'GroupName'. + /// + public string GroupName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'StartDate'. + /// + /// + /// The property value for 'StartDate'. + /// + public DateOnly StartDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentReadModel.cs new file mode 100644 index 0000000..68cc21c --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentReadModel.cs @@ -0,0 +1,95 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VEmployeeDepartmentReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Title'. + /// + /// + /// The property value for 'Title'. + /// + public string? Title { get; set; } + + /// + /// Gets or sets the property value for 'FirstName'. + /// + /// + /// The property value for 'FirstName'. + /// + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'MiddleName'. + /// + /// + /// The property value for 'MiddleName'. + /// + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value for 'LastName'. + /// + /// + /// The property value for 'LastName'. + /// + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Suffix'. + /// + /// + /// The property value for 'Suffix'. + /// + public string? Suffix { get; set; } + + /// + /// Gets or sets the property value for 'JobTitle'. + /// + /// + /// The property value for 'JobTitle'. + /// + public string JobTitle { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Department'. + /// + /// + /// The property value for 'Department'. + /// + public string Department { get; set; } = null!; + + /// + /// Gets or sets the property value for 'GroupName'. + /// + /// + /// The property value for 'GroupName'. + /// + public string GroupName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'StartDate'. + /// + /// + /// The property value for 'StartDate'. + /// + public DateOnly StartDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentUpdateModel.cs new file mode 100644 index 0000000..ee94987 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentUpdateModel.cs @@ -0,0 +1,95 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VEmployeeDepartmentUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Title'. + /// + /// + /// The property value for 'Title'. + /// + public string? Title { get; set; } + + /// + /// Gets or sets the property value for 'FirstName'. + /// + /// + /// The property value for 'FirstName'. + /// + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'MiddleName'. + /// + /// + /// The property value for 'MiddleName'. + /// + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value for 'LastName'. + /// + /// + /// The property value for 'LastName'. + /// + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Suffix'. + /// + /// + /// The property value for 'Suffix'. + /// + public string? Suffix { get; set; } + + /// + /// Gets or sets the property value for 'JobTitle'. + /// + /// + /// The property value for 'JobTitle'. + /// + public string JobTitle { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Department'. + /// + /// + /// The property value for 'Department'. + /// + public string Department { get; set; } = null!; + + /// + /// Gets or sets the property value for 'GroupName'. + /// + /// + /// The property value for 'GroupName'. + /// + public string GroupName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'StartDate'. + /// + /// + /// The property value for 'StartDate'. + /// + public DateOnly StartDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Validation/VEmployeeDepartmentCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Validation/VEmployeeDepartmentCreateModelValidator.cs new file mode 100644 index 0000000..3851155 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Validation/VEmployeeDepartmentCreateModelValidator.cs @@ -0,0 +1,37 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VEmployeeDepartmentCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VEmployeeDepartmentCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Title).MaximumLength(8); + RuleFor(p => p.FirstName).NotEmpty(); + RuleFor(p => p.FirstName).MaximumLength(50); + RuleFor(p => p.MiddleName).MaximumLength(50); + RuleFor(p => p.LastName).NotEmpty(); + RuleFor(p => p.LastName).MaximumLength(50); + RuleFor(p => p.Suffix).MaximumLength(10); + RuleFor(p => p.JobTitle).NotEmpty(); + RuleFor(p => p.JobTitle).MaximumLength(50); + RuleFor(p => p.Department).NotEmpty(); + RuleFor(p => p.Department).MaximumLength(50); + RuleFor(p => p.GroupName).NotEmpty(); + RuleFor(p => p.GroupName).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Validation/VEmployeeDepartmentUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Validation/VEmployeeDepartmentUpdateModelValidator.cs new file mode 100644 index 0000000..0014adc --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Validation/VEmployeeDepartmentUpdateModelValidator.cs @@ -0,0 +1,37 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VEmployeeDepartmentUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VEmployeeDepartmentUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Title).MaximumLength(8); + RuleFor(p => p.FirstName).NotEmpty(); + RuleFor(p => p.FirstName).MaximumLength(50); + RuleFor(p => p.MiddleName).MaximumLength(50); + RuleFor(p => p.LastName).NotEmpty(); + RuleFor(p => p.LastName).MaximumLength(50); + RuleFor(p => p.Suffix).MaximumLength(10); + RuleFor(p => p.JobTitle).NotEmpty(); + RuleFor(p => p.JobTitle).MaximumLength(50); + RuleFor(p => p.Department).NotEmpty(); + RuleFor(p => p.Department).MaximumLength(50); + RuleFor(p => p.GroupName).NotEmpty(); + RuleFor(p => p.GroupName).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Mapping/VEmployeeDepartmentHistoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Mapping/VEmployeeDepartmentHistoryProfile.cs new file mode 100644 index 0000000..4ded6e6 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Mapping/VEmployeeDepartmentHistoryProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class VEmployeeDepartmentHistoryProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public VEmployeeDepartmentHistoryProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryCreateModel.cs new file mode 100644 index 0000000..b950d21 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryCreateModel.cs @@ -0,0 +1,103 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VEmployeeDepartmentHistoryCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Title'. + /// + /// + /// The property value for 'Title'. + /// + public string? Title { get; set; } + + /// + /// Gets or sets the property value for 'FirstName'. + /// + /// + /// The property value for 'FirstName'. + /// + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'MiddleName'. + /// + /// + /// The property value for 'MiddleName'. + /// + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value for 'LastName'. + /// + /// + /// The property value for 'LastName'. + /// + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Suffix'. + /// + /// + /// The property value for 'Suffix'. + /// + public string? Suffix { get; set; } + + /// + /// Gets or sets the property value for 'Shift'. + /// + /// + /// The property value for 'Shift'. + /// + public string Shift { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Department'. + /// + /// + /// The property value for 'Department'. + /// + public string Department { get; set; } = null!; + + /// + /// Gets or sets the property value for 'GroupName'. + /// + /// + /// The property value for 'GroupName'. + /// + public string GroupName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'StartDate'. + /// + /// + /// The property value for 'StartDate'. + /// + public DateOnly StartDate { get; set; } + + /// + /// Gets or sets the property value for 'EndDate'. + /// + /// + /// The property value for 'EndDate'. + /// + public DateOnly? EndDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryReadModel.cs new file mode 100644 index 0000000..2929e15 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryReadModel.cs @@ -0,0 +1,103 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VEmployeeDepartmentHistoryReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Title'. + /// + /// + /// The property value for 'Title'. + /// + public string? Title { get; set; } + + /// + /// Gets or sets the property value for 'FirstName'. + /// + /// + /// The property value for 'FirstName'. + /// + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'MiddleName'. + /// + /// + /// The property value for 'MiddleName'. + /// + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value for 'LastName'. + /// + /// + /// The property value for 'LastName'. + /// + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Suffix'. + /// + /// + /// The property value for 'Suffix'. + /// + public string? Suffix { get; set; } + + /// + /// Gets or sets the property value for 'Shift'. + /// + /// + /// The property value for 'Shift'. + /// + public string Shift { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Department'. + /// + /// + /// The property value for 'Department'. + /// + public string Department { get; set; } = null!; + + /// + /// Gets or sets the property value for 'GroupName'. + /// + /// + /// The property value for 'GroupName'. + /// + public string GroupName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'StartDate'. + /// + /// + /// The property value for 'StartDate'. + /// + public DateOnly StartDate { get; set; } + + /// + /// Gets or sets the property value for 'EndDate'. + /// + /// + /// The property value for 'EndDate'. + /// + public DateOnly? EndDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryUpdateModel.cs new file mode 100644 index 0000000..d39e0b4 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryUpdateModel.cs @@ -0,0 +1,103 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VEmployeeDepartmentHistoryUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Title'. + /// + /// + /// The property value for 'Title'. + /// + public string? Title { get; set; } + + /// + /// Gets or sets the property value for 'FirstName'. + /// + /// + /// The property value for 'FirstName'. + /// + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'MiddleName'. + /// + /// + /// The property value for 'MiddleName'. + /// + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value for 'LastName'. + /// + /// + /// The property value for 'LastName'. + /// + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Suffix'. + /// + /// + /// The property value for 'Suffix'. + /// + public string? Suffix { get; set; } + + /// + /// Gets or sets the property value for 'Shift'. + /// + /// + /// The property value for 'Shift'. + /// + public string Shift { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Department'. + /// + /// + /// The property value for 'Department'. + /// + public string Department { get; set; } = null!; + + /// + /// Gets or sets the property value for 'GroupName'. + /// + /// + /// The property value for 'GroupName'. + /// + public string GroupName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'StartDate'. + /// + /// + /// The property value for 'StartDate'. + /// + public DateOnly StartDate { get; set; } + + /// + /// Gets or sets the property value for 'EndDate'. + /// + /// + /// The property value for 'EndDate'. + /// + public DateOnly? EndDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Validation/VEmployeeDepartmentHistoryCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Validation/VEmployeeDepartmentHistoryCreateModelValidator.cs new file mode 100644 index 0000000..2b01a45 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Validation/VEmployeeDepartmentHistoryCreateModelValidator.cs @@ -0,0 +1,37 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VEmployeeDepartmentHistoryCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VEmployeeDepartmentHistoryCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Title).MaximumLength(8); + RuleFor(p => p.FirstName).NotEmpty(); + RuleFor(p => p.FirstName).MaximumLength(50); + RuleFor(p => p.MiddleName).MaximumLength(50); + RuleFor(p => p.LastName).NotEmpty(); + RuleFor(p => p.LastName).MaximumLength(50); + RuleFor(p => p.Suffix).MaximumLength(10); + RuleFor(p => p.Shift).NotEmpty(); + RuleFor(p => p.Shift).MaximumLength(50); + RuleFor(p => p.Department).NotEmpty(); + RuleFor(p => p.Department).MaximumLength(50); + RuleFor(p => p.GroupName).NotEmpty(); + RuleFor(p => p.GroupName).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Validation/VEmployeeDepartmentHistoryUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Validation/VEmployeeDepartmentHistoryUpdateModelValidator.cs new file mode 100644 index 0000000..2697b8a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Validation/VEmployeeDepartmentHistoryUpdateModelValidator.cs @@ -0,0 +1,37 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VEmployeeDepartmentHistoryUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VEmployeeDepartmentHistoryUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Title).MaximumLength(8); + RuleFor(p => p.FirstName).NotEmpty(); + RuleFor(p => p.FirstName).MaximumLength(50); + RuleFor(p => p.MiddleName).MaximumLength(50); + RuleFor(p => p.LastName).NotEmpty(); + RuleFor(p => p.LastName).MaximumLength(50); + RuleFor(p => p.Suffix).MaximumLength(10); + RuleFor(p => p.Shift).NotEmpty(); + RuleFor(p => p.Shift).MaximumLength(50); + RuleFor(p => p.Department).NotEmpty(); + RuleFor(p => p.Department).MaximumLength(50); + RuleFor(p => p.GroupName).NotEmpty(); + RuleFor(p => p.GroupName).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Mapping/VIndividualCustomerProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Mapping/VIndividualCustomerProfile.cs new file mode 100644 index 0000000..687365d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Mapping/VIndividualCustomerProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class VIndividualCustomerProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public VIndividualCustomerProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Models/VIndividualCustomerCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Models/VIndividualCustomerCreateModel.cs new file mode 100644 index 0000000..eb83f49 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Models/VIndividualCustomerCreateModel.cs @@ -0,0 +1,159 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VIndividualCustomerCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Title'. + /// + /// + /// The property value for 'Title'. + /// + public string? Title { get; set; } + + /// + /// Gets or sets the property value for 'FirstName'. + /// + /// + /// The property value for 'FirstName'. + /// + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'MiddleName'. + /// + /// + /// The property value for 'MiddleName'. + /// + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value for 'LastName'. + /// + /// + /// The property value for 'LastName'. + /// + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Suffix'. + /// + /// + /// The property value for 'Suffix'. + /// + public string? Suffix { get; set; } + + /// + /// Gets or sets the property value for 'PhoneNumber'. + /// + /// + /// The property value for 'PhoneNumber'. + /// + public string? PhoneNumber { get; set; } + + /// + /// Gets or sets the property value for 'PhoneNumberType'. + /// + /// + /// The property value for 'PhoneNumberType'. + /// + public string? PhoneNumberType { get; set; } + + /// + /// Gets or sets the property value for 'EmailAddress'. + /// + /// + /// The property value for 'EmailAddress'. + /// + public string? EmailAddress { get; set; } + + /// + /// Gets or sets the property value for 'EmailPromotion'. + /// + /// + /// The property value for 'EmailPromotion'. + /// + public int EmailPromotion { get; set; } + + /// + /// Gets or sets the property value for 'AddressType'. + /// + /// + /// The property value for 'AddressType'. + /// + public string AddressType { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressLine1'. + /// + /// + /// The property value for 'AddressLine1'. + /// + public string AddressLine1 { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressLine2'. + /// + /// + /// The property value for 'AddressLine2'. + /// + public string? AddressLine2 { get; set; } + + /// + /// Gets or sets the property value for 'City'. + /// + /// + /// The property value for 'City'. + /// + public string City { get; set; } = null!; + + /// + /// Gets or sets the property value for 'StateProvinceName'. + /// + /// + /// The property value for 'StateProvinceName'. + /// + public string StateProvinceName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'PostalCode'. + /// + /// + /// The property value for 'PostalCode'. + /// + public string PostalCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CountryRegionName'. + /// + /// + /// The property value for 'CountryRegionName'. + /// + public string CountryRegionName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Demographics'. + /// + /// + /// The property value for 'Demographics'. + /// + public string? Demographics { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Models/VIndividualCustomerReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Models/VIndividualCustomerReadModel.cs new file mode 100644 index 0000000..d47dc88 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Models/VIndividualCustomerReadModel.cs @@ -0,0 +1,159 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VIndividualCustomerReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Title'. + /// + /// + /// The property value for 'Title'. + /// + public string? Title { get; set; } + + /// + /// Gets or sets the property value for 'FirstName'. + /// + /// + /// The property value for 'FirstName'. + /// + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'MiddleName'. + /// + /// + /// The property value for 'MiddleName'. + /// + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value for 'LastName'. + /// + /// + /// The property value for 'LastName'. + /// + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Suffix'. + /// + /// + /// The property value for 'Suffix'. + /// + public string? Suffix { get; set; } + + /// + /// Gets or sets the property value for 'PhoneNumber'. + /// + /// + /// The property value for 'PhoneNumber'. + /// + public string? PhoneNumber { get; set; } + + /// + /// Gets or sets the property value for 'PhoneNumberType'. + /// + /// + /// The property value for 'PhoneNumberType'. + /// + public string? PhoneNumberType { get; set; } + + /// + /// Gets or sets the property value for 'EmailAddress'. + /// + /// + /// The property value for 'EmailAddress'. + /// + public string? EmailAddress { get; set; } + + /// + /// Gets or sets the property value for 'EmailPromotion'. + /// + /// + /// The property value for 'EmailPromotion'. + /// + public int EmailPromotion { get; set; } + + /// + /// Gets or sets the property value for 'AddressType'. + /// + /// + /// The property value for 'AddressType'. + /// + public string AddressType { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressLine1'. + /// + /// + /// The property value for 'AddressLine1'. + /// + public string AddressLine1 { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressLine2'. + /// + /// + /// The property value for 'AddressLine2'. + /// + public string? AddressLine2 { get; set; } + + /// + /// Gets or sets the property value for 'City'. + /// + /// + /// The property value for 'City'. + /// + public string City { get; set; } = null!; + + /// + /// Gets or sets the property value for 'StateProvinceName'. + /// + /// + /// The property value for 'StateProvinceName'. + /// + public string StateProvinceName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'PostalCode'. + /// + /// + /// The property value for 'PostalCode'. + /// + public string PostalCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CountryRegionName'. + /// + /// + /// The property value for 'CountryRegionName'. + /// + public string CountryRegionName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Demographics'. + /// + /// + /// The property value for 'Demographics'. + /// + public string? Demographics { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Models/VIndividualCustomerUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Models/VIndividualCustomerUpdateModel.cs new file mode 100644 index 0000000..3cdd10a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Models/VIndividualCustomerUpdateModel.cs @@ -0,0 +1,159 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VIndividualCustomerUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Title'. + /// + /// + /// The property value for 'Title'. + /// + public string? Title { get; set; } + + /// + /// Gets or sets the property value for 'FirstName'. + /// + /// + /// The property value for 'FirstName'. + /// + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'MiddleName'. + /// + /// + /// The property value for 'MiddleName'. + /// + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value for 'LastName'. + /// + /// + /// The property value for 'LastName'. + /// + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Suffix'. + /// + /// + /// The property value for 'Suffix'. + /// + public string? Suffix { get; set; } + + /// + /// Gets or sets the property value for 'PhoneNumber'. + /// + /// + /// The property value for 'PhoneNumber'. + /// + public string? PhoneNumber { get; set; } + + /// + /// Gets or sets the property value for 'PhoneNumberType'. + /// + /// + /// The property value for 'PhoneNumberType'. + /// + public string? PhoneNumberType { get; set; } + + /// + /// Gets or sets the property value for 'EmailAddress'. + /// + /// + /// The property value for 'EmailAddress'. + /// + public string? EmailAddress { get; set; } + + /// + /// Gets or sets the property value for 'EmailPromotion'. + /// + /// + /// The property value for 'EmailPromotion'. + /// + public int EmailPromotion { get; set; } + + /// + /// Gets or sets the property value for 'AddressType'. + /// + /// + /// The property value for 'AddressType'. + /// + public string AddressType { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressLine1'. + /// + /// + /// The property value for 'AddressLine1'. + /// + public string AddressLine1 { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressLine2'. + /// + /// + /// The property value for 'AddressLine2'. + /// + public string? AddressLine2 { get; set; } + + /// + /// Gets or sets the property value for 'City'. + /// + /// + /// The property value for 'City'. + /// + public string City { get; set; } = null!; + + /// + /// Gets or sets the property value for 'StateProvinceName'. + /// + /// + /// The property value for 'StateProvinceName'. + /// + public string StateProvinceName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'PostalCode'. + /// + /// + /// The property value for 'PostalCode'. + /// + public string PostalCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CountryRegionName'. + /// + /// + /// The property value for 'CountryRegionName'. + /// + public string CountryRegionName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Demographics'. + /// + /// + /// The property value for 'Demographics'. + /// + public string? Demographics { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Validation/VIndividualCustomerCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Validation/VIndividualCustomerCreateModelValidator.cs new file mode 100644 index 0000000..981d8a7 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Validation/VIndividualCustomerCreateModelValidator.cs @@ -0,0 +1,47 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VIndividualCustomerCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VIndividualCustomerCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Title).MaximumLength(8); + RuleFor(p => p.FirstName).NotEmpty(); + RuleFor(p => p.FirstName).MaximumLength(50); + RuleFor(p => p.MiddleName).MaximumLength(50); + RuleFor(p => p.LastName).NotEmpty(); + RuleFor(p => p.LastName).MaximumLength(50); + RuleFor(p => p.Suffix).MaximumLength(10); + RuleFor(p => p.PhoneNumber).MaximumLength(25); + RuleFor(p => p.PhoneNumberType).MaximumLength(50); + RuleFor(p => p.EmailAddress).MaximumLength(50); + RuleFor(p => p.AddressType).NotEmpty(); + RuleFor(p => p.AddressType).MaximumLength(50); + RuleFor(p => p.AddressLine1).NotEmpty(); + RuleFor(p => p.AddressLine1).MaximumLength(60); + RuleFor(p => p.AddressLine2).MaximumLength(60); + RuleFor(p => p.City).NotEmpty(); + RuleFor(p => p.City).MaximumLength(30); + RuleFor(p => p.StateProvinceName).NotEmpty(); + RuleFor(p => p.StateProvinceName).MaximumLength(50); + RuleFor(p => p.PostalCode).NotEmpty(); + RuleFor(p => p.PostalCode).MaximumLength(15); + RuleFor(p => p.CountryRegionName).NotEmpty(); + RuleFor(p => p.CountryRegionName).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Validation/VIndividualCustomerUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Validation/VIndividualCustomerUpdateModelValidator.cs new file mode 100644 index 0000000..10c4e1e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Validation/VIndividualCustomerUpdateModelValidator.cs @@ -0,0 +1,47 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VIndividualCustomerUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VIndividualCustomerUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Title).MaximumLength(8); + RuleFor(p => p.FirstName).NotEmpty(); + RuleFor(p => p.FirstName).MaximumLength(50); + RuleFor(p => p.MiddleName).MaximumLength(50); + RuleFor(p => p.LastName).NotEmpty(); + RuleFor(p => p.LastName).MaximumLength(50); + RuleFor(p => p.Suffix).MaximumLength(10); + RuleFor(p => p.PhoneNumber).MaximumLength(25); + RuleFor(p => p.PhoneNumberType).MaximumLength(50); + RuleFor(p => p.EmailAddress).MaximumLength(50); + RuleFor(p => p.AddressType).NotEmpty(); + RuleFor(p => p.AddressType).MaximumLength(50); + RuleFor(p => p.AddressLine1).NotEmpty(); + RuleFor(p => p.AddressLine1).MaximumLength(60); + RuleFor(p => p.AddressLine2).MaximumLength(60); + RuleFor(p => p.City).NotEmpty(); + RuleFor(p => p.City).MaximumLength(30); + RuleFor(p => p.StateProvinceName).NotEmpty(); + RuleFor(p => p.StateProvinceName).MaximumLength(50); + RuleFor(p => p.PostalCode).NotEmpty(); + RuleFor(p => p.PostalCode).MaximumLength(15); + RuleFor(p => p.CountryRegionName).NotEmpty(); + RuleFor(p => p.CountryRegionName).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Mapping/VJobCandidateProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Mapping/VJobCandidateProfile.cs new file mode 100644 index 0000000..faf37e3 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Mapping/VJobCandidateProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class VJobCandidateProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public VJobCandidateProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Models/VJobCandidateCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Models/VJobCandidateCreateModel.cs new file mode 100644 index 0000000..2ce38ee --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Models/VJobCandidateCreateModel.cs @@ -0,0 +1,143 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VJobCandidateCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int? BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'NamePrefix'. + /// + /// + /// The property value for 'NamePrefix'. + /// + public string? NamePrefix { get; set; } + + /// + /// Gets or sets the property value for 'NameFirst'. + /// + /// + /// The property value for 'NameFirst'. + /// + public string? NameFirst { get; set; } + + /// + /// Gets or sets the property value for 'NameMiddle'. + /// + /// + /// The property value for 'NameMiddle'. + /// + public string? NameMiddle { get; set; } + + /// + /// Gets or sets the property value for 'NameLast'. + /// + /// + /// The property value for 'NameLast'. + /// + public string? NameLast { get; set; } + + /// + /// Gets or sets the property value for 'NameSuffix'. + /// + /// + /// The property value for 'NameSuffix'. + /// + public string? NameSuffix { get; set; } + + /// + /// Gets or sets the property value for 'Skills'. + /// + /// + /// The property value for 'Skills'. + /// + public string? Skills { get; set; } + + /// + /// Gets or sets the property value for 'AddrType'. + /// + /// + /// The property value for 'AddrType'. + /// + public string? AddrType { get; set; } + + /// + /// Gets or sets the property value for 'AddrLocCountryRegion'. + /// + /// + /// The property value for 'AddrLocCountryRegion'. + /// + public string? AddrLocCountryRegion { get; set; } + + /// + /// Gets or sets the property value for 'AddrLocState'. + /// + /// + /// The property value for 'AddrLocState'. + /// + public string? AddrLocState { get; set; } + + /// + /// Gets or sets the property value for 'AddrLocCity'. + /// + /// + /// The property value for 'AddrLocCity'. + /// + public string? AddrLocCity { get; set; } + + /// + /// Gets or sets the property value for 'AddrPostalCode'. + /// + /// + /// The property value for 'AddrPostalCode'. + /// + public string? AddrPostalCode { get; set; } + + /// + /// Gets or sets the property value for 'EMail'. + /// + /// + /// The property value for 'EMail'. + /// + public string? EMail { get; set; } + + /// + /// Gets or sets the property value for 'WebSite'. + /// + /// + /// The property value for 'WebSite'. + /// + public string? WebSite { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Models/VJobCandidateReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Models/VJobCandidateReadModel.cs new file mode 100644 index 0000000..abf38ce --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Models/VJobCandidateReadModel.cs @@ -0,0 +1,143 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VJobCandidateReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int? BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'NamePrefix'. + /// + /// + /// The property value for 'NamePrefix'. + /// + public string? NamePrefix { get; set; } + + /// + /// Gets or sets the property value for 'NameFirst'. + /// + /// + /// The property value for 'NameFirst'. + /// + public string? NameFirst { get; set; } + + /// + /// Gets or sets the property value for 'NameMiddle'. + /// + /// + /// The property value for 'NameMiddle'. + /// + public string? NameMiddle { get; set; } + + /// + /// Gets or sets the property value for 'NameLast'. + /// + /// + /// The property value for 'NameLast'. + /// + public string? NameLast { get; set; } + + /// + /// Gets or sets the property value for 'NameSuffix'. + /// + /// + /// The property value for 'NameSuffix'. + /// + public string? NameSuffix { get; set; } + + /// + /// Gets or sets the property value for 'Skills'. + /// + /// + /// The property value for 'Skills'. + /// + public string? Skills { get; set; } + + /// + /// Gets or sets the property value for 'AddrType'. + /// + /// + /// The property value for 'AddrType'. + /// + public string? AddrType { get; set; } + + /// + /// Gets or sets the property value for 'AddrLocCountryRegion'. + /// + /// + /// The property value for 'AddrLocCountryRegion'. + /// + public string? AddrLocCountryRegion { get; set; } + + /// + /// Gets or sets the property value for 'AddrLocState'. + /// + /// + /// The property value for 'AddrLocState'. + /// + public string? AddrLocState { get; set; } + + /// + /// Gets or sets the property value for 'AddrLocCity'. + /// + /// + /// The property value for 'AddrLocCity'. + /// + public string? AddrLocCity { get; set; } + + /// + /// Gets or sets the property value for 'AddrPostalCode'. + /// + /// + /// The property value for 'AddrPostalCode'. + /// + public string? AddrPostalCode { get; set; } + + /// + /// Gets or sets the property value for 'EMail'. + /// + /// + /// The property value for 'EMail'. + /// + public string? EMail { get; set; } + + /// + /// Gets or sets the property value for 'WebSite'. + /// + /// + /// The property value for 'WebSite'. + /// + public string? WebSite { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Models/VJobCandidateUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Models/VJobCandidateUpdateModel.cs new file mode 100644 index 0000000..dab9770 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Models/VJobCandidateUpdateModel.cs @@ -0,0 +1,143 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VJobCandidateUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int? BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'NamePrefix'. + /// + /// + /// The property value for 'NamePrefix'. + /// + public string? NamePrefix { get; set; } + + /// + /// Gets or sets the property value for 'NameFirst'. + /// + /// + /// The property value for 'NameFirst'. + /// + public string? NameFirst { get; set; } + + /// + /// Gets or sets the property value for 'NameMiddle'. + /// + /// + /// The property value for 'NameMiddle'. + /// + public string? NameMiddle { get; set; } + + /// + /// Gets or sets the property value for 'NameLast'. + /// + /// + /// The property value for 'NameLast'. + /// + public string? NameLast { get; set; } + + /// + /// Gets or sets the property value for 'NameSuffix'. + /// + /// + /// The property value for 'NameSuffix'. + /// + public string? NameSuffix { get; set; } + + /// + /// Gets or sets the property value for 'Skills'. + /// + /// + /// The property value for 'Skills'. + /// + public string? Skills { get; set; } + + /// + /// Gets or sets the property value for 'AddrType'. + /// + /// + /// The property value for 'AddrType'. + /// + public string? AddrType { get; set; } + + /// + /// Gets or sets the property value for 'AddrLocCountryRegion'. + /// + /// + /// The property value for 'AddrLocCountryRegion'. + /// + public string? AddrLocCountryRegion { get; set; } + + /// + /// Gets or sets the property value for 'AddrLocState'. + /// + /// + /// The property value for 'AddrLocState'. + /// + public string? AddrLocState { get; set; } + + /// + /// Gets or sets the property value for 'AddrLocCity'. + /// + /// + /// The property value for 'AddrLocCity'. + /// + public string? AddrLocCity { get; set; } + + /// + /// Gets or sets the property value for 'AddrPostalCode'. + /// + /// + /// The property value for 'AddrPostalCode'. + /// + public string? AddrPostalCode { get; set; } + + /// + /// Gets or sets the property value for 'EMail'. + /// + /// + /// The property value for 'EMail'. + /// + public string? EMail { get; set; } + + /// + /// Gets or sets the property value for 'WebSite'. + /// + /// + /// The property value for 'WebSite'. + /// + public string? WebSite { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Validation/VJobCandidateCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Validation/VJobCandidateCreateModelValidator.cs new file mode 100644 index 0000000..a91f7b9 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Validation/VJobCandidateCreateModelValidator.cs @@ -0,0 +1,34 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VJobCandidateCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VJobCandidateCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.NamePrefix).MaximumLength(30); + RuleFor(p => p.NameFirst).MaximumLength(30); + RuleFor(p => p.NameMiddle).MaximumLength(30); + RuleFor(p => p.NameLast).MaximumLength(30); + RuleFor(p => p.NameSuffix).MaximumLength(30); + RuleFor(p => p.AddrType).MaximumLength(30); + RuleFor(p => p.AddrLocCountryRegion).MaximumLength(100); + RuleFor(p => p.AddrLocState).MaximumLength(100); + RuleFor(p => p.AddrLocCity).MaximumLength(100); + RuleFor(p => p.AddrPostalCode).MaximumLength(20); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Validation/VJobCandidateUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Validation/VJobCandidateUpdateModelValidator.cs new file mode 100644 index 0000000..60a4eea --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Validation/VJobCandidateUpdateModelValidator.cs @@ -0,0 +1,34 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VJobCandidateUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VJobCandidateUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.NamePrefix).MaximumLength(30); + RuleFor(p => p.NameFirst).MaximumLength(30); + RuleFor(p => p.NameMiddle).MaximumLength(30); + RuleFor(p => p.NameLast).MaximumLength(30); + RuleFor(p => p.NameSuffix).MaximumLength(30); + RuleFor(p => p.AddrType).MaximumLength(30); + RuleFor(p => p.AddrLocCountryRegion).MaximumLength(100); + RuleFor(p => p.AddrLocState).MaximumLength(100); + RuleFor(p => p.AddrLocCity).MaximumLength(100); + RuleFor(p => p.AddrPostalCode).MaximumLength(20); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Mapping/VJobCandidateEducationProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Mapping/VJobCandidateEducationProfile.cs new file mode 100644 index 0000000..5a668bf --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Mapping/VJobCandidateEducationProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class VJobCandidateEducationProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public VJobCandidateEducationProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Models/VJobCandidateEducationCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Models/VJobCandidateEducationCreateModel.cs new file mode 100644 index 0000000..9239fbc --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Models/VJobCandidateEducationCreateModel.cs @@ -0,0 +1,119 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VJobCandidateEducationCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'EduLevel'. + /// + /// + /// The property value for 'EduLevel'. + /// + public string? EduLevel { get; set; } + + /// + /// Gets or sets the property value for 'EduStartDate'. + /// + /// + /// The property value for 'EduStartDate'. + /// + public DateTime? EduStartDate { get; set; } + + /// + /// Gets or sets the property value for 'EduEndDate'. + /// + /// + /// The property value for 'EduEndDate'. + /// + public DateTime? EduEndDate { get; set; } + + /// + /// Gets or sets the property value for 'EduDegree'. + /// + /// + /// The property value for 'EduDegree'. + /// + public string? EduDegree { get; set; } + + /// + /// Gets or sets the property value for 'EduMajor'. + /// + /// + /// The property value for 'EduMajor'. + /// + public string? EduMajor { get; set; } + + /// + /// Gets or sets the property value for 'EduMinor'. + /// + /// + /// The property value for 'EduMinor'. + /// + public string? EduMinor { get; set; } + + /// + /// Gets or sets the property value for 'EduGPA'. + /// + /// + /// The property value for 'EduGPA'. + /// + public string? EduGPA { get; set; } + + /// + /// Gets or sets the property value for 'EduGPAScale'. + /// + /// + /// The property value for 'EduGPAScale'. + /// + public string? EduGPAScale { get; set; } + + /// + /// Gets or sets the property value for 'EduSchool'. + /// + /// + /// The property value for 'EduSchool'. + /// + public string? EduSchool { get; set; } + + /// + /// Gets or sets the property value for 'EduLocCountryRegion'. + /// + /// + /// The property value for 'EduLocCountryRegion'. + /// + public string? EduLocCountryRegion { get; set; } + + /// + /// Gets or sets the property value for 'EduLocState'. + /// + /// + /// The property value for 'EduLocState'. + /// + public string? EduLocState { get; set; } + + /// + /// Gets or sets the property value for 'EduLocCity'. + /// + /// + /// The property value for 'EduLocCity'. + /// + public string? EduLocCity { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Models/VJobCandidateEducationReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Models/VJobCandidateEducationReadModel.cs new file mode 100644 index 0000000..52559f7 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Models/VJobCandidateEducationReadModel.cs @@ -0,0 +1,119 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VJobCandidateEducationReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'EduLevel'. + /// + /// + /// The property value for 'EduLevel'. + /// + public string? EduLevel { get; set; } + + /// + /// Gets or sets the property value for 'EduStartDate'. + /// + /// + /// The property value for 'EduStartDate'. + /// + public DateTime? EduStartDate { get; set; } + + /// + /// Gets or sets the property value for 'EduEndDate'. + /// + /// + /// The property value for 'EduEndDate'. + /// + public DateTime? EduEndDate { get; set; } + + /// + /// Gets or sets the property value for 'EduDegree'. + /// + /// + /// The property value for 'EduDegree'. + /// + public string? EduDegree { get; set; } + + /// + /// Gets or sets the property value for 'EduMajor'. + /// + /// + /// The property value for 'EduMajor'. + /// + public string? EduMajor { get; set; } + + /// + /// Gets or sets the property value for 'EduMinor'. + /// + /// + /// The property value for 'EduMinor'. + /// + public string? EduMinor { get; set; } + + /// + /// Gets or sets the property value for 'EduGPA'. + /// + /// + /// The property value for 'EduGPA'. + /// + public string? EduGPA { get; set; } + + /// + /// Gets or sets the property value for 'EduGPAScale'. + /// + /// + /// The property value for 'EduGPAScale'. + /// + public string? EduGPAScale { get; set; } + + /// + /// Gets or sets the property value for 'EduSchool'. + /// + /// + /// The property value for 'EduSchool'. + /// + public string? EduSchool { get; set; } + + /// + /// Gets or sets the property value for 'EduLocCountryRegion'. + /// + /// + /// The property value for 'EduLocCountryRegion'. + /// + public string? EduLocCountryRegion { get; set; } + + /// + /// Gets or sets the property value for 'EduLocState'. + /// + /// + /// The property value for 'EduLocState'. + /// + public string? EduLocState { get; set; } + + /// + /// Gets or sets the property value for 'EduLocCity'. + /// + /// + /// The property value for 'EduLocCity'. + /// + public string? EduLocCity { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Models/VJobCandidateEducationUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Models/VJobCandidateEducationUpdateModel.cs new file mode 100644 index 0000000..6f8b83f --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Models/VJobCandidateEducationUpdateModel.cs @@ -0,0 +1,119 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VJobCandidateEducationUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'EduLevel'. + /// + /// + /// The property value for 'EduLevel'. + /// + public string? EduLevel { get; set; } + + /// + /// Gets or sets the property value for 'EduStartDate'. + /// + /// + /// The property value for 'EduStartDate'. + /// + public DateTime? EduStartDate { get; set; } + + /// + /// Gets or sets the property value for 'EduEndDate'. + /// + /// + /// The property value for 'EduEndDate'. + /// + public DateTime? EduEndDate { get; set; } + + /// + /// Gets or sets the property value for 'EduDegree'. + /// + /// + /// The property value for 'EduDegree'. + /// + public string? EduDegree { get; set; } + + /// + /// Gets or sets the property value for 'EduMajor'. + /// + /// + /// The property value for 'EduMajor'. + /// + public string? EduMajor { get; set; } + + /// + /// Gets or sets the property value for 'EduMinor'. + /// + /// + /// The property value for 'EduMinor'. + /// + public string? EduMinor { get; set; } + + /// + /// Gets or sets the property value for 'EduGPA'. + /// + /// + /// The property value for 'EduGPA'. + /// + public string? EduGPA { get; set; } + + /// + /// Gets or sets the property value for 'EduGPAScale'. + /// + /// + /// The property value for 'EduGPAScale'. + /// + public string? EduGPAScale { get; set; } + + /// + /// Gets or sets the property value for 'EduSchool'. + /// + /// + /// The property value for 'EduSchool'. + /// + public string? EduSchool { get; set; } + + /// + /// Gets or sets the property value for 'EduLocCountryRegion'. + /// + /// + /// The property value for 'EduLocCountryRegion'. + /// + public string? EduLocCountryRegion { get; set; } + + /// + /// Gets or sets the property value for 'EduLocState'. + /// + /// + /// The property value for 'EduLocState'. + /// + public string? EduLocState { get; set; } + + /// + /// Gets or sets the property value for 'EduLocCity'. + /// + /// + /// The property value for 'EduLocCity'. + /// + public string? EduLocCity { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Validation/VJobCandidateEducationCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Validation/VJobCandidateEducationCreateModelValidator.cs new file mode 100644 index 0000000..cd0cbcd --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Validation/VJobCandidateEducationCreateModelValidator.cs @@ -0,0 +1,33 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VJobCandidateEducationCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VJobCandidateEducationCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.EduDegree).MaximumLength(50); + RuleFor(p => p.EduMajor).MaximumLength(50); + RuleFor(p => p.EduMinor).MaximumLength(50); + RuleFor(p => p.EduGPA).MaximumLength(5); + RuleFor(p => p.EduGPAScale).MaximumLength(5); + RuleFor(p => p.EduSchool).MaximumLength(100); + RuleFor(p => p.EduLocCountryRegion).MaximumLength(100); + RuleFor(p => p.EduLocState).MaximumLength(100); + RuleFor(p => p.EduLocCity).MaximumLength(100); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Validation/VJobCandidateEducationUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Validation/VJobCandidateEducationUpdateModelValidator.cs new file mode 100644 index 0000000..6967bda --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Validation/VJobCandidateEducationUpdateModelValidator.cs @@ -0,0 +1,33 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VJobCandidateEducationUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VJobCandidateEducationUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.EduDegree).MaximumLength(50); + RuleFor(p => p.EduMajor).MaximumLength(50); + RuleFor(p => p.EduMinor).MaximumLength(50); + RuleFor(p => p.EduGPA).MaximumLength(5); + RuleFor(p => p.EduGPAScale).MaximumLength(5); + RuleFor(p => p.EduSchool).MaximumLength(100); + RuleFor(p => p.EduLocCountryRegion).MaximumLength(100); + RuleFor(p => p.EduLocState).MaximumLength(100); + RuleFor(p => p.EduLocCity).MaximumLength(100); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Mapping/VJobCandidateEmploymentProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Mapping/VJobCandidateEmploymentProfile.cs new file mode 100644 index 0000000..1b6bfd3 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Mapping/VJobCandidateEmploymentProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class VJobCandidateEmploymentProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public VJobCandidateEmploymentProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentCreateModel.cs new file mode 100644 index 0000000..7430eec --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentCreateModel.cs @@ -0,0 +1,103 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VJobCandidateEmploymentCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'EmpStartDate'. + /// + /// + /// The property value for 'EmpStartDate'. + /// + public DateTime? EmpStartDate { get; set; } + + /// + /// Gets or sets the property value for 'EmpEndDate'. + /// + /// + /// The property value for 'EmpEndDate'. + /// + public DateTime? EmpEndDate { get; set; } + + /// + /// Gets or sets the property value for 'EmpOrgName'. + /// + /// + /// The property value for 'EmpOrgName'. + /// + public string? EmpOrgName { get; set; } + + /// + /// Gets or sets the property value for 'EmpJobTitle'. + /// + /// + /// The property value for 'EmpJobTitle'. + /// + public string? EmpJobTitle { get; set; } + + /// + /// Gets or sets the property value for 'EmpResponsibility'. + /// + /// + /// The property value for 'EmpResponsibility'. + /// + public string? EmpResponsibility { get; set; } + + /// + /// Gets or sets the property value for 'EmpFunctionCategory'. + /// + /// + /// The property value for 'EmpFunctionCategory'. + /// + public string? EmpFunctionCategory { get; set; } + + /// + /// Gets or sets the property value for 'EmpIndustryCategory'. + /// + /// + /// The property value for 'EmpIndustryCategory'. + /// + public string? EmpIndustryCategory { get; set; } + + /// + /// Gets or sets the property value for 'EmpLocCountryRegion'. + /// + /// + /// The property value for 'EmpLocCountryRegion'. + /// + public string? EmpLocCountryRegion { get; set; } + + /// + /// Gets or sets the property value for 'EmpLocState'. + /// + /// + /// The property value for 'EmpLocState'. + /// + public string? EmpLocState { get; set; } + + /// + /// Gets or sets the property value for 'EmpLocCity'. + /// + /// + /// The property value for 'EmpLocCity'. + /// + public string? EmpLocCity { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentReadModel.cs new file mode 100644 index 0000000..4d084a7 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentReadModel.cs @@ -0,0 +1,103 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VJobCandidateEmploymentReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'EmpStartDate'. + /// + /// + /// The property value for 'EmpStartDate'. + /// + public DateTime? EmpStartDate { get; set; } + + /// + /// Gets or sets the property value for 'EmpEndDate'. + /// + /// + /// The property value for 'EmpEndDate'. + /// + public DateTime? EmpEndDate { get; set; } + + /// + /// Gets or sets the property value for 'EmpOrgName'. + /// + /// + /// The property value for 'EmpOrgName'. + /// + public string? EmpOrgName { get; set; } + + /// + /// Gets or sets the property value for 'EmpJobTitle'. + /// + /// + /// The property value for 'EmpJobTitle'. + /// + public string? EmpJobTitle { get; set; } + + /// + /// Gets or sets the property value for 'EmpResponsibility'. + /// + /// + /// The property value for 'EmpResponsibility'. + /// + public string? EmpResponsibility { get; set; } + + /// + /// Gets or sets the property value for 'EmpFunctionCategory'. + /// + /// + /// The property value for 'EmpFunctionCategory'. + /// + public string? EmpFunctionCategory { get; set; } + + /// + /// Gets or sets the property value for 'EmpIndustryCategory'. + /// + /// + /// The property value for 'EmpIndustryCategory'. + /// + public string? EmpIndustryCategory { get; set; } + + /// + /// Gets or sets the property value for 'EmpLocCountryRegion'. + /// + /// + /// The property value for 'EmpLocCountryRegion'. + /// + public string? EmpLocCountryRegion { get; set; } + + /// + /// Gets or sets the property value for 'EmpLocState'. + /// + /// + /// The property value for 'EmpLocState'. + /// + public string? EmpLocState { get; set; } + + /// + /// Gets or sets the property value for 'EmpLocCity'. + /// + /// + /// The property value for 'EmpLocCity'. + /// + public string? EmpLocCity { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentUpdateModel.cs new file mode 100644 index 0000000..0be1cb6 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentUpdateModel.cs @@ -0,0 +1,103 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VJobCandidateEmploymentUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'EmpStartDate'. + /// + /// + /// The property value for 'EmpStartDate'. + /// + public DateTime? EmpStartDate { get; set; } + + /// + /// Gets or sets the property value for 'EmpEndDate'. + /// + /// + /// The property value for 'EmpEndDate'. + /// + public DateTime? EmpEndDate { get; set; } + + /// + /// Gets or sets the property value for 'EmpOrgName'. + /// + /// + /// The property value for 'EmpOrgName'. + /// + public string? EmpOrgName { get; set; } + + /// + /// Gets or sets the property value for 'EmpJobTitle'. + /// + /// + /// The property value for 'EmpJobTitle'. + /// + public string? EmpJobTitle { get; set; } + + /// + /// Gets or sets the property value for 'EmpResponsibility'. + /// + /// + /// The property value for 'EmpResponsibility'. + /// + public string? EmpResponsibility { get; set; } + + /// + /// Gets or sets the property value for 'EmpFunctionCategory'. + /// + /// + /// The property value for 'EmpFunctionCategory'. + /// + public string? EmpFunctionCategory { get; set; } + + /// + /// Gets or sets the property value for 'EmpIndustryCategory'. + /// + /// + /// The property value for 'EmpIndustryCategory'. + /// + public string? EmpIndustryCategory { get; set; } + + /// + /// Gets or sets the property value for 'EmpLocCountryRegion'. + /// + /// + /// The property value for 'EmpLocCountryRegion'. + /// + public string? EmpLocCountryRegion { get; set; } + + /// + /// Gets or sets the property value for 'EmpLocState'. + /// + /// + /// The property value for 'EmpLocState'. + /// + public string? EmpLocState { get; set; } + + /// + /// Gets or sets the property value for 'EmpLocCity'. + /// + /// + /// The property value for 'EmpLocCity'. + /// + public string? EmpLocCity { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Validation/VJobCandidateEmploymentCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Validation/VJobCandidateEmploymentCreateModelValidator.cs new file mode 100644 index 0000000..81e45d9 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Validation/VJobCandidateEmploymentCreateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VJobCandidateEmploymentCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VJobCandidateEmploymentCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.EmpOrgName).MaximumLength(100); + RuleFor(p => p.EmpJobTitle).MaximumLength(100); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Validation/VJobCandidateEmploymentUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Validation/VJobCandidateEmploymentUpdateModelValidator.cs new file mode 100644 index 0000000..8430ee4 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Validation/VJobCandidateEmploymentUpdateModelValidator.cs @@ -0,0 +1,26 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VJobCandidateEmploymentUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VJobCandidateEmploymentUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.EmpOrgName).MaximumLength(100); + RuleFor(p => p.EmpJobTitle).MaximumLength(100); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Mapping/VPersonDemographicsProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Mapping/VPersonDemographicsProfile.cs new file mode 100644 index 0000000..7dd0d4e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Mapping/VPersonDemographicsProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class VPersonDemographicsProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public VPersonDemographicsProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Models/VPersonDemographicsCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Models/VPersonDemographicsCreateModel.cs new file mode 100644 index 0000000..2901c5d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Models/VPersonDemographicsCreateModel.cs @@ -0,0 +1,119 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VPersonDemographicsCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'TotalPurchaseYTD'. + /// + /// + /// The property value for 'TotalPurchaseYTD'. + /// + public decimal? TotalPurchaseYTD { get; set; } + + /// + /// Gets or sets the property value for 'DateFirstPurchase'. + /// + /// + /// The property value for 'DateFirstPurchase'. + /// + public DateTime? DateFirstPurchase { get; set; } + + /// + /// Gets or sets the property value for 'BirthDate'. + /// + /// + /// The property value for 'BirthDate'. + /// + public DateTime? BirthDate { get; set; } + + /// + /// Gets or sets the property value for 'MaritalStatus'. + /// + /// + /// The property value for 'MaritalStatus'. + /// + public string? MaritalStatus { get; set; } + + /// + /// Gets or sets the property value for 'YearlyIncome'. + /// + /// + /// The property value for 'YearlyIncome'. + /// + public string? YearlyIncome { get; set; } + + /// + /// Gets or sets the property value for 'Gender'. + /// + /// + /// The property value for 'Gender'. + /// + public string? Gender { get; set; } + + /// + /// Gets or sets the property value for 'TotalChildren'. + /// + /// + /// The property value for 'TotalChildren'. + /// + public int? TotalChildren { get; set; } + + /// + /// Gets or sets the property value for 'NumberChildrenAtHome'. + /// + /// + /// The property value for 'NumberChildrenAtHome'. + /// + public int? NumberChildrenAtHome { get; set; } + + /// + /// Gets or sets the property value for 'Education'. + /// + /// + /// The property value for 'Education'. + /// + public string? Education { get; set; } + + /// + /// Gets or sets the property value for 'Occupation'. + /// + /// + /// The property value for 'Occupation'. + /// + public string? Occupation { get; set; } + + /// + /// Gets or sets the property value for 'HomeOwnerFlag'. + /// + /// + /// The property value for 'HomeOwnerFlag'. + /// + public bool? HomeOwnerFlag { get; set; } + + /// + /// Gets or sets the property value for 'NumberCarsOwned'. + /// + /// + /// The property value for 'NumberCarsOwned'. + /// + public int? NumberCarsOwned { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Models/VPersonDemographicsReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Models/VPersonDemographicsReadModel.cs new file mode 100644 index 0000000..89d74fc --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Models/VPersonDemographicsReadModel.cs @@ -0,0 +1,119 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VPersonDemographicsReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'TotalPurchaseYTD'. + /// + /// + /// The property value for 'TotalPurchaseYTD'. + /// + public decimal? TotalPurchaseYTD { get; set; } + + /// + /// Gets or sets the property value for 'DateFirstPurchase'. + /// + /// + /// The property value for 'DateFirstPurchase'. + /// + public DateTime? DateFirstPurchase { get; set; } + + /// + /// Gets or sets the property value for 'BirthDate'. + /// + /// + /// The property value for 'BirthDate'. + /// + public DateTime? BirthDate { get; set; } + + /// + /// Gets or sets the property value for 'MaritalStatus'. + /// + /// + /// The property value for 'MaritalStatus'. + /// + public string? MaritalStatus { get; set; } + + /// + /// Gets or sets the property value for 'YearlyIncome'. + /// + /// + /// The property value for 'YearlyIncome'. + /// + public string? YearlyIncome { get; set; } + + /// + /// Gets or sets the property value for 'Gender'. + /// + /// + /// The property value for 'Gender'. + /// + public string? Gender { get; set; } + + /// + /// Gets or sets the property value for 'TotalChildren'. + /// + /// + /// The property value for 'TotalChildren'. + /// + public int? TotalChildren { get; set; } + + /// + /// Gets or sets the property value for 'NumberChildrenAtHome'. + /// + /// + /// The property value for 'NumberChildrenAtHome'. + /// + public int? NumberChildrenAtHome { get; set; } + + /// + /// Gets or sets the property value for 'Education'. + /// + /// + /// The property value for 'Education'. + /// + public string? Education { get; set; } + + /// + /// Gets or sets the property value for 'Occupation'. + /// + /// + /// The property value for 'Occupation'. + /// + public string? Occupation { get; set; } + + /// + /// Gets or sets the property value for 'HomeOwnerFlag'. + /// + /// + /// The property value for 'HomeOwnerFlag'. + /// + public bool? HomeOwnerFlag { get; set; } + + /// + /// Gets or sets the property value for 'NumberCarsOwned'. + /// + /// + /// The property value for 'NumberCarsOwned'. + /// + public int? NumberCarsOwned { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Models/VPersonDemographicsUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Models/VPersonDemographicsUpdateModel.cs new file mode 100644 index 0000000..bf25f93 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Models/VPersonDemographicsUpdateModel.cs @@ -0,0 +1,119 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VPersonDemographicsUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'TotalPurchaseYTD'. + /// + /// + /// The property value for 'TotalPurchaseYTD'. + /// + public decimal? TotalPurchaseYTD { get; set; } + + /// + /// Gets or sets the property value for 'DateFirstPurchase'. + /// + /// + /// The property value for 'DateFirstPurchase'. + /// + public DateTime? DateFirstPurchase { get; set; } + + /// + /// Gets or sets the property value for 'BirthDate'. + /// + /// + /// The property value for 'BirthDate'. + /// + public DateTime? BirthDate { get; set; } + + /// + /// Gets or sets the property value for 'MaritalStatus'. + /// + /// + /// The property value for 'MaritalStatus'. + /// + public string? MaritalStatus { get; set; } + + /// + /// Gets or sets the property value for 'YearlyIncome'. + /// + /// + /// The property value for 'YearlyIncome'. + /// + public string? YearlyIncome { get; set; } + + /// + /// Gets or sets the property value for 'Gender'. + /// + /// + /// The property value for 'Gender'. + /// + public string? Gender { get; set; } + + /// + /// Gets or sets the property value for 'TotalChildren'. + /// + /// + /// The property value for 'TotalChildren'. + /// + public int? TotalChildren { get; set; } + + /// + /// Gets or sets the property value for 'NumberChildrenAtHome'. + /// + /// + /// The property value for 'NumberChildrenAtHome'. + /// + public int? NumberChildrenAtHome { get; set; } + + /// + /// Gets or sets the property value for 'Education'. + /// + /// + /// The property value for 'Education'. + /// + public string? Education { get; set; } + + /// + /// Gets or sets the property value for 'Occupation'. + /// + /// + /// The property value for 'Occupation'. + /// + public string? Occupation { get; set; } + + /// + /// Gets or sets the property value for 'HomeOwnerFlag'. + /// + /// + /// The property value for 'HomeOwnerFlag'. + /// + public bool? HomeOwnerFlag { get; set; } + + /// + /// Gets or sets the property value for 'NumberCarsOwned'. + /// + /// + /// The property value for 'NumberCarsOwned'. + /// + public int? NumberCarsOwned { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Validation/VPersonDemographicsCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Validation/VPersonDemographicsCreateModelValidator.cs new file mode 100644 index 0000000..0f60b6d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Validation/VPersonDemographicsCreateModelValidator.cs @@ -0,0 +1,29 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VPersonDemographicsCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VPersonDemographicsCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.MaritalStatus).MaximumLength(1); + RuleFor(p => p.YearlyIncome).MaximumLength(30); + RuleFor(p => p.Gender).MaximumLength(1); + RuleFor(p => p.Education).MaximumLength(30); + RuleFor(p => p.Occupation).MaximumLength(30); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Validation/VPersonDemographicsUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Validation/VPersonDemographicsUpdateModelValidator.cs new file mode 100644 index 0000000..f3a8b7d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Validation/VPersonDemographicsUpdateModelValidator.cs @@ -0,0 +1,29 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VPersonDemographicsUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VPersonDemographicsUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.MaritalStatus).MaximumLength(1); + RuleFor(p => p.YearlyIncome).MaximumLength(30); + RuleFor(p => p.Gender).MaximumLength(1); + RuleFor(p => p.Education).MaximumLength(30); + RuleFor(p => p.Occupation).MaximumLength(30); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Mapping/VProductAndDescriptionProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Mapping/VProductAndDescriptionProfile.cs new file mode 100644 index 0000000..dd78ffa --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Mapping/VProductAndDescriptionProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class VProductAndDescriptionProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public VProductAndDescriptionProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Models/VProductAndDescriptionCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Models/VProductAndDescriptionCreateModel.cs new file mode 100644 index 0000000..2c2e11b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Models/VProductAndDescriptionCreateModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VProductAndDescriptionCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ProductModel'. + /// + /// + /// The property value for 'ProductModel'. + /// + public string ProductModel { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CultureId'. + /// + /// + /// The property value for 'CultureId'. + /// + public string CultureId { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Description'. + /// + /// + /// The property value for 'Description'. + /// + public string Description { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Models/VProductAndDescriptionReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Models/VProductAndDescriptionReadModel.cs new file mode 100644 index 0000000..3e35536 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Models/VProductAndDescriptionReadModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VProductAndDescriptionReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ProductModel'. + /// + /// + /// The property value for 'ProductModel'. + /// + public string ProductModel { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CultureId'. + /// + /// + /// The property value for 'CultureId'. + /// + public string CultureId { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Description'. + /// + /// + /// The property value for 'Description'. + /// + public string Description { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Models/VProductAndDescriptionUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Models/VProductAndDescriptionUpdateModel.cs new file mode 100644 index 0000000..c686443 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Models/VProductAndDescriptionUpdateModel.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VProductAndDescriptionUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ProductModel'. + /// + /// + /// The property value for 'ProductModel'. + /// + public string ProductModel { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CultureId'. + /// + /// + /// The property value for 'CultureId'. + /// + public string CultureId { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Description'. + /// + /// + /// The property value for 'Description'. + /// + public string Description { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Validation/VProductAndDescriptionCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Validation/VProductAndDescriptionCreateModelValidator.cs new file mode 100644 index 0000000..d358877 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Validation/VProductAndDescriptionCreateModelValidator.cs @@ -0,0 +1,32 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VProductAndDescriptionCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VProductAndDescriptionCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + RuleFor(p => p.ProductModel).NotEmpty(); + RuleFor(p => p.ProductModel).MaximumLength(50); + RuleFor(p => p.CultureId).NotEmpty(); + RuleFor(p => p.CultureId).MaximumLength(6); + RuleFor(p => p.Description).NotEmpty(); + RuleFor(p => p.Description).MaximumLength(400); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Validation/VProductAndDescriptionUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Validation/VProductAndDescriptionUpdateModelValidator.cs new file mode 100644 index 0000000..5585186 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Validation/VProductAndDescriptionUpdateModelValidator.cs @@ -0,0 +1,32 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VProductAndDescriptionUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VProductAndDescriptionUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + RuleFor(p => p.ProductModel).NotEmpty(); + RuleFor(p => p.ProductModel).MaximumLength(50); + RuleFor(p => p.CultureId).NotEmpty(); + RuleFor(p => p.CultureId).MaximumLength(6); + RuleFor(p => p.Description).NotEmpty(); + RuleFor(p => p.Description).MaximumLength(400); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Mapping/VProductModelCatalogDescriptionProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Mapping/VProductModelCatalogDescriptionProfile.cs new file mode 100644 index 0000000..3c712e9 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Mapping/VProductModelCatalogDescriptionProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class VProductModelCatalogDescriptionProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public VProductModelCatalogDescriptionProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Models/VProductModelCatalogDescriptionCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Models/VProductModelCatalogDescriptionCreateModel.cs new file mode 100644 index 0000000..43a79e4 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Models/VProductModelCatalogDescriptionCreateModel.cs @@ -0,0 +1,215 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VProductModelCatalogDescriptionCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Summary'. + /// + /// + /// The property value for 'Summary'. + /// + public string? Summary { get; set; } + + /// + /// Gets or sets the property value for 'Manufacturer'. + /// + /// + /// The property value for 'Manufacturer'. + /// + public string? Manufacturer { get; set; } + + /// + /// Gets or sets the property value for 'Copyright'. + /// + /// + /// The property value for 'Copyright'. + /// + public string? Copyright { get; set; } + + /// + /// Gets or sets the property value for 'ProductURL'. + /// + /// + /// The property value for 'ProductURL'. + /// + public string? ProductURL { get; set; } + + /// + /// Gets or sets the property value for 'WarrantyPeriod'. + /// + /// + /// The property value for 'WarrantyPeriod'. + /// + public string? WarrantyPeriod { get; set; } + + /// + /// Gets or sets the property value for 'WarrantyDescription'. + /// + /// + /// The property value for 'WarrantyDescription'. + /// + public string? WarrantyDescription { get; set; } + + /// + /// Gets or sets the property value for 'NoOfYears'. + /// + /// + /// The property value for 'NoOfYears'. + /// + public string? NoOfYears { get; set; } + + /// + /// Gets or sets the property value for 'MaintenanceDescription'. + /// + /// + /// The property value for 'MaintenanceDescription'. + /// + public string? MaintenanceDescription { get; set; } + + /// + /// Gets or sets the property value for 'Wheel'. + /// + /// + /// The property value for 'Wheel'. + /// + public string? Wheel { get; set; } + + /// + /// Gets or sets the property value for 'Saddle'. + /// + /// + /// The property value for 'Saddle'. + /// + public string? Saddle { get; set; } + + /// + /// Gets or sets the property value for 'Pedal'. + /// + /// + /// The property value for 'Pedal'. + /// + public string? Pedal { get; set; } + + /// + /// Gets or sets the property value for 'BikeFrame'. + /// + /// + /// The property value for 'BikeFrame'. + /// + public string? BikeFrame { get; set; } + + /// + /// Gets or sets the property value for 'Crankset'. + /// + /// + /// The property value for 'Crankset'. + /// + public string? Crankset { get; set; } + + /// + /// Gets or sets the property value for 'PictureAngle'. + /// + /// + /// The property value for 'PictureAngle'. + /// + public string? PictureAngle { get; set; } + + /// + /// Gets or sets the property value for 'PictureSize'. + /// + /// + /// The property value for 'PictureSize'. + /// + public string? PictureSize { get; set; } + + /// + /// Gets or sets the property value for 'ProductPhotoId'. + /// + /// + /// The property value for 'ProductPhotoId'. + /// + public string? ProductPhotoId { get; set; } + + /// + /// Gets or sets the property value for 'Material'. + /// + /// + /// The property value for 'Material'. + /// + public string? Material { get; set; } + + /// + /// Gets or sets the property value for 'Color'. + /// + /// + /// The property value for 'Color'. + /// + public string? Color { get; set; } + + /// + /// Gets or sets the property value for 'ProductLine'. + /// + /// + /// The property value for 'ProductLine'. + /// + public string? ProductLine { get; set; } + + /// + /// Gets or sets the property value for 'Style'. + /// + /// + /// The property value for 'Style'. + /// + public string? Style { get; set; } + + /// + /// Gets or sets the property value for 'RiderExperience'. + /// + /// + /// The property value for 'RiderExperience'. + /// + public string? RiderExperience { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Models/VProductModelCatalogDescriptionReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Models/VProductModelCatalogDescriptionReadModel.cs new file mode 100644 index 0000000..4ba28d8 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Models/VProductModelCatalogDescriptionReadModel.cs @@ -0,0 +1,215 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VProductModelCatalogDescriptionReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Summary'. + /// + /// + /// The property value for 'Summary'. + /// + public string? Summary { get; set; } + + /// + /// Gets or sets the property value for 'Manufacturer'. + /// + /// + /// The property value for 'Manufacturer'. + /// + public string? Manufacturer { get; set; } + + /// + /// Gets or sets the property value for 'Copyright'. + /// + /// + /// The property value for 'Copyright'. + /// + public string? Copyright { get; set; } + + /// + /// Gets or sets the property value for 'ProductURL'. + /// + /// + /// The property value for 'ProductURL'. + /// + public string? ProductURL { get; set; } + + /// + /// Gets or sets the property value for 'WarrantyPeriod'. + /// + /// + /// The property value for 'WarrantyPeriod'. + /// + public string? WarrantyPeriod { get; set; } + + /// + /// Gets or sets the property value for 'WarrantyDescription'. + /// + /// + /// The property value for 'WarrantyDescription'. + /// + public string? WarrantyDescription { get; set; } + + /// + /// Gets or sets the property value for 'NoOfYears'. + /// + /// + /// The property value for 'NoOfYears'. + /// + public string? NoOfYears { get; set; } + + /// + /// Gets or sets the property value for 'MaintenanceDescription'. + /// + /// + /// The property value for 'MaintenanceDescription'. + /// + public string? MaintenanceDescription { get; set; } + + /// + /// Gets or sets the property value for 'Wheel'. + /// + /// + /// The property value for 'Wheel'. + /// + public string? Wheel { get; set; } + + /// + /// Gets or sets the property value for 'Saddle'. + /// + /// + /// The property value for 'Saddle'. + /// + public string? Saddle { get; set; } + + /// + /// Gets or sets the property value for 'Pedal'. + /// + /// + /// The property value for 'Pedal'. + /// + public string? Pedal { get; set; } + + /// + /// Gets or sets the property value for 'BikeFrame'. + /// + /// + /// The property value for 'BikeFrame'. + /// + public string? BikeFrame { get; set; } + + /// + /// Gets or sets the property value for 'Crankset'. + /// + /// + /// The property value for 'Crankset'. + /// + public string? Crankset { get; set; } + + /// + /// Gets or sets the property value for 'PictureAngle'. + /// + /// + /// The property value for 'PictureAngle'. + /// + public string? PictureAngle { get; set; } + + /// + /// Gets or sets the property value for 'PictureSize'. + /// + /// + /// The property value for 'PictureSize'. + /// + public string? PictureSize { get; set; } + + /// + /// Gets or sets the property value for 'ProductPhotoId'. + /// + /// + /// The property value for 'ProductPhotoId'. + /// + public string? ProductPhotoId { get; set; } + + /// + /// Gets or sets the property value for 'Material'. + /// + /// + /// The property value for 'Material'. + /// + public string? Material { get; set; } + + /// + /// Gets or sets the property value for 'Color'. + /// + /// + /// The property value for 'Color'. + /// + public string? Color { get; set; } + + /// + /// Gets or sets the property value for 'ProductLine'. + /// + /// + /// The property value for 'ProductLine'. + /// + public string? ProductLine { get; set; } + + /// + /// Gets or sets the property value for 'Style'. + /// + /// + /// The property value for 'Style'. + /// + public string? Style { get; set; } + + /// + /// Gets or sets the property value for 'RiderExperience'. + /// + /// + /// The property value for 'RiderExperience'. + /// + public string? RiderExperience { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Models/VProductModelCatalogDescriptionUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Models/VProductModelCatalogDescriptionUpdateModel.cs new file mode 100644 index 0000000..e125230 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Models/VProductModelCatalogDescriptionUpdateModel.cs @@ -0,0 +1,215 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VProductModelCatalogDescriptionUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Summary'. + /// + /// + /// The property value for 'Summary'. + /// + public string? Summary { get; set; } + + /// + /// Gets or sets the property value for 'Manufacturer'. + /// + /// + /// The property value for 'Manufacturer'. + /// + public string? Manufacturer { get; set; } + + /// + /// Gets or sets the property value for 'Copyright'. + /// + /// + /// The property value for 'Copyright'. + /// + public string? Copyright { get; set; } + + /// + /// Gets or sets the property value for 'ProductURL'. + /// + /// + /// The property value for 'ProductURL'. + /// + public string? ProductURL { get; set; } + + /// + /// Gets or sets the property value for 'WarrantyPeriod'. + /// + /// + /// The property value for 'WarrantyPeriod'. + /// + public string? WarrantyPeriod { get; set; } + + /// + /// Gets or sets the property value for 'WarrantyDescription'. + /// + /// + /// The property value for 'WarrantyDescription'. + /// + public string? WarrantyDescription { get; set; } + + /// + /// Gets or sets the property value for 'NoOfYears'. + /// + /// + /// The property value for 'NoOfYears'. + /// + public string? NoOfYears { get; set; } + + /// + /// Gets or sets the property value for 'MaintenanceDescription'. + /// + /// + /// The property value for 'MaintenanceDescription'. + /// + public string? MaintenanceDescription { get; set; } + + /// + /// Gets or sets the property value for 'Wheel'. + /// + /// + /// The property value for 'Wheel'. + /// + public string? Wheel { get; set; } + + /// + /// Gets or sets the property value for 'Saddle'. + /// + /// + /// The property value for 'Saddle'. + /// + public string? Saddle { get; set; } + + /// + /// Gets or sets the property value for 'Pedal'. + /// + /// + /// The property value for 'Pedal'. + /// + public string? Pedal { get; set; } + + /// + /// Gets or sets the property value for 'BikeFrame'. + /// + /// + /// The property value for 'BikeFrame'. + /// + public string? BikeFrame { get; set; } + + /// + /// Gets or sets the property value for 'Crankset'. + /// + /// + /// The property value for 'Crankset'. + /// + public string? Crankset { get; set; } + + /// + /// Gets or sets the property value for 'PictureAngle'. + /// + /// + /// The property value for 'PictureAngle'. + /// + public string? PictureAngle { get; set; } + + /// + /// Gets or sets the property value for 'PictureSize'. + /// + /// + /// The property value for 'PictureSize'. + /// + public string? PictureSize { get; set; } + + /// + /// Gets or sets the property value for 'ProductPhotoId'. + /// + /// + /// The property value for 'ProductPhotoId'. + /// + public string? ProductPhotoId { get; set; } + + /// + /// Gets or sets the property value for 'Material'. + /// + /// + /// The property value for 'Material'. + /// + public string? Material { get; set; } + + /// + /// Gets or sets the property value for 'Color'. + /// + /// + /// The property value for 'Color'. + /// + public string? Color { get; set; } + + /// + /// Gets or sets the property value for 'ProductLine'. + /// + /// + /// The property value for 'ProductLine'. + /// + public string? ProductLine { get; set; } + + /// + /// Gets or sets the property value for 'Style'. + /// + /// + /// The property value for 'Style'. + /// + public string? Style { get; set; } + + /// + /// Gets or sets the property value for 'RiderExperience'. + /// + /// + /// The property value for 'RiderExperience'. + /// + public string? RiderExperience { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Validation/VProductModelCatalogDescriptionCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Validation/VProductModelCatalogDescriptionCreateModelValidator.cs new file mode 100644 index 0000000..3c77e5f --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Validation/VProductModelCatalogDescriptionCreateModelValidator.cs @@ -0,0 +1,44 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VProductModelCatalogDescriptionCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VProductModelCatalogDescriptionCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + RuleFor(p => p.Copyright).MaximumLength(30); + RuleFor(p => p.ProductURL).MaximumLength(256); + RuleFor(p => p.WarrantyPeriod).MaximumLength(256); + RuleFor(p => p.WarrantyDescription).MaximumLength(256); + RuleFor(p => p.NoOfYears).MaximumLength(256); + RuleFor(p => p.MaintenanceDescription).MaximumLength(256); + RuleFor(p => p.Wheel).MaximumLength(256); + RuleFor(p => p.Saddle).MaximumLength(256); + RuleFor(p => p.Pedal).MaximumLength(256); + RuleFor(p => p.Crankset).MaximumLength(256); + RuleFor(p => p.PictureAngle).MaximumLength(256); + RuleFor(p => p.PictureSize).MaximumLength(256); + RuleFor(p => p.ProductPhotoId).MaximumLength(256); + RuleFor(p => p.Material).MaximumLength(256); + RuleFor(p => p.Color).MaximumLength(256); + RuleFor(p => p.ProductLine).MaximumLength(256); + RuleFor(p => p.Style).MaximumLength(256); + RuleFor(p => p.RiderExperience).MaximumLength(1024); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Validation/VProductModelCatalogDescriptionUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Validation/VProductModelCatalogDescriptionUpdateModelValidator.cs new file mode 100644 index 0000000..46d812f --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Validation/VProductModelCatalogDescriptionUpdateModelValidator.cs @@ -0,0 +1,44 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VProductModelCatalogDescriptionUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VProductModelCatalogDescriptionUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + RuleFor(p => p.Copyright).MaximumLength(30); + RuleFor(p => p.ProductURL).MaximumLength(256); + RuleFor(p => p.WarrantyPeriod).MaximumLength(256); + RuleFor(p => p.WarrantyDescription).MaximumLength(256); + RuleFor(p => p.NoOfYears).MaximumLength(256); + RuleFor(p => p.MaintenanceDescription).MaximumLength(256); + RuleFor(p => p.Wheel).MaximumLength(256); + RuleFor(p => p.Saddle).MaximumLength(256); + RuleFor(p => p.Pedal).MaximumLength(256); + RuleFor(p => p.Crankset).MaximumLength(256); + RuleFor(p => p.PictureAngle).MaximumLength(256); + RuleFor(p => p.PictureSize).MaximumLength(256); + RuleFor(p => p.ProductPhotoId).MaximumLength(256); + RuleFor(p => p.Material).MaximumLength(256); + RuleFor(p => p.Color).MaximumLength(256); + RuleFor(p => p.ProductLine).MaximumLength(256); + RuleFor(p => p.Style).MaximumLength(256); + RuleFor(p => p.RiderExperience).MaximumLength(1024); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Mapping/VProductModelInstructionsProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Mapping/VProductModelInstructionsProfile.cs new file mode 100644 index 0000000..01b22c0 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Mapping/VProductModelInstructionsProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class VProductModelInstructionsProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public VProductModelInstructionsProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsCreateModel.cs new file mode 100644 index 0000000..277157a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsCreateModel.cs @@ -0,0 +1,103 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VProductModelInstructionsCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Instructions'. + /// + /// + /// The property value for 'Instructions'. + /// + public string? Instructions { get; set; } + + /// + /// Gets or sets the property value for 'LocationId'. + /// + /// + /// The property value for 'LocationId'. + /// + public int? LocationId { get; set; } + + /// + /// Gets or sets the property value for 'SetupHours'. + /// + /// + /// The property value for 'SetupHours'. + /// + public decimal? SetupHours { get; set; } + + /// + /// Gets or sets the property value for 'MachineHours'. + /// + /// + /// The property value for 'MachineHours'. + /// + public decimal? MachineHours { get; set; } + + /// + /// Gets or sets the property value for 'LaborHours'. + /// + /// + /// The property value for 'LaborHours'. + /// + public decimal? LaborHours { get; set; } + + /// + /// Gets or sets the property value for 'LotSize'. + /// + /// + /// The property value for 'LotSize'. + /// + public int? LotSize { get; set; } + + /// + /// Gets or sets the property value for 'Step'. + /// + /// + /// The property value for 'Step'. + /// + public string? Step { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsReadModel.cs new file mode 100644 index 0000000..f5ae309 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsReadModel.cs @@ -0,0 +1,103 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VProductModelInstructionsReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Instructions'. + /// + /// + /// The property value for 'Instructions'. + /// + public string? Instructions { get; set; } + + /// + /// Gets or sets the property value for 'LocationId'. + /// + /// + /// The property value for 'LocationId'. + /// + public int? LocationId { get; set; } + + /// + /// Gets or sets the property value for 'SetupHours'. + /// + /// + /// The property value for 'SetupHours'. + /// + public decimal? SetupHours { get; set; } + + /// + /// Gets or sets the property value for 'MachineHours'. + /// + /// + /// The property value for 'MachineHours'. + /// + public decimal? MachineHours { get; set; } + + /// + /// Gets or sets the property value for 'LaborHours'. + /// + /// + /// The property value for 'LaborHours'. + /// + public decimal? LaborHours { get; set; } + + /// + /// Gets or sets the property value for 'LotSize'. + /// + /// + /// The property value for 'LotSize'. + /// + public int? LotSize { get; set; } + + /// + /// Gets or sets the property value for 'Step'. + /// + /// + /// The property value for 'Step'. + /// + public string? Step { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsUpdateModel.cs new file mode 100644 index 0000000..c812ea4 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsUpdateModel.cs @@ -0,0 +1,103 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VProductModelInstructionsUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Instructions'. + /// + /// + /// The property value for 'Instructions'. + /// + public string? Instructions { get; set; } + + /// + /// Gets or sets the property value for 'LocationId'. + /// + /// + /// The property value for 'LocationId'. + /// + public int? LocationId { get; set; } + + /// + /// Gets or sets the property value for 'SetupHours'. + /// + /// + /// The property value for 'SetupHours'. + /// + public decimal? SetupHours { get; set; } + + /// + /// Gets or sets the property value for 'MachineHours'. + /// + /// + /// The property value for 'MachineHours'. + /// + public decimal? MachineHours { get; set; } + + /// + /// Gets or sets the property value for 'LaborHours'. + /// + /// + /// The property value for 'LaborHours'. + /// + public decimal? LaborHours { get; set; } + + /// + /// Gets or sets the property value for 'LotSize'. + /// + /// + /// The property value for 'LotSize'. + /// + public int? LotSize { get; set; } + + /// + /// Gets or sets the property value for 'Step'. + /// + /// + /// The property value for 'Step'. + /// + public string? Step { get; set; } + + /// + /// Gets or sets the property value for 'Rowguid'. + /// + /// + /// The property value for 'Rowguid'. + /// + public Guid Rowguid { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Validation/VProductModelInstructionsCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Validation/VProductModelInstructionsCreateModelValidator.cs new file mode 100644 index 0000000..4db2dd3 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Validation/VProductModelInstructionsCreateModelValidator.cs @@ -0,0 +1,27 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VProductModelInstructionsCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VProductModelInstructionsCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + RuleFor(p => p.Step).MaximumLength(1024); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Validation/VProductModelInstructionsUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Validation/VProductModelInstructionsUpdateModelValidator.cs new file mode 100644 index 0000000..5ffa412 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Validation/VProductModelInstructionsUpdateModelValidator.cs @@ -0,0 +1,27 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VProductModelInstructionsUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VProductModelInstructionsUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + RuleFor(p => p.Step).MaximumLength(1024); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Mapping/VSalesPersonProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Mapping/VSalesPersonProfile.cs new file mode 100644 index 0000000..043c611 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Mapping/VSalesPersonProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class VSalesPersonProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public VSalesPersonProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Models/VSalesPersonCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Models/VSalesPersonCreateModel.cs new file mode 100644 index 0000000..e87c210 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Models/VSalesPersonCreateModel.cs @@ -0,0 +1,191 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VSalesPersonCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Title'. + /// + /// + /// The property value for 'Title'. + /// + public string? Title { get; set; } + + /// + /// Gets or sets the property value for 'FirstName'. + /// + /// + /// The property value for 'FirstName'. + /// + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'MiddleName'. + /// + /// + /// The property value for 'MiddleName'. + /// + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value for 'LastName'. + /// + /// + /// The property value for 'LastName'. + /// + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Suffix'. + /// + /// + /// The property value for 'Suffix'. + /// + public string? Suffix { get; set; } + + /// + /// Gets or sets the property value for 'JobTitle'. + /// + /// + /// The property value for 'JobTitle'. + /// + public string JobTitle { get; set; } = null!; + + /// + /// Gets or sets the property value for 'PhoneNumber'. + /// + /// + /// The property value for 'PhoneNumber'. + /// + public string? PhoneNumber { get; set; } + + /// + /// Gets or sets the property value for 'PhoneNumberType'. + /// + /// + /// The property value for 'PhoneNumberType'. + /// + public string? PhoneNumberType { get; set; } + + /// + /// Gets or sets the property value for 'EmailAddress'. + /// + /// + /// The property value for 'EmailAddress'. + /// + public string? EmailAddress { get; set; } + + /// + /// Gets or sets the property value for 'EmailPromotion'. + /// + /// + /// The property value for 'EmailPromotion'. + /// + public int EmailPromotion { get; set; } + + /// + /// Gets or sets the property value for 'AddressLine1'. + /// + /// + /// The property value for 'AddressLine1'. + /// + public string AddressLine1 { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressLine2'. + /// + /// + /// The property value for 'AddressLine2'. + /// + public string? AddressLine2 { get; set; } + + /// + /// Gets or sets the property value for 'City'. + /// + /// + /// The property value for 'City'. + /// + public string City { get; set; } = null!; + + /// + /// Gets or sets the property value for 'StateProvinceName'. + /// + /// + /// The property value for 'StateProvinceName'. + /// + public string StateProvinceName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'PostalCode'. + /// + /// + /// The property value for 'PostalCode'. + /// + public string PostalCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CountryRegionName'. + /// + /// + /// The property value for 'CountryRegionName'. + /// + public string CountryRegionName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'TerritoryName'. + /// + /// + /// The property value for 'TerritoryName'. + /// + public string? TerritoryName { get; set; } + + /// + /// Gets or sets the property value for 'TerritoryGroup'. + /// + /// + /// The property value for 'TerritoryGroup'. + /// + public string? TerritoryGroup { get; set; } + + /// + /// Gets or sets the property value for 'SalesQuota'. + /// + /// + /// The property value for 'SalesQuota'. + /// + public decimal? SalesQuota { get; set; } + + /// + /// Gets or sets the property value for 'SalesYTD'. + /// + /// + /// The property value for 'SalesYTD'. + /// + public decimal SalesYTD { get; set; } + + /// + /// Gets or sets the property value for 'SalesLastYear'. + /// + /// + /// The property value for 'SalesLastYear'. + /// + public decimal SalesLastYear { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Models/VSalesPersonReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Models/VSalesPersonReadModel.cs new file mode 100644 index 0000000..3c65a70 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Models/VSalesPersonReadModel.cs @@ -0,0 +1,191 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VSalesPersonReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Title'. + /// + /// + /// The property value for 'Title'. + /// + public string? Title { get; set; } + + /// + /// Gets or sets the property value for 'FirstName'. + /// + /// + /// The property value for 'FirstName'. + /// + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'MiddleName'. + /// + /// + /// The property value for 'MiddleName'. + /// + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value for 'LastName'. + /// + /// + /// The property value for 'LastName'. + /// + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Suffix'. + /// + /// + /// The property value for 'Suffix'. + /// + public string? Suffix { get; set; } + + /// + /// Gets or sets the property value for 'JobTitle'. + /// + /// + /// The property value for 'JobTitle'. + /// + public string JobTitle { get; set; } = null!; + + /// + /// Gets or sets the property value for 'PhoneNumber'. + /// + /// + /// The property value for 'PhoneNumber'. + /// + public string? PhoneNumber { get; set; } + + /// + /// Gets or sets the property value for 'PhoneNumberType'. + /// + /// + /// The property value for 'PhoneNumberType'. + /// + public string? PhoneNumberType { get; set; } + + /// + /// Gets or sets the property value for 'EmailAddress'. + /// + /// + /// The property value for 'EmailAddress'. + /// + public string? EmailAddress { get; set; } + + /// + /// Gets or sets the property value for 'EmailPromotion'. + /// + /// + /// The property value for 'EmailPromotion'. + /// + public int EmailPromotion { get; set; } + + /// + /// Gets or sets the property value for 'AddressLine1'. + /// + /// + /// The property value for 'AddressLine1'. + /// + public string AddressLine1 { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressLine2'. + /// + /// + /// The property value for 'AddressLine2'. + /// + public string? AddressLine2 { get; set; } + + /// + /// Gets or sets the property value for 'City'. + /// + /// + /// The property value for 'City'. + /// + public string City { get; set; } = null!; + + /// + /// Gets or sets the property value for 'StateProvinceName'. + /// + /// + /// The property value for 'StateProvinceName'. + /// + public string StateProvinceName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'PostalCode'. + /// + /// + /// The property value for 'PostalCode'. + /// + public string PostalCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CountryRegionName'. + /// + /// + /// The property value for 'CountryRegionName'. + /// + public string CountryRegionName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'TerritoryName'. + /// + /// + /// The property value for 'TerritoryName'. + /// + public string? TerritoryName { get; set; } + + /// + /// Gets or sets the property value for 'TerritoryGroup'. + /// + /// + /// The property value for 'TerritoryGroup'. + /// + public string? TerritoryGroup { get; set; } + + /// + /// Gets or sets the property value for 'SalesQuota'. + /// + /// + /// The property value for 'SalesQuota'. + /// + public decimal? SalesQuota { get; set; } + + /// + /// Gets or sets the property value for 'SalesYTD'. + /// + /// + /// The property value for 'SalesYTD'. + /// + public decimal SalesYTD { get; set; } + + /// + /// Gets or sets the property value for 'SalesLastYear'. + /// + /// + /// The property value for 'SalesLastYear'. + /// + public decimal SalesLastYear { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Models/VSalesPersonUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Models/VSalesPersonUpdateModel.cs new file mode 100644 index 0000000..bd8d55b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Models/VSalesPersonUpdateModel.cs @@ -0,0 +1,191 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VSalesPersonUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Title'. + /// + /// + /// The property value for 'Title'. + /// + public string? Title { get; set; } + + /// + /// Gets or sets the property value for 'FirstName'. + /// + /// + /// The property value for 'FirstName'. + /// + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'MiddleName'. + /// + /// + /// The property value for 'MiddleName'. + /// + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value for 'LastName'. + /// + /// + /// The property value for 'LastName'. + /// + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Suffix'. + /// + /// + /// The property value for 'Suffix'. + /// + public string? Suffix { get; set; } + + /// + /// Gets or sets the property value for 'JobTitle'. + /// + /// + /// The property value for 'JobTitle'. + /// + public string JobTitle { get; set; } = null!; + + /// + /// Gets or sets the property value for 'PhoneNumber'. + /// + /// + /// The property value for 'PhoneNumber'. + /// + public string? PhoneNumber { get; set; } + + /// + /// Gets or sets the property value for 'PhoneNumberType'. + /// + /// + /// The property value for 'PhoneNumberType'. + /// + public string? PhoneNumberType { get; set; } + + /// + /// Gets or sets the property value for 'EmailAddress'. + /// + /// + /// The property value for 'EmailAddress'. + /// + public string? EmailAddress { get; set; } + + /// + /// Gets or sets the property value for 'EmailPromotion'. + /// + /// + /// The property value for 'EmailPromotion'. + /// + public int EmailPromotion { get; set; } + + /// + /// Gets or sets the property value for 'AddressLine1'. + /// + /// + /// The property value for 'AddressLine1'. + /// + public string AddressLine1 { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressLine2'. + /// + /// + /// The property value for 'AddressLine2'. + /// + public string? AddressLine2 { get; set; } + + /// + /// Gets or sets the property value for 'City'. + /// + /// + /// The property value for 'City'. + /// + public string City { get; set; } = null!; + + /// + /// Gets or sets the property value for 'StateProvinceName'. + /// + /// + /// The property value for 'StateProvinceName'. + /// + public string StateProvinceName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'PostalCode'. + /// + /// + /// The property value for 'PostalCode'. + /// + public string PostalCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CountryRegionName'. + /// + /// + /// The property value for 'CountryRegionName'. + /// + public string CountryRegionName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'TerritoryName'. + /// + /// + /// The property value for 'TerritoryName'. + /// + public string? TerritoryName { get; set; } + + /// + /// Gets or sets the property value for 'TerritoryGroup'. + /// + /// + /// The property value for 'TerritoryGroup'. + /// + public string? TerritoryGroup { get; set; } + + /// + /// Gets or sets the property value for 'SalesQuota'. + /// + /// + /// The property value for 'SalesQuota'. + /// + public decimal? SalesQuota { get; set; } + + /// + /// Gets or sets the property value for 'SalesYTD'. + /// + /// + /// The property value for 'SalesYTD'. + /// + public decimal SalesYTD { get; set; } + + /// + /// Gets or sets the property value for 'SalesLastYear'. + /// + /// + /// The property value for 'SalesLastYear'. + /// + public decimal SalesLastYear { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Validation/VSalesPersonCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Validation/VSalesPersonCreateModelValidator.cs new file mode 100644 index 0000000..83a40cd --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Validation/VSalesPersonCreateModelValidator.cs @@ -0,0 +1,49 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VSalesPersonCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VSalesPersonCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Title).MaximumLength(8); + RuleFor(p => p.FirstName).NotEmpty(); + RuleFor(p => p.FirstName).MaximumLength(50); + RuleFor(p => p.MiddleName).MaximumLength(50); + RuleFor(p => p.LastName).NotEmpty(); + RuleFor(p => p.LastName).MaximumLength(50); + RuleFor(p => p.Suffix).MaximumLength(10); + RuleFor(p => p.JobTitle).NotEmpty(); + RuleFor(p => p.JobTitle).MaximumLength(50); + RuleFor(p => p.PhoneNumber).MaximumLength(25); + RuleFor(p => p.PhoneNumberType).MaximumLength(50); + RuleFor(p => p.EmailAddress).MaximumLength(50); + RuleFor(p => p.AddressLine1).NotEmpty(); + RuleFor(p => p.AddressLine1).MaximumLength(60); + RuleFor(p => p.AddressLine2).MaximumLength(60); + RuleFor(p => p.City).NotEmpty(); + RuleFor(p => p.City).MaximumLength(30); + RuleFor(p => p.StateProvinceName).NotEmpty(); + RuleFor(p => p.StateProvinceName).MaximumLength(50); + RuleFor(p => p.PostalCode).NotEmpty(); + RuleFor(p => p.PostalCode).MaximumLength(15); + RuleFor(p => p.CountryRegionName).NotEmpty(); + RuleFor(p => p.CountryRegionName).MaximumLength(50); + RuleFor(p => p.TerritoryName).MaximumLength(50); + RuleFor(p => p.TerritoryGroup).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Validation/VSalesPersonUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Validation/VSalesPersonUpdateModelValidator.cs new file mode 100644 index 0000000..6708e6b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Validation/VSalesPersonUpdateModelValidator.cs @@ -0,0 +1,49 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VSalesPersonUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VSalesPersonUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Title).MaximumLength(8); + RuleFor(p => p.FirstName).NotEmpty(); + RuleFor(p => p.FirstName).MaximumLength(50); + RuleFor(p => p.MiddleName).MaximumLength(50); + RuleFor(p => p.LastName).NotEmpty(); + RuleFor(p => p.LastName).MaximumLength(50); + RuleFor(p => p.Suffix).MaximumLength(10); + RuleFor(p => p.JobTitle).NotEmpty(); + RuleFor(p => p.JobTitle).MaximumLength(50); + RuleFor(p => p.PhoneNumber).MaximumLength(25); + RuleFor(p => p.PhoneNumberType).MaximumLength(50); + RuleFor(p => p.EmailAddress).MaximumLength(50); + RuleFor(p => p.AddressLine1).NotEmpty(); + RuleFor(p => p.AddressLine1).MaximumLength(60); + RuleFor(p => p.AddressLine2).MaximumLength(60); + RuleFor(p => p.City).NotEmpty(); + RuleFor(p => p.City).MaximumLength(30); + RuleFor(p => p.StateProvinceName).NotEmpty(); + RuleFor(p => p.StateProvinceName).MaximumLength(50); + RuleFor(p => p.PostalCode).NotEmpty(); + RuleFor(p => p.PostalCode).MaximumLength(15); + RuleFor(p => p.CountryRegionName).NotEmpty(); + RuleFor(p => p.CountryRegionName).MaximumLength(50); + RuleFor(p => p.TerritoryName).MaximumLength(50); + RuleFor(p => p.TerritoryGroup).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Mapping/VSalesPersonSalesByFiscalYearsProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Mapping/VSalesPersonSalesByFiscalYearsProfile.cs new file mode 100644 index 0000000..f61f2e2 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Mapping/VSalesPersonSalesByFiscalYearsProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class VSalesPersonSalesByFiscalYearsProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public VSalesPersonSalesByFiscalYearsProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsCreateModel.cs new file mode 100644 index 0000000..c0f26c9 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsCreateModel.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VSalesPersonSalesByFiscalYearsCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'SalesPersonId'. + /// + /// + /// The property value for 'SalesPersonId'. + /// + public int? SalesPersonId { get; set; } + + /// + /// Gets or sets the property value for 'FullName'. + /// + /// + /// The property value for 'FullName'. + /// + public string? FullName { get; set; } + + /// + /// Gets or sets the property value for 'JobTitle'. + /// + /// + /// The property value for 'JobTitle'. + /// + public string JobTitle { get; set; } = null!; + + /// + /// Gets or sets the property value for 'SalesTerritory'. + /// + /// + /// The property value for 'SalesTerritory'. + /// + public string SalesTerritory { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Number2002'. + /// + /// + /// The property value for 'Number2002'. + /// + public decimal? Number2002 { get; set; } + + /// + /// Gets or sets the property value for 'Number2003'. + /// + /// + /// The property value for 'Number2003'. + /// + public decimal? Number2003 { get; set; } + + /// + /// Gets or sets the property value for 'Number2004'. + /// + /// + /// The property value for 'Number2004'. + /// + public decimal? Number2004 { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsReadModel.cs new file mode 100644 index 0000000..d353c28 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsReadModel.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VSalesPersonSalesByFiscalYearsReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'SalesPersonId'. + /// + /// + /// The property value for 'SalesPersonId'. + /// + public int? SalesPersonId { get; set; } + + /// + /// Gets or sets the property value for 'FullName'. + /// + /// + /// The property value for 'FullName'. + /// + public string? FullName { get; set; } + + /// + /// Gets or sets the property value for 'JobTitle'. + /// + /// + /// The property value for 'JobTitle'. + /// + public string JobTitle { get; set; } = null!; + + /// + /// Gets or sets the property value for 'SalesTerritory'. + /// + /// + /// The property value for 'SalesTerritory'. + /// + public string SalesTerritory { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Number2002'. + /// + /// + /// The property value for 'Number2002'. + /// + public decimal? Number2002 { get; set; } + + /// + /// Gets or sets the property value for 'Number2003'. + /// + /// + /// The property value for 'Number2003'. + /// + public decimal? Number2003 { get; set; } + + /// + /// Gets or sets the property value for 'Number2004'. + /// + /// + /// The property value for 'Number2004'. + /// + public decimal? Number2004 { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsUpdateModel.cs new file mode 100644 index 0000000..1d03fdd --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsUpdateModel.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VSalesPersonSalesByFiscalYearsUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'SalesPersonId'. + /// + /// + /// The property value for 'SalesPersonId'. + /// + public int? SalesPersonId { get; set; } + + /// + /// Gets or sets the property value for 'FullName'. + /// + /// + /// The property value for 'FullName'. + /// + public string? FullName { get; set; } + + /// + /// Gets or sets the property value for 'JobTitle'. + /// + /// + /// The property value for 'JobTitle'. + /// + public string JobTitle { get; set; } = null!; + + /// + /// Gets or sets the property value for 'SalesTerritory'. + /// + /// + /// The property value for 'SalesTerritory'. + /// + public string SalesTerritory { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Number2002'. + /// + /// + /// The property value for 'Number2002'. + /// + public decimal? Number2002 { get; set; } + + /// + /// Gets or sets the property value for 'Number2003'. + /// + /// + /// The property value for 'Number2003'. + /// + public decimal? Number2003 { get; set; } + + /// + /// Gets or sets the property value for 'Number2004'. + /// + /// + /// The property value for 'Number2004'. + /// + public decimal? Number2004 { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Validation/VSalesPersonSalesByFiscalYearsCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Validation/VSalesPersonSalesByFiscalYearsCreateModelValidator.cs new file mode 100644 index 0000000..d0dc71f --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Validation/VSalesPersonSalesByFiscalYearsCreateModelValidator.cs @@ -0,0 +1,29 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VSalesPersonSalesByFiscalYearsCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VSalesPersonSalesByFiscalYearsCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.FullName).MaximumLength(152); + RuleFor(p => p.JobTitle).NotEmpty(); + RuleFor(p => p.JobTitle).MaximumLength(50); + RuleFor(p => p.SalesTerritory).NotEmpty(); + RuleFor(p => p.SalesTerritory).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Validation/VSalesPersonSalesByFiscalYearsUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Validation/VSalesPersonSalesByFiscalYearsUpdateModelValidator.cs new file mode 100644 index 0000000..1b62de3 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Validation/VSalesPersonSalesByFiscalYearsUpdateModelValidator.cs @@ -0,0 +1,29 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VSalesPersonSalesByFiscalYearsUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VSalesPersonSalesByFiscalYearsUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.FullName).MaximumLength(152); + RuleFor(p => p.JobTitle).NotEmpty(); + RuleFor(p => p.JobTitle).MaximumLength(50); + RuleFor(p => p.SalesTerritory).NotEmpty(); + RuleFor(p => p.SalesTerritory).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Mapping/VStateProvinceCountryRegionProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Mapping/VStateProvinceCountryRegionProfile.cs new file mode 100644 index 0000000..e0a540d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Mapping/VStateProvinceCountryRegionProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class VStateProvinceCountryRegionProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public VStateProvinceCountryRegionProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionCreateModel.cs new file mode 100644 index 0000000..a09b319 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionCreateModel.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VStateProvinceCountryRegionCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'StateProvinceId'. + /// + /// + /// The property value for 'StateProvinceId'. + /// + public int StateProvinceId { get; set; } + + /// + /// Gets or sets the property value for 'StateProvinceCode'. + /// + /// + /// The property value for 'StateProvinceCode'. + /// + public string StateProvinceCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'IsOnlyStateProvinceFlag'. + /// + /// + /// The property value for 'IsOnlyStateProvinceFlag'. + /// + public bool IsOnlyStateProvinceFlag { get; set; } + + /// + /// Gets or sets the property value for 'StateProvinceName'. + /// + /// + /// The property value for 'StateProvinceName'. + /// + public string StateProvinceName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'TerritoryId'. + /// + /// + /// The property value for 'TerritoryId'. + /// + public int TerritoryId { get; set; } + + /// + /// Gets or sets the property value for 'CountryRegionCode'. + /// + /// + /// The property value for 'CountryRegionCode'. + /// + public string CountryRegionCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CountryRegionName'. + /// + /// + /// The property value for 'CountryRegionName'. + /// + public string CountryRegionName { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionReadModel.cs new file mode 100644 index 0000000..4880c33 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionReadModel.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VStateProvinceCountryRegionReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'StateProvinceId'. + /// + /// + /// The property value for 'StateProvinceId'. + /// + public int StateProvinceId { get; set; } + + /// + /// Gets or sets the property value for 'StateProvinceCode'. + /// + /// + /// The property value for 'StateProvinceCode'. + /// + public string StateProvinceCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'IsOnlyStateProvinceFlag'. + /// + /// + /// The property value for 'IsOnlyStateProvinceFlag'. + /// + public bool IsOnlyStateProvinceFlag { get; set; } + + /// + /// Gets or sets the property value for 'StateProvinceName'. + /// + /// + /// The property value for 'StateProvinceName'. + /// + public string StateProvinceName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'TerritoryId'. + /// + /// + /// The property value for 'TerritoryId'. + /// + public int TerritoryId { get; set; } + + /// + /// Gets or sets the property value for 'CountryRegionCode'. + /// + /// + /// The property value for 'CountryRegionCode'. + /// + public string CountryRegionCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CountryRegionName'. + /// + /// + /// The property value for 'CountryRegionName'. + /// + public string CountryRegionName { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionUpdateModel.cs new file mode 100644 index 0000000..1cf72bd --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionUpdateModel.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VStateProvinceCountryRegionUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'StateProvinceId'. + /// + /// + /// The property value for 'StateProvinceId'. + /// + public int StateProvinceId { get; set; } + + /// + /// Gets or sets the property value for 'StateProvinceCode'. + /// + /// + /// The property value for 'StateProvinceCode'. + /// + public string StateProvinceCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'IsOnlyStateProvinceFlag'. + /// + /// + /// The property value for 'IsOnlyStateProvinceFlag'. + /// + public bool IsOnlyStateProvinceFlag { get; set; } + + /// + /// Gets or sets the property value for 'StateProvinceName'. + /// + /// + /// The property value for 'StateProvinceName'. + /// + public string StateProvinceName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'TerritoryId'. + /// + /// + /// The property value for 'TerritoryId'. + /// + public int TerritoryId { get; set; } + + /// + /// Gets or sets the property value for 'CountryRegionCode'. + /// + /// + /// The property value for 'CountryRegionCode'. + /// + public string CountryRegionCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CountryRegionName'. + /// + /// + /// The property value for 'CountryRegionName'. + /// + public string CountryRegionName { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Validation/VStateProvinceCountryRegionCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Validation/VStateProvinceCountryRegionCreateModelValidator.cs new file mode 100644 index 0000000..f2da03f --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Validation/VStateProvinceCountryRegionCreateModelValidator.cs @@ -0,0 +1,32 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VStateProvinceCountryRegionCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VStateProvinceCountryRegionCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.StateProvinceCode).NotEmpty(); + RuleFor(p => p.StateProvinceCode).MaximumLength(3); + RuleFor(p => p.StateProvinceName).NotEmpty(); + RuleFor(p => p.StateProvinceName).MaximumLength(50); + RuleFor(p => p.CountryRegionCode).NotEmpty(); + RuleFor(p => p.CountryRegionCode).MaximumLength(3); + RuleFor(p => p.CountryRegionName).NotEmpty(); + RuleFor(p => p.CountryRegionName).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Validation/VStateProvinceCountryRegionUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Validation/VStateProvinceCountryRegionUpdateModelValidator.cs new file mode 100644 index 0000000..8650621 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Validation/VStateProvinceCountryRegionUpdateModelValidator.cs @@ -0,0 +1,32 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VStateProvinceCountryRegionUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VStateProvinceCountryRegionUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.StateProvinceCode).NotEmpty(); + RuleFor(p => p.StateProvinceCode).MaximumLength(3); + RuleFor(p => p.StateProvinceName).NotEmpty(); + RuleFor(p => p.StateProvinceName).MaximumLength(50); + RuleFor(p => p.CountryRegionCode).NotEmpty(); + RuleFor(p => p.CountryRegionCode).MaximumLength(3); + RuleFor(p => p.CountryRegionName).NotEmpty(); + RuleFor(p => p.CountryRegionName).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Mapping/VStoreWithAddressesProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Mapping/VStoreWithAddressesProfile.cs new file mode 100644 index 0000000..7d6bdcc --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Mapping/VStoreWithAddressesProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class VStoreWithAddressesProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public VStoreWithAddressesProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesCreateModel.cs new file mode 100644 index 0000000..0444d15 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesCreateModel.cs @@ -0,0 +1,87 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VStoreWithAddressesCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressType'. + /// + /// + /// The property value for 'AddressType'. + /// + public string AddressType { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressLine1'. + /// + /// + /// The property value for 'AddressLine1'. + /// + public string AddressLine1 { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressLine2'. + /// + /// + /// The property value for 'AddressLine2'. + /// + public string? AddressLine2 { get; set; } + + /// + /// Gets or sets the property value for 'City'. + /// + /// + /// The property value for 'City'. + /// + public string City { get; set; } = null!; + + /// + /// Gets or sets the property value for 'StateProvinceName'. + /// + /// + /// The property value for 'StateProvinceName'. + /// + public string StateProvinceName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'PostalCode'. + /// + /// + /// The property value for 'PostalCode'. + /// + public string PostalCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CountryRegionName'. + /// + /// + /// The property value for 'CountryRegionName'. + /// + public string CountryRegionName { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesReadModel.cs new file mode 100644 index 0000000..ebf19ed --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesReadModel.cs @@ -0,0 +1,87 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VStoreWithAddressesReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressType'. + /// + /// + /// The property value for 'AddressType'. + /// + public string AddressType { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressLine1'. + /// + /// + /// The property value for 'AddressLine1'. + /// + public string AddressLine1 { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressLine2'. + /// + /// + /// The property value for 'AddressLine2'. + /// + public string? AddressLine2 { get; set; } + + /// + /// Gets or sets the property value for 'City'. + /// + /// + /// The property value for 'City'. + /// + public string City { get; set; } = null!; + + /// + /// Gets or sets the property value for 'StateProvinceName'. + /// + /// + /// The property value for 'StateProvinceName'. + /// + public string StateProvinceName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'PostalCode'. + /// + /// + /// The property value for 'PostalCode'. + /// + public string PostalCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CountryRegionName'. + /// + /// + /// The property value for 'CountryRegionName'. + /// + public string CountryRegionName { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesUpdateModel.cs new file mode 100644 index 0000000..50d2b24 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesUpdateModel.cs @@ -0,0 +1,87 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VStoreWithAddressesUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressType'. + /// + /// + /// The property value for 'AddressType'. + /// + public string AddressType { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressLine1'. + /// + /// + /// The property value for 'AddressLine1'. + /// + public string AddressLine1 { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressLine2'. + /// + /// + /// The property value for 'AddressLine2'. + /// + public string? AddressLine2 { get; set; } + + /// + /// Gets or sets the property value for 'City'. + /// + /// + /// The property value for 'City'. + /// + public string City { get; set; } = null!; + + /// + /// Gets or sets the property value for 'StateProvinceName'. + /// + /// + /// The property value for 'StateProvinceName'. + /// + public string StateProvinceName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'PostalCode'. + /// + /// + /// The property value for 'PostalCode'. + /// + public string PostalCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CountryRegionName'. + /// + /// + /// The property value for 'CountryRegionName'. + /// + public string CountryRegionName { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Validation/VStoreWithAddressesCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Validation/VStoreWithAddressesCreateModelValidator.cs new file mode 100644 index 0000000..31cd635 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Validation/VStoreWithAddressesCreateModelValidator.cs @@ -0,0 +1,39 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VStoreWithAddressesCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VStoreWithAddressesCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + RuleFor(p => p.AddressType).NotEmpty(); + RuleFor(p => p.AddressType).MaximumLength(50); + RuleFor(p => p.AddressLine1).NotEmpty(); + RuleFor(p => p.AddressLine1).MaximumLength(60); + RuleFor(p => p.AddressLine2).MaximumLength(60); + RuleFor(p => p.City).NotEmpty(); + RuleFor(p => p.City).MaximumLength(30); + RuleFor(p => p.StateProvinceName).NotEmpty(); + RuleFor(p => p.StateProvinceName).MaximumLength(50); + RuleFor(p => p.PostalCode).NotEmpty(); + RuleFor(p => p.PostalCode).MaximumLength(15); + RuleFor(p => p.CountryRegionName).NotEmpty(); + RuleFor(p => p.CountryRegionName).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Validation/VStoreWithAddressesUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Validation/VStoreWithAddressesUpdateModelValidator.cs new file mode 100644 index 0000000..3b30215 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Validation/VStoreWithAddressesUpdateModelValidator.cs @@ -0,0 +1,39 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VStoreWithAddressesUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VStoreWithAddressesUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + RuleFor(p => p.AddressType).NotEmpty(); + RuleFor(p => p.AddressType).MaximumLength(50); + RuleFor(p => p.AddressLine1).NotEmpty(); + RuleFor(p => p.AddressLine1).MaximumLength(60); + RuleFor(p => p.AddressLine2).MaximumLength(60); + RuleFor(p => p.City).NotEmpty(); + RuleFor(p => p.City).MaximumLength(30); + RuleFor(p => p.StateProvinceName).NotEmpty(); + RuleFor(p => p.StateProvinceName).MaximumLength(50); + RuleFor(p => p.PostalCode).NotEmpty(); + RuleFor(p => p.PostalCode).MaximumLength(15); + RuleFor(p => p.CountryRegionName).NotEmpty(); + RuleFor(p => p.CountryRegionName).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Mapping/VStoreWithContactsProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Mapping/VStoreWithContactsProfile.cs new file mode 100644 index 0000000..9228f03 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Mapping/VStoreWithContactsProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class VStoreWithContactsProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public VStoreWithContactsProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsCreateModel.cs new file mode 100644 index 0000000..72d5169 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsCreateModel.cs @@ -0,0 +1,111 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VStoreWithContactsCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ContactType'. + /// + /// + /// The property value for 'ContactType'. + /// + public string ContactType { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Title'. + /// + /// + /// The property value for 'Title'. + /// + public string? Title { get; set; } + + /// + /// Gets or sets the property value for 'FirstName'. + /// + /// + /// The property value for 'FirstName'. + /// + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'MiddleName'. + /// + /// + /// The property value for 'MiddleName'. + /// + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value for 'LastName'. + /// + /// + /// The property value for 'LastName'. + /// + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Suffix'. + /// + /// + /// The property value for 'Suffix'. + /// + public string? Suffix { get; set; } + + /// + /// Gets or sets the property value for 'PhoneNumber'. + /// + /// + /// The property value for 'PhoneNumber'. + /// + public string? PhoneNumber { get; set; } + + /// + /// Gets or sets the property value for 'PhoneNumberType'. + /// + /// + /// The property value for 'PhoneNumberType'. + /// + public string? PhoneNumberType { get; set; } + + /// + /// Gets or sets the property value for 'EmailAddress'. + /// + /// + /// The property value for 'EmailAddress'. + /// + public string? EmailAddress { get; set; } + + /// + /// Gets or sets the property value for 'EmailPromotion'. + /// + /// + /// The property value for 'EmailPromotion'. + /// + public int EmailPromotion { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsReadModel.cs new file mode 100644 index 0000000..87d7d34 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsReadModel.cs @@ -0,0 +1,111 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VStoreWithContactsReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ContactType'. + /// + /// + /// The property value for 'ContactType'. + /// + public string ContactType { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Title'. + /// + /// + /// The property value for 'Title'. + /// + public string? Title { get; set; } + + /// + /// Gets or sets the property value for 'FirstName'. + /// + /// + /// The property value for 'FirstName'. + /// + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'MiddleName'. + /// + /// + /// The property value for 'MiddleName'. + /// + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value for 'LastName'. + /// + /// + /// The property value for 'LastName'. + /// + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Suffix'. + /// + /// + /// The property value for 'Suffix'. + /// + public string? Suffix { get; set; } + + /// + /// Gets or sets the property value for 'PhoneNumber'. + /// + /// + /// The property value for 'PhoneNumber'. + /// + public string? PhoneNumber { get; set; } + + /// + /// Gets or sets the property value for 'PhoneNumberType'. + /// + /// + /// The property value for 'PhoneNumberType'. + /// + public string? PhoneNumberType { get; set; } + + /// + /// Gets or sets the property value for 'EmailAddress'. + /// + /// + /// The property value for 'EmailAddress'. + /// + public string? EmailAddress { get; set; } + + /// + /// Gets or sets the property value for 'EmailPromotion'. + /// + /// + /// The property value for 'EmailPromotion'. + /// + public int EmailPromotion { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsUpdateModel.cs new file mode 100644 index 0000000..7e8cafb --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsUpdateModel.cs @@ -0,0 +1,111 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VStoreWithContactsUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ContactType'. + /// + /// + /// The property value for 'ContactType'. + /// + public string ContactType { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Title'. + /// + /// + /// The property value for 'Title'. + /// + public string? Title { get; set; } + + /// + /// Gets or sets the property value for 'FirstName'. + /// + /// + /// The property value for 'FirstName'. + /// + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'MiddleName'. + /// + /// + /// The property value for 'MiddleName'. + /// + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value for 'LastName'. + /// + /// + /// The property value for 'LastName'. + /// + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Suffix'. + /// + /// + /// The property value for 'Suffix'. + /// + public string? Suffix { get; set; } + + /// + /// Gets or sets the property value for 'PhoneNumber'. + /// + /// + /// The property value for 'PhoneNumber'. + /// + public string? PhoneNumber { get; set; } + + /// + /// Gets or sets the property value for 'PhoneNumberType'. + /// + /// + /// The property value for 'PhoneNumberType'. + /// + public string? PhoneNumberType { get; set; } + + /// + /// Gets or sets the property value for 'EmailAddress'. + /// + /// + /// The property value for 'EmailAddress'. + /// + public string? EmailAddress { get; set; } + + /// + /// Gets or sets the property value for 'EmailPromotion'. + /// + /// + /// The property value for 'EmailPromotion'. + /// + public int EmailPromotion { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Validation/VStoreWithContactsCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Validation/VStoreWithContactsCreateModelValidator.cs new file mode 100644 index 0000000..819fd3b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Validation/VStoreWithContactsCreateModelValidator.cs @@ -0,0 +1,38 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VStoreWithContactsCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VStoreWithContactsCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + RuleFor(p => p.ContactType).NotEmpty(); + RuleFor(p => p.ContactType).MaximumLength(50); + RuleFor(p => p.Title).MaximumLength(8); + RuleFor(p => p.FirstName).NotEmpty(); + RuleFor(p => p.FirstName).MaximumLength(50); + RuleFor(p => p.MiddleName).MaximumLength(50); + RuleFor(p => p.LastName).NotEmpty(); + RuleFor(p => p.LastName).MaximumLength(50); + RuleFor(p => p.Suffix).MaximumLength(10); + RuleFor(p => p.PhoneNumber).MaximumLength(25); + RuleFor(p => p.PhoneNumberType).MaximumLength(50); + RuleFor(p => p.EmailAddress).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Validation/VStoreWithContactsUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Validation/VStoreWithContactsUpdateModelValidator.cs new file mode 100644 index 0000000..1f4c4d9 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Validation/VStoreWithContactsUpdateModelValidator.cs @@ -0,0 +1,38 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VStoreWithContactsUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VStoreWithContactsUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + RuleFor(p => p.ContactType).NotEmpty(); + RuleFor(p => p.ContactType).MaximumLength(50); + RuleFor(p => p.Title).MaximumLength(8); + RuleFor(p => p.FirstName).NotEmpty(); + RuleFor(p => p.FirstName).MaximumLength(50); + RuleFor(p => p.MiddleName).MaximumLength(50); + RuleFor(p => p.LastName).NotEmpty(); + RuleFor(p => p.LastName).MaximumLength(50); + RuleFor(p => p.Suffix).MaximumLength(10); + RuleFor(p => p.PhoneNumber).MaximumLength(25); + RuleFor(p => p.PhoneNumberType).MaximumLength(50); + RuleFor(p => p.EmailAddress).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Mapping/VStoreWithDemographicsProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Mapping/VStoreWithDemographicsProfile.cs new file mode 100644 index 0000000..c9d25d2 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Mapping/VStoreWithDemographicsProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class VStoreWithDemographicsProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public VStoreWithDemographicsProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsCreateModel.cs new file mode 100644 index 0000000..cc6de8b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsCreateModel.cs @@ -0,0 +1,111 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VStoreWithDemographicsCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AnnualSales'. + /// + /// + /// The property value for 'AnnualSales'. + /// + public decimal? AnnualSales { get; set; } + + /// + /// Gets or sets the property value for 'AnnualRevenue'. + /// + /// + /// The property value for 'AnnualRevenue'. + /// + public decimal? AnnualRevenue { get; set; } + + /// + /// Gets or sets the property value for 'BankName'. + /// + /// + /// The property value for 'BankName'. + /// + public string? BankName { get; set; } + + /// + /// Gets or sets the property value for 'BusinessType'. + /// + /// + /// The property value for 'BusinessType'. + /// + public string? BusinessType { get; set; } + + /// + /// Gets or sets the property value for 'YearOpened'. + /// + /// + /// The property value for 'YearOpened'. + /// + public int? YearOpened { get; set; } + + /// + /// Gets or sets the property value for 'Specialty'. + /// + /// + /// The property value for 'Specialty'. + /// + public string? Specialty { get; set; } + + /// + /// Gets or sets the property value for 'SquareFeet'. + /// + /// + /// The property value for 'SquareFeet'. + /// + public int? SquareFeet { get; set; } + + /// + /// Gets or sets the property value for 'Brands'. + /// + /// + /// The property value for 'Brands'. + /// + public string? Brands { get; set; } + + /// + /// Gets or sets the property value for 'Internet'. + /// + /// + /// The property value for 'Internet'. + /// + public string? Internet { get; set; } + + /// + /// Gets or sets the property value for 'NumberEmployees'. + /// + /// + /// The property value for 'NumberEmployees'. + /// + public int? NumberEmployees { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsReadModel.cs new file mode 100644 index 0000000..61d1d06 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsReadModel.cs @@ -0,0 +1,111 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VStoreWithDemographicsReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AnnualSales'. + /// + /// + /// The property value for 'AnnualSales'. + /// + public decimal? AnnualSales { get; set; } + + /// + /// Gets or sets the property value for 'AnnualRevenue'. + /// + /// + /// The property value for 'AnnualRevenue'. + /// + public decimal? AnnualRevenue { get; set; } + + /// + /// Gets or sets the property value for 'BankName'. + /// + /// + /// The property value for 'BankName'. + /// + public string? BankName { get; set; } + + /// + /// Gets or sets the property value for 'BusinessType'. + /// + /// + /// The property value for 'BusinessType'. + /// + public string? BusinessType { get; set; } + + /// + /// Gets or sets the property value for 'YearOpened'. + /// + /// + /// The property value for 'YearOpened'. + /// + public int? YearOpened { get; set; } + + /// + /// Gets or sets the property value for 'Specialty'. + /// + /// + /// The property value for 'Specialty'. + /// + public string? Specialty { get; set; } + + /// + /// Gets or sets the property value for 'SquareFeet'. + /// + /// + /// The property value for 'SquareFeet'. + /// + public int? SquareFeet { get; set; } + + /// + /// Gets or sets the property value for 'Brands'. + /// + /// + /// The property value for 'Brands'. + /// + public string? Brands { get; set; } + + /// + /// Gets or sets the property value for 'Internet'. + /// + /// + /// The property value for 'Internet'. + /// + public string? Internet { get; set; } + + /// + /// Gets or sets the property value for 'NumberEmployees'. + /// + /// + /// The property value for 'NumberEmployees'. + /// + public int? NumberEmployees { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsUpdateModel.cs new file mode 100644 index 0000000..bc5cafe --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsUpdateModel.cs @@ -0,0 +1,111 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VStoreWithDemographicsUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AnnualSales'. + /// + /// + /// The property value for 'AnnualSales'. + /// + public decimal? AnnualSales { get; set; } + + /// + /// Gets or sets the property value for 'AnnualRevenue'. + /// + /// + /// The property value for 'AnnualRevenue'. + /// + public decimal? AnnualRevenue { get; set; } + + /// + /// Gets or sets the property value for 'BankName'. + /// + /// + /// The property value for 'BankName'. + /// + public string? BankName { get; set; } + + /// + /// Gets or sets the property value for 'BusinessType'. + /// + /// + /// The property value for 'BusinessType'. + /// + public string? BusinessType { get; set; } + + /// + /// Gets or sets the property value for 'YearOpened'. + /// + /// + /// The property value for 'YearOpened'. + /// + public int? YearOpened { get; set; } + + /// + /// Gets or sets the property value for 'Specialty'. + /// + /// + /// The property value for 'Specialty'. + /// + public string? Specialty { get; set; } + + /// + /// Gets or sets the property value for 'SquareFeet'. + /// + /// + /// The property value for 'SquareFeet'. + /// + public int? SquareFeet { get; set; } + + /// + /// Gets or sets the property value for 'Brands'. + /// + /// + /// The property value for 'Brands'. + /// + public string? Brands { get; set; } + + /// + /// Gets or sets the property value for 'Internet'. + /// + /// + /// The property value for 'Internet'. + /// + public string? Internet { get; set; } + + /// + /// Gets or sets the property value for 'NumberEmployees'. + /// + /// + /// The property value for 'NumberEmployees'. + /// + public int? NumberEmployees { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Validation/VStoreWithDemographicsCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Validation/VStoreWithDemographicsCreateModelValidator.cs new file mode 100644 index 0000000..da339b5 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Validation/VStoreWithDemographicsCreateModelValidator.cs @@ -0,0 +1,31 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VStoreWithDemographicsCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VStoreWithDemographicsCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + RuleFor(p => p.BankName).MaximumLength(50); + RuleFor(p => p.BusinessType).MaximumLength(5); + RuleFor(p => p.Specialty).MaximumLength(50); + RuleFor(p => p.Brands).MaximumLength(30); + RuleFor(p => p.Internet).MaximumLength(30); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Validation/VStoreWithDemographicsUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Validation/VStoreWithDemographicsUpdateModelValidator.cs new file mode 100644 index 0000000..f4fad26 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Validation/VStoreWithDemographicsUpdateModelValidator.cs @@ -0,0 +1,31 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VStoreWithDemographicsUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VStoreWithDemographicsUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + RuleFor(p => p.BankName).MaximumLength(50); + RuleFor(p => p.BusinessType).MaximumLength(5); + RuleFor(p => p.Specialty).MaximumLength(50); + RuleFor(p => p.Brands).MaximumLength(30); + RuleFor(p => p.Internet).MaximumLength(30); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Mapping/VVendorWithAddressesProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Mapping/VVendorWithAddressesProfile.cs new file mode 100644 index 0000000..299d87a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Mapping/VVendorWithAddressesProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class VVendorWithAddressesProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public VVendorWithAddressesProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesCreateModel.cs new file mode 100644 index 0000000..122639e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesCreateModel.cs @@ -0,0 +1,87 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VVendorWithAddressesCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressType'. + /// + /// + /// The property value for 'AddressType'. + /// + public string AddressType { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressLine1'. + /// + /// + /// The property value for 'AddressLine1'. + /// + public string AddressLine1 { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressLine2'. + /// + /// + /// The property value for 'AddressLine2'. + /// + public string? AddressLine2 { get; set; } + + /// + /// Gets or sets the property value for 'City'. + /// + /// + /// The property value for 'City'. + /// + public string City { get; set; } = null!; + + /// + /// Gets or sets the property value for 'StateProvinceName'. + /// + /// + /// The property value for 'StateProvinceName'. + /// + public string StateProvinceName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'PostalCode'. + /// + /// + /// The property value for 'PostalCode'. + /// + public string PostalCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CountryRegionName'. + /// + /// + /// The property value for 'CountryRegionName'. + /// + public string CountryRegionName { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesReadModel.cs new file mode 100644 index 0000000..0f66d75 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesReadModel.cs @@ -0,0 +1,87 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VVendorWithAddressesReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressType'. + /// + /// + /// The property value for 'AddressType'. + /// + public string AddressType { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressLine1'. + /// + /// + /// The property value for 'AddressLine1'. + /// + public string AddressLine1 { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressLine2'. + /// + /// + /// The property value for 'AddressLine2'. + /// + public string? AddressLine2 { get; set; } + + /// + /// Gets or sets the property value for 'City'. + /// + /// + /// The property value for 'City'. + /// + public string City { get; set; } = null!; + + /// + /// Gets or sets the property value for 'StateProvinceName'. + /// + /// + /// The property value for 'StateProvinceName'. + /// + public string StateProvinceName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'PostalCode'. + /// + /// + /// The property value for 'PostalCode'. + /// + public string PostalCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CountryRegionName'. + /// + /// + /// The property value for 'CountryRegionName'. + /// + public string CountryRegionName { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesUpdateModel.cs new file mode 100644 index 0000000..fcfeb98 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesUpdateModel.cs @@ -0,0 +1,87 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VVendorWithAddressesUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressType'. + /// + /// + /// The property value for 'AddressType'. + /// + public string AddressType { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressLine1'. + /// + /// + /// The property value for 'AddressLine1'. + /// + public string AddressLine1 { get; set; } = null!; + + /// + /// Gets or sets the property value for 'AddressLine2'. + /// + /// + /// The property value for 'AddressLine2'. + /// + public string? AddressLine2 { get; set; } + + /// + /// Gets or sets the property value for 'City'. + /// + /// + /// The property value for 'City'. + /// + public string City { get; set; } = null!; + + /// + /// Gets or sets the property value for 'StateProvinceName'. + /// + /// + /// The property value for 'StateProvinceName'. + /// + public string StateProvinceName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'PostalCode'. + /// + /// + /// The property value for 'PostalCode'. + /// + public string PostalCode { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CountryRegionName'. + /// + /// + /// The property value for 'CountryRegionName'. + /// + public string CountryRegionName { get; set; } = null!; + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Validation/VVendorWithAddressesCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Validation/VVendorWithAddressesCreateModelValidator.cs new file mode 100644 index 0000000..de0bf1f --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Validation/VVendorWithAddressesCreateModelValidator.cs @@ -0,0 +1,39 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VVendorWithAddressesCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VVendorWithAddressesCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + RuleFor(p => p.AddressType).NotEmpty(); + RuleFor(p => p.AddressType).MaximumLength(50); + RuleFor(p => p.AddressLine1).NotEmpty(); + RuleFor(p => p.AddressLine1).MaximumLength(60); + RuleFor(p => p.AddressLine2).MaximumLength(60); + RuleFor(p => p.City).NotEmpty(); + RuleFor(p => p.City).MaximumLength(30); + RuleFor(p => p.StateProvinceName).NotEmpty(); + RuleFor(p => p.StateProvinceName).MaximumLength(50); + RuleFor(p => p.PostalCode).NotEmpty(); + RuleFor(p => p.PostalCode).MaximumLength(15); + RuleFor(p => p.CountryRegionName).NotEmpty(); + RuleFor(p => p.CountryRegionName).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Validation/VVendorWithAddressesUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Validation/VVendorWithAddressesUpdateModelValidator.cs new file mode 100644 index 0000000..2cfb5be --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Validation/VVendorWithAddressesUpdateModelValidator.cs @@ -0,0 +1,39 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VVendorWithAddressesUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VVendorWithAddressesUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + RuleFor(p => p.AddressType).NotEmpty(); + RuleFor(p => p.AddressType).MaximumLength(50); + RuleFor(p => p.AddressLine1).NotEmpty(); + RuleFor(p => p.AddressLine1).MaximumLength(60); + RuleFor(p => p.AddressLine2).MaximumLength(60); + RuleFor(p => p.City).NotEmpty(); + RuleFor(p => p.City).MaximumLength(30); + RuleFor(p => p.StateProvinceName).NotEmpty(); + RuleFor(p => p.StateProvinceName).MaximumLength(50); + RuleFor(p => p.PostalCode).NotEmpty(); + RuleFor(p => p.PostalCode).MaximumLength(15); + RuleFor(p => p.CountryRegionName).NotEmpty(); + RuleFor(p => p.CountryRegionName).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Mapping/VVendorWithContactsProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Mapping/VVendorWithContactsProfile.cs new file mode 100644 index 0000000..5811dad --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Mapping/VVendorWithContactsProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class VVendorWithContactsProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public VVendorWithContactsProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsCreateModel.cs new file mode 100644 index 0000000..d34249b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsCreateModel.cs @@ -0,0 +1,111 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VVendorWithContactsCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ContactType'. + /// + /// + /// The property value for 'ContactType'. + /// + public string ContactType { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Title'. + /// + /// + /// The property value for 'Title'. + /// + public string? Title { get; set; } + + /// + /// Gets or sets the property value for 'FirstName'. + /// + /// + /// The property value for 'FirstName'. + /// + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'MiddleName'. + /// + /// + /// The property value for 'MiddleName'. + /// + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value for 'LastName'. + /// + /// + /// The property value for 'LastName'. + /// + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Suffix'. + /// + /// + /// The property value for 'Suffix'. + /// + public string? Suffix { get; set; } + + /// + /// Gets or sets the property value for 'PhoneNumber'. + /// + /// + /// The property value for 'PhoneNumber'. + /// + public string? PhoneNumber { get; set; } + + /// + /// Gets or sets the property value for 'PhoneNumberType'. + /// + /// + /// The property value for 'PhoneNumberType'. + /// + public string? PhoneNumberType { get; set; } + + /// + /// Gets or sets the property value for 'EmailAddress'. + /// + /// + /// The property value for 'EmailAddress'. + /// + public string? EmailAddress { get; set; } + + /// + /// Gets or sets the property value for 'EmailPromotion'. + /// + /// + /// The property value for 'EmailPromotion'. + /// + public int EmailPromotion { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsReadModel.cs new file mode 100644 index 0000000..4ad5fd9 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsReadModel.cs @@ -0,0 +1,111 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VVendorWithContactsReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ContactType'. + /// + /// + /// The property value for 'ContactType'. + /// + public string ContactType { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Title'. + /// + /// + /// The property value for 'Title'. + /// + public string? Title { get; set; } + + /// + /// Gets or sets the property value for 'FirstName'. + /// + /// + /// The property value for 'FirstName'. + /// + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'MiddleName'. + /// + /// + /// The property value for 'MiddleName'. + /// + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value for 'LastName'. + /// + /// + /// The property value for 'LastName'. + /// + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Suffix'. + /// + /// + /// The property value for 'Suffix'. + /// + public string? Suffix { get; set; } + + /// + /// Gets or sets the property value for 'PhoneNumber'. + /// + /// + /// The property value for 'PhoneNumber'. + /// + public string? PhoneNumber { get; set; } + + /// + /// Gets or sets the property value for 'PhoneNumberType'. + /// + /// + /// The property value for 'PhoneNumberType'. + /// + public string? PhoneNumberType { get; set; } + + /// + /// Gets or sets the property value for 'EmailAddress'. + /// + /// + /// The property value for 'EmailAddress'. + /// + public string? EmailAddress { get; set; } + + /// + /// Gets or sets the property value for 'EmailPromotion'. + /// + /// + /// The property value for 'EmailPromotion'. + /// + public int EmailPromotion { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsUpdateModel.cs new file mode 100644 index 0000000..52bb891 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsUpdateModel.cs @@ -0,0 +1,111 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VVendorWithContactsUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'ContactType'. + /// + /// + /// The property value for 'ContactType'. + /// + public string ContactType { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Title'. + /// + /// + /// The property value for 'Title'. + /// + public string? Title { get; set; } + + /// + /// Gets or sets the property value for 'FirstName'. + /// + /// + /// The property value for 'FirstName'. + /// + public string FirstName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'MiddleName'. + /// + /// + /// The property value for 'MiddleName'. + /// + public string? MiddleName { get; set; } + + /// + /// Gets or sets the property value for 'LastName'. + /// + /// + /// The property value for 'LastName'. + /// + public string LastName { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Suffix'. + /// + /// + /// The property value for 'Suffix'. + /// + public string? Suffix { get; set; } + + /// + /// Gets or sets the property value for 'PhoneNumber'. + /// + /// + /// The property value for 'PhoneNumber'. + /// + public string? PhoneNumber { get; set; } + + /// + /// Gets or sets the property value for 'PhoneNumberType'. + /// + /// + /// The property value for 'PhoneNumberType'. + /// + public string? PhoneNumberType { get; set; } + + /// + /// Gets or sets the property value for 'EmailAddress'. + /// + /// + /// The property value for 'EmailAddress'. + /// + public string? EmailAddress { get; set; } + + /// + /// Gets or sets the property value for 'EmailPromotion'. + /// + /// + /// The property value for 'EmailPromotion'. + /// + public int EmailPromotion { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Validation/VVendorWithContactsCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Validation/VVendorWithContactsCreateModelValidator.cs new file mode 100644 index 0000000..9767ba7 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Validation/VVendorWithContactsCreateModelValidator.cs @@ -0,0 +1,38 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VVendorWithContactsCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VVendorWithContactsCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + RuleFor(p => p.ContactType).NotEmpty(); + RuleFor(p => p.ContactType).MaximumLength(50); + RuleFor(p => p.Title).MaximumLength(8); + RuleFor(p => p.FirstName).NotEmpty(); + RuleFor(p => p.FirstName).MaximumLength(50); + RuleFor(p => p.MiddleName).MaximumLength(50); + RuleFor(p => p.LastName).NotEmpty(); + RuleFor(p => p.LastName).MaximumLength(50); + RuleFor(p => p.Suffix).MaximumLength(10); + RuleFor(p => p.PhoneNumber).MaximumLength(25); + RuleFor(p => p.PhoneNumberType).MaximumLength(50); + RuleFor(p => p.EmailAddress).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Validation/VVendorWithContactsUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Validation/VVendorWithContactsUpdateModelValidator.cs new file mode 100644 index 0000000..eaba23c --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Validation/VVendorWithContactsUpdateModelValidator.cs @@ -0,0 +1,38 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VVendorWithContactsUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VVendorWithContactsUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + RuleFor(p => p.ContactType).NotEmpty(); + RuleFor(p => p.ContactType).MaximumLength(50); + RuleFor(p => p.Title).MaximumLength(8); + RuleFor(p => p.FirstName).NotEmpty(); + RuleFor(p => p.FirstName).MaximumLength(50); + RuleFor(p => p.MiddleName).MaximumLength(50); + RuleFor(p => p.LastName).NotEmpty(); + RuleFor(p => p.LastName).MaximumLength(50); + RuleFor(p => p.Suffix).MaximumLength(10); + RuleFor(p => p.PhoneNumber).MaximumLength(25); + RuleFor(p => p.PhoneNumberType).MaximumLength(50); + RuleFor(p => p.EmailAddress).MaximumLength(50); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Vendor/Mapping/VendorProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Vendor/Mapping/VendorProfile.cs new file mode 100644 index 0000000..acd88bb --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Vendor/Mapping/VendorProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class VendorProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public VendorProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorCreateModel.cs new file mode 100644 index 0000000..630ca5f --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorCreateModel.cs @@ -0,0 +1,79 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VendorCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'AccountNumber'. + /// + /// + /// The property value for 'AccountNumber'. + /// + public string AccountNumber { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CreditRating'. + /// + /// + /// The property value for 'CreditRating'. + /// + public byte CreditRating { get; set; } + + /// + /// Gets or sets the property value for 'PreferredVendorStatus'. + /// + /// + /// The property value for 'PreferredVendorStatus'. + /// + public bool PreferredVendorStatus { get; set; } + + /// + /// Gets or sets the property value for 'ActiveFlag'. + /// + /// + /// The property value for 'ActiveFlag'. + /// + public bool ActiveFlag { get; set; } + + /// + /// Gets or sets the property value for 'PurchasingWebServiceURL'. + /// + /// + /// The property value for 'PurchasingWebServiceURL'. + /// + public string? PurchasingWebServiceURL { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorReadModel.cs new file mode 100644 index 0000000..52e5b3e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorReadModel.cs @@ -0,0 +1,79 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VendorReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'AccountNumber'. + /// + /// + /// The property value for 'AccountNumber'. + /// + public string AccountNumber { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CreditRating'. + /// + /// + /// The property value for 'CreditRating'. + /// + public byte CreditRating { get; set; } + + /// + /// Gets or sets the property value for 'PreferredVendorStatus'. + /// + /// + /// The property value for 'PreferredVendorStatus'. + /// + public bool PreferredVendorStatus { get; set; } + + /// + /// Gets or sets the property value for 'ActiveFlag'. + /// + /// + /// The property value for 'ActiveFlag'. + /// + public bool ActiveFlag { get; set; } + + /// + /// Gets or sets the property value for 'PurchasingWebServiceURL'. + /// + /// + /// The property value for 'PurchasingWebServiceURL'. + /// + public string? PurchasingWebServiceURL { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorUpdateModel.cs new file mode 100644 index 0000000..08cb1ee --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorUpdateModel.cs @@ -0,0 +1,79 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class VendorUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'BusinessEntityId'. + /// + /// + /// The property value for 'BusinessEntityId'. + /// + public int BusinessEntityId { get; set; } + + /// + /// Gets or sets the property value for 'AccountNumber'. + /// + /// + /// The property value for 'AccountNumber'. + /// + public string AccountNumber { get; set; } = null!; + + /// + /// Gets or sets the property value for 'Name'. + /// + /// + /// The property value for 'Name'. + /// + public string Name { get; set; } = null!; + + /// + /// Gets or sets the property value for 'CreditRating'. + /// + /// + /// The property value for 'CreditRating'. + /// + public byte CreditRating { get; set; } + + /// + /// Gets or sets the property value for 'PreferredVendorStatus'. + /// + /// + /// The property value for 'PreferredVendorStatus'. + /// + public bool PreferredVendorStatus { get; set; } + + /// + /// Gets or sets the property value for 'ActiveFlag'. + /// + /// + /// The property value for 'ActiveFlag'. + /// + public bool ActiveFlag { get; set; } + + /// + /// Gets or sets the property value for 'PurchasingWebServiceURL'. + /// + /// + /// The property value for 'PurchasingWebServiceURL'. + /// + public string? PurchasingWebServiceURL { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Vendor/Validation/VendorCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Vendor/Validation/VendorCreateModelValidator.cs new file mode 100644 index 0000000..7aeeb36 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Vendor/Validation/VendorCreateModelValidator.cs @@ -0,0 +1,29 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VendorCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VendorCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.AccountNumber).NotEmpty(); + RuleFor(p => p.AccountNumber).MaximumLength(15); + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + RuleFor(p => p.PurchasingWebServiceURL).MaximumLength(1024); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/Vendor/Validation/VendorUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Vendor/Validation/VendorUpdateModelValidator.cs new file mode 100644 index 0000000..b604255 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/Vendor/Validation/VendorUpdateModelValidator.cs @@ -0,0 +1,29 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class VendorUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public VendorUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.AccountNumber).NotEmpty(); + RuleFor(p => p.AccountNumber).MaximumLength(15); + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + RuleFor(p => p.PurchasingWebServiceURL).MaximumLength(1024); + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Mapping/WorkOrderProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Mapping/WorkOrderProfile.cs new file mode 100644 index 0000000..f215e40 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Mapping/WorkOrderProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class WorkOrderProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public WorkOrderProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderCreateModel.cs new file mode 100644 index 0000000..ca90b2a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderCreateModel.cs @@ -0,0 +1,95 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class WorkOrderCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'OrderQty'. + /// + /// + /// The property value for 'OrderQty'. + /// + public int OrderQty { get; set; } + + /// + /// Gets or sets the property value for 'StockedQty'. + /// + /// + /// The property value for 'StockedQty'. + /// + public int StockedQty { get; set; } + + /// + /// Gets or sets the property value for 'ScrappedQty'. + /// + /// + /// The property value for 'ScrappedQty'. + /// + public short ScrappedQty { get; set; } + + /// + /// Gets or sets the property value for 'StartDate'. + /// + /// + /// The property value for 'StartDate'. + /// + public DateTime StartDate { get; set; } + + /// + /// Gets or sets the property value for 'EndDate'. + /// + /// + /// The property value for 'EndDate'. + /// + public DateTime? EndDate { get; set; } + + /// + /// Gets or sets the property value for 'DueDate'. + /// + /// + /// The property value for 'DueDate'. + /// + public DateTime DueDate { get; set; } + + /// + /// Gets or sets the property value for 'ScrapReasonId'. + /// + /// + /// The property value for 'ScrapReasonId'. + /// + public short? ScrapReasonId { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderReadModel.cs new file mode 100644 index 0000000..4ab4ecf --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderReadModel.cs @@ -0,0 +1,95 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class WorkOrderReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'OrderQty'. + /// + /// + /// The property value for 'OrderQty'. + /// + public int OrderQty { get; set; } + + /// + /// Gets or sets the property value for 'StockedQty'. + /// + /// + /// The property value for 'StockedQty'. + /// + public int StockedQty { get; set; } + + /// + /// Gets or sets the property value for 'ScrappedQty'. + /// + /// + /// The property value for 'ScrappedQty'. + /// + public short ScrappedQty { get; set; } + + /// + /// Gets or sets the property value for 'StartDate'. + /// + /// + /// The property value for 'StartDate'. + /// + public DateTime StartDate { get; set; } + + /// + /// Gets or sets the property value for 'EndDate'. + /// + /// + /// The property value for 'EndDate'. + /// + public DateTime? EndDate { get; set; } + + /// + /// Gets or sets the property value for 'DueDate'. + /// + /// + /// The property value for 'DueDate'. + /// + public DateTime DueDate { get; set; } + + /// + /// Gets or sets the property value for 'ScrapReasonId'. + /// + /// + /// The property value for 'ScrapReasonId'. + /// + public short? ScrapReasonId { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderUpdateModel.cs new file mode 100644 index 0000000..25dbf18 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderUpdateModel.cs @@ -0,0 +1,95 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class WorkOrderUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'Id'. + /// + /// + /// The property value for 'Id'. + /// + public int Id { get; set; } + + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'OrderQty'. + /// + /// + /// The property value for 'OrderQty'. + /// + public int OrderQty { get; set; } + + /// + /// Gets or sets the property value for 'StockedQty'. + /// + /// + /// The property value for 'StockedQty'. + /// + public int StockedQty { get; set; } + + /// + /// Gets or sets the property value for 'ScrappedQty'. + /// + /// + /// The property value for 'ScrappedQty'. + /// + public short ScrappedQty { get; set; } + + /// + /// Gets or sets the property value for 'StartDate'. + /// + /// + /// The property value for 'StartDate'. + /// + public DateTime StartDate { get; set; } + + /// + /// Gets or sets the property value for 'EndDate'. + /// + /// + /// The property value for 'EndDate'. + /// + public DateTime? EndDate { get; set; } + + /// + /// Gets or sets the property value for 'DueDate'. + /// + /// + /// The property value for 'DueDate'. + /// + public DateTime DueDate { get; set; } + + /// + /// Gets or sets the property value for 'ScrapReasonId'. + /// + /// + /// The property value for 'ScrapReasonId'. + /// + public short? ScrapReasonId { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Validation/WorkOrderCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Validation/WorkOrderCreateModelValidator.cs new file mode 100644 index 0000000..b3109c3 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Validation/WorkOrderCreateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class WorkOrderCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public WorkOrderCreateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Validation/WorkOrderUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Validation/WorkOrderUpdateModelValidator.cs new file mode 100644 index 0000000..82ca764 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Validation/WorkOrderUpdateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class WorkOrderUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public WorkOrderUpdateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Mapping/WorkOrderRoutingProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Mapping/WorkOrderRoutingProfile.cs new file mode 100644 index 0000000..d05ca3d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Mapping/WorkOrderRoutingProfile.cs @@ -0,0 +1,35 @@ +using System; + +using AutoMapper; + +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Mapping; + +/// +/// Mapper class for entity . +/// +public partial class WorkOrderRoutingProfile + : Profile +{ + /// + /// Initializes a new instance of the class. + /// + public WorkOrderRoutingProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + CreateMap(); + + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingCreateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingCreateModel.cs new file mode 100644 index 0000000..76e5cf7 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingCreateModel.cs @@ -0,0 +1,111 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class WorkOrderRoutingCreateModel + : IEntityCreateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'WorkOrderId'. + /// + /// + /// The property value for 'WorkOrderId'. + /// + public int WorkOrderId { get; set; } + + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'OperationSequence'. + /// + /// + /// The property value for 'OperationSequence'. + /// + public short OperationSequence { get; set; } + + /// + /// Gets or sets the property value for 'LocationId'. + /// + /// + /// The property value for 'LocationId'. + /// + public short LocationId { get; set; } + + /// + /// Gets or sets the property value for 'ScheduledStartDate'. + /// + /// + /// The property value for 'ScheduledStartDate'. + /// + public DateTime ScheduledStartDate { get; set; } + + /// + /// Gets or sets the property value for 'ScheduledEndDate'. + /// + /// + /// The property value for 'ScheduledEndDate'. + /// + public DateTime ScheduledEndDate { get; set; } + + /// + /// Gets or sets the property value for 'ActualStartDate'. + /// + /// + /// The property value for 'ActualStartDate'. + /// + public DateTime? ActualStartDate { get; set; } + + /// + /// Gets or sets the property value for 'ActualEndDate'. + /// + /// + /// The property value for 'ActualEndDate'. + /// + public DateTime? ActualEndDate { get; set; } + + /// + /// Gets or sets the property value for 'ActualResourceHrs'. + /// + /// + /// The property value for 'ActualResourceHrs'. + /// + public decimal? ActualResourceHrs { get; set; } + + /// + /// Gets or sets the property value for 'PlannedCost'. + /// + /// + /// The property value for 'PlannedCost'. + /// + public decimal PlannedCost { get; set; } + + /// + /// Gets or sets the property value for 'ActualCost'. + /// + /// + /// The property value for 'ActualCost'. + /// + public decimal? ActualCost { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingReadModel.cs new file mode 100644 index 0000000..32405b8 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingReadModel.cs @@ -0,0 +1,111 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class WorkOrderRoutingReadModel + : IEntityReadModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'WorkOrderId'. + /// + /// + /// The property value for 'WorkOrderId'. + /// + public int WorkOrderId { get; set; } + + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'OperationSequence'. + /// + /// + /// The property value for 'OperationSequence'. + /// + public short OperationSequence { get; set; } + + /// + /// Gets or sets the property value for 'LocationId'. + /// + /// + /// The property value for 'LocationId'. + /// + public short LocationId { get; set; } + + /// + /// Gets or sets the property value for 'ScheduledStartDate'. + /// + /// + /// The property value for 'ScheduledStartDate'. + /// + public DateTime ScheduledStartDate { get; set; } + + /// + /// Gets or sets the property value for 'ScheduledEndDate'. + /// + /// + /// The property value for 'ScheduledEndDate'. + /// + public DateTime ScheduledEndDate { get; set; } + + /// + /// Gets or sets the property value for 'ActualStartDate'. + /// + /// + /// The property value for 'ActualStartDate'. + /// + public DateTime? ActualStartDate { get; set; } + + /// + /// Gets or sets the property value for 'ActualEndDate'. + /// + /// + /// The property value for 'ActualEndDate'. + /// + public DateTime? ActualEndDate { get; set; } + + /// + /// Gets or sets the property value for 'ActualResourceHrs'. + /// + /// + /// The property value for 'ActualResourceHrs'. + /// + public decimal? ActualResourceHrs { get; set; } + + /// + /// Gets or sets the property value for 'PlannedCost'. + /// + /// + /// The property value for 'PlannedCost'. + /// + public decimal PlannedCost { get; set; } + + /// + /// Gets or sets the property value for 'ActualCost'. + /// + /// + /// The property value for 'ActualCost'. + /// + public decimal? ActualCost { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingUpdateModel.cs new file mode 100644 index 0000000..97ba65a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingUpdateModel.cs @@ -0,0 +1,111 @@ +using System; +using System.Collections.Generic; + +namespace Platy.AdventureWorks.Repository.Domain.Models; + +/// +/// View Model class +/// +public partial class WorkOrderRoutingUpdateModel + : IEntityUpdateModel +{ + #region Generated Properties + /// + /// Gets or sets the property value for 'WorkOrderId'. + /// + /// + /// The property value for 'WorkOrderId'. + /// + public int WorkOrderId { get; set; } + + /// + /// Gets or sets the property value for 'ProductId'. + /// + /// + /// The property value for 'ProductId'. + /// + public int ProductId { get; set; } + + /// + /// Gets or sets the property value for 'OperationSequence'. + /// + /// + /// The property value for 'OperationSequence'. + /// + public short OperationSequence { get; set; } + + /// + /// Gets or sets the property value for 'LocationId'. + /// + /// + /// The property value for 'LocationId'. + /// + public short LocationId { get; set; } + + /// + /// Gets or sets the property value for 'ScheduledStartDate'. + /// + /// + /// The property value for 'ScheduledStartDate'. + /// + public DateTime ScheduledStartDate { get; set; } + + /// + /// Gets or sets the property value for 'ScheduledEndDate'. + /// + /// + /// The property value for 'ScheduledEndDate'. + /// + public DateTime ScheduledEndDate { get; set; } + + /// + /// Gets or sets the property value for 'ActualStartDate'. + /// + /// + /// The property value for 'ActualStartDate'. + /// + public DateTime? ActualStartDate { get; set; } + + /// + /// Gets or sets the property value for 'ActualEndDate'. + /// + /// + /// The property value for 'ActualEndDate'. + /// + public DateTime? ActualEndDate { get; set; } + + /// + /// Gets or sets the property value for 'ActualResourceHrs'. + /// + /// + /// The property value for 'ActualResourceHrs'. + /// + public decimal? ActualResourceHrs { get; set; } + + /// + /// Gets or sets the property value for 'PlannedCost'. + /// + /// + /// The property value for 'PlannedCost'. + /// + public decimal PlannedCost { get; set; } + + /// + /// Gets or sets the property value for 'ActualCost'. + /// + /// + /// The property value for 'ActualCost'. + /// + public decimal? ActualCost { get; set; } + + /// + /// Gets or sets the property value for 'ModifiedDate'. + /// + /// + /// The property value for 'ModifiedDate'. + /// + public DateTime ModifiedDate { get; set; } + + #endregion + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Validation/WorkOrderRoutingCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Validation/WorkOrderRoutingCreateModelValidator.cs new file mode 100644 index 0000000..621ab66 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Validation/WorkOrderRoutingCreateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class WorkOrderRoutingCreateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public WorkOrderRoutingCreateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Validation/WorkOrderRoutingUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Validation/WorkOrderRoutingUpdateModelValidator.cs new file mode 100644 index 0000000..f125c09 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Validation/WorkOrderRoutingUpdateModelValidator.cs @@ -0,0 +1,24 @@ +using System; + +using FluentValidation; +using Platy.AdventureWorks.Repository.Domain.Models; + +namespace Platy.AdventureWorks.Repository.Domain.Validation; + +/// +/// Validator class for . +/// +[RegisterSingleton>] +public partial class WorkOrderRoutingUpdateModelValidator + : AbstractValidator +{ + /// + /// Initializes a new instance of the class. + /// + public WorkOrderRoutingUpdateModelValidator() + { + #region Generated Constructor + #endregion + } + +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/AddressCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/AddressCreatedEvent.cs new file mode 100644 index 0000000..27ab497 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/AddressCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'Address'. +/// +public class AddressCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/AddressTypeCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/AddressTypeCreatedEvent.cs new file mode 100644 index 0000000..00aba68 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/AddressTypeCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'AddressType'. +/// +public class AddressTypeCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/BillOfMaterialsCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/BillOfMaterialsCreatedEvent.cs new file mode 100644 index 0000000..52bad4a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/BillOfMaterialsCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'BillOfMaterials'. +/// +public class BillOfMaterialsCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/BusinessEntityCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/BusinessEntityCreatedEvent.cs new file mode 100644 index 0000000..1121cc4 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/BusinessEntityCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'BusinessEntity'. +/// +public class BusinessEntityCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ContactTypeCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ContactTypeCreatedEvent.cs new file mode 100644 index 0000000..f3c03fc --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/ContactTypeCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'ContactType'. +/// +public class ContactTypeCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/CreditCardCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/CreditCardCreatedEvent.cs new file mode 100644 index 0000000..d65246a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/CreditCardCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'CreditCard'. +/// +public class CreditCardCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/CurrencyRateCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/CurrencyRateCreatedEvent.cs new file mode 100644 index 0000000..ea29b82 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/CurrencyRateCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'CurrencyRate'. +/// +public class CurrencyRateCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/CustomerCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/CustomerCreatedEvent.cs new file mode 100644 index 0000000..541c7c1 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/CustomerCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'Customer'. +/// +public class CustomerCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/DepartmentCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/DepartmentCreatedEvent.cs new file mode 100644 index 0000000..618fe63 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/DepartmentCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'Department'. +/// +public class DepartmentCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/EmailAddressCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/EmailAddressCreatedEvent.cs new file mode 100644 index 0000000..1cf84f1 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/EmailAddressCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'EmailAddress'. +/// +public class EmailAddressCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/IllustrationCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/IllustrationCreatedEvent.cs new file mode 100644 index 0000000..95921a5 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/IllustrationCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'Illustration'. +/// +public class IllustrationCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/JobCandidateCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/JobCandidateCreatedEvent.cs new file mode 100644 index 0000000..16795ad --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/JobCandidateCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'JobCandidate'. +/// +public class JobCandidateCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/LocationCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/LocationCreatedEvent.cs new file mode 100644 index 0000000..01e6ff3 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/LocationCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'Location'. +/// +public class LocationCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/PhoneNumberTypeCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/PhoneNumberTypeCreatedEvent.cs new file mode 100644 index 0000000..29d0690 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/PhoneNumberTypeCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'PhoneNumberType'. +/// +public class PhoneNumberTypeCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ProductCategoryCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ProductCategoryCreatedEvent.cs new file mode 100644 index 0000000..eae503c --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/ProductCategoryCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'ProductCategory'. +/// +public class ProductCategoryCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ProductCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ProductCreatedEvent.cs new file mode 100644 index 0000000..4280d45 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/ProductCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'Product'. +/// +public class ProductCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ProductDescriptionCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ProductDescriptionCreatedEvent.cs new file mode 100644 index 0000000..121df1d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/ProductDescriptionCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'ProductDescription'. +/// +public class ProductDescriptionCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ProductModelCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ProductModelCreatedEvent.cs new file mode 100644 index 0000000..5773547 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/ProductModelCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'ProductModel'. +/// +public class ProductModelCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ProductPhotoCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ProductPhotoCreatedEvent.cs new file mode 100644 index 0000000..b324579 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/ProductPhotoCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'ProductPhoto'. +/// +public class ProductPhotoCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ProductReviewCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ProductReviewCreatedEvent.cs new file mode 100644 index 0000000..4d1b54f --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/ProductReviewCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'ProductReview'. +/// +public class ProductReviewCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ProductSubcategoryCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ProductSubcategoryCreatedEvent.cs new file mode 100644 index 0000000..5333ce7 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/ProductSubcategoryCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'ProductSubcategory'. +/// +public class ProductSubcategoryCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/PurchaseOrderDetailCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/PurchaseOrderDetailCreatedEvent.cs new file mode 100644 index 0000000..3607d50 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/PurchaseOrderDetailCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'PurchaseOrderDetail'. +/// +public class PurchaseOrderDetailCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/PurchaseOrderHeaderCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/PurchaseOrderHeaderCreatedEvent.cs new file mode 100644 index 0000000..799d767 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/PurchaseOrderHeaderCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'PurchaseOrderHeader'. +/// +public class PurchaseOrderHeaderCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/SalesOrderDetailCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/SalesOrderDetailCreatedEvent.cs new file mode 100644 index 0000000..6b5f424 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/SalesOrderDetailCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'SalesOrderDetail'. +/// +public class SalesOrderDetailCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/SalesOrderHeaderCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/SalesOrderHeaderCreatedEvent.cs new file mode 100644 index 0000000..63a7f2b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/SalesOrderHeaderCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'SalesOrderHeader'. +/// +public class SalesOrderHeaderCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/SalesReasonCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/SalesReasonCreatedEvent.cs new file mode 100644 index 0000000..1c9bc9c --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/SalesReasonCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'SalesReason'. +/// +public class SalesReasonCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/SalesTaxRateCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/SalesTaxRateCreatedEvent.cs new file mode 100644 index 0000000..b1a9fc5 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/SalesTaxRateCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'SalesTaxRate'. +/// +public class SalesTaxRateCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/SalesTerritoryCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/SalesTerritoryCreatedEvent.cs new file mode 100644 index 0000000..2c9ab7e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/SalesTerritoryCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'SalesTerritory'. +/// +public class SalesTerritoryCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ScrapReasonCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ScrapReasonCreatedEvent.cs new file mode 100644 index 0000000..bdda323 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/ScrapReasonCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'ScrapReason'. +/// +public class ScrapReasonCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ShiftCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ShiftCreatedEvent.cs new file mode 100644 index 0000000..f554fb1 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/ShiftCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'Shift'. +/// +public class ShiftCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ShipMethodCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ShipMethodCreatedEvent.cs new file mode 100644 index 0000000..44287d5 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/ShipMethodCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'ShipMethod'. +/// +public class ShipMethodCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ShoppingCartItemCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ShoppingCartItemCreatedEvent.cs new file mode 100644 index 0000000..6593c65 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/ShoppingCartItemCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'ShoppingCartItem'. +/// +public class ShoppingCartItemCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/SpecialOfferCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/SpecialOfferCreatedEvent.cs new file mode 100644 index 0000000..82d94d3 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/SpecialOfferCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'SpecialOffer'. +/// +public class SpecialOfferCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/StateProvinceCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/StateProvinceCreatedEvent.cs new file mode 100644 index 0000000..ba72941 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/StateProvinceCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'StateProvince'. +/// +public class StateProvinceCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/TransactionHistoryCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/TransactionHistoryCreatedEvent.cs new file mode 100644 index 0000000..999ee3d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/TransactionHistoryCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'TransactionHistory'. +/// +public class TransactionHistoryCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateCreatedEvent.cs new file mode 100644 index 0000000..62ce512 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'vJobCandidate'. +/// +public class VJobCandidateCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateEducationCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateEducationCreatedEvent.cs new file mode 100644 index 0000000..0888cdb --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateEducationCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'vJobCandidateEducation'. +/// +public class VJobCandidateEducationCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateEmploymentCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateEmploymentCreatedEvent.cs new file mode 100644 index 0000000..311cd7e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateEmploymentCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'vJobCandidateEmployment'. +/// +public class VJobCandidateEmploymentCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/VProductModelCatalogDescriptionCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/VProductModelCatalogDescriptionCreatedEvent.cs new file mode 100644 index 0000000..05712fb --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/VProductModelCatalogDescriptionCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'vProductModelCatalogDescription'. +/// +public class VProductModelCatalogDescriptionCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/VProductModelInstructionsCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/VProductModelInstructionsCreatedEvent.cs new file mode 100644 index 0000000..4ef86ed --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/VProductModelInstructionsCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'vProductModelInstructions'. +/// +public class VProductModelInstructionsCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/WorkOrderCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/WorkOrderCreatedEvent.cs new file mode 100644 index 0000000..f36d75d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Create/WorkOrderCreatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'WorkOrder'. +/// +public class WorkOrderCreatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/AddressDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/AddressDeletedEvent.cs new file mode 100644 index 0000000..af9e34b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/AddressDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'Address'. +/// +public class AddressDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/AddressTypeDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/AddressTypeDeletedEvent.cs new file mode 100644 index 0000000..f1a354b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/AddressTypeDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'AddressType'. +/// +public class AddressTypeDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/BillOfMaterialsDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/BillOfMaterialsDeletedEvent.cs new file mode 100644 index 0000000..43dedc3 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/BillOfMaterialsDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'BillOfMaterials'. +/// +public class BillOfMaterialsDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/BusinessEntityDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/BusinessEntityDeletedEvent.cs new file mode 100644 index 0000000..015d86b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/BusinessEntityDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'BusinessEntity'. +/// +public class BusinessEntityDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ContactTypeDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ContactTypeDeletedEvent.cs new file mode 100644 index 0000000..e3478ce --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/ContactTypeDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'ContactType'. +/// +public class ContactTypeDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/CreditCardDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/CreditCardDeletedEvent.cs new file mode 100644 index 0000000..515bc42 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/CreditCardDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'CreditCard'. +/// +public class CreditCardDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/CurrencyRateDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/CurrencyRateDeletedEvent.cs new file mode 100644 index 0000000..b2d9b19 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/CurrencyRateDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'CurrencyRate'. +/// +public class CurrencyRateDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/CustomerDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/CustomerDeletedEvent.cs new file mode 100644 index 0000000..d44111e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/CustomerDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'Customer'. +/// +public class CustomerDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/DepartmentDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/DepartmentDeletedEvent.cs new file mode 100644 index 0000000..c1e3cc5 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/DepartmentDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'Department'. +/// +public class DepartmentDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/EmailAddressDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/EmailAddressDeletedEvent.cs new file mode 100644 index 0000000..beb299c --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/EmailAddressDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'EmailAddress'. +/// +public class EmailAddressDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/IllustrationDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/IllustrationDeletedEvent.cs new file mode 100644 index 0000000..18aba20 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/IllustrationDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'Illustration'. +/// +public class IllustrationDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/JobCandidateDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/JobCandidateDeletedEvent.cs new file mode 100644 index 0000000..c28e4d9 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/JobCandidateDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'JobCandidate'. +/// +public class JobCandidateDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/LocationDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/LocationDeletedEvent.cs new file mode 100644 index 0000000..9df4ea5 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/LocationDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'Location'. +/// +public class LocationDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/PhoneNumberTypeDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/PhoneNumberTypeDeletedEvent.cs new file mode 100644 index 0000000..b1e89ef --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/PhoneNumberTypeDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'PhoneNumberType'. +/// +public class PhoneNumberTypeDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductCategoryDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductCategoryDeletedEvent.cs new file mode 100644 index 0000000..fa9d4e9 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductCategoryDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'ProductCategory'. +/// +public class ProductCategoryDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductDeletedEvent.cs new file mode 100644 index 0000000..8d3d1df --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'Product'. +/// +public class ProductDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductDescriptionDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductDescriptionDeletedEvent.cs new file mode 100644 index 0000000..4ddd6c4 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductDescriptionDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'ProductDescription'. +/// +public class ProductDescriptionDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductModelDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductModelDeletedEvent.cs new file mode 100644 index 0000000..664378f --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductModelDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'ProductModel'. +/// +public class ProductModelDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductPhotoDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductPhotoDeletedEvent.cs new file mode 100644 index 0000000..fbb8464 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductPhotoDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'ProductPhoto'. +/// +public class ProductPhotoDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductReviewDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductReviewDeletedEvent.cs new file mode 100644 index 0000000..940e232 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductReviewDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'ProductReview'. +/// +public class ProductReviewDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductSubcategoryDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductSubcategoryDeletedEvent.cs new file mode 100644 index 0000000..c17cb88 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductSubcategoryDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'ProductSubcategory'. +/// +public class ProductSubcategoryDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/PurchaseOrderDetailDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/PurchaseOrderDetailDeletedEvent.cs new file mode 100644 index 0000000..9a20236 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/PurchaseOrderDetailDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'PurchaseOrderDetail'. +/// +public class PurchaseOrderDetailDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/PurchaseOrderHeaderDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/PurchaseOrderHeaderDeletedEvent.cs new file mode 100644 index 0000000..d2bc493 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/PurchaseOrderHeaderDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'PurchaseOrderHeader'. +/// +public class PurchaseOrderHeaderDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/SalesOrderDetailDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/SalesOrderDetailDeletedEvent.cs new file mode 100644 index 0000000..8d8f0aa --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/SalesOrderDetailDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'SalesOrderDetail'. +/// +public class SalesOrderDetailDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/SalesOrderHeaderDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/SalesOrderHeaderDeletedEvent.cs new file mode 100644 index 0000000..0980593 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/SalesOrderHeaderDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'SalesOrderHeader'. +/// +public class SalesOrderHeaderDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/SalesReasonDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/SalesReasonDeletedEvent.cs new file mode 100644 index 0000000..01ab569 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/SalesReasonDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'SalesReason'. +/// +public class SalesReasonDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/SalesTaxRateDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/SalesTaxRateDeletedEvent.cs new file mode 100644 index 0000000..597fcbf --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/SalesTaxRateDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'SalesTaxRate'. +/// +public class SalesTaxRateDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/SalesTerritoryDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/SalesTerritoryDeletedEvent.cs new file mode 100644 index 0000000..fb07bc5 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/SalesTerritoryDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'SalesTerritory'. +/// +public class SalesTerritoryDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ScrapReasonDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ScrapReasonDeletedEvent.cs new file mode 100644 index 0000000..684549d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/ScrapReasonDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'ScrapReason'. +/// +public class ScrapReasonDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ShiftDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ShiftDeletedEvent.cs new file mode 100644 index 0000000..f178a48 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/ShiftDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'Shift'. +/// +public class ShiftDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ShipMethodDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ShipMethodDeletedEvent.cs new file mode 100644 index 0000000..340554a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/ShipMethodDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'ShipMethod'. +/// +public class ShipMethodDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ShoppingCartItemDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ShoppingCartItemDeletedEvent.cs new file mode 100644 index 0000000..abdd48e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/ShoppingCartItemDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'ShoppingCartItem'. +/// +public class ShoppingCartItemDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/SpecialOfferDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/SpecialOfferDeletedEvent.cs new file mode 100644 index 0000000..b802ec8 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/SpecialOfferDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'SpecialOffer'. +/// +public class SpecialOfferDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/StateProvinceDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/StateProvinceDeletedEvent.cs new file mode 100644 index 0000000..d229189 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/StateProvinceDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'StateProvince'. +/// +public class StateProvinceDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/TransactionHistoryDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/TransactionHistoryDeletedEvent.cs new file mode 100644 index 0000000..5200064 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/TransactionHistoryDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'TransactionHistory'. +/// +public class TransactionHistoryDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateDeletedEvent.cs new file mode 100644 index 0000000..7c1a72a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'vJobCandidate'. +/// +public class VJobCandidateDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateEducationDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateEducationDeletedEvent.cs new file mode 100644 index 0000000..52bf7db --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateEducationDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'vJobCandidateEducation'. +/// +public class VJobCandidateEducationDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateEmploymentDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateEmploymentDeletedEvent.cs new file mode 100644 index 0000000..aa98ed2 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateEmploymentDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'vJobCandidateEmployment'. +/// +public class VJobCandidateEmploymentDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/VProductModelCatalogDescriptionDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/VProductModelCatalogDescriptionDeletedEvent.cs new file mode 100644 index 0000000..23f9c9e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/VProductModelCatalogDescriptionDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'vProductModelCatalogDescription'. +/// +public class VProductModelCatalogDescriptionDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/VProductModelInstructionsDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/VProductModelInstructionsDeletedEvent.cs new file mode 100644 index 0000000..a7f15d4 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/VProductModelInstructionsDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'vProductModelInstructions'. +/// +public class VProductModelInstructionsDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/WorkOrderDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/WorkOrderDeletedEvent.cs new file mode 100644 index 0000000..b14ca35 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/WorkOrderDeletedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'WorkOrder'. +/// +public class WorkOrderDeletedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/AddressTypeUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/AddressTypeUpdatedEvent.cs new file mode 100644 index 0000000..47fa232 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/AddressTypeUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'AddressType'. +/// +public class AddressTypeUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/AddressUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/AddressUpdatedEvent.cs new file mode 100644 index 0000000..7a78c42 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/AddressUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'Address'. +/// +public class AddressUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/BillOfMaterialsUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/BillOfMaterialsUpdatedEvent.cs new file mode 100644 index 0000000..71c2254 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/BillOfMaterialsUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'BillOfMaterials'. +/// +public class BillOfMaterialsUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/BusinessEntityUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/BusinessEntityUpdatedEvent.cs new file mode 100644 index 0000000..128016e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/BusinessEntityUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'BusinessEntity'. +/// +public class BusinessEntityUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ContactTypeUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ContactTypeUpdatedEvent.cs new file mode 100644 index 0000000..1fdacc6 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/ContactTypeUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'ContactType'. +/// +public class ContactTypeUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/CreditCardUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/CreditCardUpdatedEvent.cs new file mode 100644 index 0000000..363c61a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/CreditCardUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'CreditCard'. +/// +public class CreditCardUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/CurrencyRateUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/CurrencyRateUpdatedEvent.cs new file mode 100644 index 0000000..eea507f --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/CurrencyRateUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'CurrencyRate'. +/// +public class CurrencyRateUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/CustomerUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/CustomerUpdatedEvent.cs new file mode 100644 index 0000000..ada20d4 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/CustomerUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'Customer'. +/// +public class CustomerUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/DepartmentUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/DepartmentUpdatedEvent.cs new file mode 100644 index 0000000..11d7f46 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/DepartmentUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'Department'. +/// +public class DepartmentUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/EmailAddressUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/EmailAddressUpdatedEvent.cs new file mode 100644 index 0000000..f2aa2da --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/EmailAddressUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'EmailAddress'. +/// +public class EmailAddressUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/IllustrationUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/IllustrationUpdatedEvent.cs new file mode 100644 index 0000000..4a63662 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/IllustrationUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'Illustration'. +/// +public class IllustrationUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/JobCandidateUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/JobCandidateUpdatedEvent.cs new file mode 100644 index 0000000..c86da1b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/JobCandidateUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'JobCandidate'. +/// +public class JobCandidateUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/LocationUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/LocationUpdatedEvent.cs new file mode 100644 index 0000000..b8c1ee4 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/LocationUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'Location'. +/// +public class LocationUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/PhoneNumberTypeUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/PhoneNumberTypeUpdatedEvent.cs new file mode 100644 index 0000000..529c7d4 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/PhoneNumberTypeUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'PhoneNumberType'. +/// +public class PhoneNumberTypeUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ProductCategoryUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ProductCategoryUpdatedEvent.cs new file mode 100644 index 0000000..d84228a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/ProductCategoryUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'ProductCategory'. +/// +public class ProductCategoryUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ProductDescriptionUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ProductDescriptionUpdatedEvent.cs new file mode 100644 index 0000000..7c9d4a7 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/ProductDescriptionUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'ProductDescription'. +/// +public class ProductDescriptionUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ProductModelUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ProductModelUpdatedEvent.cs new file mode 100644 index 0000000..77a1034 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/ProductModelUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'ProductModel'. +/// +public class ProductModelUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ProductPhotoUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ProductPhotoUpdatedEvent.cs new file mode 100644 index 0000000..5437783 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/ProductPhotoUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'ProductPhoto'. +/// +public class ProductPhotoUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ProductReviewUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ProductReviewUpdatedEvent.cs new file mode 100644 index 0000000..b51fdb7 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/ProductReviewUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'ProductReview'. +/// +public class ProductReviewUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ProductSubcategoryUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ProductSubcategoryUpdatedEvent.cs new file mode 100644 index 0000000..8371412 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/ProductSubcategoryUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'ProductSubcategory'. +/// +public class ProductSubcategoryUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ProductUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ProductUpdatedEvent.cs new file mode 100644 index 0000000..45d4d1b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/ProductUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'Product'. +/// +public class ProductUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/PurchaseOrderDetailUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/PurchaseOrderDetailUpdatedEvent.cs new file mode 100644 index 0000000..0d7ea88 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/PurchaseOrderDetailUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'PurchaseOrderDetail'. +/// +public class PurchaseOrderDetailUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/PurchaseOrderHeaderUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/PurchaseOrderHeaderUpdatedEvent.cs new file mode 100644 index 0000000..8dd54ce --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/PurchaseOrderHeaderUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'PurchaseOrderHeader'. +/// +public class PurchaseOrderHeaderUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/SalesOrderDetailUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/SalesOrderDetailUpdatedEvent.cs new file mode 100644 index 0000000..242e970 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/SalesOrderDetailUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'SalesOrderDetail'. +/// +public class SalesOrderDetailUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/SalesOrderHeaderUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/SalesOrderHeaderUpdatedEvent.cs new file mode 100644 index 0000000..1cc2dd0 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/SalesOrderHeaderUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'SalesOrderHeader'. +/// +public class SalesOrderHeaderUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/SalesReasonUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/SalesReasonUpdatedEvent.cs new file mode 100644 index 0000000..0979b89 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/SalesReasonUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'SalesReason'. +/// +public class SalesReasonUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/SalesTaxRateUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/SalesTaxRateUpdatedEvent.cs new file mode 100644 index 0000000..8c9dfa3 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/SalesTaxRateUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'SalesTaxRate'. +/// +public class SalesTaxRateUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/SalesTerritoryUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/SalesTerritoryUpdatedEvent.cs new file mode 100644 index 0000000..94be5c7 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/SalesTerritoryUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'SalesTerritory'. +/// +public class SalesTerritoryUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ScrapReasonUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ScrapReasonUpdatedEvent.cs new file mode 100644 index 0000000..27ab6d6 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/ScrapReasonUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'ScrapReason'. +/// +public class ScrapReasonUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ShiftUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ShiftUpdatedEvent.cs new file mode 100644 index 0000000..65142c1 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/ShiftUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'Shift'. +/// +public class ShiftUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ShipMethodUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ShipMethodUpdatedEvent.cs new file mode 100644 index 0000000..36a1844 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/ShipMethodUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'ShipMethod'. +/// +public class ShipMethodUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ShoppingCartItemUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ShoppingCartItemUpdatedEvent.cs new file mode 100644 index 0000000..67fcd18 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/ShoppingCartItemUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'ShoppingCartItem'. +/// +public class ShoppingCartItemUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/SpecialOfferUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/SpecialOfferUpdatedEvent.cs new file mode 100644 index 0000000..42806c6 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/SpecialOfferUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'SpecialOffer'. +/// +public class SpecialOfferUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/StateProvinceUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/StateProvinceUpdatedEvent.cs new file mode 100644 index 0000000..6e5b3c9 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/StateProvinceUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'StateProvince'. +/// +public class StateProvinceUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/TransactionHistoryUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/TransactionHistoryUpdatedEvent.cs new file mode 100644 index 0000000..5860e11 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/TransactionHistoryUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'TransactionHistory'. +/// +public class TransactionHistoryUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateEducationUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateEducationUpdatedEvent.cs new file mode 100644 index 0000000..e11fc10 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateEducationUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'vJobCandidateEducation'. +/// +public class VJobCandidateEducationUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateEmploymentUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateEmploymentUpdatedEvent.cs new file mode 100644 index 0000000..6b22d78 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateEmploymentUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'vJobCandidateEmployment'. +/// +public class VJobCandidateEmploymentUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateUpdatedEvent.cs new file mode 100644 index 0000000..622e3b4 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'vJobCandidate'. +/// +public class VJobCandidateUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/VProductModelCatalogDescriptionUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/VProductModelCatalogDescriptionUpdatedEvent.cs new file mode 100644 index 0000000..4a776bd --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/VProductModelCatalogDescriptionUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'vProductModelCatalogDescription'. +/// +public class VProductModelCatalogDescriptionUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/VProductModelInstructionsUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/VProductModelInstructionsUpdatedEvent.cs new file mode 100644 index 0000000..d7e44c3 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/VProductModelInstructionsUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'vProductModelInstructions'. +/// +public class VProductModelInstructionsUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/WorkOrderUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/WorkOrderUpdatedEvent.cs new file mode 100644 index 0000000..06e2da2 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Events/Update/WorkOrderUpdatedEvent.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using Platy.AdventureWorks.Repository.BaseEvent; + +namespace Platy.AdventureWorks.Repository.Events; + +/// +/// Event class representing the data when changes are made to the table 'WorkOrder'. +/// +public class WorkOrderUpdatedEvent + : EntityEventBase +{ +} diff --git a/src/Platy.AdventureWorks.Repository/Repository/AddressRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/AddressRepository.cs new file mode 100644 index 0000000..c1ef2ad --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/AddressRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'Address'. +/// +[RegisterScoped] +public class AddressRepository + : EntityRepository, IAddressRepository +{ + /// + /// Initializes a new instance of the class. + /// + public AddressRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + AddressCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new AddressCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + AddressUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new AddressUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new AddressDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface IAddressRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/AddressTypeRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/AddressTypeRepository.cs new file mode 100644 index 0000000..6f01324 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/AddressTypeRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'AddressType'. +/// +[RegisterScoped] +public class AddressTypeRepository + : EntityRepository, IAddressTypeRepository +{ + /// + /// Initializes a new instance of the class. + /// + public AddressTypeRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + AddressTypeCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new AddressTypeCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + AddressTypeUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new AddressTypeUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new AddressTypeDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface IAddressTypeRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/BillOfMaterialsRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/BillOfMaterialsRepository.cs new file mode 100644 index 0000000..6c505eb --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/BillOfMaterialsRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'BillOfMaterials'. +/// +[RegisterScoped] +public class BillOfMaterialsRepository + : EntityRepository, IBillOfMaterialsRepository +{ + /// + /// Initializes a new instance of the class. + /// + public BillOfMaterialsRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + BillOfMaterialsCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new BillOfMaterialsCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + BillOfMaterialsUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new BillOfMaterialsUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new BillOfMaterialsDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface IBillOfMaterialsRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/BusinessEntityRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/BusinessEntityRepository.cs new file mode 100644 index 0000000..fbd6622 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/BusinessEntityRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'BusinessEntity'. +/// +[RegisterScoped] +public class BusinessEntityRepository + : EntityRepository, IBusinessEntityRepository +{ + /// + /// Initializes a new instance of the class. + /// + public BusinessEntityRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + BusinessEntityCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new BusinessEntityCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + BusinessEntityUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new BusinessEntityUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new BusinessEntityDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface IBusinessEntityRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/ContactTypeRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ContactTypeRepository.cs new file mode 100644 index 0000000..448e3c0 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/ContactTypeRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'ContactType'. +/// +[RegisterScoped] +public class ContactTypeRepository + : EntityRepository, IContactTypeRepository +{ + /// + /// Initializes a new instance of the class. + /// + public ContactTypeRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + ContactTypeCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new ContactTypeCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + ContactTypeUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new ContactTypeUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new ContactTypeDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface IContactTypeRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/CreditCardRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/CreditCardRepository.cs new file mode 100644 index 0000000..b3d713b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/CreditCardRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'CreditCard'. +/// +[RegisterScoped] +public class CreditCardRepository + : EntityRepository, ICreditCardRepository +{ + /// + /// Initializes a new instance of the class. + /// + public CreditCardRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + CreditCardCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new CreditCardCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + CreditCardUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new CreditCardUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new CreditCardDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface ICreditCardRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/CurrencyRateRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/CurrencyRateRepository.cs new file mode 100644 index 0000000..705c74b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/CurrencyRateRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'CurrencyRate'. +/// +[RegisterScoped] +public class CurrencyRateRepository + : EntityRepository, ICurrencyRateRepository +{ + /// + /// Initializes a new instance of the class. + /// + public CurrencyRateRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + CurrencyRateCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new CurrencyRateCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + CurrencyRateUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new CurrencyRateUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new CurrencyRateDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface ICurrencyRateRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/CustomerRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/CustomerRepository.cs new file mode 100644 index 0000000..18e02d7 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/CustomerRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'Customer'. +/// +[RegisterScoped] +public class CustomerRepository + : EntityRepository, ICustomerRepository +{ + /// + /// Initializes a new instance of the class. + /// + public CustomerRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + CustomerCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new CustomerCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + CustomerUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new CustomerUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new CustomerDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface ICustomerRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/DepartmentRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/DepartmentRepository.cs new file mode 100644 index 0000000..721b08e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/DepartmentRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'Department'. +/// +[RegisterScoped] +public class DepartmentRepository + : EntityRepository, IDepartmentRepository +{ + /// + /// Initializes a new instance of the class. + /// + public DepartmentRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(short id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + DepartmentCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new DepartmentCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + short id, + DepartmentUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new DepartmentUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + short id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new DepartmentDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface IDepartmentRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/EmailAddressRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/EmailAddressRepository.cs new file mode 100644 index 0000000..d0379e9 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/EmailAddressRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'EmailAddress'. +/// +[RegisterScoped] +public class EmailAddressRepository + : EntityRepository, IEmailAddressRepository +{ + /// + /// Initializes a new instance of the class. + /// + public EmailAddressRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + EmailAddressCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new EmailAddressCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + EmailAddressUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new EmailAddressUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new EmailAddressDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface IEmailAddressRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/IllustrationRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/IllustrationRepository.cs new file mode 100644 index 0000000..02df669 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/IllustrationRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'Illustration'. +/// +[RegisterScoped] +public class IllustrationRepository + : EntityRepository, IIllustrationRepository +{ + /// + /// Initializes a new instance of the class. + /// + public IllustrationRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + IllustrationCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new IllustrationCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + IllustrationUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new IllustrationUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new IllustrationDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface IIllustrationRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/JobCandidateRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/JobCandidateRepository.cs new file mode 100644 index 0000000..635a525 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/JobCandidateRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'JobCandidate'. +/// +[RegisterScoped] +public class JobCandidateRepository + : EntityRepository, IJobCandidateRepository +{ + /// + /// Initializes a new instance of the class. + /// + public JobCandidateRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + JobCandidateCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new JobCandidateCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + JobCandidateUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new JobCandidateUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new JobCandidateDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface IJobCandidateRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/LocationRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/LocationRepository.cs new file mode 100644 index 0000000..32cc609 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/LocationRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'Location'. +/// +[RegisterScoped] +public class LocationRepository + : EntityRepository, ILocationRepository +{ + /// + /// Initializes a new instance of the class. + /// + public LocationRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(short id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + LocationCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new LocationCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + short id, + LocationUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new LocationUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + short id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new LocationDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface ILocationRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/PhoneNumberTypeRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/PhoneNumberTypeRepository.cs new file mode 100644 index 0000000..559cff7 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/PhoneNumberTypeRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'PhoneNumberType'. +/// +[RegisterScoped] +public class PhoneNumberTypeRepository + : EntityRepository, IPhoneNumberTypeRepository +{ + /// + /// Initializes a new instance of the class. + /// + public PhoneNumberTypeRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + PhoneNumberTypeCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new PhoneNumberTypeCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + PhoneNumberTypeUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new PhoneNumberTypeUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new PhoneNumberTypeDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface IPhoneNumberTypeRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/ProductCategoryRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ProductCategoryRepository.cs new file mode 100644 index 0000000..0aeee39 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/ProductCategoryRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'ProductCategory'. +/// +[RegisterScoped] +public class ProductCategoryRepository + : EntityRepository, IProductCategoryRepository +{ + /// + /// Initializes a new instance of the class. + /// + public ProductCategoryRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + ProductCategoryCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new ProductCategoryCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + ProductCategoryUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new ProductCategoryUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new ProductCategoryDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface IProductCategoryRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/ProductDescriptionRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ProductDescriptionRepository.cs new file mode 100644 index 0000000..9cc8fe0 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/ProductDescriptionRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'ProductDescription'. +/// +[RegisterScoped] +public class ProductDescriptionRepository + : EntityRepository, IProductDescriptionRepository +{ + /// + /// Initializes a new instance of the class. + /// + public ProductDescriptionRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + ProductDescriptionCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new ProductDescriptionCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + ProductDescriptionUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new ProductDescriptionUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new ProductDescriptionDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface IProductDescriptionRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/ProductModelRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ProductModelRepository.cs new file mode 100644 index 0000000..8a000a3 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/ProductModelRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'ProductModel'. +/// +[RegisterScoped] +public class ProductModelRepository + : EntityRepository, IProductModelRepository +{ + /// + /// Initializes a new instance of the class. + /// + public ProductModelRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + ProductModelCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new ProductModelCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + ProductModelUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new ProductModelUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new ProductModelDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface IProductModelRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/ProductPhotoRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ProductPhotoRepository.cs new file mode 100644 index 0000000..0a3dfbb --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/ProductPhotoRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'ProductPhoto'. +/// +[RegisterScoped] +public class ProductPhotoRepository + : EntityRepository, IProductPhotoRepository +{ + /// + /// Initializes a new instance of the class. + /// + public ProductPhotoRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + ProductPhotoCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new ProductPhotoCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + ProductPhotoUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new ProductPhotoUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new ProductPhotoDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface IProductPhotoRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/ProductRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ProductRepository.cs new file mode 100644 index 0000000..6615116 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/ProductRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'Product'. +/// +[RegisterScoped] +public class ProductRepository + : EntityRepository, IProductRepository +{ + /// + /// Initializes a new instance of the class. + /// + public ProductRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + ProductCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new ProductCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + ProductUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new ProductUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new ProductDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface IProductRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/ProductReviewRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ProductReviewRepository.cs new file mode 100644 index 0000000..f376542 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/ProductReviewRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'ProductReview'. +/// +[RegisterScoped] +public class ProductReviewRepository + : EntityRepository, IProductReviewRepository +{ + /// + /// Initializes a new instance of the class. + /// + public ProductReviewRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + ProductReviewCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new ProductReviewCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + ProductReviewUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new ProductReviewUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new ProductReviewDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface IProductReviewRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/ProductSubcategoryRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ProductSubcategoryRepository.cs new file mode 100644 index 0000000..68549e9 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/ProductSubcategoryRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'ProductSubcategory'. +/// +[RegisterScoped] +public class ProductSubcategoryRepository + : EntityRepository, IProductSubcategoryRepository +{ + /// + /// Initializes a new instance of the class. + /// + public ProductSubcategoryRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + ProductSubcategoryCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new ProductSubcategoryCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + ProductSubcategoryUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new ProductSubcategoryUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new ProductSubcategoryDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface IProductSubcategoryRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/PurchaseOrderDetailRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/PurchaseOrderDetailRepository.cs new file mode 100644 index 0000000..d018ce8 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/PurchaseOrderDetailRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'PurchaseOrderDetail'. +/// +[RegisterScoped] +public class PurchaseOrderDetailRepository + : EntityRepository, IPurchaseOrderDetailRepository +{ + /// + /// Initializes a new instance of the class. + /// + public PurchaseOrderDetailRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + PurchaseOrderDetailCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new PurchaseOrderDetailCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + PurchaseOrderDetailUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new PurchaseOrderDetailUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new PurchaseOrderDetailDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface IPurchaseOrderDetailRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/PurchaseOrderHeaderRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/PurchaseOrderHeaderRepository.cs new file mode 100644 index 0000000..66dad32 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/PurchaseOrderHeaderRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'PurchaseOrderHeader'. +/// +[RegisterScoped] +public class PurchaseOrderHeaderRepository + : EntityRepository, IPurchaseOrderHeaderRepository +{ + /// + /// Initializes a new instance of the class. + /// + public PurchaseOrderHeaderRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + PurchaseOrderHeaderCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new PurchaseOrderHeaderCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + PurchaseOrderHeaderUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new PurchaseOrderHeaderUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new PurchaseOrderHeaderDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface IPurchaseOrderHeaderRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/SalesOrderDetailRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/SalesOrderDetailRepository.cs new file mode 100644 index 0000000..eeeec51 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/SalesOrderDetailRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'SalesOrderDetail'. +/// +[RegisterScoped] +public class SalesOrderDetailRepository + : EntityRepository, ISalesOrderDetailRepository +{ + /// + /// Initializes a new instance of the class. + /// + public SalesOrderDetailRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + SalesOrderDetailCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new SalesOrderDetailCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + SalesOrderDetailUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new SalesOrderDetailUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new SalesOrderDetailDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface ISalesOrderDetailRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/SalesOrderHeaderRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/SalesOrderHeaderRepository.cs new file mode 100644 index 0000000..abb0da8 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/SalesOrderHeaderRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'SalesOrderHeader'. +/// +[RegisterScoped] +public class SalesOrderHeaderRepository + : EntityRepository, ISalesOrderHeaderRepository +{ + /// + /// Initializes a new instance of the class. + /// + public SalesOrderHeaderRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + SalesOrderHeaderCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new SalesOrderHeaderCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + SalesOrderHeaderUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new SalesOrderHeaderUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new SalesOrderHeaderDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface ISalesOrderHeaderRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/SalesReasonRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/SalesReasonRepository.cs new file mode 100644 index 0000000..faca74d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/SalesReasonRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'SalesReason'. +/// +[RegisterScoped] +public class SalesReasonRepository + : EntityRepository, ISalesReasonRepository +{ + /// + /// Initializes a new instance of the class. + /// + public SalesReasonRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + SalesReasonCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new SalesReasonCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + SalesReasonUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new SalesReasonUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new SalesReasonDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface ISalesReasonRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/SalesTaxRateRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/SalesTaxRateRepository.cs new file mode 100644 index 0000000..17e3679 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/SalesTaxRateRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'SalesTaxRate'. +/// +[RegisterScoped] +public class SalesTaxRateRepository + : EntityRepository, ISalesTaxRateRepository +{ + /// + /// Initializes a new instance of the class. + /// + public SalesTaxRateRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + SalesTaxRateCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new SalesTaxRateCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + SalesTaxRateUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new SalesTaxRateUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new SalesTaxRateDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface ISalesTaxRateRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/SalesTerritoryRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/SalesTerritoryRepository.cs new file mode 100644 index 0000000..2921e43 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/SalesTerritoryRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'SalesTerritory'. +/// +[RegisterScoped] +public class SalesTerritoryRepository + : EntityRepository, ISalesTerritoryRepository +{ + /// + /// Initializes a new instance of the class. + /// + public SalesTerritoryRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + SalesTerritoryCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new SalesTerritoryCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + SalesTerritoryUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new SalesTerritoryUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new SalesTerritoryDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface ISalesTerritoryRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/ScrapReasonRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ScrapReasonRepository.cs new file mode 100644 index 0000000..de30fc1 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/ScrapReasonRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'ScrapReason'. +/// +[RegisterScoped] +public class ScrapReasonRepository + : EntityRepository, IScrapReasonRepository +{ + /// + /// Initializes a new instance of the class. + /// + public ScrapReasonRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(short id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + ScrapReasonCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new ScrapReasonCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + short id, + ScrapReasonUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new ScrapReasonUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + short id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new ScrapReasonDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface IScrapReasonRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/ShiftRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ShiftRepository.cs new file mode 100644 index 0000000..37a8ad1 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/ShiftRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'Shift'. +/// +[RegisterScoped] +public class ShiftRepository + : EntityRepository, IShiftRepository +{ + /// + /// Initializes a new instance of the class. + /// + public ShiftRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(byte id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + ShiftCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new ShiftCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + byte id, + ShiftUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new ShiftUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + byte id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new ShiftDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface IShiftRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/ShipMethodRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ShipMethodRepository.cs new file mode 100644 index 0000000..62f870d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/ShipMethodRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'ShipMethod'. +/// +[RegisterScoped] +public class ShipMethodRepository + : EntityRepository, IShipMethodRepository +{ + /// + /// Initializes a new instance of the class. + /// + public ShipMethodRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + ShipMethodCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new ShipMethodCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + ShipMethodUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new ShipMethodUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new ShipMethodDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface IShipMethodRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/ShoppingCartItemRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ShoppingCartItemRepository.cs new file mode 100644 index 0000000..f160618 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/ShoppingCartItemRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'ShoppingCartItem'. +/// +[RegisterScoped] +public class ShoppingCartItemRepository + : EntityRepository, IShoppingCartItemRepository +{ + /// + /// Initializes a new instance of the class. + /// + public ShoppingCartItemRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + ShoppingCartItemCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new ShoppingCartItemCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + ShoppingCartItemUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new ShoppingCartItemUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new ShoppingCartItemDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface IShoppingCartItemRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/SpecialOfferRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/SpecialOfferRepository.cs new file mode 100644 index 0000000..eedfef5 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/SpecialOfferRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'SpecialOffer'. +/// +[RegisterScoped] +public class SpecialOfferRepository + : EntityRepository, ISpecialOfferRepository +{ + /// + /// Initializes a new instance of the class. + /// + public SpecialOfferRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + SpecialOfferCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new SpecialOfferCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + SpecialOfferUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new SpecialOfferUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new SpecialOfferDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface ISpecialOfferRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/StateProvinceRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/StateProvinceRepository.cs new file mode 100644 index 0000000..1a1c7c0 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/StateProvinceRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'StateProvince'. +/// +[RegisterScoped] +public class StateProvinceRepository + : EntityRepository, IStateProvinceRepository +{ + /// + /// Initializes a new instance of the class. + /// + public StateProvinceRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + StateProvinceCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new StateProvinceCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + StateProvinceUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new StateProvinceUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new StateProvinceDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface IStateProvinceRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/TransactionHistoryRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/TransactionHistoryRepository.cs new file mode 100644 index 0000000..41a4655 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/TransactionHistoryRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'TransactionHistory'. +/// +[RegisterScoped] +public class TransactionHistoryRepository + : EntityRepository, ITransactionHistoryRepository +{ + /// + /// Initializes a new instance of the class. + /// + public TransactionHistoryRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + TransactionHistoryCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new TransactionHistoryCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + TransactionHistoryUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new TransactionHistoryUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new TransactionHistoryDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface ITransactionHistoryRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/VJobCandidateEducationRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/VJobCandidateEducationRepository.cs new file mode 100644 index 0000000..fd2c918 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/VJobCandidateEducationRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'vJobCandidateEducation'. +/// +[RegisterScoped] +public class VJobCandidateEducationRepository + : EntityRepository, IVJobCandidateEducationRepository +{ + /// + /// Initializes a new instance of the class. + /// + public VJobCandidateEducationRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + VJobCandidateEducationCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new VJobCandidateEducationCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + VJobCandidateEducationUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new VJobCandidateEducationUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new VJobCandidateEducationDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface IVJobCandidateEducationRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/VJobCandidateEmploymentRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/VJobCandidateEmploymentRepository.cs new file mode 100644 index 0000000..c079ae8 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/VJobCandidateEmploymentRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'vJobCandidateEmployment'. +/// +[RegisterScoped] +public class VJobCandidateEmploymentRepository + : EntityRepository, IVJobCandidateEmploymentRepository +{ + /// + /// Initializes a new instance of the class. + /// + public VJobCandidateEmploymentRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + VJobCandidateEmploymentCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new VJobCandidateEmploymentCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + VJobCandidateEmploymentUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new VJobCandidateEmploymentUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new VJobCandidateEmploymentDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface IVJobCandidateEmploymentRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/VJobCandidateRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/VJobCandidateRepository.cs new file mode 100644 index 0000000..07aec0a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/VJobCandidateRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'vJobCandidate'. +/// +[RegisterScoped] +public class VJobCandidateRepository + : EntityRepository, IVJobCandidateRepository +{ + /// + /// Initializes a new instance of the class. + /// + public VJobCandidateRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + VJobCandidateCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new VJobCandidateCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + VJobCandidateUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new VJobCandidateUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new VJobCandidateDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface IVJobCandidateRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/VProductModelCatalogDescriptionRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/VProductModelCatalogDescriptionRepository.cs new file mode 100644 index 0000000..e915849 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/VProductModelCatalogDescriptionRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'vProductModelCatalogDescription'. +/// +[RegisterScoped] +public class VProductModelCatalogDescriptionRepository + : EntityRepository, IVProductModelCatalogDescriptionRepository +{ + /// + /// Initializes a new instance of the class. + /// + public VProductModelCatalogDescriptionRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + VProductModelCatalogDescriptionCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new VProductModelCatalogDescriptionCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + VProductModelCatalogDescriptionUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new VProductModelCatalogDescriptionUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new VProductModelCatalogDescriptionDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface IVProductModelCatalogDescriptionRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/VProductModelInstructionsRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/VProductModelInstructionsRepository.cs new file mode 100644 index 0000000..368ebe1 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/VProductModelInstructionsRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'vProductModelInstructions'. +/// +[RegisterScoped] +public class VProductModelInstructionsRepository + : EntityRepository, IVProductModelInstructionsRepository +{ + /// + /// Initializes a new instance of the class. + /// + public VProductModelInstructionsRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + VProductModelInstructionsCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new VProductModelInstructionsCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + VProductModelInstructionsUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new VProductModelInstructionsUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new VProductModelInstructionsDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface IVProductModelInstructionsRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Repository/WorkOrderRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/WorkOrderRepository.cs new file mode 100644 index 0000000..57eb648 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Repository/WorkOrderRepository.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using Platy.AdventureWorks.Repository.BaseRepository; +using Platy.AdventureWorks.Repository.Data.Entities; +using Platy.AdventureWorks.Repository.Domain.Models; +using Platy.AdventureWorks.Repository.Events; +using Platy.Shared; +using FluentValidation; +using Ardalis.Result; +using Ardalis.Result.FluentValidation; +using MediatR; + + +namespace Platy.AdventureWorks.Repository; + +/// +/// Repository class representing data for table 'WorkOrder'. +/// +[RegisterScoped] +public class WorkOrderRepository + : EntityRepository, IWorkOrderRepository +{ + /// + /// Initializes a new instance of the class. + /// + public WorkOrderRepository(IServiceProvider serviceProvider, + IMapper mapper, + IMediator mediator, + ILogger logger, + IValidator createValidator, + IValidator updateValidator) + : base(serviceProvider, mapper, logger, mediator, createValidator, updateValidator) + { + #region Generated Constructor + #endregion + } + + #region Generated methods + + /// + /// Gets an . + /// + public async Task> GetAsync(int id, + CancellationToken cancellationToken) => + await ReadModel(id, + cancellationToken); + + /// + /// Returns a list of . + /// + public async Task>> ListAsync( + Expression>? predicate, + CancellationToken cancellationToken) => + await QueryModel(predicate, cancellationToken); + + /// + /// Creates an . + /// + public async Task> CreateAsync( + WorkOrderCreateModel createModel, + CancellationToken cancellationToken) => + await CreateModel(createModel, + new WorkOrderCreatedEvent(), + cancellationToken); + + /// + /// Updates a . + /// + public async Task> UpdateAsync( + int id, + WorkOrderUpdateModel updateModel, + CancellationToken cancellationToken) => + await UpdateModel(id, + updateModel, + new WorkOrderUpdatedEvent(), + cancellationToken); + + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new WorkOrderDeletedEvent(), + cancellationToken); + + #endregion +} + +public interface IWorkOrderRepository + : IRepository +{ +} + diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/AddressScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/AddressScript.yml new file mode 100644 index 0000000..5b2a6f7 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/AddressScript.yml @@ -0,0 +1,109 @@ +EntityClass: Address +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: Addresses +TableSchema: 'Person' +TableName: 'Address' +MappingClass: AddressConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: AddressProfile +MapperNamespace: 'AddressProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'AddressID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: AddressLine1 + ColumnName: 'AddressLine1' + StoreType: nvarchar(60) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 60 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: AddressLine2 + ColumnName: 'AddressLine2' + StoreType: nvarchar(60) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 60 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: City + ColumnName: 'City' + StoreType: nvarchar(30) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 30 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: StateProvinceId + ColumnName: 'StateProvinceID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: True + - PropertyName: PostalCode + ColumnName: 'PostalCode' + StoreType: nvarchar(15) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 15 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: Rowguid + ColumnName: 'rowguid' + StoreType: uniqueidentifier + NativeType: 'uniqueidentifier' + DataType: Guid + SystemType: Guid + Default: '(newid())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/AddressTypeScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/AddressTypeScript.yml new file mode 100644 index 0000000..260598b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/AddressTypeScript.yml @@ -0,0 +1,62 @@ +EntityClass: AddressType +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: AddressTypes +TableSchema: 'Person' +TableName: 'AddressType' +MappingClass: AddressTypeConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: AddressTypeProfile +MapperNamespace: 'AddressTypeProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'AddressTypeID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Name + ColumnName: 'Name' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: Rowguid + ColumnName: 'rowguid' + StoreType: uniqueidentifier + NativeType: 'uniqueidentifier' + DataType: Guid + SystemType: Guid + Default: '(newid())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/BillOfMaterialsScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/BillOfMaterialsScript.yml new file mode 100644 index 0000000..eee9c28 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/BillOfMaterialsScript.yml @@ -0,0 +1,118 @@ +EntityClass: BillOfMaterials +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: BillOfMaterials +TableSchema: 'Production' +TableName: 'BillOfMaterials' +MappingClass: BillOfMaterialsConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: BillOfMaterialsProfile +MapperNamespace: 'BillOfMaterialsProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'BillOfMaterialsID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ProductAssemblyId + ColumnName: 'ProductAssemblyID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: True + - PropertyName: ComponentId + ColumnName: 'ComponentID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: True + - PropertyName: StartDate + ColumnName: 'StartDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: EndDate + ColumnName: 'EndDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: UnitMeasureCode + ColumnName: 'UnitMeasureCode' + StoreType: nchar(3) + NativeType: 'nchar' + DataType: StringFixedLength + SystemType: String + Size: 3 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: BOMLevel + ColumnName: 'BOMLevel' + StoreType: smallint + NativeType: 'smallint' + DataType: Int16 + SystemType: Int16 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: PerAssemblyQty + ColumnName: 'PerAssemblyQty' + StoreType: decimal(8,2) + NativeType: '@decimal' + DataType: Decimal + SystemType: Decimal + Default: '((1.00))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/BusinessEntityAddressScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/BusinessEntityAddressScript.yml new file mode 100644 index 0000000..16baf9e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/BusinessEntityAddressScript.yml @@ -0,0 +1,71 @@ +EntityClass: BusinessEntityAddress +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: BusinessEntityAddresses +TableSchema: 'Person' +TableName: 'BusinessEntityAddress' +MappingClass: BusinessEntityAddressConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: BusinessEntityAddressProfile +MapperNamespace: 'BusinessEntityAddressProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: BusinessEntityId + ColumnName: 'BusinessEntityID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: AddressId + ColumnName: 'AddressID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: AddressTypeId + ColumnName: 'AddressTypeID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: Rowguid + ColumnName: 'rowguid' + StoreType: uniqueidentifier + NativeType: 'uniqueidentifier' + DataType: Guid + SystemType: Guid + Default: '(newid())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/BusinessEntityContactScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/BusinessEntityContactScript.yml new file mode 100644 index 0000000..8fc4625 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/BusinessEntityContactScript.yml @@ -0,0 +1,71 @@ +EntityClass: BusinessEntityContact +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: BusinessEntityContacts +TableSchema: 'Person' +TableName: 'BusinessEntityContact' +MappingClass: BusinessEntityContactConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: BusinessEntityContactProfile +MapperNamespace: 'BusinessEntityContactProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: BusinessEntityId + ColumnName: 'BusinessEntityID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: PersonId + ColumnName: 'PersonID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: ContactTypeId + ColumnName: 'ContactTypeID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: Rowguid + ColumnName: 'rowguid' + StoreType: uniqueidentifier + NativeType: 'uniqueidentifier' + DataType: Guid + SystemType: Guid + Default: '(newid())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/BusinessEntityScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/BusinessEntityScript.yml new file mode 100644 index 0000000..6019c71 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/BusinessEntityScript.yml @@ -0,0 +1,50 @@ +EntityClass: BusinessEntity +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: BusinessEntities +TableSchema: 'Person' +TableName: 'BusinessEntity' +MappingClass: BusinessEntityConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: BusinessEntityProfile +MapperNamespace: 'BusinessEntityProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'BusinessEntityID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Rowguid + ColumnName: 'rowguid' + StoreType: uniqueidentifier + NativeType: 'uniqueidentifier' + DataType: Guid + SystemType: Guid + Default: '(newid())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ContactTypeScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ContactTypeScript.yml new file mode 100644 index 0000000..3169699 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ContactTypeScript.yml @@ -0,0 +1,50 @@ +EntityClass: ContactType +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: ContactTypes +TableSchema: 'Person' +TableName: 'ContactType' +MappingClass: ContactTypeConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: ContactTypeProfile +MapperNamespace: 'ContactTypeProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'ContactTypeID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Name + ColumnName: 'Name' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/CountryRegionCurrencyScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/CountryRegionCurrencyScript.yml new file mode 100644 index 0000000..881c34e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/CountryRegionCurrencyScript.yml @@ -0,0 +1,50 @@ +EntityClass: CountryRegionCurrency +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: CountryRegionCurrencies +TableSchema: 'Sales' +TableName: 'CountryRegionCurrency' +MappingClass: CountryRegionCurrencyConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: CountryRegionCurrencyProfile +MapperNamespace: 'CountryRegionCurrencyProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: CountryRegionCode + ColumnName: 'CountryRegionCode' + StoreType: nvarchar(3) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 3 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: CurrencyCode + ColumnName: 'CurrencyCode' + StoreType: nchar(3) + NativeType: 'nchar' + DataType: StringFixedLength + SystemType: String + Size: 3 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/CountryRegionScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/CountryRegionScript.yml new file mode 100644 index 0000000..f594593 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/CountryRegionScript.yml @@ -0,0 +1,50 @@ +EntityClass: CountryRegion +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: CountryRegions +TableSchema: 'Person' +TableName: 'CountryRegion' +MappingClass: CountryRegionConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: CountryRegionProfile +MapperNamespace: 'CountryRegionProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: CountryRegionCode + ColumnName: 'CountryRegionCode' + StoreType: nvarchar(3) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 3 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Name + ColumnName: 'Name' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/CreditCardScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/CreditCardScript.yml new file mode 100644 index 0000000..9bcc734 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/CreditCardScript.yml @@ -0,0 +1,84 @@ +EntityClass: CreditCard +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: CreditCards +TableSchema: 'Sales' +TableName: 'CreditCard' +MappingClass: CreditCardConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: CreditCardProfile +MapperNamespace: 'CreditCardProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'CreditCardID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: CardType + ColumnName: 'CardType' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: CardNumber + ColumnName: 'CardNumber' + StoreType: nvarchar(25) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 25 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ExpMonth + ColumnName: 'ExpMonth' + StoreType: tinyint + NativeType: 'tinyint' + DataType: Byte + SystemType: Byte + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ExpYear + ColumnName: 'ExpYear' + StoreType: smallint + NativeType: 'smallint' + DataType: Int16 + SystemType: Int16 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/CultureScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/CultureScript.yml new file mode 100644 index 0000000..d55e83a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/CultureScript.yml @@ -0,0 +1,50 @@ +EntityClass: Culture +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: Cultures +TableSchema: 'Production' +TableName: 'Culture' +MappingClass: CultureConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: CultureProfile +MapperNamespace: 'CultureProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'CultureID' + StoreType: nchar(6) + NativeType: 'nchar' + DataType: StringFixedLength + SystemType: String + Size: 6 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Name + ColumnName: 'Name' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/CurrencyRateScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/CurrencyRateScript.yml new file mode 100644 index 0000000..a9107d6 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/CurrencyRateScript.yml @@ -0,0 +1,95 @@ +EntityClass: CurrencyRate +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: CurrencyRates +TableSchema: 'Sales' +TableName: 'CurrencyRate' +MappingClass: CurrencyRateConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: CurrencyRateProfile +MapperNamespace: 'CurrencyRateProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'CurrencyRateID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: CurrencyRateDate + ColumnName: 'CurrencyRateDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: FromCurrencyCode + ColumnName: 'FromCurrencyCode' + StoreType: nchar(3) + NativeType: 'nchar' + DataType: StringFixedLength + SystemType: String + Size: 3 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: True + - PropertyName: ToCurrencyCode + ColumnName: 'ToCurrencyCode' + StoreType: nchar(3) + NativeType: 'nchar' + DataType: StringFixedLength + SystemType: String + Size: 3 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: True + - PropertyName: AverageRate + ColumnName: 'AverageRate' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EndOfDayRate + ColumnName: 'EndOfDayRate' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/CurrencyScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/CurrencyScript.yml new file mode 100644 index 0000000..3252b89 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/CurrencyScript.yml @@ -0,0 +1,50 @@ +EntityClass: Currency +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: Currencies +TableSchema: 'Sales' +TableName: 'Currency' +MappingClass: CurrencyConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: CurrencyProfile +MapperNamespace: 'CurrencyProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: CurrencyCode + ColumnName: 'CurrencyCode' + StoreType: nchar(3) + NativeType: 'nchar' + DataType: StringFixedLength + SystemType: String + Size: 3 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Name + ColumnName: 'Name' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/CustomerScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/CustomerScript.yml new file mode 100644 index 0000000..07bf3c9 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/CustomerScript.yml @@ -0,0 +1,96 @@ +EntityClass: Customer +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: Customers +TableSchema: 'Sales' +TableName: 'Customer' +MappingClass: CustomerConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: CustomerProfile +MapperNamespace: 'CustomerProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'CustomerID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: PersonId + ColumnName: 'PersonID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: StoreId + ColumnName: 'StoreID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: TerritoryId + ColumnName: 'TerritoryID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: AccountNumber + ColumnName: 'AccountNumber' + StoreType: varchar(10) + NativeType: 'varchar' + DataType: AnsiString + SystemType: String + Size: 10 + ValueGenerated: OnAddOrUpdate + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: Rowguid + ColumnName: 'rowguid' + StoreType: uniqueidentifier + NativeType: 'uniqueidentifier' + DataType: Guid + SystemType: Guid + Default: '(newid())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/DepartmentScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/DepartmentScript.yml new file mode 100644 index 0000000..9e1e07e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/DepartmentScript.yml @@ -0,0 +1,62 @@ +EntityClass: Department +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: Departments +TableSchema: 'HumanResources' +TableName: 'Department' +MappingClass: DepartmentConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: DepartmentProfile +MapperNamespace: 'DepartmentProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'DepartmentID' + StoreType: smallint + NativeType: 'smallint' + DataType: Int16 + SystemType: Int16 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Name + ColumnName: 'Name' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: GroupName + ColumnName: 'GroupName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/EmailAddressScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/EmailAddressScript.yml new file mode 100644 index 0000000..7fcbae9 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/EmailAddressScript.yml @@ -0,0 +1,73 @@ +EntityClass: EmailAddress +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: EmailAddresses +TableSchema: 'Person' +TableName: 'EmailAddress' +MappingClass: EmailAddressConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: EmailAddressProfile +MapperNamespace: 'EmailAddressProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: BusinessEntityId + ColumnName: 'BusinessEntityID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: Id + ColumnName: 'EmailAddressID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EmailAddressMember + ColumnName: 'EmailAddress' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Rowguid + ColumnName: 'rowguid' + StoreType: uniqueidentifier + NativeType: 'uniqueidentifier' + DataType: Guid + SystemType: Guid + Default: '(newid())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/EmployeeDepartmentHistoryScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/EmployeeDepartmentHistoryScript.yml new file mode 100644 index 0000000..25df17a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/EmployeeDepartmentHistoryScript.yml @@ -0,0 +1,81 @@ +EntityClass: EmployeeDepartmentHistory +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: EmployeeDepartmentHistories +TableSchema: 'HumanResources' +TableName: 'EmployeeDepartmentHistory' +MappingClass: EmployeeDepartmentHistoryConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: EmployeeDepartmentHistoryProfile +MapperNamespace: 'EmployeeDepartmentHistoryProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: BusinessEntityId + ColumnName: 'BusinessEntityID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: DepartmentId + ColumnName: 'DepartmentID' + StoreType: smallint + NativeType: 'smallint' + DataType: Int16 + SystemType: Int16 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: ShiftId + ColumnName: 'ShiftID' + StoreType: tinyint + NativeType: 'tinyint' + DataType: Byte + SystemType: Byte + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: StartDate + ColumnName: 'StartDate' + StoreType: date + NativeType: 'date' + DataType: Date + SystemType: DateOnly + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EndDate + ColumnName: 'EndDate' + StoreType: date + NativeType: 'date' + DataType: Date + SystemType: DateOnly + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/EmployeePayHistoryScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/EmployeePayHistoryScript.yml new file mode 100644 index 0000000..557ea47 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/EmployeePayHistoryScript.yml @@ -0,0 +1,70 @@ +EntityClass: EmployeePayHistory +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: EmployeePayHistories +TableSchema: 'HumanResources' +TableName: 'EmployeePayHistory' +MappingClass: EmployeePayHistoryConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: EmployeePayHistoryProfile +MapperNamespace: 'EmployeePayHistoryProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: BusinessEntityId + ColumnName: 'BusinessEntityID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: RateChangeDate + ColumnName: 'RateChangeDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Rate + ColumnName: 'Rate' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: PayFrequency + ColumnName: 'PayFrequency' + StoreType: tinyint + NativeType: 'tinyint' + DataType: Byte + SystemType: Byte + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/EmployeeScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/EmployeeScript.yml new file mode 100644 index 0000000..61d09b7 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/EmployeeScript.yml @@ -0,0 +1,191 @@ +EntityClass: Employee +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: Employees +TableSchema: 'HumanResources' +TableName: 'Employee' +MappingClass: EmployeeConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: EmployeeProfile +MapperNamespace: 'EmployeeProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: BusinessEntityId + ColumnName: 'BusinessEntityID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: NationalIdNumber + ColumnName: 'NationalIDNumber' + StoreType: nvarchar(15) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 15 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: LoginId + ColumnName: 'LoginID' + StoreType: nvarchar(256) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 256 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: OrganizationLevel + ColumnName: 'OrganizationLevel' + StoreType: smallint + NativeType: 'smallint' + DataType: Int16 + SystemType: Int16 + ValueGenerated: OnAddOrUpdate + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: JobTitle + ColumnName: 'JobTitle' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: BirthDate + ColumnName: 'BirthDate' + StoreType: date + NativeType: 'date' + DataType: Date + SystemType: DateOnly + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: MaritalStatus + ColumnName: 'MaritalStatus' + StoreType: nchar(1) + NativeType: 'nchar' + DataType: StringFixedLength + SystemType: String + Size: 1 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Gender + ColumnName: 'Gender' + StoreType: nchar(1) + NativeType: 'nchar' + DataType: StringFixedLength + SystemType: String + Size: 1 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: HireDate + ColumnName: 'HireDate' + StoreType: date + NativeType: 'date' + DataType: Date + SystemType: DateOnly + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: SalariedFlag + ColumnName: 'SalariedFlag' + StoreType: bit + NativeType: 'bit' + DataType: Boolean + SystemType: Boolean + Default: '((1))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: VacationHours + ColumnName: 'VacationHours' + StoreType: smallint + NativeType: 'smallint' + DataType: Int16 + SystemType: Int16 + Default: '((0))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: SickLeaveHours + ColumnName: 'SickLeaveHours' + StoreType: smallint + NativeType: 'smallint' + DataType: Int16 + SystemType: Int16 + Default: '((0))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: CurrentFlag + ColumnName: 'CurrentFlag' + StoreType: bit + NativeType: 'bit' + DataType: Boolean + SystemType: Boolean + Default: '((1))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Rowguid + ColumnName: 'rowguid' + StoreType: uniqueidentifier + NativeType: 'uniqueidentifier' + DataType: Guid + SystemType: Guid + Default: '(newid())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/IllustrationScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/IllustrationScript.yml new file mode 100644 index 0000000..ff76189 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/IllustrationScript.yml @@ -0,0 +1,49 @@ +EntityClass: Illustration +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: Illustrations +TableSchema: 'Production' +TableName: 'Illustration' +MappingClass: IllustrationConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: IllustrationProfile +MapperNamespace: 'IllustrationProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'IllustrationID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Diagram + ColumnName: 'Diagram' + StoreType: xml + NativeType: 'xml' + DataType: String + SystemType: String + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/JobCandidateScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/JobCandidateScript.yml new file mode 100644 index 0000000..9439f31 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/JobCandidateScript.yml @@ -0,0 +1,60 @@ +EntityClass: JobCandidate +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: JobCandidates +TableSchema: 'HumanResources' +TableName: 'JobCandidate' +MappingClass: JobCandidateConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: JobCandidateProfile +MapperNamespace: 'JobCandidateProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'JobCandidateID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: BusinessEntityId + ColumnName: 'BusinessEntityID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: Resume + ColumnName: 'Resume' + StoreType: xml + NativeType: 'xml' + DataType: String + SystemType: String + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/LocationScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/LocationScript.yml new file mode 100644 index 0000000..c2d9ead --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/LocationScript.yml @@ -0,0 +1,74 @@ +EntityClass: Location +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: Locations +TableSchema: 'Production' +TableName: 'Location' +MappingClass: LocationConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: LocationProfile +MapperNamespace: 'LocationProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'LocationID' + StoreType: smallint + NativeType: 'smallint' + DataType: Int16 + SystemType: Int16 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Name + ColumnName: 'Name' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: CostRate + ColumnName: 'CostRate' + StoreType: smallmoney + NativeType: 'smallmoney' + DataType: Currency + SystemType: Decimal + Default: '((0.00))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Availability + ColumnName: 'Availability' + StoreType: decimal(8,2) + NativeType: '@decimal' + DataType: Decimal + SystemType: Decimal + Default: '((0.00))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/PasswordScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/PasswordScript.yml new file mode 100644 index 0000000..24c8fe9 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/PasswordScript.yml @@ -0,0 +1,73 @@ +EntityClass: Password +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: Passwords +TableSchema: 'Person' +TableName: 'Password' +MappingClass: PasswordConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: PasswordProfile +MapperNamespace: 'PasswordProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: BusinessEntityId + ColumnName: 'BusinessEntityID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: PasswordHash + ColumnName: 'PasswordHash' + StoreType: varchar(128) + NativeType: 'varchar' + DataType: AnsiString + SystemType: String + Size: 128 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: PasswordSalt + ColumnName: 'PasswordSalt' + StoreType: varchar(10) + NativeType: 'varchar' + DataType: AnsiString + SystemType: String + Size: 10 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Rowguid + ColumnName: 'rowguid' + StoreType: uniqueidentifier + NativeType: 'uniqueidentifier' + DataType: Guid + SystemType: Guid + Default: '(newid())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/PersonCreditCardScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/PersonCreditCardScript.yml new file mode 100644 index 0000000..a4b066c --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/PersonCreditCardScript.yml @@ -0,0 +1,48 @@ +EntityClass: PersonCreditCard +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: PersonCreditCards +TableSchema: 'Sales' +TableName: 'PersonCreditCard' +MappingClass: PersonCreditCardConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: PersonCreditCardProfile +MapperNamespace: 'PersonCreditCardProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: BusinessEntityId + ColumnName: 'BusinessEntityID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: CreditCardId + ColumnName: 'CreditCardID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/PersonPhoneScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/PersonPhoneScript.yml new file mode 100644 index 0000000..4519438 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/PersonPhoneScript.yml @@ -0,0 +1,60 @@ +EntityClass: PersonPhone +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: PersonPhones +TableSchema: 'Person' +TableName: 'PersonPhone' +MappingClass: PersonPhoneConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: PersonPhoneProfile +MapperNamespace: 'PersonPhoneProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: BusinessEntityId + ColumnName: 'BusinessEntityID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: PhoneNumber + ColumnName: 'PhoneNumber' + StoreType: nvarchar(25) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 25 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: PhoneNumberTypeId + ColumnName: 'PhoneNumberTypeID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/PersonScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/PersonScript.yml new file mode 100644 index 0000000..a6225f2 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/PersonScript.yml @@ -0,0 +1,167 @@ +EntityClass: Person +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: People +TableSchema: 'Person' +TableName: 'Person' +MappingClass: PersonConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: PersonProfile +MapperNamespace: 'PersonProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: BusinessEntityId + ColumnName: 'BusinessEntityID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: PersonType + ColumnName: 'PersonType' + StoreType: nchar(2) + NativeType: 'nchar' + DataType: StringFixedLength + SystemType: String + Size: 2 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: NameStyle + ColumnName: 'NameStyle' + StoreType: bit + NativeType: 'bit' + DataType: Boolean + SystemType: Boolean + Default: '((0))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Title + ColumnName: 'Title' + StoreType: nvarchar(8) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 8 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: FirstName + ColumnName: 'FirstName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: MiddleName + ColumnName: 'MiddleName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: LastName + ColumnName: 'LastName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Suffix + ColumnName: 'Suffix' + StoreType: nvarchar(10) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 10 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EmailPromotion + ColumnName: 'EmailPromotion' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + Default: '((0))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: AdditionalContactInfo + ColumnName: 'AdditionalContactInfo' + StoreType: xml + NativeType: 'xml' + DataType: String + SystemType: String + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Demographics + ColumnName: 'Demographics' + StoreType: xml + NativeType: 'xml' + DataType: String + SystemType: String + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Rowguid + ColumnName: 'rowguid' + StoreType: uniqueidentifier + NativeType: 'uniqueidentifier' + DataType: Guid + SystemType: Guid + Default: '(newid())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/PhoneNumberTypeScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/PhoneNumberTypeScript.yml new file mode 100644 index 0000000..ed3d701 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/PhoneNumberTypeScript.yml @@ -0,0 +1,50 @@ +EntityClass: PhoneNumberType +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: PhoneNumberTypes +TableSchema: 'Person' +TableName: 'PhoneNumberType' +MappingClass: PhoneNumberTypeConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: PhoneNumberTypeProfile +MapperNamespace: 'PhoneNumberTypeProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'PhoneNumberTypeID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Name + ColumnName: 'Name' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductCategoryScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductCategoryScript.yml new file mode 100644 index 0000000..6e837b7 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductCategoryScript.yml @@ -0,0 +1,62 @@ +EntityClass: ProductCategory +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: ProductCategories +TableSchema: 'Production' +TableName: 'ProductCategory' +MappingClass: ProductCategoryConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: ProductCategoryProfile +MapperNamespace: 'ProductCategoryProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'ProductCategoryID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Name + ColumnName: 'Name' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: Rowguid + ColumnName: 'rowguid' + StoreType: uniqueidentifier + NativeType: 'uniqueidentifier' + DataType: Guid + SystemType: Guid + Default: '(newid())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductCostHistoryScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductCostHistoryScript.yml new file mode 100644 index 0000000..0ed06a7 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductCostHistoryScript.yml @@ -0,0 +1,70 @@ +EntityClass: ProductCostHistory +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: ProductCostHistories +TableSchema: 'Production' +TableName: 'ProductCostHistory' +MappingClass: ProductCostHistoryConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: ProductCostHistoryProfile +MapperNamespace: 'ProductCostHistoryProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: ProductId + ColumnName: 'ProductID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: StartDate + ColumnName: 'StartDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EndDate + ColumnName: 'EndDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: StandardCost + ColumnName: 'StandardCost' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductDescriptionScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductDescriptionScript.yml new file mode 100644 index 0000000..0919fc5 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductDescriptionScript.yml @@ -0,0 +1,62 @@ +EntityClass: ProductDescription +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: ProductDescriptions +TableSchema: 'Production' +TableName: 'ProductDescription' +MappingClass: ProductDescriptionConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: ProductDescriptionProfile +MapperNamespace: 'ProductDescriptionProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'ProductDescriptionID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Description + ColumnName: 'Description' + StoreType: nvarchar(400) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 400 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Rowguid + ColumnName: 'rowguid' + StoreType: uniqueidentifier + NativeType: 'uniqueidentifier' + DataType: Guid + SystemType: Guid + Default: '(newid())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductDocumentScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductDocumentScript.yml new file mode 100644 index 0000000..88fc33d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductDocumentScript.yml @@ -0,0 +1,37 @@ +EntityClass: ProductDocument +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: ProductDocuments +TableSchema: 'Production' +TableName: 'ProductDocument' +MappingClass: ProductDocumentConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: ProductDocumentProfile +MapperNamespace: 'ProductDocumentProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: ProductId + ColumnName: 'ProductID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductInventoryScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductInventoryScript.yml new file mode 100644 index 0000000..24140ff --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductInventoryScript.yml @@ -0,0 +1,95 @@ +EntityClass: ProductInventory +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: ProductInventories +TableSchema: 'Production' +TableName: 'ProductInventory' +MappingClass: ProductInventoryConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: ProductInventoryProfile +MapperNamespace: 'ProductInventoryProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: ProductId + ColumnName: 'ProductID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: LocationId + ColumnName: 'LocationID' + StoreType: smallint + NativeType: 'smallint' + DataType: Int16 + SystemType: Int16 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: Shelf + ColumnName: 'Shelf' + StoreType: nvarchar(10) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 10 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Bin + ColumnName: 'Bin' + StoreType: tinyint + NativeType: 'tinyint' + DataType: Byte + SystemType: Byte + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Quantity + ColumnName: 'Quantity' + StoreType: smallint + NativeType: 'smallint' + DataType: Int16 + SystemType: Int16 + Default: '((0))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Rowguid + ColumnName: 'rowguid' + StoreType: uniqueidentifier + NativeType: 'uniqueidentifier' + DataType: Guid + SystemType: Guid + Default: '(newid())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductListPriceHistoryScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductListPriceHistoryScript.yml new file mode 100644 index 0000000..17408bd --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductListPriceHistoryScript.yml @@ -0,0 +1,70 @@ +EntityClass: ProductListPriceHistory +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: ProductListPriceHistories +TableSchema: 'Production' +TableName: 'ProductListPriceHistory' +MappingClass: ProductListPriceHistoryConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: ProductListPriceHistoryProfile +MapperNamespace: 'ProductListPriceHistoryProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: ProductId + ColumnName: 'ProductID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: StartDate + ColumnName: 'StartDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EndDate + ColumnName: 'EndDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ListPrice + ColumnName: 'ListPrice' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductModelIllustrationScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductModelIllustrationScript.yml new file mode 100644 index 0000000..99578e4 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductModelIllustrationScript.yml @@ -0,0 +1,48 @@ +EntityClass: ProductModelIllustration +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: ProductModelIllustrations +TableSchema: 'Production' +TableName: 'ProductModelIllustration' +MappingClass: ProductModelIllustrationConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: ProductModelIllustrationProfile +MapperNamespace: 'ProductModelIllustrationProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: ProductModelId + ColumnName: 'ProductModelID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: IllustrationId + ColumnName: 'IllustrationID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductModelProductDescriptionCultureScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductModelProductDescriptionCultureScript.yml new file mode 100644 index 0000000..dbd3b42 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductModelProductDescriptionCultureScript.yml @@ -0,0 +1,60 @@ +EntityClass: ProductModelProductDescriptionCulture +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: ProductModelProductDescriptionCultures +TableSchema: 'Production' +TableName: 'ProductModelProductDescriptionCulture' +MappingClass: ProductModelProductDescriptionCultureConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: ProductModelProductDescriptionCultureProfile +MapperNamespace: 'ProductModelProductDescriptionCultureProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: ProductModelId + ColumnName: 'ProductModelID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: ProductDescriptionId + ColumnName: 'ProductDescriptionID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: CultureId + ColumnName: 'CultureID' + StoreType: nchar(6) + NativeType: 'nchar' + DataType: StringFixedLength + SystemType: String + Size: 6 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductModelScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductModelScript.yml new file mode 100644 index 0000000..ea5546c --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductModelScript.yml @@ -0,0 +1,84 @@ +EntityClass: ProductModel +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: ProductModels +TableSchema: 'Production' +TableName: 'ProductModel' +MappingClass: ProductModelConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: ProductModelProfile +MapperNamespace: 'ProductModelProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'ProductModelID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Name + ColumnName: 'Name' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: CatalogDescription + ColumnName: 'CatalogDescription' + StoreType: xml + NativeType: 'xml' + DataType: String + SystemType: String + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Instructions + ColumnName: 'Instructions' + StoreType: xml + NativeType: 'xml' + DataType: String + SystemType: String + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Rowguid + ColumnName: 'rowguid' + StoreType: uniqueidentifier + NativeType: 'uniqueidentifier' + DataType: Guid + SystemType: Guid + Default: '(newid())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductPhotoScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductPhotoScript.yml new file mode 100644 index 0000000..ba42309 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductPhotoScript.yml @@ -0,0 +1,86 @@ +EntityClass: ProductPhoto +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: ProductPhotos +TableSchema: 'Production' +TableName: 'ProductPhoto' +MappingClass: ProductPhotoConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: ProductPhotoProfile +MapperNamespace: 'ProductPhotoProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'ProductPhotoID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ThumbNailPhoto + ColumnName: 'ThumbNailPhoto' + StoreType: varbinary(max) + NativeType: 'varbinary' + DataType: Binary + SystemType: Byte[] + Size: -1 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ThumbnailPhotoFileName + ColumnName: 'ThumbnailPhotoFileName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: LargePhoto + ColumnName: 'LargePhoto' + StoreType: varbinary(max) + NativeType: 'varbinary' + DataType: Binary + SystemType: Byte[] + Size: -1 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: LargePhotoFileName + ColumnName: 'LargePhotoFileName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductProductPhotoScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductProductPhotoScript.yml new file mode 100644 index 0000000..a51b328 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductProductPhotoScript.yml @@ -0,0 +1,60 @@ +EntityClass: ProductProductPhoto +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: ProductProductPhotos +TableSchema: 'Production' +TableName: 'ProductProductPhoto' +MappingClass: ProductProductPhotoConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: ProductProductPhotoProfile +MapperNamespace: 'ProductProductPhotoProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: ProductId + ColumnName: 'ProductID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: ProductPhotoId + ColumnName: 'ProductPhotoID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: Primary + ColumnName: 'Primary' + StoreType: bit + NativeType: 'bit' + DataType: Boolean + SystemType: Boolean + Default: '((0))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductReviewScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductReviewScript.yml new file mode 100644 index 0000000..9b2de2c --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductReviewScript.yml @@ -0,0 +1,108 @@ +EntityClass: ProductReview +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: ProductReviews +TableSchema: 'Production' +TableName: 'ProductReview' +MappingClass: ProductReviewConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: ProductReviewProfile +MapperNamespace: 'ProductReviewProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'ProductReviewID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ProductId + ColumnName: 'ProductID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: ReviewerName + ColumnName: 'ReviewerName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ReviewDate + ColumnName: 'ReviewDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EmailAddress + ColumnName: 'EmailAddress' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Rating + ColumnName: 'Rating' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Comments + ColumnName: 'Comments' + StoreType: nvarchar(3850) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 3850 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductScript.yml new file mode 100644 index 0000000..bb251bc --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductScript.yml @@ -0,0 +1,303 @@ +EntityClass: Product +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: Products +TableSchema: 'Production' +TableName: 'Product' +MappingClass: ProductConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: ProductProfile +MapperNamespace: 'ProductProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'ProductID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Name + ColumnName: 'Name' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ProductNumber + ColumnName: 'ProductNumber' + StoreType: nvarchar(25) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 25 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: MakeFlag + ColumnName: 'MakeFlag' + StoreType: bit + NativeType: 'bit' + DataType: Boolean + SystemType: Boolean + Default: '((1))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: FinishedGoodsFlag + ColumnName: 'FinishedGoodsFlag' + StoreType: bit + NativeType: 'bit' + DataType: Boolean + SystemType: Boolean + Default: '((1))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Color + ColumnName: 'Color' + StoreType: nvarchar(15) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 15 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: SafetyStockLevel + ColumnName: 'SafetyStockLevel' + StoreType: smallint + NativeType: 'smallint' + DataType: Int16 + SystemType: Int16 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ReorderPoint + ColumnName: 'ReorderPoint' + StoreType: smallint + NativeType: 'smallint' + DataType: Int16 + SystemType: Int16 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: StandardCost + ColumnName: 'StandardCost' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ListPrice + ColumnName: 'ListPrice' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Size + ColumnName: 'Size' + StoreType: nvarchar(5) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 5 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: SizeUnitMeasureCode + ColumnName: 'SizeUnitMeasureCode' + StoreType: nchar(3) + NativeType: 'nchar' + DataType: StringFixedLength + SystemType: String + Size: 3 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: WeightUnitMeasureCode + ColumnName: 'WeightUnitMeasureCode' + StoreType: nchar(3) + NativeType: 'nchar' + DataType: StringFixedLength + SystemType: String + Size: 3 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: Weight + ColumnName: 'Weight' + StoreType: decimal(8,2) + NativeType: '@decimal' + DataType: Decimal + SystemType: Decimal + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: DaysToManufacture + ColumnName: 'DaysToManufacture' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ProductLine + ColumnName: 'ProductLine' + StoreType: nchar(2) + NativeType: 'nchar' + DataType: StringFixedLength + SystemType: String + Size: 2 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Class + ColumnName: 'Class' + StoreType: nchar(2) + NativeType: 'nchar' + DataType: StringFixedLength + SystemType: String + Size: 2 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Style + ColumnName: 'Style' + StoreType: nchar(2) + NativeType: 'nchar' + DataType: StringFixedLength + SystemType: String + Size: 2 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ProductSubcategoryId + ColumnName: 'ProductSubcategoryID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: ProductModelId + ColumnName: 'ProductModelID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: SellStartDate + ColumnName: 'SellStartDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: SellEndDate + ColumnName: 'SellEndDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: DiscontinuedDate + ColumnName: 'DiscontinuedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Rowguid + ColumnName: 'rowguid' + StoreType: uniqueidentifier + NativeType: 'uniqueidentifier' + DataType: Guid + SystemType: Guid + Default: '(newid())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductSubcategoryScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductSubcategoryScript.yml new file mode 100644 index 0000000..b96ee81 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductSubcategoryScript.yml @@ -0,0 +1,73 @@ +EntityClass: ProductSubcategory +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: ProductSubcategories +TableSchema: 'Production' +TableName: 'ProductSubcategory' +MappingClass: ProductSubcategoryConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: ProductSubcategoryProfile +MapperNamespace: 'ProductSubcategoryProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'ProductSubcategoryID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ProductCategoryId + ColumnName: 'ProductCategoryID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: Name + ColumnName: 'Name' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: Rowguid + ColumnName: 'rowguid' + StoreType: uniqueidentifier + NativeType: 'uniqueidentifier' + DataType: Guid + SystemType: Guid + Default: '(newid())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductVendorScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductVendorScript.yml new file mode 100644 index 0000000..71c08f4 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductVendorScript.yml @@ -0,0 +1,137 @@ +EntityClass: ProductVendor +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: ProductVendors +TableSchema: 'Purchasing' +TableName: 'ProductVendor' +MappingClass: ProductVendorConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: ProductVendorProfile +MapperNamespace: 'ProductVendorProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: ProductId + ColumnName: 'ProductID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: BusinessEntityId + ColumnName: 'BusinessEntityID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: AverageLeadTime + ColumnName: 'AverageLeadTime' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: StandardPrice + ColumnName: 'StandardPrice' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: LastReceiptCost + ColumnName: 'LastReceiptCost' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: LastReceiptDate + ColumnName: 'LastReceiptDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: MinOrderQty + ColumnName: 'MinOrderQty' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: MaxOrderQty + ColumnName: 'MaxOrderQty' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: OnOrderQty + ColumnName: 'OnOrderQty' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: UnitMeasureCode + ColumnName: 'UnitMeasureCode' + StoreType: nchar(3) + NativeType: 'nchar' + DataType: StringFixedLength + SystemType: String + Size: 3 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/PurchaseOrderDetailScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/PurchaseOrderDetailScript.yml new file mode 100644 index 0000000..87335d3 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/PurchaseOrderDetailScript.yml @@ -0,0 +1,139 @@ +EntityClass: PurchaseOrderDetail +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: PurchaseOrderDetails +TableSchema: 'Purchasing' +TableName: 'PurchaseOrderDetail' +MappingClass: PurchaseOrderDetailConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: PurchaseOrderDetailProfile +MapperNamespace: 'PurchaseOrderDetailProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: PurchaseOrderId + ColumnName: 'PurchaseOrderID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: Id + ColumnName: 'PurchaseOrderDetailID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: DueDate + ColumnName: 'DueDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: OrderQty + ColumnName: 'OrderQty' + StoreType: smallint + NativeType: 'smallint' + DataType: Int16 + SystemType: Int16 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ProductId + ColumnName: 'ProductID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: UnitPrice + ColumnName: 'UnitPrice' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: LineTotal + ColumnName: 'LineTotal' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + ValueGenerated: OnAddOrUpdate + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ReceivedQty + ColumnName: 'ReceivedQty' + StoreType: decimal(8,2) + NativeType: '@decimal' + DataType: Decimal + SystemType: Decimal + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: RejectedQty + ColumnName: 'RejectedQty' + StoreType: decimal(8,2) + NativeType: '@decimal' + DataType: Decimal + SystemType: Decimal + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: StockedQty + ColumnName: 'StockedQty' + StoreType: decimal(9,2) + NativeType: '@decimal' + DataType: Decimal + SystemType: Decimal + ValueGenerated: OnAddOrUpdate + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/PurchaseOrderHeaderScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/PurchaseOrderHeaderScript.yml new file mode 100644 index 0000000..72f270f --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/PurchaseOrderHeaderScript.yml @@ -0,0 +1,166 @@ +EntityClass: PurchaseOrderHeader +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: PurchaseOrderHeaders +TableSchema: 'Purchasing' +TableName: 'PurchaseOrderHeader' +MappingClass: PurchaseOrderHeaderConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: PurchaseOrderHeaderProfile +MapperNamespace: 'PurchaseOrderHeaderProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'PurchaseOrderID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: RevisionNumber + ColumnName: 'RevisionNumber' + StoreType: tinyint + NativeType: 'tinyint' + DataType: Byte + SystemType: Byte + Default: '((0))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Status + ColumnName: 'Status' + StoreType: tinyint + NativeType: 'tinyint' + DataType: Byte + SystemType: Byte + Default: '((1))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EmployeeId + ColumnName: 'EmployeeID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: VendorId + ColumnName: 'VendorID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: ShipMethodId + ColumnName: 'ShipMethodID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: OrderDate + ColumnName: 'OrderDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ShipDate + ColumnName: 'ShipDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: SubTotal + ColumnName: 'SubTotal' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + Default: '((0.00))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: TaxAmt + ColumnName: 'TaxAmt' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + Default: '((0.00))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Freight + ColumnName: 'Freight' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + Default: '((0.00))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: TotalDue + ColumnName: 'TotalDue' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + ValueGenerated: OnAddOrUpdate + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesOrderDetailScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesOrderDetailScript.yml new file mode 100644 index 0000000..495e253 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesOrderDetailScript.yml @@ -0,0 +1,141 @@ +EntityClass: SalesOrderDetail +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: SalesOrderDetails +TableSchema: 'Sales' +TableName: 'SalesOrderDetail' +MappingClass: SalesOrderDetailConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: SalesOrderDetailProfile +MapperNamespace: 'SalesOrderDetailProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: SalesOrderId + ColumnName: 'SalesOrderID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: Id + ColumnName: 'SalesOrderDetailID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: CarrierTrackingNumber + ColumnName: 'CarrierTrackingNumber' + StoreType: nvarchar(25) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 25 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: OrderQty + ColumnName: 'OrderQty' + StoreType: smallint + NativeType: 'smallint' + DataType: Int16 + SystemType: Int16 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ProductId + ColumnName: 'ProductID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: SpecialOfferId + ColumnName: 'SpecialOfferID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: UnitPrice + ColumnName: 'UnitPrice' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: UnitPriceDiscount + ColumnName: 'UnitPriceDiscount' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + Default: '((0.0))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: LineTotal + ColumnName: 'LineTotal' + StoreType: numeric(38,6) + NativeType: 'numeric' + DataType: Decimal + SystemType: Decimal + ValueGenerated: OnAddOrUpdate + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Rowguid + ColumnName: 'rowguid' + StoreType: uniqueidentifier + NativeType: 'uniqueidentifier' + DataType: Guid + SystemType: Guid + Default: '(newid())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesOrderHeaderSalesReasonScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesOrderHeaderSalesReasonScript.yml new file mode 100644 index 0000000..45c9134 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesOrderHeaderSalesReasonScript.yml @@ -0,0 +1,48 @@ +EntityClass: SalesOrderHeaderSalesReason +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: SalesOrderHeaderSalesReasons +TableSchema: 'Sales' +TableName: 'SalesOrderHeaderSalesReason' +MappingClass: SalesOrderHeaderSalesReasonConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: SalesOrderHeaderSalesReasonProfile +MapperNamespace: 'SalesOrderHeaderSalesReasonProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: SalesOrderId + ColumnName: 'SalesOrderID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: SalesReasonId + ColumnName: 'SalesReasonID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesOrderHeaderScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesOrderHeaderScript.yml new file mode 100644 index 0000000..344277f --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesOrderHeaderScript.yml @@ -0,0 +1,317 @@ +EntityClass: SalesOrderHeader +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: SalesOrderHeaders +TableSchema: 'Sales' +TableName: 'SalesOrderHeader' +MappingClass: SalesOrderHeaderConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: SalesOrderHeaderProfile +MapperNamespace: 'SalesOrderHeaderProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'SalesOrderID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: RevisionNumber + ColumnName: 'RevisionNumber' + StoreType: tinyint + NativeType: 'tinyint' + DataType: Byte + SystemType: Byte + Default: '((0))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: OrderDate + ColumnName: 'OrderDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: DueDate + ColumnName: 'DueDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ShipDate + ColumnName: 'ShipDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Status + ColumnName: 'Status' + StoreType: tinyint + NativeType: 'tinyint' + DataType: Byte + SystemType: Byte + Default: '((1))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: OnlineOrderFlag + ColumnName: 'OnlineOrderFlag' + StoreType: bit + NativeType: 'bit' + DataType: Boolean + SystemType: Boolean + Default: '((1))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: SalesOrderNumber + ColumnName: 'SalesOrderNumber' + StoreType: nvarchar(25) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 25 + ValueGenerated: OnAddOrUpdate + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: PurchaseOrderNumber + ColumnName: 'PurchaseOrderNumber' + StoreType: nvarchar(25) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 25 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: AccountNumber + ColumnName: 'AccountNumber' + StoreType: nvarchar(15) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 15 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: CustomerId + ColumnName: 'CustomerID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: SalesPersonId + ColumnName: 'SalesPersonID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: TerritoryId + ColumnName: 'TerritoryID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: BillToAddressId + ColumnName: 'BillToAddressID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: ShipToAddressId + ColumnName: 'ShipToAddressID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: ShipMethodId + ColumnName: 'ShipMethodID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: CreditCardId + ColumnName: 'CreditCardID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: CreditCardApprovalCode + ColumnName: 'CreditCardApprovalCode' + StoreType: varchar(15) + NativeType: 'varchar' + DataType: AnsiString + SystemType: String + Size: 15 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: CurrencyRateId + ColumnName: 'CurrencyRateID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: SubTotal + ColumnName: 'SubTotal' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + Default: '((0.00))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: TaxAmt + ColumnName: 'TaxAmt' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + Default: '((0.00))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Freight + ColumnName: 'Freight' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + Default: '((0.00))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: TotalDue + ColumnName: 'TotalDue' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + ValueGenerated: OnAddOrUpdate + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Comment + ColumnName: 'Comment' + StoreType: nvarchar(128) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 128 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Rowguid + ColumnName: 'rowguid' + StoreType: uniqueidentifier + NativeType: 'uniqueidentifier' + DataType: Guid + SystemType: Guid + Default: '(newid())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesPersonQuotaHistoryScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesPersonQuotaHistoryScript.yml new file mode 100644 index 0000000..86c16bc --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesPersonQuotaHistoryScript.yml @@ -0,0 +1,71 @@ +EntityClass: SalesPersonQuotaHistory +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: SalesPersonQuotaHistories +TableSchema: 'Sales' +TableName: 'SalesPersonQuotaHistory' +MappingClass: SalesPersonQuotaHistoryConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: SalesPersonQuotaHistoryProfile +MapperNamespace: 'SalesPersonQuotaHistoryProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: BusinessEntityId + ColumnName: 'BusinessEntityID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: QuotaDate + ColumnName: 'QuotaDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: SalesQuota + ColumnName: 'SalesQuota' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Rowguid + ColumnName: 'rowguid' + StoreType: uniqueidentifier + NativeType: 'uniqueidentifier' + DataType: Guid + SystemType: Guid + Default: '(newid())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesPersonScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesPersonScript.yml new file mode 100644 index 0000000..050b7b5 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesPersonScript.yml @@ -0,0 +1,119 @@ +EntityClass: SalesPerson +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: SalesPeople +TableSchema: 'Sales' +TableName: 'SalesPerson' +MappingClass: SalesPersonConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: SalesPersonProfile +MapperNamespace: 'SalesPersonProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: BusinessEntityId + ColumnName: 'BusinessEntityID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: TerritoryId + ColumnName: 'TerritoryID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: SalesQuota + ColumnName: 'SalesQuota' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Bonus + ColumnName: 'Bonus' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + Default: '((0.00))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: CommissionPct + ColumnName: 'CommissionPct' + StoreType: smallmoney + NativeType: 'smallmoney' + DataType: Currency + SystemType: Decimal + Default: '((0.00))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: SalesYTD + ColumnName: 'SalesYTD' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + Default: '((0.00))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: SalesLastYear + ColumnName: 'SalesLastYear' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + Default: '((0.00))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Rowguid + ColumnName: 'rowguid' + StoreType: uniqueidentifier + NativeType: 'uniqueidentifier' + DataType: Guid + SystemType: Guid + Default: '(newid())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesReasonScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesReasonScript.yml new file mode 100644 index 0000000..44363b2 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesReasonScript.yml @@ -0,0 +1,62 @@ +EntityClass: SalesReason +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: SalesReasons +TableSchema: 'Sales' +TableName: 'SalesReason' +MappingClass: SalesReasonConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: SalesReasonProfile +MapperNamespace: 'SalesReasonProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'SalesReasonID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Name + ColumnName: 'Name' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ReasonType + ColumnName: 'ReasonType' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesTaxRateScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesTaxRateScript.yml new file mode 100644 index 0000000..6cdbadb --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesTaxRateScript.yml @@ -0,0 +1,96 @@ +EntityClass: SalesTaxRate +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: SalesTaxRates +TableSchema: 'Sales' +TableName: 'SalesTaxRate' +MappingClass: SalesTaxRateConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: SalesTaxRateProfile +MapperNamespace: 'SalesTaxRateProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'SalesTaxRateID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: StateProvinceId + ColumnName: 'StateProvinceID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: True + - PropertyName: TaxType + ColumnName: 'TaxType' + StoreType: tinyint + NativeType: 'tinyint' + DataType: Byte + SystemType: Byte + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: TaxRate + ColumnName: 'TaxRate' + StoreType: smallmoney + NativeType: 'smallmoney' + DataType: Currency + SystemType: Decimal + Default: '((0.00))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Name + ColumnName: 'Name' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Rowguid + ColumnName: 'rowguid' + StoreType: uniqueidentifier + NativeType: 'uniqueidentifier' + DataType: Guid + SystemType: Guid + Default: '(newid())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesTerritoryHistoryScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesTerritoryHistoryScript.yml new file mode 100644 index 0000000..acda982 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesTerritoryHistoryScript.yml @@ -0,0 +1,82 @@ +EntityClass: SalesTerritoryHistory +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: SalesTerritoryHistories +TableSchema: 'Sales' +TableName: 'SalesTerritoryHistory' +MappingClass: SalesTerritoryHistoryConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: SalesTerritoryHistoryProfile +MapperNamespace: 'SalesTerritoryHistoryProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: BusinessEntityId + ColumnName: 'BusinessEntityID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: TerritoryId + ColumnName: 'TerritoryID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: StartDate + ColumnName: 'StartDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EndDate + ColumnName: 'EndDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Rowguid + ColumnName: 'rowguid' + StoreType: uniqueidentifier + NativeType: 'uniqueidentifier' + DataType: Guid + SystemType: Guid + Default: '(newid())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesTerritoryScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesTerritoryScript.yml new file mode 100644 index 0000000..1ea5ab5 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesTerritoryScript.yml @@ -0,0 +1,134 @@ +EntityClass: SalesTerritory +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: SalesTerritories +TableSchema: 'Sales' +TableName: 'SalesTerritory' +MappingClass: SalesTerritoryConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: SalesTerritoryProfile +MapperNamespace: 'SalesTerritoryProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'TerritoryID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Name + ColumnName: 'Name' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: CountryRegionCode + ColumnName: 'CountryRegionCode' + StoreType: nvarchar(3) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 3 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: Group + ColumnName: 'Group' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: SalesYTD + ColumnName: 'SalesYTD' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + Default: '((0.00))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: SalesLastYear + ColumnName: 'SalesLastYear' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + Default: '((0.00))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: CostYTD + ColumnName: 'CostYTD' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + Default: '((0.00))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: CostLastYear + ColumnName: 'CostLastYear' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + Default: '((0.00))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Rowguid + ColumnName: 'rowguid' + StoreType: uniqueidentifier + NativeType: 'uniqueidentifier' + DataType: Guid + SystemType: Guid + Default: '(newid())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ScrapReasonScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ScrapReasonScript.yml new file mode 100644 index 0000000..aa9d63f --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ScrapReasonScript.yml @@ -0,0 +1,50 @@ +EntityClass: ScrapReason +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: ScrapReasons +TableSchema: 'Production' +TableName: 'ScrapReason' +MappingClass: ScrapReasonConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: ScrapReasonProfile +MapperNamespace: 'ScrapReasonProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'ScrapReasonID' + StoreType: smallint + NativeType: 'smallint' + DataType: Int16 + SystemType: Int16 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Name + ColumnName: 'Name' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ShiftScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ShiftScript.yml new file mode 100644 index 0000000..a86d312 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ShiftScript.yml @@ -0,0 +1,72 @@ +EntityClass: Shift +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: Shifts +TableSchema: 'HumanResources' +TableName: 'Shift' +MappingClass: ShiftConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: ShiftProfile +MapperNamespace: 'ShiftProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'ShiftID' + StoreType: tinyint + NativeType: 'tinyint' + DataType: Byte + SystemType: Byte + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Name + ColumnName: 'Name' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: StartTime + ColumnName: 'StartTime' + StoreType: time + NativeType: 'time' + DataType: Time + SystemType: TimeOnly + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: EndTime + ColumnName: 'EndTime' + StoreType: time + NativeType: 'time' + DataType: Time + SystemType: TimeOnly + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ShipMethodScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ShipMethodScript.yml new file mode 100644 index 0000000..338d506 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ShipMethodScript.yml @@ -0,0 +1,86 @@ +EntityClass: ShipMethod +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: ShipMethods +TableSchema: 'Purchasing' +TableName: 'ShipMethod' +MappingClass: ShipMethodConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: ShipMethodProfile +MapperNamespace: 'ShipMethodProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'ShipMethodID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Name + ColumnName: 'Name' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ShipBase + ColumnName: 'ShipBase' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + Default: '((0.00))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ShipRate + ColumnName: 'ShipRate' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + Default: '((0.00))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Rowguid + ColumnName: 'rowguid' + StoreType: uniqueidentifier + NativeType: 'uniqueidentifier' + DataType: Guid + SystemType: Guid + Default: '(newid())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ShoppingCartItemScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ShoppingCartItemScript.yml new file mode 100644 index 0000000..365850a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ShoppingCartItemScript.yml @@ -0,0 +1,85 @@ +EntityClass: ShoppingCartItem +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: ShoppingCartItems +TableSchema: 'Sales' +TableName: 'ShoppingCartItem' +MappingClass: ShoppingCartItemConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: ShoppingCartItemProfile +MapperNamespace: 'ShoppingCartItemProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'ShoppingCartItemID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ShoppingCartId + ColumnName: 'ShoppingCartID' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Quantity + ColumnName: 'Quantity' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + Default: '((1))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ProductId + ColumnName: 'ProductID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: DateCreated + ColumnName: 'DateCreated' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SpecialOfferProductScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SpecialOfferProductScript.yml new file mode 100644 index 0000000..b7a3705 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SpecialOfferProductScript.yml @@ -0,0 +1,60 @@ +EntityClass: SpecialOfferProduct +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: SpecialOfferProducts +TableSchema: 'Sales' +TableName: 'SpecialOfferProduct' +MappingClass: SpecialOfferProductConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: SpecialOfferProductProfile +MapperNamespace: 'SpecialOfferProductProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: SpecialOfferId + ColumnName: 'SpecialOfferID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: ProductId + ColumnName: 'ProductID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: Rowguid + ColumnName: 'rowguid' + StoreType: uniqueidentifier + NativeType: 'uniqueidentifier' + DataType: Guid + SystemType: Guid + Default: '(newid())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SpecialOfferScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SpecialOfferScript.yml new file mode 100644 index 0000000..94c11a6 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SpecialOfferScript.yml @@ -0,0 +1,143 @@ +EntityClass: SpecialOffer +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: SpecialOffers +TableSchema: 'Sales' +TableName: 'SpecialOffer' +MappingClass: SpecialOfferConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: SpecialOfferProfile +MapperNamespace: 'SpecialOfferProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'SpecialOfferID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Description + ColumnName: 'Description' + StoreType: nvarchar(255) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 255 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: DiscountPct + ColumnName: 'DiscountPct' + StoreType: smallmoney + NativeType: 'smallmoney' + DataType: Currency + SystemType: Decimal + Default: '((0.00))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Type + ColumnName: 'Type' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Category + ColumnName: 'Category' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: StartDate + ColumnName: 'StartDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EndDate + ColumnName: 'EndDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: MinQty + ColumnName: 'MinQty' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + Default: '((0))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: MaxQty + ColumnName: 'MaxQty' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Rowguid + ColumnName: 'rowguid' + StoreType: uniqueidentifier + NativeType: 'uniqueidentifier' + DataType: Guid + SystemType: Guid + Default: '(newid())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/StateProvinceScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/StateProvinceScript.yml new file mode 100644 index 0000000..44f8370 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/StateProvinceScript.yml @@ -0,0 +1,109 @@ +EntityClass: StateProvince +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: StateProvinces +TableSchema: 'Person' +TableName: 'StateProvince' +MappingClass: StateProvinceConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: StateProvinceProfile +MapperNamespace: 'StateProvinceProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'StateProvinceID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: StateProvinceCode + ColumnName: 'StateProvinceCode' + StoreType: nchar(3) + NativeType: 'nchar' + DataType: StringFixedLength + SystemType: String + Size: 3 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: CountryRegionCode + ColumnName: 'CountryRegionCode' + StoreType: nvarchar(3) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 3 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: True + - PropertyName: IsOnlyStateProvinceFlag + ColumnName: 'IsOnlyStateProvinceFlag' + StoreType: bit + NativeType: 'bit' + DataType: Boolean + SystemType: Boolean + Default: '((1))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Name + ColumnName: 'Name' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: TerritoryId + ColumnName: 'TerritoryID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: Rowguid + ColumnName: 'rowguid' + StoreType: uniqueidentifier + NativeType: 'uniqueidentifier' + DataType: Guid + SystemType: Guid + Default: '(newid())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/StoreScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/StoreScript.yml new file mode 100644 index 0000000..01d5b54 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/StoreScript.yml @@ -0,0 +1,83 @@ +EntityClass: Store +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: Stores +TableSchema: 'Sales' +TableName: 'Store' +MappingClass: StoreConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: StoreProfile +MapperNamespace: 'StoreProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: BusinessEntityId + ColumnName: 'BusinessEntityID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: Name + ColumnName: 'Name' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: SalesPersonId + ColumnName: 'SalesPersonID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: Demographics + ColumnName: 'Demographics' + StoreType: xml + NativeType: 'xml' + DataType: String + SystemType: String + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Rowguid + ColumnName: 'rowguid' + StoreType: uniqueidentifier + NativeType: 'uniqueidentifier' + DataType: Guid + SystemType: Guid + Default: '(newid())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/TransactionHistoryArchiveScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/TransactionHistoryArchiveScript.yml new file mode 100644 index 0000000..9efc328 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/TransactionHistoryArchiveScript.yml @@ -0,0 +1,117 @@ +EntityClass: TransactionHistoryArchive +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: TransactionHistoryArchives +TableSchema: 'Production' +TableName: 'TransactionHistoryArchive' +MappingClass: TransactionHistoryArchiveConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: TransactionHistoryArchiveProfile +MapperNamespace: 'TransactionHistoryArchiveProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: TransactionId + ColumnName: 'TransactionID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ProductId + ColumnName: 'ProductID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ReferenceOrderId + ColumnName: 'ReferenceOrderID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ReferenceOrderLineId + ColumnName: 'ReferenceOrderLineID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + Default: '((0))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: TransactionDate + ColumnName: 'TransactionDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: TransactionType + ColumnName: 'TransactionType' + StoreType: nchar(1) + NativeType: 'nchar' + DataType: StringFixedLength + SystemType: String + Size: 1 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Quantity + ColumnName: 'Quantity' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ActualCost + ColumnName: 'ActualCost' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/TransactionHistoryScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/TransactionHistoryScript.yml new file mode 100644 index 0000000..f1662ff --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/TransactionHistoryScript.yml @@ -0,0 +1,118 @@ +EntityClass: TransactionHistory +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: TransactionHistories +TableSchema: 'Production' +TableName: 'TransactionHistory' +MappingClass: TransactionHistoryConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: TransactionHistoryProfile +MapperNamespace: 'TransactionHistoryProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'TransactionID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ProductId + ColumnName: 'ProductID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: ReferenceOrderId + ColumnName: 'ReferenceOrderID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ReferenceOrderLineId + ColumnName: 'ReferenceOrderLineID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + Default: '((0))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: TransactionDate + ColumnName: 'TransactionDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: TransactionType + ColumnName: 'TransactionType' + StoreType: nchar(1) + NativeType: 'nchar' + DataType: StringFixedLength + SystemType: String + Size: 1 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Quantity + ColumnName: 'Quantity' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ActualCost + ColumnName: 'ActualCost' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/UnitMeasureScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/UnitMeasureScript.yml new file mode 100644 index 0000000..6800dbe --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/UnitMeasureScript.yml @@ -0,0 +1,50 @@ +EntityClass: UnitMeasure +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: UnitMeasures +TableSchema: 'Production' +TableName: 'UnitMeasure' +MappingClass: UnitMeasureConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: UnitMeasureProfile +MapperNamespace: 'UnitMeasureProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: UnitMeasureCode + ColumnName: 'UnitMeasureCode' + StoreType: nchar(3) + NativeType: 'nchar' + DataType: StringFixedLength + SystemType: String + Size: 3 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Name + ColumnName: 'Name' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VAdditionalContactInfoScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VAdditionalContactInfoScript.yml new file mode 100644 index 0000000..736e9ea --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VAdditionalContactInfoScript.yml @@ -0,0 +1,215 @@ +EntityClass: VAdditionalContactInfo +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: VAdditionalContactInfos +TableSchema: 'Person' +TableName: 'vAdditionalContactInfo' +MappingClass: VAdditionalContactInfoConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: VAdditionalContactInfoProfile +MapperNamespace: 'VAdditionalContactInfoProfile' +MapperBaseClass: Profile +IsView: True +Properties: + - PropertyName: BusinessEntityId + ColumnName: 'BusinessEntityID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: FirstName + ColumnName: 'FirstName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: MiddleName + ColumnName: 'MiddleName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: LastName + ColumnName: 'LastName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: TelephoneNumber + ColumnName: 'TelephoneNumber' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: TelephoneSpecialInstructions + ColumnName: 'TelephoneSpecialInstructions' + StoreType: nvarchar(max) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: -1 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Street + ColumnName: 'Street' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: City + ColumnName: 'City' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: StateProvince + ColumnName: 'StateProvince' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: PostalCode + ColumnName: 'PostalCode' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: CountryRegion + ColumnName: 'CountryRegion' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: HomeAddressSpecialInstructions + ColumnName: 'HomeAddressSpecialInstructions' + StoreType: nvarchar(max) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: -1 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EMailAddress + ColumnName: 'EMailAddress' + StoreType: nvarchar(128) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 128 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EMailSpecialInstructions + ColumnName: 'EMailSpecialInstructions' + StoreType: nvarchar(max) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: -1 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EMailTelephoneNumber + ColumnName: 'EMailTelephoneNumber' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Rowguid + ColumnName: 'rowguid' + StoreType: uniqueidentifier + NativeType: 'uniqueidentifier' + DataType: Guid + SystemType: Guid + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VEmployeeDepartmentHistoryScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VEmployeeDepartmentHistoryScript.yml new file mode 100644 index 0000000..8725a17 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VEmployeeDepartmentHistoryScript.yml @@ -0,0 +1,143 @@ +EntityClass: VEmployeeDepartmentHistory +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: VEmployeeDepartmentHistories +TableSchema: 'HumanResources' +TableName: 'vEmployeeDepartmentHistory' +MappingClass: VEmployeeDepartmentHistoryConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: VEmployeeDepartmentHistoryProfile +MapperNamespace: 'VEmployeeDepartmentHistoryProfile' +MapperBaseClass: Profile +IsView: True +Properties: + - PropertyName: BusinessEntityId + ColumnName: 'BusinessEntityID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Title + ColumnName: 'Title' + StoreType: nvarchar(8) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 8 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: FirstName + ColumnName: 'FirstName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: MiddleName + ColumnName: 'MiddleName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: LastName + ColumnName: 'LastName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Suffix + ColumnName: 'Suffix' + StoreType: nvarchar(10) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 10 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Shift + ColumnName: 'Shift' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Department + ColumnName: 'Department' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: GroupName + ColumnName: 'GroupName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: StartDate + ColumnName: 'StartDate' + StoreType: date + NativeType: 'date' + DataType: Date + SystemType: DateOnly + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EndDate + ColumnName: 'EndDate' + StoreType: date + NativeType: 'date' + DataType: Date + SystemType: DateOnly + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VEmployeeDepartmentScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VEmployeeDepartmentScript.yml new file mode 100644 index 0000000..eb0f420 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VEmployeeDepartmentScript.yml @@ -0,0 +1,132 @@ +EntityClass: VEmployeeDepartment +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: VEmployeeDepartments +TableSchema: 'HumanResources' +TableName: 'vEmployeeDepartment' +MappingClass: VEmployeeDepartmentConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: VEmployeeDepartmentProfile +MapperNamespace: 'VEmployeeDepartmentProfile' +MapperBaseClass: Profile +IsView: True +Properties: + - PropertyName: BusinessEntityId + ColumnName: 'BusinessEntityID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Title + ColumnName: 'Title' + StoreType: nvarchar(8) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 8 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: FirstName + ColumnName: 'FirstName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: MiddleName + ColumnName: 'MiddleName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: LastName + ColumnName: 'LastName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Suffix + ColumnName: 'Suffix' + StoreType: nvarchar(10) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 10 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: JobTitle + ColumnName: 'JobTitle' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Department + ColumnName: 'Department' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: GroupName + ColumnName: 'GroupName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: StartDate + ColumnName: 'StartDate' + StoreType: date + NativeType: 'date' + DataType: Date + SystemType: DateOnly + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VEmployeeScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VEmployeeScript.yml new file mode 100644 index 0000000..944dd71 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VEmployeeScript.yml @@ -0,0 +1,227 @@ +EntityClass: VEmployee +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: VEmployees +TableSchema: 'HumanResources' +TableName: 'vEmployee' +MappingClass: VEmployeeConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: VEmployeeProfile +MapperNamespace: 'VEmployeeProfile' +MapperBaseClass: Profile +IsView: True +Properties: + - PropertyName: BusinessEntityId + ColumnName: 'BusinessEntityID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Title + ColumnName: 'Title' + StoreType: nvarchar(8) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 8 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: FirstName + ColumnName: 'FirstName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: MiddleName + ColumnName: 'MiddleName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: LastName + ColumnName: 'LastName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Suffix + ColumnName: 'Suffix' + StoreType: nvarchar(10) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 10 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: JobTitle + ColumnName: 'JobTitle' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: PhoneNumber + ColumnName: 'PhoneNumber' + StoreType: nvarchar(25) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 25 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: PhoneNumberType + ColumnName: 'PhoneNumberType' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EmailAddress + ColumnName: 'EmailAddress' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EmailPromotion + ColumnName: 'EmailPromotion' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: AddressLine1 + ColumnName: 'AddressLine1' + StoreType: nvarchar(60) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 60 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: AddressLine2 + ColumnName: 'AddressLine2' + StoreType: nvarchar(60) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 60 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: City + ColumnName: 'City' + StoreType: nvarchar(30) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 30 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: StateProvinceName + ColumnName: 'StateProvinceName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: PostalCode + ColumnName: 'PostalCode' + StoreType: nvarchar(15) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 15 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: CountryRegionName + ColumnName: 'CountryRegionName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: AdditionalContactInfo + ColumnName: 'AdditionalContactInfo' + StoreType: xml + NativeType: 'xml' + DataType: String + SystemType: String + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VIndividualCustomerScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VIndividualCustomerScript.yml new file mode 100644 index 0000000..9191283 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VIndividualCustomerScript.yml @@ -0,0 +1,227 @@ +EntityClass: VIndividualCustomer +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: VIndividualCustomers +TableSchema: 'Sales' +TableName: 'vIndividualCustomer' +MappingClass: VIndividualCustomerConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: VIndividualCustomerProfile +MapperNamespace: 'VIndividualCustomerProfile' +MapperBaseClass: Profile +IsView: True +Properties: + - PropertyName: BusinessEntityId + ColumnName: 'BusinessEntityID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Title + ColumnName: 'Title' + StoreType: nvarchar(8) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 8 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: FirstName + ColumnName: 'FirstName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: MiddleName + ColumnName: 'MiddleName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: LastName + ColumnName: 'LastName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Suffix + ColumnName: 'Suffix' + StoreType: nvarchar(10) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 10 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: PhoneNumber + ColumnName: 'PhoneNumber' + StoreType: nvarchar(25) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 25 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: PhoneNumberType + ColumnName: 'PhoneNumberType' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EmailAddress + ColumnName: 'EmailAddress' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EmailPromotion + ColumnName: 'EmailPromotion' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: AddressType + ColumnName: 'AddressType' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: AddressLine1 + ColumnName: 'AddressLine1' + StoreType: nvarchar(60) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 60 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: AddressLine2 + ColumnName: 'AddressLine2' + StoreType: nvarchar(60) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 60 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: City + ColumnName: 'City' + StoreType: nvarchar(30) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 30 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: StateProvinceName + ColumnName: 'StateProvinceName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: PostalCode + ColumnName: 'PostalCode' + StoreType: nvarchar(15) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 15 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: CountryRegionName + ColumnName: 'CountryRegionName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Demographics + ColumnName: 'Demographics' + StoreType: xml + NativeType: 'xml' + DataType: String + SystemType: String + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VJobCandidateEducationScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VJobCandidateEducationScript.yml new file mode 100644 index 0000000..e963e8c --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VJobCandidateEducationScript.yml @@ -0,0 +1,168 @@ +EntityClass: VJobCandidateEducation +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: VJobCandidateEducations +TableSchema: 'HumanResources' +TableName: 'vJobCandidateEducation' +MappingClass: VJobCandidateEducationConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: VJobCandidateEducationProfile +MapperNamespace: 'VJobCandidateEducationProfile' +MapperBaseClass: Profile +IsView: True +Properties: + - PropertyName: Id + ColumnName: 'JobCandidateID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EduLevel + ColumnName: 'Edu.Level' + StoreType: nvarchar(max) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: -1 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EduStartDate + ColumnName: 'Edu.StartDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EduEndDate + ColumnName: 'Edu.EndDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EduDegree + ColumnName: 'Edu.Degree' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EduMajor + ColumnName: 'Edu.Major' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EduMinor + ColumnName: 'Edu.Minor' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EduGPA + ColumnName: 'Edu.GPA' + StoreType: nvarchar(5) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 5 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EduGPAScale + ColumnName: 'Edu.GPAScale' + StoreType: nvarchar(5) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 5 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EduSchool + ColumnName: 'Edu.School' + StoreType: nvarchar(100) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 100 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EduLocCountryRegion + ColumnName: 'Edu.Loc.CountryRegion' + StoreType: nvarchar(100) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 100 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EduLocState + ColumnName: 'Edu.Loc.State' + StoreType: nvarchar(100) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 100 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EduLocCity + ColumnName: 'Edu.Loc.City' + StoreType: nvarchar(100) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 100 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VJobCandidateEmploymentScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VJobCandidateEmploymentScript.yml new file mode 100644 index 0000000..431c403 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VJobCandidateEmploymentScript.yml @@ -0,0 +1,144 @@ +EntityClass: VJobCandidateEmployment +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: VJobCandidateEmployments +TableSchema: 'HumanResources' +TableName: 'vJobCandidateEmployment' +MappingClass: VJobCandidateEmploymentConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: VJobCandidateEmploymentProfile +MapperNamespace: 'VJobCandidateEmploymentProfile' +MapperBaseClass: Profile +IsView: True +Properties: + - PropertyName: Id + ColumnName: 'JobCandidateID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EmpStartDate + ColumnName: 'Emp.StartDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EmpEndDate + ColumnName: 'Emp.EndDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EmpOrgName + ColumnName: 'Emp.OrgName' + StoreType: nvarchar(100) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 100 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EmpJobTitle + ColumnName: 'Emp.JobTitle' + StoreType: nvarchar(100) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 100 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EmpResponsibility + ColumnName: 'Emp.Responsibility' + StoreType: nvarchar(max) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: -1 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EmpFunctionCategory + ColumnName: 'Emp.FunctionCategory' + StoreType: nvarchar(max) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: -1 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EmpIndustryCategory + ColumnName: 'Emp.IndustryCategory' + StoreType: nvarchar(max) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: -1 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EmpLocCountryRegion + ColumnName: 'Emp.Loc.CountryRegion' + StoreType: nvarchar(max) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: -1 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EmpLocState + ColumnName: 'Emp.Loc.State' + StoreType: nvarchar(max) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: -1 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EmpLocCity + ColumnName: 'Emp.Loc.City' + StoreType: nvarchar(max) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: -1 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VJobCandidateScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VJobCandidateScript.yml new file mode 100644 index 0000000..266658a --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VJobCandidateScript.yml @@ -0,0 +1,204 @@ +EntityClass: VJobCandidate +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: VJobCandidates +TableSchema: 'HumanResources' +TableName: 'vJobCandidate' +MappingClass: VJobCandidateConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: VJobCandidateProfile +MapperNamespace: 'VJobCandidateProfile' +MapperBaseClass: Profile +IsView: True +Properties: + - PropertyName: Id + ColumnName: 'JobCandidateID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: BusinessEntityId + ColumnName: 'BusinessEntityID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: NamePrefix + ColumnName: 'Name.Prefix' + StoreType: nvarchar(30) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 30 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: NameFirst + ColumnName: 'Name.First' + StoreType: nvarchar(30) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 30 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: NameMiddle + ColumnName: 'Name.Middle' + StoreType: nvarchar(30) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 30 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: NameLast + ColumnName: 'Name.Last' + StoreType: nvarchar(30) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 30 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: NameSuffix + ColumnName: 'Name.Suffix' + StoreType: nvarchar(30) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 30 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Skills + ColumnName: 'Skills' + StoreType: nvarchar(max) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: -1 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: AddrType + ColumnName: 'Addr.Type' + StoreType: nvarchar(30) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 30 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: AddrLocCountryRegion + ColumnName: 'Addr.Loc.CountryRegion' + StoreType: nvarchar(100) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 100 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: AddrLocState + ColumnName: 'Addr.Loc.State' + StoreType: nvarchar(100) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 100 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: AddrLocCity + ColumnName: 'Addr.Loc.City' + StoreType: nvarchar(100) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 100 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: AddrPostalCode + ColumnName: 'Addr.PostalCode' + StoreType: nvarchar(20) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 20 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EMail + ColumnName: 'EMail' + StoreType: nvarchar(max) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: -1 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: WebSite + ColumnName: 'WebSite' + StoreType: nvarchar(max) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: -1 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VPersonDemographicsScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VPersonDemographicsScript.yml new file mode 100644 index 0000000..169b077 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VPersonDemographicsScript.yml @@ -0,0 +1,162 @@ +EntityClass: VPersonDemographics +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: VPersonDemographics +TableSchema: 'Sales' +TableName: 'vPersonDemographics' +MappingClass: VPersonDemographicsConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: VPersonDemographicsProfile +MapperNamespace: 'VPersonDemographicsProfile' +MapperBaseClass: Profile +IsView: True +Properties: + - PropertyName: BusinessEntityId + ColumnName: 'BusinessEntityID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: TotalPurchaseYTD + ColumnName: 'TotalPurchaseYTD' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: DateFirstPurchase + ColumnName: 'DateFirstPurchase' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: BirthDate + ColumnName: 'BirthDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: MaritalStatus + ColumnName: 'MaritalStatus' + StoreType: nvarchar(1) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 1 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: YearlyIncome + ColumnName: 'YearlyIncome' + StoreType: nvarchar(30) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 30 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Gender + ColumnName: 'Gender' + StoreType: nvarchar(1) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 1 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: TotalChildren + ColumnName: 'TotalChildren' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: NumberChildrenAtHome + ColumnName: 'NumberChildrenAtHome' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Education + ColumnName: 'Education' + StoreType: nvarchar(30) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 30 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Occupation + ColumnName: 'Occupation' + StoreType: nvarchar(30) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 30 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: HomeOwnerFlag + ColumnName: 'HomeOwnerFlag' + StoreType: bit + NativeType: 'bit' + DataType: Boolean + SystemType: Boolean + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: NumberCarsOwned + ColumnName: 'NumberCarsOwned' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VProductAndDescriptionScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VProductAndDescriptionScript.yml new file mode 100644 index 0000000..0c54c4e --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VProductAndDescriptionScript.yml @@ -0,0 +1,73 @@ +EntityClass: VProductAndDescription +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: VProductAndDescriptions +TableSchema: 'Production' +TableName: 'vProductAndDescription' +MappingClass: VProductAndDescriptionConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: VProductAndDescriptionProfile +MapperNamespace: 'VProductAndDescriptionProfile' +MapperBaseClass: Profile +IsView: True +Properties: + - PropertyName: ProductId + ColumnName: 'ProductID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Name + ColumnName: 'Name' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ProductModel + ColumnName: 'ProductModel' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: CultureId + ColumnName: 'CultureID' + StoreType: nchar(6) + NativeType: 'nchar' + DataType: StringFixedLength + SystemType: String + Size: 6 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Description + ColumnName: 'Description' + StoreType: nvarchar(400) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 400 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VProductModelCatalogDescriptionScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VProductModelCatalogDescriptionScript.yml new file mode 100644 index 0000000..5160362 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VProductModelCatalogDescriptionScript.yml @@ -0,0 +1,312 @@ +EntityClass: VProductModelCatalogDescription +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: VProductModelCatalogDescriptions +TableSchema: 'Production' +TableName: 'vProductModelCatalogDescription' +MappingClass: VProductModelCatalogDescriptionConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: VProductModelCatalogDescriptionProfile +MapperNamespace: 'VProductModelCatalogDescriptionProfile' +MapperBaseClass: Profile +IsView: True +Properties: + - PropertyName: Id + ColumnName: 'ProductModelID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Name + ColumnName: 'Name' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Summary + ColumnName: 'Summary' + StoreType: nvarchar(max) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: -1 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Manufacturer + ColumnName: 'Manufacturer' + StoreType: nvarchar(max) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: -1 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Copyright + ColumnName: 'Copyright' + StoreType: nvarchar(30) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 30 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ProductURL + ColumnName: 'ProductURL' + StoreType: nvarchar(256) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 256 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: WarrantyPeriod + ColumnName: 'WarrantyPeriod' + StoreType: nvarchar(256) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 256 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: WarrantyDescription + ColumnName: 'WarrantyDescription' + StoreType: nvarchar(256) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 256 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: NoOfYears + ColumnName: 'NoOfYears' + StoreType: nvarchar(256) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 256 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: MaintenanceDescription + ColumnName: 'MaintenanceDescription' + StoreType: nvarchar(256) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 256 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Wheel + ColumnName: 'Wheel' + StoreType: nvarchar(256) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 256 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Saddle + ColumnName: 'Saddle' + StoreType: nvarchar(256) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 256 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Pedal + ColumnName: 'Pedal' + StoreType: nvarchar(256) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 256 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: BikeFrame + ColumnName: 'BikeFrame' + StoreType: nvarchar(max) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: -1 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Crankset + ColumnName: 'Crankset' + StoreType: nvarchar(256) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 256 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: PictureAngle + ColumnName: 'PictureAngle' + StoreType: nvarchar(256) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 256 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: PictureSize + ColumnName: 'PictureSize' + StoreType: nvarchar(256) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 256 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ProductPhotoId + ColumnName: 'ProductPhotoID' + StoreType: nvarchar(256) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 256 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Material + ColumnName: 'Material' + StoreType: nvarchar(256) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 256 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Color + ColumnName: 'Color' + StoreType: nvarchar(256) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 256 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ProductLine + ColumnName: 'ProductLine' + StoreType: nvarchar(256) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 256 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Style + ColumnName: 'Style' + StoreType: nvarchar(256) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 256 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: RiderExperience + ColumnName: 'RiderExperience' + StoreType: nvarchar(1024) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 1024 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Rowguid + ColumnName: 'rowguid' + StoreType: uniqueidentifier + NativeType: 'uniqueidentifier' + DataType: Guid + SystemType: Guid + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VProductModelInstructionsScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VProductModelInstructionsScript.yml new file mode 100644 index 0000000..ae97fde --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VProductModelInstructionsScript.yml @@ -0,0 +1,139 @@ +EntityClass: VProductModelInstructions +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: VProductModelInstructions +TableSchema: 'Production' +TableName: 'vProductModelInstructions' +MappingClass: VProductModelInstructionsConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: VProductModelInstructionsProfile +MapperNamespace: 'VProductModelInstructionsProfile' +MapperBaseClass: Profile +IsView: True +Properties: + - PropertyName: Id + ColumnName: 'ProductModelID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Name + ColumnName: 'Name' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Instructions + ColumnName: 'Instructions' + StoreType: nvarchar(max) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: -1 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: LocationId + ColumnName: 'LocationID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: SetupHours + ColumnName: 'SetupHours' + StoreType: decimal(9,4) + NativeType: '@decimal' + DataType: Decimal + SystemType: Decimal + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: MachineHours + ColumnName: 'MachineHours' + StoreType: decimal(9,4) + NativeType: '@decimal' + DataType: Decimal + SystemType: Decimal + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: LaborHours + ColumnName: 'LaborHours' + StoreType: decimal(9,4) + NativeType: '@decimal' + DataType: Decimal + SystemType: Decimal + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: LotSize + ColumnName: 'LotSize' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Step + ColumnName: 'Step' + StoreType: nvarchar(1024) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 1024 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Rowguid + ColumnName: 'rowguid' + StoreType: uniqueidentifier + NativeType: 'uniqueidentifier' + DataType: Guid + SystemType: Guid + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VSalesPersonSalesByFiscalYearsScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VSalesPersonSalesByFiscalYearsScript.yml new file mode 100644 index 0000000..404504d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VSalesPersonSalesByFiscalYearsScript.yml @@ -0,0 +1,94 @@ +EntityClass: VSalesPersonSalesByFiscalYears +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: VSalesPersonSalesByFiscalYears +TableSchema: 'Sales' +TableName: 'vSalesPersonSalesByFiscalYears' +MappingClass: VSalesPersonSalesByFiscalYearsConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: VSalesPersonSalesByFiscalYearsProfile +MapperNamespace: 'VSalesPersonSalesByFiscalYearsProfile' +MapperBaseClass: Profile +IsView: True +Properties: + - PropertyName: SalesPersonId + ColumnName: 'SalesPersonID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: FullName + ColumnName: 'FullName' + StoreType: nvarchar(152) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 152 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: JobTitle + ColumnName: 'JobTitle' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: SalesTerritory + ColumnName: 'SalesTerritory' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Number2002 + ColumnName: '2002' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Number2003 + ColumnName: '2003' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Number2004 + ColumnName: '2004' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VSalesPersonScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VSalesPersonScript.yml new file mode 100644 index 0000000..d49e86b --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VSalesPersonScript.yml @@ -0,0 +1,273 @@ +EntityClass: VSalesPerson +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: VSalesPeople +TableSchema: 'Sales' +TableName: 'vSalesPerson' +MappingClass: VSalesPersonConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: VSalesPersonProfile +MapperNamespace: 'VSalesPersonProfile' +MapperBaseClass: Profile +IsView: True +Properties: + - PropertyName: BusinessEntityId + ColumnName: 'BusinessEntityID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Title + ColumnName: 'Title' + StoreType: nvarchar(8) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 8 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: FirstName + ColumnName: 'FirstName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: MiddleName + ColumnName: 'MiddleName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: LastName + ColumnName: 'LastName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Suffix + ColumnName: 'Suffix' + StoreType: nvarchar(10) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 10 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: JobTitle + ColumnName: 'JobTitle' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: PhoneNumber + ColumnName: 'PhoneNumber' + StoreType: nvarchar(25) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 25 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: PhoneNumberType + ColumnName: 'PhoneNumberType' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EmailAddress + ColumnName: 'EmailAddress' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EmailPromotion + ColumnName: 'EmailPromotion' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: AddressLine1 + ColumnName: 'AddressLine1' + StoreType: nvarchar(60) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 60 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: AddressLine2 + ColumnName: 'AddressLine2' + StoreType: nvarchar(60) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 60 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: City + ColumnName: 'City' + StoreType: nvarchar(30) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 30 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: StateProvinceName + ColumnName: 'StateProvinceName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: PostalCode + ColumnName: 'PostalCode' + StoreType: nvarchar(15) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 15 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: CountryRegionName + ColumnName: 'CountryRegionName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: TerritoryName + ColumnName: 'TerritoryName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: TerritoryGroup + ColumnName: 'TerritoryGroup' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: SalesQuota + ColumnName: 'SalesQuota' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: SalesYTD + ColumnName: 'SalesYTD' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: SalesLastYear + ColumnName: 'SalesLastYear' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VStateProvinceCountryRegionScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VStateProvinceCountryRegionScript.yml new file mode 100644 index 0000000..e0db298 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VStateProvinceCountryRegionScript.yml @@ -0,0 +1,95 @@ +EntityClass: VStateProvinceCountryRegion +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: VStateProvinceCountryRegions +TableSchema: 'Person' +TableName: 'vStateProvinceCountryRegion' +MappingClass: VStateProvinceCountryRegionConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: VStateProvinceCountryRegionProfile +MapperNamespace: 'VStateProvinceCountryRegionProfile' +MapperBaseClass: Profile +IsView: True +Properties: + - PropertyName: StateProvinceId + ColumnName: 'StateProvinceID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: StateProvinceCode + ColumnName: 'StateProvinceCode' + StoreType: nchar(3) + NativeType: 'nchar' + DataType: StringFixedLength + SystemType: String + Size: 3 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: IsOnlyStateProvinceFlag + ColumnName: 'IsOnlyStateProvinceFlag' + StoreType: bit + NativeType: 'bit' + DataType: Boolean + SystemType: Boolean + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: StateProvinceName + ColumnName: 'StateProvinceName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: TerritoryId + ColumnName: 'TerritoryID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: CountryRegionCode + ColumnName: 'CountryRegionCode' + StoreType: nvarchar(3) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 3 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: CountryRegionName + ColumnName: 'CountryRegionName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VStoreWithAddressesScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VStoreWithAddressesScript.yml new file mode 100644 index 0000000..2ef8326 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VStoreWithAddressesScript.yml @@ -0,0 +1,121 @@ +EntityClass: VStoreWithAddresses +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: VStoreWithAddresses +TableSchema: 'Sales' +TableName: 'vStoreWithAddresses' +MappingClass: VStoreWithAddressesConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: VStoreWithAddressesProfile +MapperNamespace: 'VStoreWithAddressesProfile' +MapperBaseClass: Profile +IsView: True +Properties: + - PropertyName: BusinessEntityId + ColumnName: 'BusinessEntityID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Name + ColumnName: 'Name' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: AddressType + ColumnName: 'AddressType' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: AddressLine1 + ColumnName: 'AddressLine1' + StoreType: nvarchar(60) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 60 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: AddressLine2 + ColumnName: 'AddressLine2' + StoreType: nvarchar(60) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 60 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: City + ColumnName: 'City' + StoreType: nvarchar(30) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 30 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: StateProvinceName + ColumnName: 'StateProvinceName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: PostalCode + ColumnName: 'PostalCode' + StoreType: nvarchar(15) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 15 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: CountryRegionName + ColumnName: 'CountryRegionName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VStoreWithContactsScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VStoreWithContactsScript.yml new file mode 100644 index 0000000..3386a70 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VStoreWithContactsScript.yml @@ -0,0 +1,156 @@ +EntityClass: VStoreWithContacts +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: VStoreWithContacts +TableSchema: 'Sales' +TableName: 'vStoreWithContacts' +MappingClass: VStoreWithContactsConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: VStoreWithContactsProfile +MapperNamespace: 'VStoreWithContactsProfile' +MapperBaseClass: Profile +IsView: True +Properties: + - PropertyName: BusinessEntityId + ColumnName: 'BusinessEntityID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Name + ColumnName: 'Name' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ContactType + ColumnName: 'ContactType' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Title + ColumnName: 'Title' + StoreType: nvarchar(8) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 8 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: FirstName + ColumnName: 'FirstName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: MiddleName + ColumnName: 'MiddleName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: LastName + ColumnName: 'LastName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Suffix + ColumnName: 'Suffix' + StoreType: nvarchar(10) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 10 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: PhoneNumber + ColumnName: 'PhoneNumber' + StoreType: nvarchar(25) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 25 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: PhoneNumberType + ColumnName: 'PhoneNumberType' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EmailAddress + ColumnName: 'EmailAddress' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EmailPromotion + ColumnName: 'EmailPromotion' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VStoreWithDemographicsScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VStoreWithDemographicsScript.yml new file mode 100644 index 0000000..37d26fb --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VStoreWithDemographicsScript.yml @@ -0,0 +1,152 @@ +EntityClass: VStoreWithDemographics +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: VStoreWithDemographics +TableSchema: 'Sales' +TableName: 'vStoreWithDemographics' +MappingClass: VStoreWithDemographicsConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: VStoreWithDemographicsProfile +MapperNamespace: 'VStoreWithDemographicsProfile' +MapperBaseClass: Profile +IsView: True +Properties: + - PropertyName: BusinessEntityId + ColumnName: 'BusinessEntityID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Name + ColumnName: 'Name' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: AnnualSales + ColumnName: 'AnnualSales' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: AnnualRevenue + ColumnName: 'AnnualRevenue' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: BankName + ColumnName: 'BankName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: BusinessType + ColumnName: 'BusinessType' + StoreType: nvarchar(5) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 5 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: YearOpened + ColumnName: 'YearOpened' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Specialty + ColumnName: 'Specialty' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: SquareFeet + ColumnName: 'SquareFeet' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Brands + ColumnName: 'Brands' + StoreType: nvarchar(30) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 30 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Internet + ColumnName: 'Internet' + StoreType: nvarchar(30) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 30 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: NumberEmployees + ColumnName: 'NumberEmployees' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VVendorWithAddressesScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VVendorWithAddressesScript.yml new file mode 100644 index 0000000..b8a504d --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VVendorWithAddressesScript.yml @@ -0,0 +1,121 @@ +EntityClass: VVendorWithAddresses +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: VVendorWithAddresses +TableSchema: 'Purchasing' +TableName: 'vVendorWithAddresses' +MappingClass: VVendorWithAddressesConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: VVendorWithAddressesProfile +MapperNamespace: 'VVendorWithAddressesProfile' +MapperBaseClass: Profile +IsView: True +Properties: + - PropertyName: BusinessEntityId + ColumnName: 'BusinessEntityID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Name + ColumnName: 'Name' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: AddressType + ColumnName: 'AddressType' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: AddressLine1 + ColumnName: 'AddressLine1' + StoreType: nvarchar(60) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 60 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: AddressLine2 + ColumnName: 'AddressLine2' + StoreType: nvarchar(60) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 60 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: City + ColumnName: 'City' + StoreType: nvarchar(30) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 30 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: StateProvinceName + ColumnName: 'StateProvinceName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: PostalCode + ColumnName: 'PostalCode' + StoreType: nvarchar(15) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 15 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: CountryRegionName + ColumnName: 'CountryRegionName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VVendorWithContactsScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VVendorWithContactsScript.yml new file mode 100644 index 0000000..efd01d3 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VVendorWithContactsScript.yml @@ -0,0 +1,156 @@ +EntityClass: VVendorWithContacts +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: VVendorWithContacts +TableSchema: 'Purchasing' +TableName: 'vVendorWithContacts' +MappingClass: VVendorWithContactsConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: VVendorWithContactsProfile +MapperNamespace: 'VVendorWithContactsProfile' +MapperBaseClass: Profile +IsView: True +Properties: + - PropertyName: BusinessEntityId + ColumnName: 'BusinessEntityID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Name + ColumnName: 'Name' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ContactType + ColumnName: 'ContactType' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Title + ColumnName: 'Title' + StoreType: nvarchar(8) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 8 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: FirstName + ColumnName: 'FirstName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: MiddleName + ColumnName: 'MiddleName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: LastName + ColumnName: 'LastName' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: Suffix + ColumnName: 'Suffix' + StoreType: nvarchar(10) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 10 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: PhoneNumber + ColumnName: 'PhoneNumber' + StoreType: nvarchar(25) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 25 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: PhoneNumberType + ColumnName: 'PhoneNumberType' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EmailAddress + ColumnName: 'EmailAddress' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EmailPromotion + ColumnName: 'EmailPromotion' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VendorScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VendorScript.yml new file mode 100644 index 0000000..12f9bd0 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VendorScript.yml @@ -0,0 +1,108 @@ +EntityClass: Vendor +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: Vendors +TableSchema: 'Purchasing' +TableName: 'Vendor' +MappingClass: VendorConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: VendorProfile +MapperNamespace: 'VendorProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: BusinessEntityId + ColumnName: 'BusinessEntityID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: AccountNumber + ColumnName: 'AccountNumber' + StoreType: nvarchar(15) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 15 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: True + - PropertyName: Name + ColumnName: 'Name' + StoreType: nvarchar(50) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 50 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: CreditRating + ColumnName: 'CreditRating' + StoreType: tinyint + NativeType: 'tinyint' + DataType: Byte + SystemType: Byte + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: PreferredVendorStatus + ColumnName: 'PreferredVendorStatus' + StoreType: bit + NativeType: 'bit' + DataType: Boolean + SystemType: Boolean + Default: '((1))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ActiveFlag + ColumnName: 'ActiveFlag' + StoreType: bit + NativeType: 'bit' + DataType: Boolean + SystemType: Boolean + Default: '((1))' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: PurchasingWebServiceURL + ColumnName: 'PurchasingWebServiceURL' + StoreType: nvarchar(1024) + NativeType: 'nvarchar' + DataType: String + SystemType: String + Size: 1024 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/WorkOrderRoutingScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/WorkOrderRoutingScript.yml new file mode 100644 index 0000000..3c74cd2 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/WorkOrderRoutingScript.yml @@ -0,0 +1,147 @@ +EntityClass: WorkOrderRouting +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: WorkOrderRoutings +TableSchema: 'Production' +TableName: 'WorkOrderRouting' +MappingClass: WorkOrderRoutingConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: WorkOrderRoutingProfile +MapperNamespace: 'WorkOrderRoutingProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: WorkOrderId + ColumnName: 'WorkOrderID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: ProductId + ColumnName: 'ProductID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: OperationSequence + ColumnName: 'OperationSequence' + StoreType: smallint + NativeType: 'smallint' + DataType: Int16 + SystemType: Int16 + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: LocationId + ColumnName: 'LocationID' + StoreType: smallint + NativeType: 'smallint' + DataType: Int16 + SystemType: Int16 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: ScheduledStartDate + ColumnName: 'ScheduledStartDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ScheduledEndDate + ColumnName: 'ScheduledEndDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ActualStartDate + ColumnName: 'ActualStartDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ActualEndDate + ColumnName: 'ActualEndDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ActualResourceHrs + ColumnName: 'ActualResourceHrs' + StoreType: decimal(9,4) + NativeType: '@decimal' + DataType: Decimal + SystemType: Decimal + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: PlannedCost + ColumnName: 'PlannedCost' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ActualCost + ColumnName: 'ActualCost' + StoreType: money + NativeType: 'money' + DataType: Currency + SystemType: Decimal + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/WorkOrderScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/WorkOrderScript.yml new file mode 100644 index 0000000..09e5460 --- /dev/null +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/WorkOrderScript.yml @@ -0,0 +1,127 @@ +EntityClass: WorkOrder +EntityNamespace: 'Platy.AdventureWorks.Repository.Data.Entities' +EntityBaseClass: DomainEntity +TableNaming: Singular +ContextProperty: WorkOrders +TableSchema: 'Production' +TableName: 'WorkOrder' +MappingClass: WorkOrderConfiguration +MappingNamespace: 'Platy.AdventureWorks.Repository.Data.EntityConfiguration' +MapperClass: WorkOrderProfile +MapperNamespace: 'WorkOrderProfile' +MapperBaseClass: Profile +IsView: False +Properties: + - PropertyName: Id + ColumnName: 'WorkOrderID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAdd + IsNullable: False + IsPrimaryKey: True + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ProductId + ColumnName: 'ProductID' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: OrderQty + ColumnName: 'OrderQty' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: StockedQty + ColumnName: 'StockedQty' + StoreType: @int + NativeType: '@int' + DataType: Int32 + SystemType: Int32 + ValueGenerated: OnAddOrUpdate + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ScrappedQty + ColumnName: 'ScrappedQty' + StoreType: smallint + NativeType: 'smallint' + DataType: Int16 + SystemType: Int16 + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: StartDate + ColumnName: 'StartDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: EndDate + ColumnName: 'EndDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: True + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: DueDate + ColumnName: 'DueDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False + - PropertyName: ScrapReasonId + ColumnName: 'ScrapReasonID' + StoreType: smallint + NativeType: 'smallint' + DataType: Int16 + SystemType: Int16 + IsNullable: True + IsPrimaryKey: False + IsForeignKey: True + IsRowVersion: False + IsUnique: False + - PropertyName: ModifiedDate + ColumnName: 'ModifiedDate' + StoreType: datetime + NativeType: 'datetime' + DataType: DateTime + SystemType: DateTime + Default: '(getdate())' + IsNullable: False + IsPrimaryKey: False + IsForeignKey: False + IsRowVersion: False + IsUnique: False