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..f93a86a 160000 --- a/EntityFrameworkCore.Generator +++ b/EntityFrameworkCore.Generator @@ -1 +1 @@ -Subproject commit f52828367c32edf1adedcfd8506685dc2c117449 +Subproject commit f93a86a538cfcce23961d624730b73be264ca214 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 index aa67d87..3e3173a 100644 --- a/src/Platy.AdventureWorks.Repository/Data/AdventureWorksContext.cs +++ b/src/Platy.AdventureWorks.Repository/Data/AdventureWorksContext.cs @@ -1,995 +1,817 @@ -using Platy.AdventureWorks.Repository.Data.Entities; -using Platy.AdventureWorks.Repository.Data.EntityConfiguration; +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. +/// A instance represents a session with the database and can be used to query and save instances of entities. /// -internal class AdventureWorksContext : DbContext +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) - { - } - - /// - /// 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()); + /// + /// 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 - } - - #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 index 52c327e..8b05cf2 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/Address.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/Address.cs @@ -1,141 +1,138 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'Address'. +/// Entity class representing data for table 'Address'. /// -[Table("Address", Schema = "Person")] -public class Address - : HasDomainEventsBase, IIdentity +[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 + /// + /// 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; } - BillToSalesOrderHeaders = new HashSet(); - BusinessEntityAddresses = new HashSet(); - ShipToSalesOrderHeaders = new HashSet(); + #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 - } - - #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 index 6d5f90b..758518f 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/AddressType.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/AddressType.cs @@ -1,78 +1,75 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'AddressType'. +/// Entity class representing data for table 'AddressType'. /// -[Table("AddressType", Schema = "Person")] -public class AddressType - : HasDomainEventsBase, IIdentity +[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 + /// + /// Initializes a new instance of the class. + /// + public AddressType() + { + #region Generated Constructor + BusinessEntityAddresses = new HashSet(); + #endregion + } - BusinessEntityAddresses = new HashSet(); + #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; } - #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 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!; - #endregion + /// + /// 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; } - #region Generated Properties + /// + /// 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; } - /// - /// 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!; + #endregion - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } + #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 property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/BillOfMaterials.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/BillOfMaterials.cs index 46a59fa..52f4c0d 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/BillOfMaterials.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/BillOfMaterials.cs @@ -1,137 +1,138 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'BillOfMaterials'. +/// Entity class representing data for table 'BillOfMaterials'. /// -[Table("BillOfMaterials", Schema = "Production")] -public class BillOfMaterials - : HasDomainEventsBase, IIdentity +[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 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 + /// + /// 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 index 3359043..299b3d8 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/BusinessEntity.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/BusinessEntity.cs @@ -1,105 +1,102 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'BusinessEntity'. +/// Entity class representing data for table 'BusinessEntity'. /// -[Table("BusinessEntity", Schema = "Person")] -public class BusinessEntity - : HasDomainEventsBase, IIdentity +[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(); + /// + /// 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 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 + #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!; - /// - /// 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 - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/BusinessEntityAddress.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/BusinessEntityAddress.cs index 9d48419..a162599 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/BusinessEntityAddress.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/BusinessEntityAddress.cs @@ -1,101 +1,102 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'BusinessEntityAddress'. +/// Entity class representing data for table 'BusinessEntityAddress'. /// -[Table("BusinessEntityAddress", Schema = "Person")] -public class BusinessEntityAddress +[System.ComponentModel.DataAnnotations.Schema.Table("BusinessEntityAddress", Schema = "Person")] +public partial class BusinessEntityAddress { - /// - /// Initializes a new instance of the class. - /// - public BusinessEntityAddress() - { - } + /// + /// Initializes a new instance of the class. + /// + public BusinessEntityAddress() + { + #region Generated Constructor + #endregion + } - #region Generated Properties + #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 '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'. + /// + [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 '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'. + /// + [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 '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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { 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 - #endregion + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Address Address { get; set; } = null!; - #region Generated Relationships + /// + /// 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 Address Address { get; set; } = null!; + /// + /// 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 AddressType AddressType { get; set; } = null!; + #endregion - /// - /// 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 index add3ac5..7b3dc45 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/BusinessEntityContact.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/BusinessEntityContact.cs @@ -1,101 +1,102 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'BusinessEntityContact'. +/// Entity class representing data for table 'BusinessEntityContact'. /// -[Table("BusinessEntityContact", Schema = "Person")] -public class BusinessEntityContact +[System.ComponentModel.DataAnnotations.Schema.Table("BusinessEntityContact", Schema = "Person")] +public partial class BusinessEntityContact { - /// - /// Initializes a new instance of the class. - /// - public BusinessEntityContact() - { - } + /// + /// Initializes a new instance of the class. + /// + public BusinessEntityContact() + { + #region Generated Constructor + #endregion + } - #region Generated Properties + #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 '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'. + /// + [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 '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'. + /// + [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 '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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { 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 - #endregion + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual BusinessEntity BusinessEntity { get; set; } = null!; - #region Generated Relationships + /// + /// 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 BusinessEntity BusinessEntity { get; set; } = null!; + /// + /// 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 ContactType ContactType { get; set; } = null!; + #endregion - /// - /// 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 index 7d3c81c..7a8c200 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ContactType.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ContactType.cs @@ -1,69 +1,66 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'ContactType'. +/// Entity class representing data for table 'ContactType'. /// -[Table("ContactType", Schema = "Person")] -public class ContactType - : HasDomainEventsBase, IIdentity +[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 + /// + /// Initializes a new instance of the class. + /// + public ContactType() + { + #region Generated Constructor + BusinessEntityContacts = new HashSet(); + #endregion + } - BusinessEntityContacts = new HashSet(); + #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; } - #endregion - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection BusinessEntityContacts { 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!; - #endregion + /// + /// 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; } - #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; } + #endregion - /// - /// 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!; + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection BusinessEntityContacts { 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 - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/CountryRegion.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/CountryRegion.cs index 0cf0ff6..61c3cf9 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/CountryRegion.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/CountryRegion.cs @@ -1,85 +1,82 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'CountryRegion'. +/// Entity class representing data for table 'CountryRegion'. /// -[Table("CountryRegion", Schema = "Person")] -public class 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 + /// + /// Initializes a new instance of the class. + /// + public CountryRegion() + { + #region Generated Constructor + CountryRegionCurrencies = new HashSet(); + SalesTerritories = new HashSet(); + StateProvinces = new HashSet(); + #endregion + } - CountryRegionCurrencies = new HashSet(); - SalesTerritories = new HashSet(); - StateProvinces = new HashSet(); + #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!; - #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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { 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 + #endregion - #region Generated Relationships + #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 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 SalesTerritories { get; set; } + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection StateProvinces { get; set; } - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection StateProvinces { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/CountryRegionCurrency.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/CountryRegionCurrency.cs index 656bd3b..032f7fe 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/CountryRegionCurrency.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/CountryRegionCurrency.cs @@ -1,73 +1,74 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'CountryRegionCurrency'. +/// Entity class representing data for table 'CountryRegionCurrency'. /// -[Table("CountryRegionCurrency", Schema = "Sales")] -public class CountryRegionCurrency +[System.ComponentModel.DataAnnotations.Schema.Table("CountryRegionCurrency", Schema = "Sales")] +public partial class CountryRegionCurrency { - /// - /// Initializes a new instance of the class. - /// - public CountryRegionCurrency() - { - } + /// + /// Initializes a new instance of the class. + /// + public CountryRegionCurrency() + { + #region Generated Constructor + #endregion + } - #region Generated Properties + #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 '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'. + /// + [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 '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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { 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 - #endregion + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual CountryRegion CountryRegion { get; set; } = null!; - #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Currency Currency { get; set; } = null!; - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual CountryRegion CountryRegion { get; set; } = null!; + #endregion - /// - /// 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 index c422e73..f6e4b0e 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/CreditCard.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/CreditCard.cs @@ -1,105 +1,102 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'CreditCard'. +/// Entity class representing data for table 'CreditCard'. /// -[Table("CreditCard", Schema = "Sales")] -public class CreditCard - : HasDomainEventsBase, IIdentity +[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(); + /// + /// 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 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; } + #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; } - /// - /// 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 - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Culture.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Culture.cs index 946149e..1625fa6 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/Culture.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/Culture.cs @@ -1,67 +1,64 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'Culture'. +/// Entity class representing data for table 'Culture'. /// -[Table("Culture", Schema = "Production")] -public class 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 + /// + /// Initializes a new instance of the class. + /// + public Culture() + { + #region Generated Constructor + ProductModelProductDescriptionCultures = new HashSet(); + #endregion + } - ProductModelProductDescriptionCultures = new HashSet(); + #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!; - #endregion - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection ProductModelProductDescriptionCultures { 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!; - #endregion + /// + /// 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; } - #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!; + #endregion - /// - /// 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!; + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection ProductModelProductDescriptionCultures { 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 - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Currency.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Currency.cs index 590e008..077c7a5 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/Currency.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/Currency.cs @@ -1,85 +1,82 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'Currency'. +/// Entity class representing data for table 'Currency'. /// -[Table("Currency", Schema = "Sales")] -public class 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 + /// + /// Initializes a new instance of the class. + /// + public Currency() + { + #region Generated Constructor + CountryRegionCurrencies = new HashSet(); + FromCurrencyRates = new HashSet(); + ToCurrencyRates = new HashSet(); + #endregion + } - CountryRegionCurrencies = new HashSet(); - FromCurrencyRates = new HashSet(); - ToCurrencyRates = new HashSet(); + #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!; - #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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { 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 + #endregion - #region Generated Relationships + #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 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 FromCurrencyRates { get; set; } + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection ToCurrencyRates { get; set; } - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection ToCurrencyRates { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/CurrencyRate.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/CurrencyRate.cs index 2e0c550..dfab90b 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/CurrencyRate.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/CurrencyRate.cs @@ -1,123 +1,120 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'CurrencyRate'. +/// Entity class representing data for table 'CurrencyRate'. /// -[Table("CurrencyRate", Schema = "Sales")] -public class CurrencyRate - : HasDomainEventsBase, IIdentity +[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(); + /// + /// 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 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; } + #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!; - /// - /// 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 - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Customer.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Customer.cs index de79123..4790d6b 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/Customer.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/Customer.cs @@ -1,133 +1,130 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'Customer'. +/// Entity class representing data for table 'Customer'. /// -[Table("Customer", Schema = "Sales")] -public class Customer - : HasDomainEventsBase, IIdentity +[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 + /// + /// 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; } - SalesOrderHeaders = new HashSet(); + #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 - } - - #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 index ec5f61b..6c1832d 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/Department.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/Department.cs @@ -1,78 +1,75 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'Department'. +/// Entity class representing data for table 'Department'. /// -[Table("Department", Schema = "HumanResources")] -public class Department - : HasDomainEventsBase, IIdentity +[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 + /// + /// Initializes a new instance of the class. + /// + public Department() + { + #region Generated Constructor + EmployeeDepartmentHistories = new HashSet(); + #endregion + } - EmployeeDepartmentHistories = new HashSet(); + #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; } - #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 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!; - #endregion + /// + /// 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!; - #region Generated Properties + /// + /// 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; } - /// - /// 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!; + #endregion - /// - /// 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!; + #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 property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/EmailAddress.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/EmailAddress.cs index b305004..30a2634 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/EmailAddress.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/EmailAddress.cs @@ -1,84 +1,85 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'EmailAddress'. +/// Entity class representing data for table 'EmailAddress'. /// -[Table("EmailAddress", Schema = "Person")] -public class EmailAddress - : HasDomainEventsBase, IIdentity +[System.ComponentModel.DataAnnotations.Schema.Table("EmailAddress", Schema = "Person")] +public partial class EmailAddress + : HasDomainEventsBase, IIdentity { - /// - /// Initializes a new instance of the class. - /// - public EmailAddress() - { - } + /// + /// Initializes a new instance of the class. + /// + public EmailAddress() + { + #region Generated Constructor + #endregion + } - #region Generated Relationships + #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 navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Person Person { get; set; } = null!; + /// + /// 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; } - #endregion + /// + /// 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; } - #region Generated Properties + /// + /// 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 '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 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { 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; } + #endregion - /// - /// 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; } + #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 property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } + #endregion - /// - /// 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 index 4796d73..d08b062 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/Employee.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/Employee.cs @@ -1,221 +1,218 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'Employee'. +/// Entity class representing data for table 'Employee'. /// -[Table("Employee", Schema = "HumanResources")] -public class 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(); + /// + /// 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 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 + + #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 index b26bb89..526ed04 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/EmployeeDepartmentHistory.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/EmployeeDepartmentHistory.cs @@ -1,111 +1,112 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'EmployeeDepartmentHistory'. +/// Entity class representing data for table 'EmployeeDepartmentHistory'. /// -[Table("EmployeeDepartmentHistory", Schema = "HumanResources")] -public class EmployeeDepartmentHistory +[System.ComponentModel.DataAnnotations.Schema.Table("EmployeeDepartmentHistory", Schema = "HumanResources")] +public partial class EmployeeDepartmentHistory { - /// - /// Initializes a new instance of the class. - /// - public EmployeeDepartmentHistory() - { - } + /// + /// Initializes a new instance of the class. + /// + public EmployeeDepartmentHistory() + { + #region Generated Constructor + #endregion + } - #region Generated Properties + #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 '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'. + /// + [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 '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'. + /// + [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 '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'. + /// + [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 '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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("EndDate", TypeName = "date")] + public DateOnly? EndDate { 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { 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 - #endregion + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Department Department { get; set; } = null!; - #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 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 Shift Shift { get; set; } = null!; - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Employee Employee { get; set; } = null!; + #endregion - /// - /// 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 index 6f8962d..4f1e6be 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/EmployeePayHistory.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/EmployeePayHistory.cs @@ -1,82 +1,83 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'EmployeePayHistory'. +/// Entity class representing data for table 'EmployeePayHistory'. /// -[Table("EmployeePayHistory", Schema = "HumanResources")] -public class EmployeePayHistory +[System.ComponentModel.DataAnnotations.Schema.Table("EmployeePayHistory", Schema = "HumanResources")] +public partial class EmployeePayHistory { - /// - /// Initializes a new instance of the class. - /// - public EmployeePayHistory() - { - } + /// + /// Initializes a new instance of the class. + /// + public EmployeePayHistory() + { + #region Generated Constructor + #endregion + } - #region Generated Relationships + #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 navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Employee Employee { get; set; } = null!; + /// + /// 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; } - #endregion + /// + /// 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; } - #region Generated Properties + /// + /// 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 '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 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { 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; } + #endregion - /// - /// Gets or sets the property value representing column 'Rate'. - /// - /// - /// The property value representing column 'Rate'. - /// - [Column("Rate", TypeName = "money")] - public decimal Rate { get; set; } + #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 property value representing column 'PayFrequency'. - /// - /// - /// The property value representing column 'PayFrequency'. - /// - [Column("PayFrequency", TypeName = "tinyint")] - public byte PayFrequency { get; set; } + #endregion - /// - /// 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 index 8b0ef3e..ef6d8e6 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/Illustration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/Illustration.cs @@ -1,69 +1,66 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'Illustration'. +/// Entity class representing data for table 'Illustration'. /// -[Table("Illustration", Schema = "Production")] -public class Illustration - : HasDomainEventsBase, IIdentity +[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 + /// + /// Initializes a new instance of the class. + /// + public Illustration() + { + #region Generated Constructor + ProductModelIllustrations = new HashSet(); + #endregion + } - ProductModelIllustrations = new HashSet(); + #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; } - #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 property value representing column 'Diagram'. + /// + /// + /// The property value representing column 'Diagram'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Diagram", TypeName = "xml")] + public string? Diagram { get; set; } - #endregion + /// + /// 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; } - #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; } + #endregion - /// - /// Gets or sets the property value representing column 'Diagram'. - /// - /// - /// The property value representing column 'Diagram'. - /// - [Column("Diagram", TypeName = "xml")] - public string? Diagram { get; set; } + #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 property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/JobCandidate.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/JobCandidate.cs index 4195dfe..5d16fde 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/JobCandidate.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/JobCandidate.cs @@ -1,74 +1,75 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'JobCandidate'. +/// Entity class representing data for table 'JobCandidate'. /// -[Table("JobCandidate", Schema = "HumanResources")] -public class JobCandidate - : HasDomainEventsBase, IIdentity +[System.ComponentModel.DataAnnotations.Schema.Table("JobCandidate", Schema = "HumanResources")] +public partial class JobCandidate + : HasDomainEventsBase, IIdentity { - /// - /// Initializes a new instance of the class. - /// - public JobCandidate() - { - } + /// + /// Initializes a new instance of the class. + /// + public JobCandidate() + { + #region Generated Constructor + #endregion + } - #region Generated Relationships + #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 navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Employee? Employee { 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; } - #endregion + /// + /// 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; } - #region Generated Properties + /// + /// 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; } - /// - /// 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; } + #endregion - /// - /// Gets or sets the property value representing column 'BusinessEntityID'. - /// - /// - /// The property value representing column 'BusinessEntityID'. - /// - [Column("BusinessEntityID", TypeName = "int")] - public int? BusinessEntityId { get; set; } + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Employee? Employee { 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; } + #endregion - /// - /// 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 index a475fcc..e6205e6 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/Location.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/Location.cs @@ -1,96 +1,93 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'Location'. +/// Entity class representing data for table 'Location'. /// -[Table("Location", Schema = "Production")] -public class Location - : HasDomainEventsBase, IIdentity +[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 + /// + /// Initializes a new instance of the class. + /// + public Location() + { + #region Generated Constructor + ProductInventories = new HashSet(); + WorkOrderRoutings = new HashSet(); + #endregion + } - ProductInventories = new HashSet(); - WorkOrderRoutings = new HashSet(); + #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; } - #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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { 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 '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 '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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Availability", TypeName = "decimal(8,2)")] + public decimal Availability { 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { 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 + #endregion - #region Generated Relationships + #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 ProductInventories { get; set; } + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection WorkOrderRoutings { get; set; } - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection WorkOrderRoutings { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Password.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Password.cs index 49ca393..45e79d4 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/Password.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/Password.cs @@ -1,81 +1,82 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'Password'. +/// Entity class representing data for table 'Password'. /// -[Table("Password", Schema = "Person")] -public class Password +[System.ComponentModel.DataAnnotations.Schema.Table("Password", Schema = "Person")] +public partial class Password { - /// - /// Initializes a new instance of the class. - /// - public Password() - { - } + /// + /// Initializes a new instance of the class. + /// + public Password() + { + #region Generated Constructor + #endregion + } - #region Generated Relationships + #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 navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Person Person { get; set; } = null!; + /// + /// 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!; - #endregion + /// + /// 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!; - #region Generated Properties + /// + /// 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 '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 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { 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!; + #endregion - /// - /// 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!; + #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 property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } + #endregion - /// - /// 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 index ada6768..dfff484 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/Person.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/Person.cs @@ -1,220 +1,217 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'Person'. +/// Entity class representing data for table 'Person'. /// -[Table("Person", Schema = "Person")] -public class 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(); + /// + /// 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 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 + + #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 index 6301b31..d0688f6 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/PersonCreditCard.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/PersonCreditCard.cs @@ -1,73 +1,74 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'PersonCreditCard'. +/// Entity class representing data for table 'PersonCreditCard'. /// -[Table("PersonCreditCard", Schema = "Sales")] -public class PersonCreditCard +[System.ComponentModel.DataAnnotations.Schema.Table("PersonCreditCard", Schema = "Sales")] +public partial class PersonCreditCard { - /// - /// Initializes a new instance of the class. - /// - public PersonCreditCard() - { - } + /// + /// Initializes a new instance of the class. + /// + public PersonCreditCard() + { + #region Generated Constructor + #endregion + } - #region Generated Properties + #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 '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'. + /// + [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 '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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { 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 - #endregion + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual CreditCard CreditCard { get; set; } = null!; - #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 CreditCard CreditCard { get; set; } = null!; + #endregion - /// - /// 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 index daec0a6..552b2ae 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/PersonPhone.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/PersonPhone.cs @@ -1,83 +1,84 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'PersonPhone'. +/// Entity class representing data for table 'PersonPhone'. /// -[Table("PersonPhone", Schema = "Person")] -public class PersonPhone +[System.ComponentModel.DataAnnotations.Schema.Table("PersonPhone", Schema = "Person")] +public partial class PersonPhone { - /// - /// Initializes a new instance of the class. - /// - public PersonPhone() - { - } + /// + /// Initializes a new instance of the class. + /// + public PersonPhone() + { + #region Generated Constructor + #endregion + } - #region Generated Properties + #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 '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'. + /// + [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 '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'. + /// + [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 '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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { 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 - #endregion + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Person Person { get; set; } = null!; - #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual PhoneNumberType PhoneNumberType { get; set; } = null!; - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Person Person { get; set; } = null!; + #endregion - /// - /// 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 index 4dba450..af0064c 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/PhoneNumberType.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/PhoneNumberType.cs @@ -1,69 +1,66 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'PhoneNumberType'. +/// Entity class representing data for table 'PhoneNumberType'. /// -[Table("PhoneNumberType", Schema = "Person")] -public class PhoneNumberType - : HasDomainEventsBase, IIdentity +[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 + /// + /// Initializes a new instance of the class. + /// + public PhoneNumberType() + { + #region Generated Constructor + PersonPhones = new HashSet(); + #endregion + } - PersonPhones = new HashSet(); + #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; } - #endregion - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection PersonPhones { 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!; - #endregion + /// + /// 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; } - #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; } + #endregion - /// - /// 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!; + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection PersonPhones { 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 - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Product.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Product.cs index 608d4c6..d4aff96 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/Product.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/Product.cs @@ -1,420 +1,417 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'Product'. +/// Entity class representing data for table 'Product'. /// -[Table("Product", Schema = "Production")] -public class Product - : HasDomainEventsBase, IIdentity +[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(); + /// + /// 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 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 + + #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 index 5ae875d..66d3172 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductCategory.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductCategory.cs @@ -1,78 +1,75 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'ProductCategory'. +/// Entity class representing data for table 'ProductCategory'. /// -[Table("ProductCategory", Schema = "Production")] -public class ProductCategory - : HasDomainEventsBase, IIdentity +[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 + /// + /// Initializes a new instance of the class. + /// + public ProductCategory() + { + #region Generated Constructor + ProductSubcategories = new HashSet(); + #endregion + } - ProductSubcategories = new HashSet(); + #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; } - #endregion - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection ProductSubcategories { 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!; - #endregion + /// + /// 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; } - #region Generated Properties + /// + /// 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; } - /// - /// 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!; + #endregion - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection ProductSubcategories { 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 - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductCostHistory.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductCostHistory.cs index 411ae71..bcb5cf1 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductCostHistory.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductCostHistory.cs @@ -1,82 +1,83 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'ProductCostHistory'. +/// Entity class representing data for table 'ProductCostHistory'. /// -[Table("ProductCostHistory", Schema = "Production")] -public class ProductCostHistory +[System.ComponentModel.DataAnnotations.Schema.Table("ProductCostHistory", Schema = "Production")] +public partial class ProductCostHistory { - /// - /// Initializes a new instance of the class. - /// - public ProductCostHistory() - { - } + /// + /// Initializes a new instance of the class. + /// + public ProductCostHistory() + { + #region Generated Constructor + #endregion + } - #region Generated Relationships + #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 navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Product Product { get; set; } = null!; + /// + /// 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; } - #endregion + /// + /// 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; } - #region Generated Properties + /// + /// 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 '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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { 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; } + #endregion - /// - /// Gets or sets the property value representing column 'EndDate'. - /// - /// - /// The property value representing column 'EndDate'. - /// - [Column("EndDate", TypeName = "datetime")] - public DateTime? EndDate { get; set; } + #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 property value representing column 'StandardCost'. - /// - /// - /// The property value representing column 'StandardCost'. - /// - [Column("StandardCost", TypeName = "money")] - public decimal StandardCost { get; set; } + #endregion - /// - /// 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 index 7973896..e830703 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductDescription.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductDescription.cs @@ -1,78 +1,75 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'ProductDescription'. +/// Entity class representing data for table 'ProductDescription'. /// -[Table("ProductDescription", Schema = "Production")] -public class ProductDescription - : HasDomainEventsBase, IIdentity +[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 + /// + /// Initializes a new instance of the class. + /// + public ProductDescription() + { + #region Generated Constructor + ProductModelProductDescriptionCultures = new HashSet(); + #endregion + } - ProductModelProductDescriptionCultures = new HashSet(); + #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; } - #endregion - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection ProductModelProductDescriptionCultures { 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!; - #endregion + /// + /// 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; } - #region Generated Properties + /// + /// 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; } - /// - /// 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!; + #endregion - /// - /// Gets or sets the property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection ProductModelProductDescriptionCultures { 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 - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductDocument.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductDocument.cs index af87d1e..6edd74c 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductDocument.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductDocument.cs @@ -1,54 +1,55 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'ProductDocument'. +/// Entity class representing data for table 'ProductDocument'. /// -[Table("ProductDocument", Schema = "Production")] -public class ProductDocument +[System.ComponentModel.DataAnnotations.Schema.Table("ProductDocument", Schema = "Production")] +public partial 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 + /// + /// 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 index 48cd7a7..15b6e30 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductInventory.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductInventory.cs @@ -1,109 +1,110 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'ProductInventory'. +/// Entity class representing data for table 'ProductInventory'. /// -[Table("ProductInventory", Schema = "Production")] -public class ProductInventory +[System.ComponentModel.DataAnnotations.Schema.Table("ProductInventory", Schema = "Production")] +public partial class ProductInventory { - /// - /// Initializes a new instance of the class. - /// - public ProductInventory() - { - } + /// + /// Initializes a new instance of the class. + /// + public ProductInventory() + { + #region Generated Constructor + #endregion + } - #region Generated Properties + #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 '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'. + /// + [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 '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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Shelf", TypeName = "nvarchar(10)")] + public string Shelf { get; set; } = null!; - /// - /// 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Bin", TypeName = "tinyint")] + public byte Bin { get; set; } - /// - /// 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Quantity", TypeName = "smallint")] + public short Quantity { 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { 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 - #endregion + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Location Location { get; set; } = null!; - #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 Location Location { get; set; } = null!; + #endregion - /// - /// 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 index 889d3dd..49f2b1e 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductListPriceHistory.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductListPriceHistory.cs @@ -1,82 +1,83 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'ProductListPriceHistory'. +/// Entity class representing data for table 'ProductListPriceHistory'. /// -[Table("ProductListPriceHistory", Schema = "Production")] -public class ProductListPriceHistory +[System.ComponentModel.DataAnnotations.Schema.Table("ProductListPriceHistory", Schema = "Production")] +public partial class ProductListPriceHistory { - /// - /// Initializes a new instance of the class. - /// - public ProductListPriceHistory() - { - } + /// + /// Initializes a new instance of the class. + /// + public ProductListPriceHistory() + { + #region Generated Constructor + #endregion + } - #region Generated Relationships + #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 navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Product Product { get; set; } = null!; + /// + /// 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; } - #endregion + /// + /// 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; } - #region Generated Properties + /// + /// 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 '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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { 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; } + #endregion - /// - /// Gets or sets the property value representing column 'EndDate'. - /// - /// - /// The property value representing column 'EndDate'. - /// - [Column("EndDate", TypeName = "datetime")] - public DateTime? EndDate { get; set; } + #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 property value representing column 'ListPrice'. - /// - /// - /// The property value representing column 'ListPrice'. - /// - [Column("ListPrice", TypeName = "money")] - public decimal ListPrice { get; set; } + #endregion - /// - /// 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 index b125667..6f0b466 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductModel.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductModel.cs @@ -1,114 +1,111 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'ProductModel'. +/// Entity class representing data for table 'ProductModel'. /// -[Table("ProductModel", Schema = "Production")] -public class ProductModel - : HasDomainEventsBase, IIdentity +[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(); + /// + /// 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 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; } + #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; } - /// - /// 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 - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductModelIllustration.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductModelIllustration.cs index 7ecaab9..468ad3c 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductModelIllustration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductModelIllustration.cs @@ -1,73 +1,74 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'ProductModelIllustration'. +/// Entity class representing data for table 'ProductModelIllustration'. /// -[Table("ProductModelIllustration", Schema = "Production")] -public class ProductModelIllustration +[System.ComponentModel.DataAnnotations.Schema.Table("ProductModelIllustration", Schema = "Production")] +public partial class ProductModelIllustration { - /// - /// Initializes a new instance of the class. - /// - public ProductModelIllustration() - { - } + /// + /// Initializes a new instance of the class. + /// + public ProductModelIllustration() + { + #region Generated Constructor + #endregion + } - #region Generated Properties + #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 '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'. + /// + [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 '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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { 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 - #endregion + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Illustration Illustration { get; set; } = null!; - #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual ProductModel ProductModel { get; set; } = null!; - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Illustration Illustration { get; set; } = null!; + #endregion - /// - /// 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 index d430ba6..5eea201 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductModelProductDescriptionCulture.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductModelProductDescriptionCulture.cs @@ -1,92 +1,93 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'ProductModelProductDescriptionCulture'. +/// Entity class representing data for table 'ProductModelProductDescriptionCulture'. /// -[Table("ProductModelProductDescriptionCulture", Schema = "Production")] -public class ProductModelProductDescriptionCulture +[System.ComponentModel.DataAnnotations.Schema.Table("ProductModelProductDescriptionCulture", Schema = "Production")] +public partial class ProductModelProductDescriptionCulture { - /// - /// Initializes a new instance of the class. - /// - public ProductModelProductDescriptionCulture() - { - } + /// + /// Initializes a new instance of the class. + /// + public ProductModelProductDescriptionCulture() + { + #region Generated Constructor + #endregion + } - #region Generated Properties + #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 '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'. + /// + [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 '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'. + /// + [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 '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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { 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 - #endregion + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Culture Culture { get; set; } = null!; - #region Generated Relationships + /// + /// 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 Culture Culture { get; set; } = null!; + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual ProductModel ProductModel { get; set; } = null!; - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual ProductDescription ProductDescription { get; set; } = null!; + #endregion - /// - /// 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 index cfe8a7a..1c1af55 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductPhoto.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductPhoto.cs @@ -1,96 +1,93 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'ProductPhoto'. +/// Entity class representing data for table 'ProductPhoto'. /// -[Table("ProductPhoto", Schema = "Production")] -public class ProductPhoto - : HasDomainEventsBase, IIdentity +[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 + /// + /// Initializes a new instance of the class. + /// + public ProductPhoto() + { + #region Generated Constructor + ProductProductPhotos = new HashSet(); + #endregion + } - ProductProductPhotos = new HashSet(); + #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; } - #endregion - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection ProductProductPhotos { 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; } - #endregion + /// + /// 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; } - #region Generated Properties + /// + /// 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 '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 '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 '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 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { 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; } + #endregion - /// - /// 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; } + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection ProductProductPhotos { 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 - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductProductPhoto.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductProductPhoto.cs index e70d190..4591882 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductProductPhoto.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductProductPhoto.cs @@ -1,82 +1,83 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'ProductProductPhoto'. +/// Entity class representing data for table 'ProductProductPhoto'. /// -[Table("ProductProductPhoto", Schema = "Production")] -public class ProductProductPhoto +[System.ComponentModel.DataAnnotations.Schema.Table("ProductProductPhoto", Schema = "Production")] +public partial class ProductProductPhoto { - /// - /// Initializes a new instance of the class. - /// - public ProductProductPhoto() - { - } + /// + /// Initializes a new instance of the class. + /// + public ProductProductPhoto() + { + #region Generated Constructor + #endregion + } - #region Generated Properties + #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 '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'. + /// + [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 '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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Primary", TypeName = "bit")] + public bool Primary { 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { 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 - #endregion + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual Product Product { get; set; } = null!; - #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual ProductPhoto ProductPhoto { get; set; } = null!; - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Product Product { get; set; } = null!; + #endregion - /// - /// 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 index 1f980c3..f69c75a 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductReview.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductReview.cs @@ -1,110 +1,111 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'ProductReview'. +/// Entity class representing data for table 'ProductReview'. /// -[Table("ProductReview", Schema = "Production")] -public class ProductReview - : HasDomainEventsBase, IIdentity +[System.ComponentModel.DataAnnotations.Schema.Table("ProductReview", Schema = "Production")] +public partial class ProductReview + : HasDomainEventsBase, IIdentity { - /// - /// Initializes a new instance of the class. - /// - public ProductReview() - { - } + /// + /// Initializes a new instance of the class. + /// + public ProductReview() + { + #region Generated Constructor + #endregion + } - #region Generated Relationships + #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 navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Product Product { get; set; } = null!; + /// + /// 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; } - #endregion + /// + /// 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!; - #region Generated Properties + /// + /// 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 '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 '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 'ProductID'. - /// - /// - /// The property value representing column 'ProductID'. - /// - [Column("ProductID", TypeName = "int")] - public int ProductId { get; set; } + /// + /// 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 '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 '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 'ReviewDate'. - /// - /// - /// The property value representing column 'ReviewDate'. - /// - [Column("ReviewDate", TypeName = "datetime")] - public DateTime ReviewDate { 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; } - /// - /// 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!; + #endregion - /// - /// Gets or sets the property value representing column 'Rating'. - /// - /// - /// The property value representing column 'Rating'. - /// - [Column("Rating", TypeName = "int")] - public int Rating { get; set; } + #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 property value representing column 'Comments'. - /// - /// - /// The property value representing column 'Comments'. - /// - [Column("Comments", TypeName = "nvarchar(3850)")] - public string? Comments { get; set; } + #endregion - /// - /// 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 index d58db8f..2d989f9 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductSubcategory.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductSubcategory.cs @@ -1,96 +1,93 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'ProductSubcategory'. +/// Entity class representing data for table 'ProductSubcategory'. /// -[Table("ProductSubcategory", Schema = "Production")] -public class ProductSubcategory - : HasDomainEventsBase, IIdentity +[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 + /// + /// Initializes a new instance of the class. + /// + public ProductSubcategory() + { + #region Generated Constructor + Products = new HashSet(); + #endregion + } - Products = new HashSet(); + #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; } - #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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ProductCategoryID", TypeName = "int")] + public int ProductCategoryId { 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { 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 '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 '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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { 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 + #endregion - #region Generated Relationships + #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 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; } - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection Products { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductVendor.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductVendor.cs index 7d15919..bdd9d31 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ProductVendor.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ProductVendor.cs @@ -1,154 +1,155 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'ProductVendor'. +/// Entity class representing data for table 'ProductVendor'. /// -[Table("ProductVendor", Schema = "Purchasing")] -public class ProductVendor +[System.ComponentModel.DataAnnotations.Schema.Table("ProductVendor", Schema = "Purchasing")] +public partial 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 + /// + /// 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 index 61956b8..88736d3 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/PurchaseOrderDetail.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/PurchaseOrderDetail.cs @@ -1,149 +1,150 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'PurchaseOrderDetail'. +/// Entity class representing data for table 'PurchaseOrderDetail'. /// -[Table("PurchaseOrderDetail", Schema = "Purchasing")] -public class PurchaseOrderDetail - : HasDomainEventsBase, IIdentity +[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 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 + /// + /// 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 index e51a5ce..35a61c0 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/PurchaseOrderHeader.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/PurchaseOrderHeader.cs @@ -1,187 +1,184 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'PurchaseOrderHeader'. +/// Entity class representing data for table 'PurchaseOrderHeader'. /// -[Table("PurchaseOrderHeader", Schema = "Purchasing")] -public class PurchaseOrderHeader - : HasDomainEventsBase, IIdentity +[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 + /// + /// 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; } - PurchaseOrderDetails = new HashSet(); + #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 - } - - #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 index cbbe8fb..4474fba 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesOrderDetail.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesOrderDetail.cs @@ -1,149 +1,150 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'SalesOrderDetail'. +/// Entity class representing data for table 'SalesOrderDetail'. /// -[Table("SalesOrderDetail", Schema = "Sales")] -public class SalesOrderDetail - : HasDomainEventsBase, IIdentity +[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 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 + /// + /// 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 index 6689cb1..57fd088 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesOrderHeader.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesOrderHeader.cs @@ -1,359 +1,356 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'SalesOrderHeader'. +/// Entity class representing data for table 'SalesOrderHeader'. /// -[Table("SalesOrderHeader", Schema = "Sales")] -public class SalesOrderHeader - : HasDomainEventsBase, IIdentity +[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 + /// + /// 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; } - SalesOrderDetails = new HashSet(); - SalesOrderHeaderSalesReasons = new HashSet(); + #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 - } - - #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 index 9354239..9415cda 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesOrderHeaderSalesReason.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesOrderHeaderSalesReason.cs @@ -1,73 +1,74 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'SalesOrderHeaderSalesReason'. +/// Entity class representing data for table 'SalesOrderHeaderSalesReason'. /// -[Table("SalesOrderHeaderSalesReason", Schema = "Sales")] -public class SalesOrderHeaderSalesReason +[System.ComponentModel.DataAnnotations.Schema.Table("SalesOrderHeaderSalesReason", Schema = "Sales")] +public partial class SalesOrderHeaderSalesReason { - /// - /// Initializes a new instance of the class. - /// - public SalesOrderHeaderSalesReason() - { - } + /// + /// Initializes a new instance of the class. + /// + public SalesOrderHeaderSalesReason() + { + #region Generated Constructor + #endregion + } - #region Generated Properties + #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 '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'. + /// + [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 '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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { 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 - #endregion + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual SalesOrderHeader SalesOrderHeader { get; set; } = null!; - #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual SalesReason SalesReason { get; set; } = null!; - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual SalesOrderHeader SalesOrderHeader { get; set; } = null!; + #endregion - /// - /// 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 index 9dcdeac..1bc6ba7 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesPerson.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesPerson.cs @@ -1,166 +1,163 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'SalesPerson'. +/// Entity class representing data for table 'SalesPerson'. /// -[Table("SalesPerson", Schema = "Sales")] -public class 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(); + /// + /// 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 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 + + #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 index 0607cbc..400f1da 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesPersonQuotaHistory.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesPersonQuotaHistory.cs @@ -1,82 +1,83 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'SalesPersonQuotaHistory'. +/// Entity class representing data for table 'SalesPersonQuotaHistory'. /// -[Table("SalesPersonQuotaHistory", Schema = "Sales")] -public class SalesPersonQuotaHistory +[System.ComponentModel.DataAnnotations.Schema.Table("SalesPersonQuotaHistory", Schema = "Sales")] +public partial class SalesPersonQuotaHistory { - /// - /// Initializes a new instance of the class. - /// - public SalesPersonQuotaHistory() - { - } + /// + /// Initializes a new instance of the class. + /// + public SalesPersonQuotaHistory() + { + #region Generated Constructor + #endregion + } - #region Generated Relationships + #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 navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual SalesPerson SalesPerson { get; set; } = null!; + /// + /// 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; } - #endregion + /// + /// 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; } - #region Generated Properties + /// + /// 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 '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 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { 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; } + #endregion - /// - /// Gets or sets the property value representing column 'SalesQuota'. - /// - /// - /// The property value representing column 'SalesQuota'. - /// - [Column("SalesQuota", TypeName = "money")] - public decimal SalesQuota { get; set; } + #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 property value representing column 'rowguid'. - /// - /// - /// The property value representing column 'rowguid'. - /// - [Column("rowguid", TypeName = "uniqueidentifier")] - public Guid Rowguid { get; set; } + #endregion - /// - /// 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 index 148b252..4a56b6f 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesReason.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesReason.cs @@ -1,78 +1,75 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'SalesReason'. +/// Entity class representing data for table 'SalesReason'. /// -[Table("SalesReason", Schema = "Sales")] -public class SalesReason - : HasDomainEventsBase, IIdentity +[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 + /// + /// Initializes a new instance of the class. + /// + public SalesReason() + { + #region Generated Constructor + SalesOrderHeaderSalesReasons = new HashSet(); + #endregion + } - SalesOrderHeaderSalesReasons = new HashSet(); + #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; } - #endregion - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection SalesOrderHeaderSalesReasons { 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!; - #endregion + /// + /// 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!; - #region Generated Properties + /// + /// 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; } - /// - /// 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!; + #endregion - /// - /// 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!; + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection SalesOrderHeaderSalesReasons { 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 - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesTaxRate.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesTaxRate.cs index 6f6ff51..54862af 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesTaxRate.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesTaxRate.cs @@ -1,101 +1,102 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'SalesTaxRate'. +/// Entity class representing data for table 'SalesTaxRate'. /// -[Table("SalesTaxRate", Schema = "Sales")] -public class SalesTaxRate - : HasDomainEventsBase, IIdentity +[System.ComponentModel.DataAnnotations.Schema.Table("SalesTaxRate", Schema = "Sales")] +public partial class SalesTaxRate + : HasDomainEventsBase, IIdentity { - /// - /// Initializes a new instance of the class. - /// - public SalesTaxRate() - { - } + /// + /// Initializes a new instance of the class. + /// + public SalesTaxRate() + { + #region Generated Constructor + #endregion + } - #region Generated Relationships + #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 navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual StateProvince StateProvince { 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; } - #endregion + /// + /// 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; } - #region Generated Properties + /// + /// 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 '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 '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 'StateProvinceID'. - /// - /// - /// The property value representing column 'StateProvinceID'. - /// - [Column("StateProvinceID", TypeName = "int")] - public int StateProvinceId { 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 'TaxType'. - /// - /// - /// The property value representing column 'TaxType'. - /// - [Column("TaxType", TypeName = "tinyint")] - public byte TaxType { 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; } - /// - /// Gets or sets the property value representing column 'TaxRate'. - /// - /// - /// The property value representing column 'TaxRate'. - /// - [Column("TaxRate", TypeName = "smallmoney")] - public decimal TaxRate { get; set; } + #endregion - /// - /// 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!; + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual StateProvince StateProvince { 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; } + #endregion - /// - /// 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 index 8a082c5..d011d2b 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesTerritory.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesTerritory.cs @@ -1,177 +1,174 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'SalesTerritory'. +/// Entity class representing data for table 'SalesTerritory'. /// -[Table("SalesTerritory", Schema = "Sales")] -public class SalesTerritory - : HasDomainEventsBase, IIdentity +[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(); + /// + /// 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 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 + + #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 index aa095af..b158189 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/SalesTerritoryHistory.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/SalesTerritoryHistory.cs @@ -1,101 +1,102 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'SalesTerritoryHistory'. +/// Entity class representing data for table 'SalesTerritoryHistory'. /// -[Table("SalesTerritoryHistory", Schema = "Sales")] -public class SalesTerritoryHistory +[System.ComponentModel.DataAnnotations.Schema.Table("SalesTerritoryHistory", Schema = "Sales")] +public partial class SalesTerritoryHistory { - /// - /// Initializes a new instance of the class. - /// - public SalesTerritoryHistory() - { - } + /// + /// Initializes a new instance of the class. + /// + public SalesTerritoryHistory() + { + #region Generated Constructor + #endregion + } - #region Generated Properties + #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 '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'. + /// + [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 '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'. + /// + [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 '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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("EndDate", TypeName = "datetime")] + public DateTime? EndDate { 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { 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 - #endregion + #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual SalesPerson SalesPerson { get; set; } = null!; - #region Generated Relationships + /// + /// Gets or sets the navigation property for entity . + /// + /// + /// The navigation property for entity . + /// + /// + public virtual SalesTerritory SalesTerritory { get; set; } = null!; - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual SalesPerson SalesPerson { get; set; } = null!; + #endregion - /// - /// 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 index 2f61acf..5faffc7 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ScrapReason.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ScrapReason.cs @@ -1,69 +1,66 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'ScrapReason'. +/// Entity class representing data for table 'ScrapReason'. /// -[Table("ScrapReason", Schema = "Production")] -public class ScrapReason - : HasDomainEventsBase, IIdentity +[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 + /// + /// Initializes a new instance of the class. + /// + public ScrapReason() + { + #region Generated Constructor + WorkOrders = new HashSet(); + #endregion + } - WorkOrders = new HashSet(); + #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; } - #endregion - } - - #region Generated Relationships - - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection WorkOrders { 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!; - #endregion + /// + /// 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; } - #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; } + #endregion - /// - /// 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!; + #region Generated Relationships + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection WorkOrders { 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 - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/Shift.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/Shift.cs index b42c4e2..864d430 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/Shift.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/Shift.cs @@ -1,87 +1,84 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'Shift'. +/// Entity class representing data for table 'Shift'. /// -[Table("Shift", Schema = "HumanResources")] -public class Shift - : HasDomainEventsBase, IIdentity +[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 + /// + /// Initializes a new instance of the class. + /// + public Shift() + { + #region Generated Constructor + EmployeeDepartmentHistories = new HashSet(); + #endregion + } - EmployeeDepartmentHistories = new HashSet(); + #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; } - #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 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!; - #endregion + /// + /// 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; } - #region Generated Properties + /// + /// 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 '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 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { 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; } + #endregion - /// - /// Gets or sets the property value representing column 'EndTime'. - /// - /// - /// The property value representing column 'EndTime'. - /// - [Column("EndTime", TypeName = "time")] - public TimeOnly EndTime { get; set; } + #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 property value representing column 'ModifiedDate'. - /// - /// - /// The property value representing column 'ModifiedDate'. - /// - [Column("ModifiedDate", TypeName = "datetime")] - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ShipMethod.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ShipMethod.cs index c7fbe76..ce3256a 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ShipMethod.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ShipMethod.cs @@ -1,105 +1,102 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'ShipMethod'. +/// Entity class representing data for table 'ShipMethod'. /// -[Table("ShipMethod", Schema = "Purchasing")] -public class ShipMethod - : HasDomainEventsBase, IIdentity +[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(); + /// + /// 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 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; } + #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; } - /// - /// 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 - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/ShoppingCartItem.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/ShoppingCartItem.cs index 1396ea6..84ea690 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/ShoppingCartItem.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/ShoppingCartItem.cs @@ -1,92 +1,93 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'ShoppingCartItem'. +/// Entity class representing data for table 'ShoppingCartItem'. /// -[Table("ShoppingCartItem", Schema = "Sales")] -public class ShoppingCartItem - : HasDomainEventsBase, IIdentity +[System.ComponentModel.DataAnnotations.Schema.Table("ShoppingCartItem", Schema = "Sales")] +public partial class ShoppingCartItem + : HasDomainEventsBase, IIdentity { - /// - /// Initializes a new instance of the class. - /// - public ShoppingCartItem() - { - } + /// + /// Initializes a new instance of the class. + /// + public ShoppingCartItem() + { + #region Generated Constructor + #endregion + } - #region Generated Relationships + #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 navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual Product Product { get; set; } = null!; + /// + /// 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!; - #endregion + /// + /// 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; } - #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 '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 '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 '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 'ModifiedDate'. + /// + /// + /// The property value representing column 'ModifiedDate'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { get; set; } - /// - /// Gets or sets the property value representing column 'Quantity'. - /// - /// - /// The property value representing column 'Quantity'. - /// - [Column("Quantity", TypeName = "int")] - public int Quantity { get; set; } + #endregion - /// - /// Gets or sets the property value representing column 'ProductID'. - /// - /// - /// The property value representing column 'ProductID'. - /// - [Column("ProductID", TypeName = "int")] - public int ProductId { get; set; } + #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 property value representing column 'DateCreated'. - /// - /// - /// The property value representing column 'DateCreated'. - /// - [Column("DateCreated", TypeName = "datetime")] - public DateTime DateCreated { get; set; } + #endregion - /// - /// 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 index 0aea07c..58f01b3 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/SpecialOffer.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/SpecialOffer.cs @@ -1,141 +1,138 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'SpecialOffer'. +/// Entity class representing data for table 'SpecialOffer'. /// -[Table("SpecialOffer", Schema = "Sales")] -public class SpecialOffer - : HasDomainEventsBase, IIdentity +[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 + /// + /// 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; } - 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 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 index d4aebbf..2ac1dcc 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/SpecialOfferProduct.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/SpecialOfferProduct.cs @@ -1,95 +1,92 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'SpecialOfferProduct'. +/// Entity class representing data for table 'SpecialOfferProduct'. /// -[Table("SpecialOfferProduct", Schema = "Sales")] -public class 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 + /// + /// Initializes a new instance of the class. + /// + public SpecialOfferProduct() + { + #region Generated Constructor + SalesOrderDetails = new HashSet(); + #endregion + } - SalesOrderDetails = new HashSet(); + #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; } - #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'. + /// + [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 '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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("rowguid", TypeName = "uniqueidentifier")] + public Guid Rowguid { 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { 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 + #endregion - #region Generated Relationships + #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 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 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!; - /// - /// Gets or sets the navigation property for entity . - /// - /// - /// The navigation property for entity . - /// - /// - public virtual SpecialOffer SpecialOffer { get; set; } = null!; + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/StateProvince.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/StateProvince.cs index 418426f..ebb28a0 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/StateProvince.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/StateProvince.cs @@ -1,141 +1,138 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'StateProvince'. +/// Entity class representing data for table 'StateProvince'. /// -[Table("StateProvince", Schema = "Person")] -public class StateProvince - : HasDomainEventsBase, IIdentity +[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 + /// + /// 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; } - Addresses = new HashSet
(); - SalesTaxRates = new HashSet(); + #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 - } - - #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 index ac05f67..9068b30 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/Store.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/Store.cs @@ -1,112 +1,109 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'Store'. +/// Entity class representing data for table 'Store'. /// -[Table("Store", Schema = "Sales")] -public class 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(); + /// + /// 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 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; } + #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; } - /// - /// 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 - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/TransactionHistory.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/TransactionHistory.cs index 46c37d7..5939863 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/TransactionHistory.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/TransactionHistory.cs @@ -1,119 +1,120 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'TransactionHistory'. +/// Entity class representing data for table 'TransactionHistory'. /// -[Table("TransactionHistory", Schema = "Production")] -public class TransactionHistory - : HasDomainEventsBase, IIdentity +[System.ComponentModel.DataAnnotations.Schema.Table("TransactionHistory", Schema = "Production")] +public partial class TransactionHistory + : HasDomainEventsBase, IIdentity { - /// - /// Initializes a new instance of the class. - /// - public TransactionHistory() - { - } + /// + /// 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 - #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 index b6132fc..46ee4c4 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/TransactionHistoryArchive.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/TransactionHistoryArchive.cs @@ -1,104 +1,109 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'TransactionHistoryArchive'. +/// Entity class representing data for table 'TransactionHistoryArchive'. /// -[Table("TransactionHistoryArchive", Schema = "Production")] -public class TransactionHistoryArchive +[System.ComponentModel.DataAnnotations.Schema.Table("TransactionHistoryArchive", Schema = "Production")] +public partial class TransactionHistoryArchive { - /// - /// Initializes a new instance of the class. - /// - public TransactionHistoryArchive() - { - } + /// + /// Initializes a new instance of the class. + /// + public TransactionHistoryArchive() + { + #region Generated Constructor + #endregion + } - #region Generated Properties + #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 '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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ProductID", TypeName = "int")] + public int ProductId { 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ReferenceOrderID", TypeName = "int")] + public int ReferenceOrderId { 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ReferenceOrderLineID", TypeName = "int")] + public int ReferenceOrderLineId { 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("TransactionDate", TypeName = "datetime")] + public DateTime TransactionDate { 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("TransactionType", TypeName = "nchar(1)")] + public string TransactionType { get; set; } = null!; - /// - /// 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Quantity", TypeName = "int")] + public int Quantity { get; set; } - /// - /// 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ActualCost", TypeName = "money")] + public decimal ActualCost { 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { 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 + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/UnitMeasure.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/UnitMeasure.cs index 0c0cd31..7f656b7 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/UnitMeasure.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/UnitMeasure.cs @@ -1,94 +1,91 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'UnitMeasure'. +/// Entity class representing data for table 'UnitMeasure'. /// -[Table("UnitMeasure", Schema = "Production")] -public class 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 + /// + /// 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 + } - BillOfMaterials = new HashSet(); - ProductVendors = new HashSet(); - SizeProducts = new HashSet(); - WeightProducts = new HashSet(); + #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!; - #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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("ModifiedDate", TypeName = "datetime")] + public DateTime ModifiedDate { 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 + #endregion - #region Generated Relationships + #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 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 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 SizeProducts { get; set; } + /// + /// Gets or sets the navigation collection for entity . + /// + /// + /// The navigation collection for entity . + /// + public virtual ICollection WeightProducts { get; set; } - /// - /// Gets or sets the navigation collection for entity . - /// - /// - /// The navigation collection for entity . - /// - public virtual ICollection WeightProducts { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VAdditionalContactInfo.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VAdditionalContactInfo.cs index b14f822..86e26a3 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VAdditionalContactInfo.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VAdditionalContactInfo.cs @@ -1,174 +1,180 @@ -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'vAdditionalContactInfo'. +/// Entity class representing data for table 'vAdditionalContactInfo'. /// -[Table("vAdditionalContactInfo", Schema = "Person")] -public class VAdditionalContactInfo +[System.ComponentModel.DataAnnotations.Schema.Table("vAdditionalContactInfo", Schema = "Person")] +public partial 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 + /// + /// 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 index a70298e..d2d2573 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VEmployee.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VEmployee.cs @@ -1,183 +1,189 @@ -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'vEmployee'. +/// Entity class representing data for table 'vEmployee'. /// -[Table("vEmployee", Schema = "HumanResources")] -public class VEmployee +[System.ComponentModel.DataAnnotations.Schema.Table("vEmployee", Schema = "HumanResources")] +public partial 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 + /// + /// 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 index 6af3d1d..c481011 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VEmployeeDepartment.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VEmployeeDepartment.cs @@ -1,111 +1,117 @@ -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'vEmployeeDepartment'. +/// Entity class representing data for table 'vEmployeeDepartment'. /// -[Table("vEmployeeDepartment", Schema = "HumanResources")] -public class VEmployeeDepartment +[System.ComponentModel.DataAnnotations.Schema.Table("vEmployeeDepartment", Schema = "HumanResources")] +public partial class VEmployeeDepartment { - /// - /// Initializes a new instance of the class. - /// - public VEmployeeDepartment() - { - } + /// + /// Initializes a new instance of the class. + /// + public VEmployeeDepartment() + { + #region Generated Constructor + #endregion + } - #region Generated Properties + #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 '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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Title", TypeName = "nvarchar(8)")] + public string? Title { 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("FirstName", TypeName = "nvarchar(50)")] + public string FirstName { get; set; } = null!; - /// - /// 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("MiddleName", TypeName = "nvarchar(50)")] + public string? MiddleName { get; set; } - /// - /// 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("LastName", TypeName = "nvarchar(50)")] + public string LastName { get; set; } = null!; - /// - /// 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Suffix", TypeName = "nvarchar(10)")] + public string? Suffix { get; set; } - /// - /// 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("JobTitle", TypeName = "nvarchar(50)")] + public string JobTitle { get; set; } = null!; - /// - /// 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Department", TypeName = "nvarchar(50)")] + public string Department { 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("GroupName", TypeName = "nvarchar(50)")] + public string GroupName { 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("StartDate", TypeName = "date")] + public DateOnly StartDate { get; set; } - /// - /// 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 + + #region Generated Relationships + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VEmployeeDepartmentHistory.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VEmployeeDepartmentHistory.cs index 9ed1ce1..4b25f9f 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VEmployeeDepartmentHistory.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VEmployeeDepartmentHistory.cs @@ -1,120 +1,126 @@ -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'vEmployeeDepartmentHistory'. +/// Entity class representing data for table 'vEmployeeDepartmentHistory'. /// -[Table("vEmployeeDepartmentHistory", Schema = "HumanResources")] -public class VEmployeeDepartmentHistory +[System.ComponentModel.DataAnnotations.Schema.Table("vEmployeeDepartmentHistory", Schema = "HumanResources")] +public partial 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 + /// + /// 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 index fdb1573..7bdc426 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VIndividualCustomer.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VIndividualCustomer.cs @@ -1,183 +1,189 @@ -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'vIndividualCustomer'. +/// Entity class representing data for table 'vIndividualCustomer'. /// -[Table("vIndividualCustomer", Schema = "Sales")] -public class VIndividualCustomer +[System.ComponentModel.DataAnnotations.Schema.Table("vIndividualCustomer", Schema = "Sales")] +public partial 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 + /// + /// 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 index 992495c..58c64b2 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VJobCandidate.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VJobCandidate.cs @@ -1,167 +1,173 @@ -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'vJobCandidate'. +/// Entity class representing data for table 'vJobCandidate'. /// -[Table("vJobCandidate", Schema = "HumanResources")] -public class VJobCandidate - : HasDomainEventsBase, IIdentity +[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 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 + /// + /// 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 index fd3918e..0151e2b 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VJobCandidateEducation.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VJobCandidateEducation.cs @@ -1,140 +1,146 @@ -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'vJobCandidateEducation'. +/// Entity class representing data for table 'vJobCandidateEducation'. /// -[Table("vJobCandidateEducation", Schema = "HumanResources")] -public class VJobCandidateEducation - : HasDomainEventsBase, IIdentity +[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 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 + /// + /// 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 index 81a13ef..e71bb96 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VJobCandidateEmployment.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VJobCandidateEmployment.cs @@ -1,122 +1,128 @@ -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'vJobCandidateEmployment'. +/// Entity class representing data for table 'vJobCandidateEmployment'. /// -[Table("vJobCandidateEmployment", Schema = "HumanResources")] -public class VJobCandidateEmployment - : HasDomainEventsBase, IIdentity +[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 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 + /// + /// 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 index d3e532b..716e66a 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VPersonDemographics.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VPersonDemographics.cs @@ -1,138 +1,144 @@ -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'vPersonDemographics'. +/// Entity class representing data for table 'vPersonDemographics'. /// -[Table("vPersonDemographics", Schema = "Sales")] -public class VPersonDemographics +[System.ComponentModel.DataAnnotations.Schema.Table("vPersonDemographics", Schema = "Sales")] +public partial 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 + /// + /// 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 index 112f0a3..9f5ac95 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VProductAndDescription.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VProductAndDescription.cs @@ -1,66 +1,72 @@ -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'vProductAndDescription'. +/// Entity class representing data for table 'vProductAndDescription'. /// -[Table("vProductAndDescription", Schema = "Production")] -public class VProductAndDescription +[System.ComponentModel.DataAnnotations.Schema.Table("vProductAndDescription", Schema = "Production")] +public partial class VProductAndDescription { - /// - /// Initializes a new instance of the class. - /// - public VProductAndDescription() - { - } + /// + /// Initializes a new instance of the class. + /// + public VProductAndDescription() + { + #region Generated Constructor + #endregion + } - #region Generated Properties + #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 '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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { 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 '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 '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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("CultureID", TypeName = "nchar(6)")] + public string CultureId { 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Description", TypeName = "nvarchar(400)")] + public string Description { 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 + + #region Generated Relationships + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VProductModelCatalogDescription.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VProductModelCatalogDescription.cs index 37e0503..1ee4773 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VProductModelCatalogDescription.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VProductModelCatalogDescription.cs @@ -1,248 +1,254 @@ -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'vProductModelCatalogDescription'. +/// Entity class representing data for table 'vProductModelCatalogDescription'. /// -[Table("vProductModelCatalogDescription", Schema = "Production")] -public class VProductModelCatalogDescription - : HasDomainEventsBase, IIdentity +[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 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 + /// + /// 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 index ac11ba4..794eda9 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VProductModelInstructions.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VProductModelInstructions.cs @@ -1,122 +1,128 @@ -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'vProductModelInstructions'. +/// Entity class representing data for table 'vProductModelInstructions'. /// -[Table("vProductModelInstructions", Schema = "Production")] -public class VProductModelInstructions - : HasDomainEventsBase, IIdentity +[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 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 + /// + /// 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 index de2fb8a..c0d3db5 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VSalesPerson.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VSalesPerson.cs @@ -1,219 +1,225 @@ -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'vSalesPerson'. +/// Entity class representing data for table 'vSalesPerson'. /// -[Table("vSalesPerson", Schema = "Sales")] -public class VSalesPerson +[System.ComponentModel.DataAnnotations.Schema.Table("vSalesPerson", Schema = "Sales")] +public partial 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 + /// + /// 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 index d5343b0..b31dc5f 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VSalesPersonSalesByFiscalYears.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VSalesPersonSalesByFiscalYears.cs @@ -1,84 +1,90 @@ -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'vSalesPersonSalesByFiscalYears'. +/// Entity class representing data for table 'vSalesPersonSalesByFiscalYears'. /// -[Table("vSalesPersonSalesByFiscalYears", Schema = "Sales")] -public class VSalesPersonSalesByFiscalYears +[System.ComponentModel.DataAnnotations.Schema.Table("vSalesPersonSalesByFiscalYears", Schema = "Sales")] +public partial class VSalesPersonSalesByFiscalYears { - /// - /// Initializes a new instance of the class. - /// - public VSalesPersonSalesByFiscalYears() - { - } + /// + /// Initializes a new instance of the class. + /// + public VSalesPersonSalesByFiscalYears() + { + #region Generated Constructor + #endregion + } - #region Generated Properties + #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 '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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("FullName", TypeName = "nvarchar(152)")] + public string? FullName { 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("JobTitle", TypeName = "nvarchar(50)")] + public string JobTitle { get; set; } = null!; - /// - /// 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("SalesTerritory", TypeName = "nvarchar(50)")] + public string SalesTerritory { 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("2002", TypeName = "money")] + public decimal? Number2002 { get; set; } - /// - /// 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("2003", TypeName = "money")] + public decimal? Number2003 { 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("2004", TypeName = "money")] + public decimal? Number2004 { 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 + + #region Generated Relationships + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VStateProvinceCountryRegion.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VStateProvinceCountryRegion.cs index 81db32f..ce86217 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VStateProvinceCountryRegion.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VStateProvinceCountryRegion.cs @@ -1,84 +1,90 @@ -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'vStateProvinceCountryRegion'. +/// Entity class representing data for table 'vStateProvinceCountryRegion'. /// -[Table("vStateProvinceCountryRegion", Schema = "Person")] -public class VStateProvinceCountryRegion +[System.ComponentModel.DataAnnotations.Schema.Table("vStateProvinceCountryRegion", Schema = "Person")] +public partial class VStateProvinceCountryRegion { - /// - /// Initializes a new instance of the class. - /// - public VStateProvinceCountryRegion() - { - } + /// + /// Initializes a new instance of the class. + /// + public VStateProvinceCountryRegion() + { + #region Generated Constructor + #endregion + } - #region Generated Properties + #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 '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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("StateProvinceCode", TypeName = "nchar(3)")] + public string StateProvinceCode { get; set; } = null!; - /// - /// 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("IsOnlyStateProvinceFlag", TypeName = "bit")] + public bool IsOnlyStateProvinceFlag { get; set; } - /// - /// 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("StateProvinceName", TypeName = "nvarchar(50)")] + public string StateProvinceName { 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 '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 '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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("CountryRegionCode", TypeName = "nvarchar(3)")] + public string CountryRegionCode { 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 '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 'CountryRegionName'. - /// - /// - /// The property value representing column 'CountryRegionName'. - /// - [Column("CountryRegionName", TypeName = "nvarchar(50)")] - public string CountryRegionName { get; set; } = null!; + #endregion + + #region Generated Relationships + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithAddresses.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithAddresses.cs index e442482..bfe989d 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithAddresses.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithAddresses.cs @@ -1,102 +1,108 @@ -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'vStoreWithAddresses'. +/// Entity class representing data for table 'vStoreWithAddresses'. /// -[Table("vStoreWithAddresses", Schema = "Sales")] -public class VStoreWithAddresses +[System.ComponentModel.DataAnnotations.Schema.Table("vStoreWithAddresses", Schema = "Sales")] +public partial class VStoreWithAddresses { - /// - /// Initializes a new instance of the class. - /// - public VStoreWithAddresses() - { - } + /// + /// Initializes a new instance of the class. + /// + public VStoreWithAddresses() + { + #region Generated Constructor + #endregion + } - #region Generated Properties + #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 '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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { 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 '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 '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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("AddressLine1", TypeName = "nvarchar(60)")] + public string AddressLine1 { 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("AddressLine2", TypeName = "nvarchar(60)")] + public string? AddressLine2 { get; set; } - /// - /// 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("City", TypeName = "nvarchar(30)")] + public string City { get; set; } = null!; - /// - /// 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("StateProvinceName", TypeName = "nvarchar(50)")] + public string StateProvinceName { 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("PostalCode", TypeName = "nvarchar(15)")] + public string PostalCode { 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("CountryRegionName", TypeName = "nvarchar(50)")] + public string CountryRegionName { 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 + + #region Generated Relationships + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithContacts.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithContacts.cs index 18c702e..6e6b20c 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithContacts.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithContacts.cs @@ -1,129 +1,135 @@ -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'vStoreWithContacts'. +/// Entity class representing data for table 'vStoreWithContacts'. /// -[Table("vStoreWithContacts", Schema = "Sales")] -public class VStoreWithContacts +[System.ComponentModel.DataAnnotations.Schema.Table("vStoreWithContacts", Schema = "Sales")] +public partial 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 + /// + /// 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 index ed9f711..5acd2a5 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithDemographics.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VStoreWithDemographics.cs @@ -1,129 +1,135 @@ -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'vStoreWithDemographics'. +/// Entity class representing data for table 'vStoreWithDemographics'. /// -[Table("vStoreWithDemographics", Schema = "Sales")] -public class VStoreWithDemographics +[System.ComponentModel.DataAnnotations.Schema.Table("vStoreWithDemographics", Schema = "Sales")] +public partial 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 + /// + /// 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 index 39a5ec0..c05ddc1 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VVendorWithAddresses.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VVendorWithAddresses.cs @@ -1,102 +1,108 @@ -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'vVendorWithAddresses'. +/// Entity class representing data for table 'vVendorWithAddresses'. /// -[Table("vVendorWithAddresses", Schema = "Purchasing")] -public class VVendorWithAddresses +[System.ComponentModel.DataAnnotations.Schema.Table("vVendorWithAddresses", Schema = "Purchasing")] +public partial class VVendorWithAddresses { - /// - /// Initializes a new instance of the class. - /// - public VVendorWithAddresses() - { - } + /// + /// Initializes a new instance of the class. + /// + public VVendorWithAddresses() + { + #region Generated Constructor + #endregion + } - #region Generated Properties + #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 '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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("Name", TypeName = "nvarchar(50)")] + public string Name { 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 '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 '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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("AddressLine1", TypeName = "nvarchar(60)")] + public string AddressLine1 { 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("AddressLine2", TypeName = "nvarchar(60)")] + public string? AddressLine2 { get; set; } - /// - /// 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("City", TypeName = "nvarchar(30)")] + public string City { get; set; } = null!; - /// - /// 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("StateProvinceName", TypeName = "nvarchar(50)")] + public string StateProvinceName { 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("PostalCode", TypeName = "nvarchar(15)")] + public string PostalCode { 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'. + /// + [System.ComponentModel.DataAnnotations.Schema.Column("CountryRegionName", TypeName = "nvarchar(50)")] + public string CountryRegionName { 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 + + #region Generated Relationships + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Data/Entities/VVendorWithContacts.cs b/src/Platy.AdventureWorks.Repository/Data/Entities/VVendorWithContacts.cs index f788629..42dd6c6 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/VVendorWithContacts.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/VVendorWithContacts.cs @@ -1,129 +1,135 @@ -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'vVendorWithContacts'. +/// Entity class representing data for table 'vVendorWithContacts'. /// -[Table("vVendorWithContacts", Schema = "Purchasing")] -public class VVendorWithContacts +[System.ComponentModel.DataAnnotations.Schema.Table("vVendorWithContacts", Schema = "Purchasing")] +public partial 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 + /// + /// 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 index eea8cab..e6f54e0 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/Vendor.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/Vendor.cs @@ -1,130 +1,127 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'Vendor'. +/// Entity class representing data for table 'Vendor'. /// -[Table("Vendor", Schema = "Purchasing")] -public class 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 + /// + /// 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; } - ProductVendors = new HashSet(); - PurchaseOrderHeaders = new HashSet(); + #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 - } - - #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 index 2092cf3..e0d01eb 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/WorkOrder.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/WorkOrder.cs @@ -1,151 +1,148 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'WorkOrder'. +/// Entity class representing data for table 'WorkOrder'. /// -[Table("WorkOrder", Schema = "Production")] -public class WorkOrder - : HasDomainEventsBase, IIdentity +[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 + /// + /// 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; } - WorkOrderRoutings = new HashSet(); + #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 - } - - #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 index e7edc5c..9039c40 100644 --- a/src/Platy.AdventureWorks.Repository/Data/Entities/WorkOrderRouting.cs +++ b/src/Platy.AdventureWorks.Repository/Data/Entities/WorkOrderRouting.cs @@ -1,155 +1,156 @@ -using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; +using System; +using System.Collections.Generic; namespace Platy.AdventureWorks.Repository.Data.Entities; /// -/// Entity class representing data for table 'WorkOrderRouting'. +/// Entity class representing data for table 'WorkOrderRouting'. /// -[Table("WorkOrderRouting", Schema = "Production")] -public class WorkOrderRouting +[System.ComponentModel.DataAnnotations.Schema.Table("WorkOrderRouting", Schema = "Production")] +public partial 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 + /// + /// 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 index 5a2b7ad..ce03b13 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/AddressConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/AddressConfiguration.cs @@ -1,143 +1,112 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class AddressConfiguration - : IEntityTypeConfiguration
+internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 9426226..62a740a 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/AddressTypeConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/AddressTypeConfiguration.cs @@ -1,97 +1,77 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class AddressTypeConfiguration - : IEntityTypeConfiguration +internal partial 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 + /// Configures the entity of type /// - 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 + /// 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 index 50f8bfd..0d634e5 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BillOfMaterialsConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BillOfMaterialsConfiguration.cs @@ -1,167 +1,126 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class BillOfMaterialsConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 122c66b..6005064 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BusinessEntityAddressConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BusinessEntityAddressConfiguration.cs @@ -1,124 +1,97 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class BusinessEntityAddressConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index faa49b2..202507d 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BusinessEntityConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BusinessEntityConfiguration.cs @@ -1,87 +1,69 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class BusinessEntityConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 4c74106..ccc63c6 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BusinessEntityContactConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/BusinessEntityContactConfiguration.cs @@ -1,124 +1,97 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class BusinessEntityContactConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 471444d..2b54b31 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ContactTypeConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ContactTypeConfiguration.cs @@ -1,85 +1,69 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class ContactTypeConfiguration - : IEntityTypeConfiguration +internal partial 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 + /// Configures the entity of type /// - 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 + /// 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 index c8d7705..4b86310 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CountryRegionConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CountryRegionConfiguration.cs @@ -1,87 +1,69 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class CountryRegionConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index b5e4b79..46e2fb0 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CountryRegionCurrencyConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CountryRegionCurrencyConfiguration.cs @@ -1,98 +1,79 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class CountryRegionCurrencyConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 09365ed..2d23a16 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CreditCardConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CreditCardConfiguration.cs @@ -1,119 +1,91 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class CreditCardConfiguration - : IEntityTypeConfiguration +internal partial 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 + /// Configures the entity of type /// - 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 + /// 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 index 920a7e0..b4f6595 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CultureConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CultureConfiguration.cs @@ -1,82 +1,69 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class CultureConfiguration - : IEntityTypeConfiguration +internal partial 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 + /// Configures the entity of type /// - 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 + /// 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 index 424dba6..a21d9d9 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CurrencyConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CurrencyConfiguration.cs @@ -1,83 +1,69 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class CurrencyConfiguration - : IEntityTypeConfiguration +internal partial 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 + /// Configures the entity of type /// - 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 + /// 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 index 8231faa..e982355 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CurrencyRateConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CurrencyRateConfiguration.cs @@ -1,140 +1,108 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class CurrencyRateConfiguration - : IEntityTypeConfiguration +internal partial 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 + /// Configures the entity of type /// - 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 + /// 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 index 0b1b998..02083b2 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CustomerConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/CustomerConfiguration.cs @@ -1,140 +1,111 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class CustomerConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index f9c1fbe..cb3715e 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/DepartmentConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/DepartmentConfiguration.cs @@ -1,96 +1,77 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class DepartmentConfiguration - : IEntityTypeConfiguration +internal partial 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 + /// Configures the entity of type /// - 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 + /// 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 index fc54028..8801e60 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmailAddressConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmailAddressConfiguration.cs @@ -1,112 +1,88 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class EmailAddressConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 0b4656b..9d17d0f 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmployeeConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmployeeConfiguration.cs @@ -1,227 +1,166 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class EmployeeConfiguration - : IEntityTypeConfiguration +internal partial 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 + /// 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 index ffa3061..78a60bb 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmployeeDepartmentHistoryConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmployeeDepartmentHistoryConfiguration.cs @@ -1,133 +1,102 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class EmployeeDepartmentHistoryConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 962d2cb..8e37cf7 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmployeePayHistoryConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/EmployeePayHistoryConfiguration.cs @@ -1,112 +1,86 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class EmployeePayHistoryConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index b239c00..c26aace 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/IllustrationConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/IllustrationConfiguration.cs @@ -1,84 +1,67 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class IllustrationConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index a22d291..84e1f57 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/JobCandidateConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/JobCandidateConfiguration.cs @@ -1,98 +1,78 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class JobCandidateConfiguration - : IEntityTypeConfiguration +internal partial 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 + /// Configures the entity of type /// - 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 + /// 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 index cae71c7..21ffa52 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/LocationConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/LocationConfiguration.cs @@ -1,106 +1,85 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class LocationConfiguration - : IEntityTypeConfiguration +internal partial 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 + /// Configures the entity of type /// - 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 + /// 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 index 9689147..b9de2cb 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PasswordConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PasswordConfiguration.cs @@ -1,111 +1,89 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class PasswordConfiguration - : IEntityTypeConfiguration +internal partial 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 + /// Configures the entity of type /// - 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 + /// 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 index 8dd9dc5..12fe719 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PersonConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PersonConfiguration.cs @@ -1,196 +1,146 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class PersonConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 8c7b0dd..fa53eea 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PersonCreditCardConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PersonCreditCardConfiguration.cs @@ -1,94 +1,77 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class PersonCreditCardConfiguration - : IEntityTypeConfiguration +internal partial 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 + /// Configures the entity of type /// - 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 + /// 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 index 1ed3cf3..a851e1e 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PersonPhoneConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PersonPhoneConfiguration.cs @@ -1,105 +1,85 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class PersonPhoneConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 3639098..f62e0d7 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PhoneNumberTypeConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PhoneNumberTypeConfiguration.cs @@ -1,87 +1,69 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class PhoneNumberTypeConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 80ac9b9..0eded84 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductCategoryConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductCategoryConfiguration.cs @@ -1,99 +1,77 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class ProductCategoryConfiguration - : IEntityTypeConfiguration +internal partial 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 + /// Configures the entity of type /// - 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 + /// 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 index 73ccf88..971505c 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductConfiguration.cs @@ -1,336 +1,242 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class ProductConfiguration - : IEntityTypeConfiguration +internal partial 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 + /// 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 index 97b3e9b..ff39e25 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductCostHistoryConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductCostHistoryConfiguration.cs @@ -1,111 +1,85 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class ProductCostHistoryConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 54a2b9d..b7bf438 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductDescriptionConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductDescriptionConfiguration.cs @@ -1,100 +1,77 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class ProductDescriptionConfiguration - : IEntityTypeConfiguration +internal partial 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 + /// Configures the entity of type /// - 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 + /// 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 index 009dcf8..acc986e 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductDocumentConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductDocumentConfiguration.cs @@ -1,78 +1,65 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class ProductDocumentConfiguration - : IEntityTypeConfiguration +internal partial 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"); + /// + /// 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"); - #endregion - } + // key + builder.HasKey(t => t.ProductId); - #region Generated Constants + // properties + builder.Property(t => t.ProductId) + .IsRequired() + .HasColumnName("ProductID") + .HasColumnType("int"); - internal readonly struct Table - { - /// - /// Table Schema name constant for entity - /// - /// - public const string Schema = "Production"; + builder.Property(t => t.ModifiedDate) + .IsRequired() + .HasColumnName("ModifiedDate") + .HasColumnType("datetime") + .HasDefaultValueSql("(getdate())"); - /// - /// Table Name constant for entity - /// - public const string Name = "ProductDocument"; - } + // relationships + builder.HasOne(t => t.Product) + .WithMany(t => t.ProductDocuments) + .HasForeignKey(d => d.ProductId) + .HasConstraintName("FK_ProductDocument_Product_ProductID"); - internal readonly struct Columns - { - /// - /// Column Name constant for property - /// - /// - public const string ProductId = "ProductID"; + #endregion + } - /// - /// Column Name constant for property - /// - /// - public const string ModifiedDate = "ModifiedDate"; - } + #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"; + } - #endregion + 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 index 23aed38..8f678a8 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductInventoryConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductInventoryConfiguration.cs @@ -1,141 +1,108 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class ProductInventoryConfiguration - : IEntityTypeConfiguration +internal partial 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 + /// Configures the entity of type /// - 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 + /// 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 index 786caa4..b73db31 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductListPriceHistoryConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductListPriceHistoryConfiguration.cs @@ -1,112 +1,85 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class ProductListPriceHistoryConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index c3ad6f1..e88e3a6 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductModelConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductModelConfiguration.cs @@ -1,118 +1,89 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class ProductModelConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 88f0061..eec488f 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductModelIllustrationConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductModelIllustrationConfiguration.cs @@ -1,96 +1,77 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class ProductModelIllustrationConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 396e216..a75525f 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductModelProductDescriptionCultureConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductModelProductDescriptionCultureConfiguration.cs @@ -1,114 +1,90 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class ProductModelProductDescriptionCultureConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 055c01b..2a27c62 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductPhotoConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductPhotoConfiguration.cs @@ -1,116 +1,87 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class ProductPhotoConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index faa083c..8a528c3 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductProductPhotoConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductProductPhotoConfiguration.cs @@ -1,108 +1,85 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class ProductProductPhotoConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 3961b0f..87cf85c 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductReviewConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductReviewConfiguration.cs @@ -1,148 +1,111 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class ProductReviewConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index ee99571..ae31032 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductSubcategoryConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductSubcategoryConfiguration.cs @@ -1,115 +1,89 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class ProductSubcategoryConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index da8fa35..524a9ae 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductVendorConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ProductVendorConfiguration.cs @@ -1,185 +1,136 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class ProductVendorConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 99de232..886bacc 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PurchaseOrderDetailConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PurchaseOrderDetailConfiguration.cs @@ -1,187 +1,136 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class PurchaseOrderDetailConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 96db980..bbddbbd 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PurchaseOrderHeaderConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/PurchaseOrderHeaderConfiguration.cs @@ -1,218 +1,159 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class PurchaseOrderHeaderConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 72ae559..bf8f1dc 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesOrderDetailConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesOrderDetailConfiguration.cs @@ -1,186 +1,137 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class SalesOrderDetailConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index ff8b1b4..3dc32e3 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesOrderHeaderConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesOrderHeaderConfiguration.cs @@ -1,384 +1,275 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class SalesOrderHeaderConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 4b6b3e8..51562b0 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesOrderHeaderSalesReasonConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesOrderHeaderSalesReasonConfiguration.cs @@ -1,97 +1,77 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class SalesOrderHeaderSalesReasonConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index d5cde9f..e60d216 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesPersonConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesPersonConfiguration.cs @@ -1,162 +1,122 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class SalesPersonConfiguration - : IEntityTypeConfiguration +internal partial 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 + /// Configures the entity of type /// - 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 + /// 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 index 3005924..52761a3 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesPersonQuotaHistoryConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesPersonQuotaHistoryConfiguration.cs @@ -1,114 +1,87 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class SalesPersonQuotaHistoryConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 705ddc5..c303204 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesReasonConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesReasonConfiguration.cs @@ -1,97 +1,77 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class SalesReasonConfiguration - : IEntityTypeConfiguration +internal partial 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 + /// Configures the entity of type /// - 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 + /// 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 index b8c9cef..c42ed56 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesTaxRateConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesTaxRateConfiguration.cs @@ -1,136 +1,104 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class SalesTaxRateConfiguration - : IEntityTypeConfiguration +internal partial 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 + /// Configures the entity of type /// - 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 + /// 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 index 5823873..bd9a951 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesTerritoryConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesTerritoryConfiguration.cs @@ -1,175 +1,130 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class SalesTerritoryConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index e05036f..bdb3cbb 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesTerritoryHistoryConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SalesTerritoryHistoryConfiguration.cs @@ -1,129 +1,98 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class SalesTerritoryHistoryConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index bfbcbbd..e7eacb7 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ScrapReasonConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ScrapReasonConfiguration.cs @@ -1,85 +1,69 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class ScrapReasonConfiguration - : IEntityTypeConfiguration +internal partial 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 + /// Configures the entity of type /// - 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 + /// 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 index 5509c7a..9a85a8a 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ShiftConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ShiftConfiguration.cs @@ -1,102 +1,83 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class ShiftConfiguration - : IEntityTypeConfiguration +internal partial 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 + /// Configures the entity of type /// - 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 + /// 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 index 6ef9ecd..8308750 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ShipMethodConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ShipMethodConfiguration.cs @@ -1,120 +1,93 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class ShipMethodConfiguration - : IEntityTypeConfiguration +internal partial 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 + /// Configures the entity of type /// - 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 + /// 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 index f67cd39..a567ec1 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ShoppingCartItemConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/ShoppingCartItemConfiguration.cs @@ -1,126 +1,97 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class ShoppingCartItemConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index bcb6caf..80b02b5 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SpecialOfferConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SpecialOfferConfiguration.cs @@ -1,178 +1,129 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class SpecialOfferConfiguration - : IEntityTypeConfiguration +internal partial 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 + /// Configures the entity of type /// - 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 + /// 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 index 81a5e40..6bea0d4 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SpecialOfferProductConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/SpecialOfferProductConfiguration.cs @@ -1,108 +1,85 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class SpecialOfferProductConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 00825a1..07c6366 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/StateProvinceConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/StateProvinceConfiguration.cs @@ -1,155 +1,118 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class StateProvinceConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index eb40c6a..d0e56b1 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/StoreConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/StoreConfiguration.cs @@ -1,122 +1,98 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class StoreConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 263fe18..9273ced 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/TransactionHistoryArchiveConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/TransactionHistoryArchiveConfiguration.cs @@ -1,156 +1,112 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class TransactionHistoryArchiveConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 4e8c8b5..053fc6a 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/TransactionHistoryConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/TransactionHistoryConfiguration.cs @@ -1,160 +1,118 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class TransactionHistoryConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index f8132d0..fca30b4 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/UnitMeasureConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/UnitMeasureConfiguration.cs @@ -1,86 +1,69 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class UnitMeasureConfiguration - : IEntityTypeConfiguration +internal partial 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 + /// Configures the entity of type /// - 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 + /// 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 index 04eb87a..8621163 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VAdditionalContactInfoConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VAdditionalContactInfoConfiguration.cs @@ -1,239 +1,163 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class VAdditionalContactInfoConfiguration - : IEntityTypeConfiguration +internal partial 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 + /// 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 index dc4c930..d57386b 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VEmployeeConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VEmployeeConfiguration.cs @@ -1,253 +1,178 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class VEmployeeConfiguration - : IEntityTypeConfiguration +internal partial 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 + /// 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 index d425e64..e07c36b 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VEmployeeDepartmentConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VEmployeeDepartmentConfiguration.cs @@ -1,168 +1,120 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class VEmployeeDepartmentConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 07292e6..a1b409e 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VEmployeeDepartmentHistoryConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VEmployeeDepartmentHistoryConfiguration.cs @@ -1,178 +1,126 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class VEmployeeDepartmentHistoryConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index e392ca7..8339bed 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VIndividualCustomerConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VIndividualCustomerConfiguration.cs @@ -1,258 +1,178 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class VIndividualCustomerConfiguration - : IEntityTypeConfiguration +internal partial 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 + /// 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 index ff6ec23..0746f78 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VJobCandidateConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VJobCandidateConfiguration.cs @@ -1,224 +1,154 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class VJobCandidateConfiguration - : IEntityTypeConfiguration +internal partial 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 + /// 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 index a8a3119..09134dc 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VJobCandidateEducationConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VJobCandidateEducationConfiguration.cs @@ -1,194 +1,134 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class VJobCandidateEducationConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 5012b4b..98de36d 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VJobCandidateEmploymentConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VJobCandidateEmploymentConfiguration.cs @@ -1,167 +1,115 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class VJobCandidateEmploymentConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 819cc25..32b15e9 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VPersonDemographicsConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VPersonDemographicsConfiguration.cs @@ -1,189 +1,129 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class VPersonDemographicsConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 14a9146..cee85a0 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VProductAndDescriptionConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VProductAndDescriptionConfiguration.cs @@ -1,112 +1,84 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class VProductAndDescriptionConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 5e1655c..cfe17b6 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VProductModelCatalogDescriptionConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VProductModelCatalogDescriptionConfiguration.cs @@ -1,328 +1,219 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class VProductModelCatalogDescriptionConfiguration - : IEntityTypeConfiguration +internal partial 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 + /// 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 index 0bde17b..80a68c1 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VProductModelInstructionsConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VProductModelInstructionsConfiguration.cs @@ -1,170 +1,118 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class VProductModelInstructionsConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 12bf6b6..0a0cc85 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VSalesPersonConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VSalesPersonConfiguration.cs @@ -1,300 +1,206 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class VSalesPersonConfiguration - : IEntityTypeConfiguration +internal partial 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 + /// 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 index 176a718..468ffa3 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VSalesPersonSalesByFiscalYearsConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VSalesPersonSalesByFiscalYearsConfiguration.cs @@ -1,129 +1,92 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class VSalesPersonSalesByFiscalYearsConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 637400b..bc80f1b 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStateProvinceCountryRegionConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStateProvinceCountryRegionConfiguration.cs @@ -1,135 +1,98 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class VStateProvinceCountryRegionConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 184c10f..4ed8066 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStoreWithAddressesConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStoreWithAddressesConfiguration.cs @@ -1,159 +1,115 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class VStoreWithAddressesConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 993c158..52fea03 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStoreWithContactsConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStoreWithContactsConfiguration.cs @@ -1,188 +1,133 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class VStoreWithContactsConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 1a5d54c..9c21122 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStoreWithDemographicsConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VStoreWithDemographicsConfiguration.cs @@ -1,181 +1,125 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class VStoreWithDemographicsConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 05389c8..6f1df03 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VVendorWithAddressesConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VVendorWithAddressesConfiguration.cs @@ -1,159 +1,115 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class VVendorWithAddressesConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 9ed1109..c8766e6 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VVendorWithContactsConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VVendorWithContactsConfiguration.cs @@ -1,189 +1,133 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type -/// +/// Allows configuration for an entity type /// -internal class VVendorWithContactsConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 6d1bbe3..b908f23 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VendorConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/VendorConfiguration.cs @@ -1,144 +1,111 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class VendorConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index e9e763e..2808b0f 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/WorkOrderConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/WorkOrderConfiguration.cs @@ -1,169 +1,126 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class WorkOrderConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 9d7794b..f1dae21 100644 --- a/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/WorkOrderRoutingConfiguration.cs +++ b/src/Platy.AdventureWorks.Repository/Data/EntityConfiguration/WorkOrderRoutingConfiguration.cs @@ -1,189 +1,136 @@ -using Platy.AdventureWorks.Repository.Data.Entities; +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; namespace Platy.AdventureWorks.Repository.Data.EntityConfiguration; /// -/// Allows configuration for an entity type +/// Allows configuration for an entity type /// -internal class WorkOrderRoutingConfiguration - : IEntityTypeConfiguration +internal partial 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 - /// + /// Configures the entity of type /// - 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 + /// 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 index 165fa38..4c84570 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Address/Mapping/AddressProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Address/Mapping/AddressProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class AddressProfile - : Profile +public partial class AddressProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public AddressProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public AddressProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 1135ecb..7af647d 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressCreateModel.cs @@ -1,76 +1,79 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class AddressCreateModel - : IEntityCreateModel +public partial class AddressCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressReadModel.cs index 59ddf05..cdf133c 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressReadModel.cs @@ -1,76 +1,79 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class AddressReadModel - : IEntityReadModel +public partial class AddressReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressUpdateModel.cs index c6dd7a7..56576d8 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Address/Models/AddressUpdateModel.cs @@ -1,76 +1,79 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class AddressUpdateModel - : IEntityUpdateModel +public partial class AddressUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Address/Validation/AddressCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Address/Validation/AddressCreateModelValidator.cs index 070b986..5419b02 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Address/Validation/AddressCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Address/Validation/AddressCreateModelValidator.cs @@ -1,30 +1,31 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class AddressCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Address/Validation/AddressUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Address/Validation/AddressUpdateModelValidator.cs index c0e4e0c..fa8ac52 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Address/Validation/AddressUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Address/Validation/AddressUpdateModelValidator.cs @@ -1,30 +1,31 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class AddressUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/AddressType/Mapping/AddressTypeProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/AddressType/Mapping/AddressTypeProfile.cs index 897dc14..119664a 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/AddressType/Mapping/AddressTypeProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/AddressType/Mapping/AddressTypeProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class AddressTypeProfile - : Profile +public partial class AddressTypeProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public AddressTypeProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public AddressTypeProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index df20acb..1e9a8d6 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeCreateModel.cs @@ -1,44 +1,47 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class AddressTypeCreateModel - : IEntityCreateModel +public partial class AddressTypeCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeReadModel.cs index 252e5f4..9493e71 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeReadModel.cs @@ -1,44 +1,47 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class AddressTypeReadModel - : IEntityReadModel +public partial class AddressTypeReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeUpdateModel.cs index f1c1d5a..46aa2b5 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/AddressType/Models/AddressTypeUpdateModel.cs @@ -1,44 +1,47 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class AddressTypeUpdateModel - : IEntityUpdateModel +public partial class AddressTypeUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/AddressType/Validation/AddressTypeCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/AddressType/Validation/AddressTypeCreateModelValidator.cs index bf43e8c..14a65f2 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/AddressType/Validation/AddressTypeCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/AddressType/Validation/AddressTypeCreateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class AddressTypeCreateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public AddressTypeCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/AddressType/Validation/AddressTypeUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/AddressType/Validation/AddressTypeUpdateModelValidator.cs index 5495ac2..32472f8 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/AddressType/Validation/AddressTypeUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/AddressType/Validation/AddressTypeUpdateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class AddressTypeUpdateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public AddressTypeUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Mapping/BillOfMaterialsProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Mapping/BillOfMaterialsProfile.cs index 0ca8c6f..e2753bd 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Mapping/BillOfMaterialsProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Mapping/BillOfMaterialsProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class BillOfMaterialsProfile - : Profile +public partial class BillOfMaterialsProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public BillOfMaterialsProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public BillOfMaterialsProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 75bb0dd..d15d02d 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsCreateModel.cs @@ -1,84 +1,87 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class BillOfMaterialsCreateModel - : IEntityCreateModel +public partial class BillOfMaterialsCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsReadModel.cs index eac9da6..8c4e015 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsReadModel.cs @@ -1,84 +1,87 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class BillOfMaterialsReadModel - : IEntityReadModel +public partial class BillOfMaterialsReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsUpdateModel.cs index 71f702f..730b069 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Models/BillOfMaterialsUpdateModel.cs @@ -1,84 +1,87 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class BillOfMaterialsUpdateModel - : IEntityUpdateModel +public partial class BillOfMaterialsUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Validation/BillOfMaterialsCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Validation/BillOfMaterialsCreateModelValidator.cs index ee230e1..6e4a986 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Validation/BillOfMaterialsCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Validation/BillOfMaterialsCreateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class BillOfMaterialsCreateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public BillOfMaterialsCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.UnitMeasureCode).NotEmpty(); + RuleFor(p => p.UnitMeasureCode).MaximumLength(3); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Validation/BillOfMaterialsUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Validation/BillOfMaterialsUpdateModelValidator.cs index 626022c..149e6f4 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Validation/BillOfMaterialsUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/BillOfMaterials/Validation/BillOfMaterialsUpdateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class BillOfMaterialsUpdateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public BillOfMaterialsUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.UnitMeasureCode).NotEmpty(); + RuleFor(p => p.UnitMeasureCode).MaximumLength(3); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Mapping/BusinessEntityProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Mapping/BusinessEntityProfile.cs index 658bbdf..734a8f7 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Mapping/BusinessEntityProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Mapping/BusinessEntityProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class BusinessEntityProfile - : Profile +public partial class BusinessEntityProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public BusinessEntityProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public BusinessEntityProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 2ac2bf4..430f94d 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityCreateModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class BusinessEntityCreateModel - : IEntityCreateModel +public partial class BusinessEntityCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityReadModel.cs index 549037e..809fd44 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityReadModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class BusinessEntityReadModel - : IEntityReadModel +public partial class BusinessEntityReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityUpdateModel.cs index e2eaa09..abeb4c2 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Models/BusinessEntityUpdateModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class BusinessEntityUpdateModel - : IEntityUpdateModel +public partial class BusinessEntityUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Validation/BusinessEntityCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Validation/BusinessEntityCreateModelValidator.cs index 49fb91c..61242cc 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Validation/BusinessEntityCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Validation/BusinessEntityCreateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class BusinessEntityCreateModelValidator - : AbstractValidator +public partial class BusinessEntityCreateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public BusinessEntityCreateModelValidator() - { - } + /// + /// 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 index cd1bf77..74ba674 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Validation/BusinessEntityUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntity/Validation/BusinessEntityUpdateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class BusinessEntityUpdateModelValidator - : AbstractValidator +public partial class BusinessEntityUpdateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public BusinessEntityUpdateModelValidator() - { - } + /// + /// 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 index 0836ae4..b49c903 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Mapping/BusinessEntityAddressProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Mapping/BusinessEntityAddressProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class BusinessEntityAddressProfile - : Profile +public partial class BusinessEntityAddressProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public BusinessEntityAddressProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public BusinessEntityAddressProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index ef72a89..bb75f67 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Models/BusinessEntityAddressCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Models/BusinessEntityAddressCreateModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class BusinessEntityAddressCreateModel - : IEntityCreateModel +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 + #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 index c2cd512..a18271b 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Models/BusinessEntityAddressReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Models/BusinessEntityAddressReadModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class BusinessEntityAddressReadModel - : IEntityReadModel +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 + #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 index d01d286..0838d93 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Models/BusinessEntityAddressUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Models/BusinessEntityAddressUpdateModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class BusinessEntityAddressUpdateModel - : IEntityUpdateModel +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 + #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 index a2169f6..170a152 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Validation/BusinessEntityAddressCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Validation/BusinessEntityAddressCreateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class BusinessEntityAddressCreateModelValidator - : AbstractValidator +public partial class BusinessEntityAddressCreateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public BusinessEntityAddressCreateModelValidator() - { - } + /// + /// 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 index 5cdb798..236ad47 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Validation/BusinessEntityAddressUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityAddress/Validation/BusinessEntityAddressUpdateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class BusinessEntityAddressUpdateModelValidator - : AbstractValidator +public partial class BusinessEntityAddressUpdateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public BusinessEntityAddressUpdateModelValidator() - { - } + /// + /// 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 index f24e0b5..0bfed46 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Mapping/BusinessEntityContactProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Mapping/BusinessEntityContactProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class BusinessEntityContactProfile - : Profile +public partial class BusinessEntityContactProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public BusinessEntityContactProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public BusinessEntityContactProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 2d29d45..61dbd95 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Models/BusinessEntityContactCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Models/BusinessEntityContactCreateModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class BusinessEntityContactCreateModel - : IEntityCreateModel +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 + #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 index b49591c..82a97f2 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Models/BusinessEntityContactReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Models/BusinessEntityContactReadModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class BusinessEntityContactReadModel - : IEntityReadModel +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 + #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 index 2ae2c19..93dbd4b 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Models/BusinessEntityContactUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Models/BusinessEntityContactUpdateModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class BusinessEntityContactUpdateModel - : IEntityUpdateModel +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 + #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 index 3479260..e476d65 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Validation/BusinessEntityContactCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Validation/BusinessEntityContactCreateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class BusinessEntityContactCreateModelValidator - : AbstractValidator +public partial class BusinessEntityContactCreateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public BusinessEntityContactCreateModelValidator() - { - } + /// + /// 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 index dc45397..f1336e6 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Validation/BusinessEntityContactUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/BusinessEntityContact/Validation/BusinessEntityContactUpdateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class BusinessEntityContactUpdateModelValidator - : AbstractValidator +public partial class BusinessEntityContactUpdateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public BusinessEntityContactUpdateModelValidator() - { - } + /// + /// 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 index 20e07d5..c72ab4b 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ContactType/Mapping/ContactTypeProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ContactType/Mapping/ContactTypeProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class ContactTypeProfile - : Profile +public partial class ContactTypeProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public ContactTypeProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public ContactTypeProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 1190d20..9c890eb 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeCreateModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ContactTypeCreateModel - : IEntityCreateModel +public partial class ContactTypeCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeReadModel.cs index 95ff896..4880c29 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeReadModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ContactTypeReadModel - : IEntityReadModel +public partial class ContactTypeReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeUpdateModel.cs index b3d5bad..6dee8c6 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ContactType/Models/ContactTypeUpdateModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ContactTypeUpdateModel - : IEntityUpdateModel +public partial class ContactTypeUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ContactType/Validation/ContactTypeCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ContactType/Validation/ContactTypeCreateModelValidator.cs index 27cecde..75919ea 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ContactType/Validation/ContactTypeCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ContactType/Validation/ContactTypeCreateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ContactTypeCreateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public ContactTypeCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ContactType/Validation/ContactTypeUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ContactType/Validation/ContactTypeUpdateModelValidator.cs index 1c69723..94d5a73 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ContactType/Validation/ContactTypeUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ContactType/Validation/ContactTypeUpdateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ContactTypeUpdateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public ContactTypeUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Mapping/CountryRegionProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Mapping/CountryRegionProfile.cs index b1fb5e2..1f89dda 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Mapping/CountryRegionProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Mapping/CountryRegionProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class CountryRegionProfile - : Profile +public partial class CountryRegionProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public CountryRegionProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public CountryRegionProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index a2d5292..5d791f6 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionCreateModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class CountryRegionCreateModel - : IEntityCreateModel +public partial class CountryRegionCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionReadModel.cs index f40099b..9f8dd3f 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionReadModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class CountryRegionReadModel - : IEntityReadModel +public partial class CountryRegionReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionUpdateModel.cs index 195e021..96490e8 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Models/CountryRegionUpdateModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class CountryRegionUpdateModel - : IEntityUpdateModel +public partial class CountryRegionUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Validation/CountryRegionCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Validation/CountryRegionCreateModelValidator.cs index d3cf729..40cea0f 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Validation/CountryRegionCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Validation/CountryRegionCreateModelValidator.cs @@ -1,27 +1,28 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class CountryRegionCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Validation/CountryRegionUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Validation/CountryRegionUpdateModelValidator.cs index 08217d5..f3d2a8a 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Validation/CountryRegionUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/CountryRegion/Validation/CountryRegionUpdateModelValidator.cs @@ -1,27 +1,28 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class CountryRegionUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Mapping/CountryRegionCurrencyProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Mapping/CountryRegionCurrencyProfile.cs index 6f5006d..9cb6141 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Mapping/CountryRegionCurrencyProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Mapping/CountryRegionCurrencyProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class CountryRegionCurrencyProfile - : Profile +public partial class CountryRegionCurrencyProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public CountryRegionCurrencyProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public CountryRegionCurrencyProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 8e118b1..fbf989e 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyCreateModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class CountryRegionCurrencyCreateModel - : IEntityCreateModel +public partial class CountryRegionCurrencyCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyReadModel.cs index b49f924..64dac34 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyReadModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class CountryRegionCurrencyReadModel - : IEntityReadModel +public partial class CountryRegionCurrencyReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyUpdateModel.cs index 4d469ec..9fcd5be 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Models/CountryRegionCurrencyUpdateModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class CountryRegionCurrencyUpdateModel - : IEntityUpdateModel +public partial class CountryRegionCurrencyUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Validation/CountryRegionCurrencyCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Validation/CountryRegionCurrencyCreateModelValidator.cs index 079366a..6f3abfa 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Validation/CountryRegionCurrencyCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Validation/CountryRegionCurrencyCreateModelValidator.cs @@ -1,27 +1,28 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class CountryRegionCurrencyCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Validation/CountryRegionCurrencyUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Validation/CountryRegionCurrencyUpdateModelValidator.cs index 3362e4a..8e1e06a 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Validation/CountryRegionCurrencyUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/CountryRegionCurrency/Validation/CountryRegionCurrencyUpdateModelValidator.cs @@ -1,27 +1,28 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class CountryRegionCurrencyUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Mapping/CreditCardProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Mapping/CreditCardProfile.cs index 04fcc0c..6a8823c 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Mapping/CreditCardProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Mapping/CreditCardProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class CreditCardProfile - : Profile +public partial class CreditCardProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public CreditCardProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public CreditCardProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 194345f..895c124 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Models/CreditCardCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Models/CreditCardCreateModel.cs @@ -1,60 +1,63 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class CreditCardCreateModel - : IEntityCreateModel +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 + #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 index 0b16f9b..b9f9ccd 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Models/CreditCardReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Models/CreditCardReadModel.cs @@ -1,60 +1,63 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class CreditCardReadModel - : IEntityReadModel +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 + #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 index 05a717f..bc1d04b 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Models/CreditCardUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Models/CreditCardUpdateModel.cs @@ -1,60 +1,63 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class CreditCardUpdateModel - : IEntityUpdateModel +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 + #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 index e569682..acde9fd 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Validation/CreditCardCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Validation/CreditCardCreateModelValidator.cs @@ -1,27 +1,28 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class CreditCardCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Validation/CreditCardUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Validation/CreditCardUpdateModelValidator.cs index bceb898..9e432b6 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Validation/CreditCardUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/CreditCard/Validation/CreditCardUpdateModelValidator.cs @@ -1,27 +1,28 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class CreditCardUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Culture/Mapping/CultureProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Culture/Mapping/CultureProfile.cs index 77fc52f..bd0e938 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Culture/Mapping/CultureProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Culture/Mapping/CultureProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class CultureProfile - : Profile +public partial class CultureProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public CultureProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public CultureProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index aabba37..40b9210 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureCreateModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class CultureCreateModel - : IEntityCreateModel +public partial class CultureCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureReadModel.cs index ec8686c..9c0a4a1 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureReadModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class CultureReadModel - : IEntityReadModel +public partial class CultureReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureUpdateModel.cs index aab47c6..5225771 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Culture/Models/CultureUpdateModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class CultureUpdateModel - : IEntityUpdateModel +public partial class CultureUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Culture/Validation/CultureCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Culture/Validation/CultureCreateModelValidator.cs index 55712d2..ac57b42 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Culture/Validation/CultureCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Culture/Validation/CultureCreateModelValidator.cs @@ -1,27 +1,28 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class CultureCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Culture/Validation/CultureUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Culture/Validation/CultureUpdateModelValidator.cs index 4bfc49f..d2e61e3 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Culture/Validation/CultureUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Culture/Validation/CultureUpdateModelValidator.cs @@ -1,27 +1,28 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class CultureUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Currency/Mapping/CurrencyProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Currency/Mapping/CurrencyProfile.cs index 70098bd..2af775c 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Currency/Mapping/CurrencyProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Currency/Mapping/CurrencyProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class CurrencyProfile - : Profile +public partial class CurrencyProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public CurrencyProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public CurrencyProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index adebaf6..9ddcb0d 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyCreateModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class CurrencyCreateModel - : IEntityCreateModel +public partial class CurrencyCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyReadModel.cs index a84d0b5..d90c1b4 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyReadModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class CurrencyReadModel - : IEntityReadModel +public partial class CurrencyReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyUpdateModel.cs index 9e7d72b..988f6bf 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Currency/Models/CurrencyUpdateModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class CurrencyUpdateModel - : IEntityUpdateModel +public partial class CurrencyUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Currency/Validation/CurrencyCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Currency/Validation/CurrencyCreateModelValidator.cs index 9201e48..f538dec 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Currency/Validation/CurrencyCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Currency/Validation/CurrencyCreateModelValidator.cs @@ -1,27 +1,28 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class CurrencyCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Currency/Validation/CurrencyUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Currency/Validation/CurrencyUpdateModelValidator.cs index a32e319..5d3ca9d 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Currency/Validation/CurrencyUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Currency/Validation/CurrencyUpdateModelValidator.cs @@ -1,27 +1,28 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class CurrencyUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Mapping/CurrencyRateProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Mapping/CurrencyRateProfile.cs index 07a25fe..43d5c17 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Mapping/CurrencyRateProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Mapping/CurrencyRateProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class CurrencyRateProfile - : Profile +public partial class CurrencyRateProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public CurrencyRateProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public CurrencyRateProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 81c3fd9..5442f74 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateCreateModel.cs @@ -1,68 +1,71 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class CurrencyRateCreateModel - : IEntityCreateModel +public partial class CurrencyRateCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateReadModel.cs index f7ca639..81784a0 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateReadModel.cs @@ -1,68 +1,71 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class CurrencyRateReadModel - : IEntityReadModel +public partial class CurrencyRateReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateUpdateModel.cs index f57bd20..10cfb6a 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Models/CurrencyRateUpdateModel.cs @@ -1,68 +1,71 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class CurrencyRateUpdateModel - : IEntityUpdateModel +public partial class CurrencyRateUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Validation/CurrencyRateCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Validation/CurrencyRateCreateModelValidator.cs index 229282a..1af1bf4 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Validation/CurrencyRateCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Validation/CurrencyRateCreateModelValidator.cs @@ -1,27 +1,28 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class CurrencyRateCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Validation/CurrencyRateUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Validation/CurrencyRateUpdateModelValidator.cs index b34b64f..3583f06 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Validation/CurrencyRateUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/CurrencyRate/Validation/CurrencyRateUpdateModelValidator.cs @@ -1,27 +1,28 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class CurrencyRateUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Customer/Mapping/CustomerProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Customer/Mapping/CustomerProfile.cs index ea5aea0..0ce97d0 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Customer/Mapping/CustomerProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Customer/Mapping/CustomerProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class CustomerProfile - : Profile +public partial class CustomerProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public CustomerProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public CustomerProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index b1a80a3..e7ef1df 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerCreateModel.cs @@ -1,68 +1,71 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class CustomerCreateModel - : IEntityCreateModel +public partial class CustomerCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerReadModel.cs index 94e3534..0e6de64 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerReadModel.cs @@ -1,68 +1,71 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class CustomerReadModel - : IEntityReadModel +public partial class CustomerReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerUpdateModel.cs index 1920066..67a906e 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Customer/Models/CustomerUpdateModel.cs @@ -1,68 +1,71 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class CustomerUpdateModel - : IEntityUpdateModel +public partial class CustomerUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Customer/Validation/CustomerCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Customer/Validation/CustomerCreateModelValidator.cs index e620b89..fdceca5 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Customer/Validation/CustomerCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Customer/Validation/CustomerCreateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class CustomerCreateModelValidator - : AbstractValidator +public partial class CustomerCreateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public CustomerCreateModelValidator() - { - } + /// + /// 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 index d36b59b..e014d51 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Customer/Validation/CustomerUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Customer/Validation/CustomerUpdateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class CustomerUpdateModelValidator - : AbstractValidator +public partial class CustomerUpdateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public CustomerUpdateModelValidator() - { - } + /// + /// 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 index 36fe6c1..1ce62e4 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Department/Mapping/DepartmentProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Department/Mapping/DepartmentProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class DepartmentProfile - : Profile +public partial class DepartmentProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public DepartmentProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public DepartmentProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index fbf85a2..94ee31b 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentCreateModel.cs @@ -1,44 +1,47 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class DepartmentCreateModel - : IEntityCreateModel +public partial class DepartmentCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentReadModel.cs index 1c230b8..0824f8e 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentReadModel.cs @@ -1,44 +1,47 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class DepartmentReadModel - : IEntityReadModel +public partial class DepartmentReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentUpdateModel.cs index 23befed..d92e173 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Department/Models/DepartmentUpdateModel.cs @@ -1,44 +1,47 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class DepartmentUpdateModel - : IEntityUpdateModel +public partial class DepartmentUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Department/Validation/DepartmentCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Department/Validation/DepartmentCreateModelValidator.cs index 74d44cd..6abe6e9 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Department/Validation/DepartmentCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Department/Validation/DepartmentCreateModelValidator.cs @@ -1,27 +1,28 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class DepartmentCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Department/Validation/DepartmentUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Department/Validation/DepartmentUpdateModelValidator.cs index ee93058..c960411 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Department/Validation/DepartmentUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Department/Validation/DepartmentUpdateModelValidator.cs @@ -1,27 +1,28 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class DepartmentUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Mapping/EmailAddressProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Mapping/EmailAddressProfile.cs index 4005630..d4ce05e 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Mapping/EmailAddressProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Mapping/EmailAddressProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class EmailAddressProfile - : Profile +public partial class EmailAddressProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public EmailAddressProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public EmailAddressProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 7c5c1e9..fbb81b0 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Models/EmailAddressCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Models/EmailAddressCreateModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class EmailAddressCreateModel - : IEntityCreateModel +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 + #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 index 27aeea4..6f77017 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Models/EmailAddressReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Models/EmailAddressReadModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class EmailAddressReadModel - : IEntityReadModel +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 + #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 index f560317..61daf4b 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Models/EmailAddressUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Models/EmailAddressUpdateModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class EmailAddressUpdateModel - : IEntityUpdateModel +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 + #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 index e18f3b9..0949bc2 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Validation/EmailAddressCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Validation/EmailAddressCreateModelValidator.cs @@ -1,24 +1,25 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class EmailAddressCreateModelValidator - : AbstractValidator +public partial class EmailAddressCreateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public EmailAddressCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.EmailAddressMember).MaximumLength(50); + /// + /// Initializes a new instance of the class. + /// + public EmailAddressCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.EmailAddressMember).MaximumLength(50); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Validation/EmailAddressUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Validation/EmailAddressUpdateModelValidator.cs index 9c7e41b..f43bd83 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Validation/EmailAddressUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/EmailAddress/Validation/EmailAddressUpdateModelValidator.cs @@ -1,24 +1,25 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class EmailAddressUpdateModelValidator - : AbstractValidator +public partial class EmailAddressUpdateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public EmailAddressUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.EmailAddressMember).MaximumLength(50); + /// + /// Initializes a new instance of the class. + /// + public EmailAddressUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.EmailAddressMember).MaximumLength(50); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Employee/Mapping/EmployeeProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Employee/Mapping/EmployeeProfile.cs index d5e0dea..6065775 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Employee/Mapping/EmployeeProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Employee/Mapping/EmployeeProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class EmployeeProfile - : Profile +public partial class EmployeeProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public EmployeeProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public EmployeeProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index cfe85c3..560bef9 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Employee/Models/EmployeeCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Employee/Models/EmployeeCreateModel.cs @@ -1,132 +1,135 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class EmployeeCreateModel - : IEntityCreateModel +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 + #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 index c1d82a2..788bd59 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Employee/Models/EmployeeReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Employee/Models/EmployeeReadModel.cs @@ -1,132 +1,135 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class EmployeeReadModel - : IEntityReadModel +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 + #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 index d0621fd..f45d6b2 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Employee/Models/EmployeeUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Employee/Models/EmployeeUpdateModel.cs @@ -1,132 +1,135 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class EmployeeUpdateModel - : IEntityUpdateModel +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 + #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 index 8ce7d37..f8160ec 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Employee/Validation/EmployeeCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Employee/Validation/EmployeeCreateModelValidator.cs @@ -1,33 +1,34 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class EmployeeCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Employee/Validation/EmployeeUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Employee/Validation/EmployeeUpdateModelValidator.cs index f31baf1..e879ae4 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Employee/Validation/EmployeeUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Employee/Validation/EmployeeUpdateModelValidator.cs @@ -1,33 +1,34 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class EmployeeUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Mapping/EmployeeDepartmentHistoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Mapping/EmployeeDepartmentHistoryProfile.cs index 8234717..a47501a 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Mapping/EmployeeDepartmentHistoryProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Mapping/EmployeeDepartmentHistoryProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class EmployeeDepartmentHistoryProfile - : Profile +public partial class EmployeeDepartmentHistoryProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public EmployeeDepartmentHistoryProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public EmployeeDepartmentHistoryProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 413a419..8962d9b 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Models/EmployeeDepartmentHistoryCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Models/EmployeeDepartmentHistoryCreateModel.cs @@ -1,60 +1,63 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class EmployeeDepartmentHistoryCreateModel - : IEntityCreateModel +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 + #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 index fc28555..9e8edb6 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Models/EmployeeDepartmentHistoryReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Models/EmployeeDepartmentHistoryReadModel.cs @@ -1,60 +1,63 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class EmployeeDepartmentHistoryReadModel - : IEntityReadModel +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 + #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 index 04cbef2..80c9b85 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Models/EmployeeDepartmentHistoryUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Models/EmployeeDepartmentHistoryUpdateModel.cs @@ -1,60 +1,63 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class EmployeeDepartmentHistoryUpdateModel - : IEntityUpdateModel +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 + #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 index 27f9854..fef4d6c 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Validation/EmployeeDepartmentHistoryCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Validation/EmployeeDepartmentHistoryCreateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class EmployeeDepartmentHistoryCreateModelValidator - : AbstractValidator +public partial class EmployeeDepartmentHistoryCreateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public EmployeeDepartmentHistoryCreateModelValidator() - { - } + /// + /// 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 index 489106a..4eabd31 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Validation/EmployeeDepartmentHistoryUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/EmployeeDepartmentHistory/Validation/EmployeeDepartmentHistoryUpdateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class EmployeeDepartmentHistoryUpdateModelValidator - : AbstractValidator +public partial class EmployeeDepartmentHistoryUpdateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public EmployeeDepartmentHistoryUpdateModelValidator() - { - } + /// + /// 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 index 39425cb..c0983af 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Mapping/EmployeePayHistoryProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Mapping/EmployeePayHistoryProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class EmployeePayHistoryProfile - : Profile +public partial class EmployeePayHistoryProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public EmployeePayHistoryProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public EmployeePayHistoryProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index fa6a360..1c67c1e 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Models/EmployeePayHistoryCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Models/EmployeePayHistoryCreateModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class EmployeePayHistoryCreateModel - : IEntityCreateModel +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 + #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 index 4bfd367..4852d96 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Models/EmployeePayHistoryReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Models/EmployeePayHistoryReadModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class EmployeePayHistoryReadModel - : IEntityReadModel +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 + #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 index 7d4a931..02c2cf4 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Models/EmployeePayHistoryUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Models/EmployeePayHistoryUpdateModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class EmployeePayHistoryUpdateModel - : IEntityUpdateModel +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 + #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 index 25f6433..ac8079d 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Validation/EmployeePayHistoryCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Validation/EmployeePayHistoryCreateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class EmployeePayHistoryCreateModelValidator - : AbstractValidator +public partial class EmployeePayHistoryCreateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public EmployeePayHistoryCreateModelValidator() - { - } + /// + /// 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 index c9f1255..7a9b8cf 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Validation/EmployeePayHistoryUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/EmployeePayHistory/Validation/EmployeePayHistoryUpdateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class EmployeePayHistoryUpdateModelValidator - : AbstractValidator +public partial class EmployeePayHistoryUpdateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public EmployeePayHistoryUpdateModelValidator() - { - } + /// + /// 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 index 458a1a1..e9e53dc 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Illustration/Mapping/IllustrationProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Illustration/Mapping/IllustrationProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class IllustrationProfile - : Profile +public partial class IllustrationProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public IllustrationProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public IllustrationProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 2ee63f3..71bb040 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationCreateModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class IllustrationCreateModel - : IEntityCreateModel +public partial class IllustrationCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationReadModel.cs index 8d9bc5f..58cc3e8 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationReadModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class IllustrationReadModel - : IEntityReadModel +public partial class IllustrationReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationUpdateModel.cs index 8923264..fbea31b 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Illustration/Models/IllustrationUpdateModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class IllustrationUpdateModel - : IEntityUpdateModel +public partial class IllustrationUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Illustration/Validation/IllustrationCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Illustration/Validation/IllustrationCreateModelValidator.cs index f2de8a9..3a93d21 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Illustration/Validation/IllustrationCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Illustration/Validation/IllustrationCreateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class IllustrationCreateModelValidator - : AbstractValidator +public partial class IllustrationCreateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public IllustrationCreateModelValidator() - { - } + /// + /// 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 index f5d189c..be96d64 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Illustration/Validation/IllustrationUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Illustration/Validation/IllustrationUpdateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class IllustrationUpdateModelValidator - : AbstractValidator +public partial class IllustrationUpdateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public IllustrationUpdateModelValidator() - { - } + /// + /// 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 index c1422b2..793d709 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Mapping/JobCandidateProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Mapping/JobCandidateProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class JobCandidateProfile - : Profile +public partial class JobCandidateProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public JobCandidateProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public JobCandidateProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 85c2116..dcfef29 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateCreateModel.cs @@ -1,44 +1,47 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class JobCandidateCreateModel - : IEntityCreateModel +public partial class JobCandidateCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateReadModel.cs index b726f1b..e8f1798 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateReadModel.cs @@ -1,44 +1,47 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class JobCandidateReadModel - : IEntityReadModel +public partial class JobCandidateReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateUpdateModel.cs index 8d6b2d7..8a556dd 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Models/JobCandidateUpdateModel.cs @@ -1,44 +1,47 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class JobCandidateUpdateModel - : IEntityUpdateModel +public partial class JobCandidateUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Validation/JobCandidateCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Validation/JobCandidateCreateModelValidator.cs index e65c511..18b5442 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Validation/JobCandidateCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Validation/JobCandidateCreateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class JobCandidateCreateModelValidator - : AbstractValidator +public partial class JobCandidateCreateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public JobCandidateCreateModelValidator() - { - } + /// + /// 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 index 7f7038f..35d3837 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Validation/JobCandidateUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/JobCandidate/Validation/JobCandidateUpdateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class JobCandidateUpdateModelValidator - : AbstractValidator +public partial class JobCandidateUpdateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public JobCandidateUpdateModelValidator() - { - } + /// + /// 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 index 709e9bc..9202fbb 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Location/Mapping/LocationProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Location/Mapping/LocationProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class LocationProfile - : Profile +public partial class LocationProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public LocationProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public LocationProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 0a855a5..3a63b8b 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Location/Models/LocationCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Location/Models/LocationCreateModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class LocationCreateModel - : IEntityCreateModel +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 + #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 index 97c6465..f28c342 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Location/Models/LocationReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Location/Models/LocationReadModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class LocationReadModel - : IEntityReadModel +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 + #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 index 9f8dffb..77b3194 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Location/Models/LocationUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Location/Models/LocationUpdateModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class LocationUpdateModel - : IEntityUpdateModel +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 + #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 index de68920..249bc1e 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Location/Validation/LocationCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Location/Validation/LocationCreateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class LocationCreateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public LocationCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Location/Validation/LocationUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Location/Validation/LocationUpdateModelValidator.cs index 88af7ab..055f6df 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Location/Validation/LocationUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Location/Validation/LocationUpdateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class LocationUpdateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public LocationUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Password/Mapping/PasswordProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Password/Mapping/PasswordProfile.cs index a8a5381..3d4e163 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Password/Mapping/PasswordProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Password/Mapping/PasswordProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class PasswordProfile - : Profile +public partial class PasswordProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public PasswordProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public PasswordProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index da7c187..a681acf 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Password/Models/PasswordCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Password/Models/PasswordCreateModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class PasswordCreateModel - : IEntityCreateModel +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 + #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 index e095f38..43eb4fd 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Password/Models/PasswordReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Password/Models/PasswordReadModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class PasswordReadModel - : IEntityReadModel +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 + #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 index a9973fd..fdd48a4 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Password/Models/PasswordUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Password/Models/PasswordUpdateModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class PasswordUpdateModel - : IEntityUpdateModel +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 + #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 index 68f1ba3..3e2a350 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Password/Validation/PasswordCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Password/Validation/PasswordCreateModelValidator.cs @@ -1,27 +1,28 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class PasswordCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Password/Validation/PasswordUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Password/Validation/PasswordUpdateModelValidator.cs index 572cbf2..f187c80 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Password/Validation/PasswordUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Password/Validation/PasswordUpdateModelValidator.cs @@ -1,27 +1,28 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class PasswordUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Person/Mapping/PersonProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Person/Mapping/PersonProfile.cs index 1ffc8a8..902754c 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Person/Mapping/PersonProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Person/Mapping/PersonProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class PersonProfile - : Profile +public partial class PersonProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public PersonProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public PersonProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 62edaf4..26fd176 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Person/Models/PersonCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Person/Models/PersonCreateModel.cs @@ -1,116 +1,119 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class PersonCreateModel - : IEntityCreateModel +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 + #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 index 1d83b13..2d67a9a 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Person/Models/PersonReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Person/Models/PersonReadModel.cs @@ -1,116 +1,119 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class PersonReadModel - : IEntityReadModel +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 + #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 index 8444ec8..c87eccd 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Person/Models/PersonUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Person/Models/PersonUpdateModel.cs @@ -1,116 +1,119 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class PersonUpdateModel - : IEntityUpdateModel +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 + #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 index d593f7e..e4dadc9 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Person/Validation/PersonCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Person/Validation/PersonCreateModelValidator.cs @@ -1,32 +1,33 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class PersonCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Person/Validation/PersonUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Person/Validation/PersonUpdateModelValidator.cs index bfa8de4..4e25e99 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Person/Validation/PersonUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Person/Validation/PersonUpdateModelValidator.cs @@ -1,32 +1,33 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class PersonUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Mapping/PersonCreditCardProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Mapping/PersonCreditCardProfile.cs index eff7679..280153a 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Mapping/PersonCreditCardProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Mapping/PersonCreditCardProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class PersonCreditCardProfile - : Profile +public partial class PersonCreditCardProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public PersonCreditCardProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public PersonCreditCardProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 68d5d5d..d8a7b24 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardCreateModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class PersonCreditCardCreateModel - : IEntityCreateModel +public partial class PersonCreditCardCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardReadModel.cs index 17e4c64..87c8a50 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardReadModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class PersonCreditCardReadModel - : IEntityReadModel +public partial class PersonCreditCardReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardUpdateModel.cs index 3589be5..8180b7c 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Models/PersonCreditCardUpdateModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class PersonCreditCardUpdateModel - : IEntityUpdateModel +public partial class PersonCreditCardUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Validation/PersonCreditCardCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Validation/PersonCreditCardCreateModelValidator.cs index f2fec0c..c3355b0 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Validation/PersonCreditCardCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Validation/PersonCreditCardCreateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class PersonCreditCardCreateModelValidator - : AbstractValidator +public partial class PersonCreditCardCreateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public PersonCreditCardCreateModelValidator() - { - } + /// + /// 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 index 0b71aad..c653b16 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Validation/PersonCreditCardUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/PersonCreditCard/Validation/PersonCreditCardUpdateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class PersonCreditCardUpdateModelValidator - : AbstractValidator +public partial class PersonCreditCardUpdateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public PersonCreditCardUpdateModelValidator() - { - } + /// + /// 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 index 6e9c38b..50667f9 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Mapping/PersonPhoneProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Mapping/PersonPhoneProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class PersonPhoneProfile - : Profile +public partial class PersonPhoneProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public PersonPhoneProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public PersonPhoneProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 863c70e..305b4bf 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneCreateModel.cs @@ -1,44 +1,47 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class PersonPhoneCreateModel - : IEntityCreateModel +public partial class PersonPhoneCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneReadModel.cs index 31673eb..3dcb7b6 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneReadModel.cs @@ -1,44 +1,47 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class PersonPhoneReadModel - : IEntityReadModel +public partial class PersonPhoneReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneUpdateModel.cs index 81e30c7..f9cd749 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Models/PersonPhoneUpdateModel.cs @@ -1,44 +1,47 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class PersonPhoneUpdateModel - : IEntityUpdateModel +public partial class PersonPhoneUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Validation/PersonPhoneCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Validation/PersonPhoneCreateModelValidator.cs index a3f779c..ba6b926 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Validation/PersonPhoneCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Validation/PersonPhoneCreateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class PersonPhoneCreateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public PersonPhoneCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.PhoneNumber).NotEmpty(); + RuleFor(p => p.PhoneNumber).MaximumLength(25); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Validation/PersonPhoneUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Validation/PersonPhoneUpdateModelValidator.cs index 990599a..34ce49a 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Validation/PersonPhoneUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/PersonPhone/Validation/PersonPhoneUpdateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class PersonPhoneUpdateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public PersonPhoneUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.PhoneNumber).NotEmpty(); + RuleFor(p => p.PhoneNumber).MaximumLength(25); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Mapping/PhoneNumberTypeProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Mapping/PhoneNumberTypeProfile.cs index 1dc300f..73ff2f4 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Mapping/PhoneNumberTypeProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Mapping/PhoneNumberTypeProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class PhoneNumberTypeProfile - : Profile +public partial class PhoneNumberTypeProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public PhoneNumberTypeProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public PhoneNumberTypeProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 8fb4b08..ca590dc 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeCreateModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class PhoneNumberTypeCreateModel - : IEntityCreateModel +public partial class PhoneNumberTypeCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeReadModel.cs index 5c736ee..db9ef7a 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeReadModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class PhoneNumberTypeReadModel - : IEntityReadModel +public partial class PhoneNumberTypeReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeUpdateModel.cs index e1adced..3e7835a 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Models/PhoneNumberTypeUpdateModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class PhoneNumberTypeUpdateModel - : IEntityUpdateModel +public partial class PhoneNumberTypeUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Validation/PhoneNumberTypeCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Validation/PhoneNumberTypeCreateModelValidator.cs index 5816cd0..5680ad6 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Validation/PhoneNumberTypeCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Validation/PhoneNumberTypeCreateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class PhoneNumberTypeCreateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public PhoneNumberTypeCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Validation/PhoneNumberTypeUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Validation/PhoneNumberTypeUpdateModelValidator.cs index 7684a16..8df349d 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Validation/PhoneNumberTypeUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/PhoneNumberType/Validation/PhoneNumberTypeUpdateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class PhoneNumberTypeUpdateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public PhoneNumberTypeUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Product/Mapping/ProductProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Product/Mapping/ProductProfile.cs index 8c13472..f3726f9 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Product/Mapping/ProductProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Product/Mapping/ProductProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class ProductProfile - : Profile +public partial class ProductProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public ProductProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public ProductProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index f8ffbf8..0f1bc35 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Product/Models/ProductCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Product/Models/ProductCreateModel.cs @@ -1,212 +1,215 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductCreateModel - : IEntityCreateModel +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 + #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 index c32191a..41a33e0 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Product/Models/ProductReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Product/Models/ProductReadModel.cs @@ -1,212 +1,215 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductReadModel - : IEntityReadModel +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 + #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 index 996af39..e50d215 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Product/Models/ProductUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Product/Models/ProductUpdateModel.cs @@ -1,212 +1,215 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductUpdateModel - : IEntityUpdateModel +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 + #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 index c6cc844..e22f9c2 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Product/Validation/ProductCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Product/Validation/ProductCreateModelValidator.cs @@ -1,34 +1,35 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ProductCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Product/Validation/ProductUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Product/Validation/ProductUpdateModelValidator.cs index 66478fb..7265fc3 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Product/Validation/ProductUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Product/Validation/ProductUpdateModelValidator.cs @@ -1,34 +1,35 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ProductUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Mapping/ProductCategoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Mapping/ProductCategoryProfile.cs index 1453433..3ed45a1 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Mapping/ProductCategoryProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Mapping/ProductCategoryProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class ProductCategoryProfile - : Profile +public partial class ProductCategoryProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public ProductCategoryProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public ProductCategoryProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 59a294d..c1f16d5 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryCreateModel.cs @@ -1,44 +1,47 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductCategoryCreateModel - : IEntityCreateModel +public partial class ProductCategoryCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryReadModel.cs index edfdbab..1c37023 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryReadModel.cs @@ -1,44 +1,47 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductCategoryReadModel - : IEntityReadModel +public partial class ProductCategoryReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryUpdateModel.cs index 77043ec..fd029c9 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Models/ProductCategoryUpdateModel.cs @@ -1,44 +1,47 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductCategoryUpdateModel - : IEntityUpdateModel +public partial class ProductCategoryUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Validation/ProductCategoryCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Validation/ProductCategoryCreateModelValidator.cs index ca9bc3f..3300e6b 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Validation/ProductCategoryCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Validation/ProductCategoryCreateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ProductCategoryCreateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public ProductCategoryCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Validation/ProductCategoryUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Validation/ProductCategoryUpdateModelValidator.cs index e080b27..52e5c85 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Validation/ProductCategoryUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductCategory/Validation/ProductCategoryUpdateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ProductCategoryUpdateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public ProductCategoryUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Mapping/ProductCostHistoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Mapping/ProductCostHistoryProfile.cs index a83cbf2..f2600ac 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Mapping/ProductCostHistoryProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Mapping/ProductCostHistoryProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class ProductCostHistoryProfile - : Profile +public partial class ProductCostHistoryProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public ProductCostHistoryProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public ProductCostHistoryProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index c709944..25da2bb 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Models/ProductCostHistoryCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Models/ProductCostHistoryCreateModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductCostHistoryCreateModel - : IEntityCreateModel +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 + #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 index 14f8902..75357a2 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Models/ProductCostHistoryReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Models/ProductCostHistoryReadModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductCostHistoryReadModel - : IEntityReadModel +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 + #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 index 56b1239..ef002ec 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Models/ProductCostHistoryUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Models/ProductCostHistoryUpdateModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductCostHistoryUpdateModel - : IEntityUpdateModel +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 + #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 index 1c0cf46..9751339 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Validation/ProductCostHistoryCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Validation/ProductCostHistoryCreateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ProductCostHistoryCreateModelValidator - : AbstractValidator +public partial class ProductCostHistoryCreateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public ProductCostHistoryCreateModelValidator() - { - } + /// + /// 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 index 368c4a3..7754a84 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Validation/ProductCostHistoryUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductCostHistory/Validation/ProductCostHistoryUpdateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ProductCostHistoryUpdateModelValidator - : AbstractValidator +public partial class ProductCostHistoryUpdateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public ProductCostHistoryUpdateModelValidator() - { - } + /// + /// 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 index 918bfd3..43d0770 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Mapping/ProductDescriptionProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Mapping/ProductDescriptionProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class ProductDescriptionProfile - : Profile +public partial class ProductDescriptionProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public ProductDescriptionProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public ProductDescriptionProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 1f602e8..07d1aa4 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionCreateModel.cs @@ -1,44 +1,47 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductDescriptionCreateModel - : IEntityCreateModel +public partial class ProductDescriptionCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionReadModel.cs index 64753ab..796cab6 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionReadModel.cs @@ -1,44 +1,47 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductDescriptionReadModel - : IEntityReadModel +public partial class ProductDescriptionReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionUpdateModel.cs index 8f86ee8..2b6d6af 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Models/ProductDescriptionUpdateModel.cs @@ -1,44 +1,47 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductDescriptionUpdateModel - : IEntityUpdateModel +public partial class ProductDescriptionUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Validation/ProductDescriptionCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Validation/ProductDescriptionCreateModelValidator.cs index 3d5efb9..0faea9c 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Validation/ProductDescriptionCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Validation/ProductDescriptionCreateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ProductDescriptionCreateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public ProductDescriptionCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Description).NotEmpty(); + RuleFor(p => p.Description).MaximumLength(400); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Validation/ProductDescriptionUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Validation/ProductDescriptionUpdateModelValidator.cs index 2056b8d..a4b7379 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Validation/ProductDescriptionUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductDescription/Validation/ProductDescriptionUpdateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ProductDescriptionUpdateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public ProductDescriptionUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Description).NotEmpty(); + RuleFor(p => p.Description).MaximumLength(400); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Mapping/ProductDocumentProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Mapping/ProductDocumentProfile.cs index 516c143..a8543c9 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Mapping/ProductDocumentProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Mapping/ProductDocumentProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class ProductDocumentProfile - : Profile +public partial class ProductDocumentProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public ProductDocumentProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public ProductDocumentProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 8d09f2b..f91fcc2 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentCreateModel.cs @@ -1,28 +1,31 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductDocumentCreateModel - : IEntityCreateModel +public partial class ProductDocumentCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentReadModel.cs index 1e3e1a4..028c545 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentReadModel.cs @@ -1,28 +1,31 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductDocumentReadModel - : IEntityReadModel +public partial class ProductDocumentReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentUpdateModel.cs index 7f34b4a..b33e6ef 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Models/ProductDocumentUpdateModel.cs @@ -1,28 +1,31 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductDocumentUpdateModel - : IEntityUpdateModel +public partial class ProductDocumentUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Validation/ProductDocumentCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Validation/ProductDocumentCreateModelValidator.cs index 0aa999b..ad8dfed 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Validation/ProductDocumentCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Validation/ProductDocumentCreateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ProductDocumentCreateModelValidator - : AbstractValidator +public partial class ProductDocumentCreateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public ProductDocumentCreateModelValidator() - { - } + /// + /// 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 index c8b682e..3abef6c 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Validation/ProductDocumentUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductDocument/Validation/ProductDocumentUpdateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ProductDocumentUpdateModelValidator - : AbstractValidator +public partial class ProductDocumentUpdateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public ProductDocumentUpdateModelValidator() - { - } + /// + /// 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 index b86b09b..f3c5a73 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Mapping/ProductInventoryProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Mapping/ProductInventoryProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class ProductInventoryProfile - : Profile +public partial class ProductInventoryProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public ProductInventoryProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public ProductInventoryProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index bd742f6..40f6fd1 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryCreateModel.cs @@ -1,68 +1,71 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductInventoryCreateModel - : IEntityCreateModel +public partial class ProductInventoryCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryReadModel.cs index 2a18b34..caeb809 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryReadModel.cs @@ -1,68 +1,71 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductInventoryReadModel - : IEntityReadModel +public partial class ProductInventoryReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryUpdateModel.cs index c86e5dc..8d47c4d 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Models/ProductInventoryUpdateModel.cs @@ -1,68 +1,71 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductInventoryUpdateModel - : IEntityUpdateModel +public partial class ProductInventoryUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Validation/ProductInventoryCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Validation/ProductInventoryCreateModelValidator.cs index bf51b27..91c1089 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Validation/ProductInventoryCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Validation/ProductInventoryCreateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ProductInventoryCreateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public ProductInventoryCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Shelf).NotEmpty(); + RuleFor(p => p.Shelf).MaximumLength(10); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Validation/ProductInventoryUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Validation/ProductInventoryUpdateModelValidator.cs index 1bc026b..791eddf 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Validation/ProductInventoryUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductInventory/Validation/ProductInventoryUpdateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ProductInventoryUpdateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public ProductInventoryUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Shelf).NotEmpty(); + RuleFor(p => p.Shelf).MaximumLength(10); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Mapping/ProductListPriceHistoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Mapping/ProductListPriceHistoryProfile.cs index 041daf4..85bc850 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Mapping/ProductListPriceHistoryProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Mapping/ProductListPriceHistoryProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class ProductListPriceHistoryProfile - : Profile +public partial class ProductListPriceHistoryProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public ProductListPriceHistoryProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public ProductListPriceHistoryProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 7c07143..2e71e7d 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Models/ProductListPriceHistoryCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Models/ProductListPriceHistoryCreateModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductListPriceHistoryCreateModel - : IEntityCreateModel +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 + #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 index a3888c7..5501dcd 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Models/ProductListPriceHistoryReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Models/ProductListPriceHistoryReadModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductListPriceHistoryReadModel - : IEntityReadModel +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 + #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 index f4b49ba..c886454 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Models/ProductListPriceHistoryUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Models/ProductListPriceHistoryUpdateModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductListPriceHistoryUpdateModel - : IEntityUpdateModel +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 + #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 index 7c266e9..50ae82a 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Validation/ProductListPriceHistoryCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Validation/ProductListPriceHistoryCreateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ProductListPriceHistoryCreateModelValidator - : AbstractValidator +public partial class ProductListPriceHistoryCreateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public ProductListPriceHistoryCreateModelValidator() - { - } + /// + /// 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 index 8625f0e..559ba20 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Validation/ProductListPriceHistoryUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductListPriceHistory/Validation/ProductListPriceHistoryUpdateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ProductListPriceHistoryUpdateModelValidator - : AbstractValidator +public partial class ProductListPriceHistoryUpdateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public ProductListPriceHistoryUpdateModelValidator() - { - } + /// + /// 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 index 3a911cf..322c296 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Mapping/ProductModelProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Mapping/ProductModelProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class ProductModelProfile - : Profile +public partial class ProductModelProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public ProductModelProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public ProductModelProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 0df45ce..6d87f80 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Models/ProductModelCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Models/ProductModelCreateModel.cs @@ -1,60 +1,63 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductModelCreateModel - : IEntityCreateModel +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 + #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 index 3d00573..f603162 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Models/ProductModelReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Models/ProductModelReadModel.cs @@ -1,60 +1,63 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductModelReadModel - : IEntityReadModel +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 + #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 index 1f75b4a..50fad37 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Models/ProductModelUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Models/ProductModelUpdateModel.cs @@ -1,60 +1,63 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductModelUpdateModel - : IEntityUpdateModel +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 + #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 index 1ab979b..57845ac 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Validation/ProductModelCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Validation/ProductModelCreateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ProductModelCreateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public ProductModelCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Validation/ProductModelUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Validation/ProductModelUpdateModelValidator.cs index f3b103e..23354b6 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Validation/ProductModelUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModel/Validation/ProductModelUpdateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ProductModelUpdateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public ProductModelUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Mapping/ProductModelIllustrationProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Mapping/ProductModelIllustrationProfile.cs index c52ebd4..c939403 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Mapping/ProductModelIllustrationProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Mapping/ProductModelIllustrationProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class ProductModelIllustrationProfile - : Profile +public partial class ProductModelIllustrationProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public ProductModelIllustrationProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public ProductModelIllustrationProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 081bb9e..ce8b827 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationCreateModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductModelIllustrationCreateModel - : IEntityCreateModel +public partial class ProductModelIllustrationCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationReadModel.cs index 665f56f..edf2b36 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationReadModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductModelIllustrationReadModel - : IEntityReadModel +public partial class ProductModelIllustrationReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationUpdateModel.cs index 0af8258..c70ae95 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Models/ProductModelIllustrationUpdateModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductModelIllustrationUpdateModel - : IEntityUpdateModel +public partial class ProductModelIllustrationUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Validation/ProductModelIllustrationCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Validation/ProductModelIllustrationCreateModelValidator.cs index 9f77b2c..8318d96 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Validation/ProductModelIllustrationCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Validation/ProductModelIllustrationCreateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ProductModelIllustrationCreateModelValidator - : AbstractValidator +public partial class ProductModelIllustrationCreateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public ProductModelIllustrationCreateModelValidator() - { - } + /// + /// 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 index f27e1ce..bcd7359 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Validation/ProductModelIllustrationUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModelIllustration/Validation/ProductModelIllustrationUpdateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ProductModelIllustrationUpdateModelValidator - : AbstractValidator +public partial class ProductModelIllustrationUpdateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public ProductModelIllustrationUpdateModelValidator() - { - } + /// + /// 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 index 4586da1..5d7b822 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Mapping/ProductModelProductDescriptionCultureProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Mapping/ProductModelProductDescriptionCultureProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class ProductModelProductDescriptionCultureProfile - : Profile +public partial class ProductModelProductDescriptionCultureProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public ProductModelProductDescriptionCultureProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public ProductModelProductDescriptionCultureProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 3c2d01f..7167a21 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureCreateModel.cs @@ -1,44 +1,47 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductModelProductDescriptionCultureCreateModel - : IEntityCreateModel +public partial class ProductModelProductDescriptionCultureCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureReadModel.cs index 42a7709..19a9afc 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureReadModel.cs @@ -1,44 +1,47 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductModelProductDescriptionCultureReadModel - : IEntityReadModel +public partial class ProductModelProductDescriptionCultureReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureUpdateModel.cs index f26c70b..d369ee8 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Models/ProductModelProductDescriptionCultureUpdateModel.cs @@ -1,44 +1,47 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductModelProductDescriptionCultureUpdateModel - : IEntityUpdateModel +public partial class ProductModelProductDescriptionCultureUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Validation/ProductModelProductDescriptionCultureCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Validation/ProductModelProductDescriptionCultureCreateModelValidator.cs index 2e7bd47..14eca78 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Validation/ProductModelProductDescriptionCultureCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Validation/ProductModelProductDescriptionCultureCreateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ProductModelProductDescriptionCultureCreateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public ProductModelProductDescriptionCultureCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.CultureId).NotEmpty(); + RuleFor(p => p.CultureId).MaximumLength(6); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Validation/ProductModelProductDescriptionCultureUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Validation/ProductModelProductDescriptionCultureUpdateModelValidator.cs index abde4f5..4384f21 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Validation/ProductModelProductDescriptionCultureUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductModelProductDescriptionCulture/Validation/ProductModelProductDescriptionCultureUpdateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ProductModelProductDescriptionCultureUpdateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public ProductModelProductDescriptionCultureUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.CultureId).NotEmpty(); + RuleFor(p => p.CultureId).MaximumLength(6); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Mapping/ProductPhotoProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Mapping/ProductPhotoProfile.cs index a9d3254..e5fc818 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Mapping/ProductPhotoProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Mapping/ProductPhotoProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class ProductPhotoProfile - : Profile +public partial class ProductPhotoProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public ProductPhotoProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public ProductPhotoProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index d9c2579..f65a260 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Models/ProductPhotoCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Models/ProductPhotoCreateModel.cs @@ -1,60 +1,63 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductPhotoCreateModel - : IEntityCreateModel +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 + #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 index 72a3cc2..c21c23c 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Models/ProductPhotoReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Models/ProductPhotoReadModel.cs @@ -1,60 +1,63 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductPhotoReadModel - : IEntityReadModel +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 + #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 index 036571e..cc4edd6 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Models/ProductPhotoUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Models/ProductPhotoUpdateModel.cs @@ -1,60 +1,63 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductPhotoUpdateModel - : IEntityUpdateModel +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 + #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 index a750786..61f8496 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Validation/ProductPhotoCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Validation/ProductPhotoCreateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ProductPhotoCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Validation/ProductPhotoUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Validation/ProductPhotoUpdateModelValidator.cs index 974db91..91e7657 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Validation/ProductPhotoUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductPhoto/Validation/ProductPhotoUpdateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ProductPhotoUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Mapping/ProductProductPhotoProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Mapping/ProductProductPhotoProfile.cs index c99b684..f81cceb 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Mapping/ProductProductPhotoProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Mapping/ProductProductPhotoProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class ProductProductPhotoProfile - : Profile +public partial class ProductProductPhotoProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public ProductProductPhotoProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public ProductProductPhotoProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 8ad2c91..403453a 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoCreateModel.cs @@ -1,44 +1,47 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductProductPhotoCreateModel - : IEntityCreateModel +public partial class ProductProductPhotoCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoReadModel.cs index a91b24b..bab65b4 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoReadModel.cs @@ -1,44 +1,47 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductProductPhotoReadModel - : IEntityReadModel +public partial class ProductProductPhotoReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoUpdateModel.cs index 7eede44..90f9b9c 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Models/ProductProductPhotoUpdateModel.cs @@ -1,44 +1,47 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductProductPhotoUpdateModel - : IEntityUpdateModel +public partial class ProductProductPhotoUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Validation/ProductProductPhotoCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Validation/ProductProductPhotoCreateModelValidator.cs index 29ae79b..3f6084c 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Validation/ProductProductPhotoCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Validation/ProductProductPhotoCreateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ProductProductPhotoCreateModelValidator - : AbstractValidator +public partial class ProductProductPhotoCreateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public ProductProductPhotoCreateModelValidator() - { - } + /// + /// 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 index c10e971..38985f1 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Validation/ProductProductPhotoUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductProductPhoto/Validation/ProductProductPhotoUpdateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ProductProductPhotoUpdateModelValidator - : AbstractValidator +public partial class ProductProductPhotoUpdateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public ProductProductPhotoUpdateModelValidator() - { - } + /// + /// 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 index 26e7962..ad9c6cf 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Mapping/ProductReviewProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Mapping/ProductReviewProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class ProductReviewProfile - : Profile +public partial class ProductReviewProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public ProductReviewProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public ProductReviewProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index e11c948..6199c11 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewCreateModel.cs @@ -1,76 +1,79 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductReviewCreateModel - : IEntityCreateModel +public partial class ProductReviewCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewReadModel.cs index 7528d0b..e40e0c2 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewReadModel.cs @@ -1,76 +1,79 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductReviewReadModel - : IEntityReadModel +public partial class ProductReviewReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewUpdateModel.cs index 964334a..94dacd6 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Models/ProductReviewUpdateModel.cs @@ -1,76 +1,79 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductReviewUpdateModel - : IEntityUpdateModel +public partial class ProductReviewUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Validation/ProductReviewCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Validation/ProductReviewCreateModelValidator.cs index 711e047..86ba125 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Validation/ProductReviewCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Validation/ProductReviewCreateModelValidator.cs @@ -1,28 +1,29 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ProductReviewCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Validation/ProductReviewUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Validation/ProductReviewUpdateModelValidator.cs index 8c54389..3f36cb1 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Validation/ProductReviewUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductReview/Validation/ProductReviewUpdateModelValidator.cs @@ -1,28 +1,29 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ProductReviewUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Mapping/ProductSubcategoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Mapping/ProductSubcategoryProfile.cs index ff2a193..0f41d7f 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Mapping/ProductSubcategoryProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Mapping/ProductSubcategoryProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class ProductSubcategoryProfile - : Profile +public partial class ProductSubcategoryProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public ProductSubcategoryProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public ProductSubcategoryProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 7432886..c35114e 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Models/ProductSubcategoryCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Models/ProductSubcategoryCreateModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductSubcategoryCreateModel - : IEntityCreateModel +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 + #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 index b96bfb4..90258ad 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Models/ProductSubcategoryReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Models/ProductSubcategoryReadModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductSubcategoryReadModel - : IEntityReadModel +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 + #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 index f18ff33..f927391 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Models/ProductSubcategoryUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Models/ProductSubcategoryUpdateModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductSubcategoryUpdateModel - : IEntityUpdateModel +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 + #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 index bdec93d..afa7237 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Validation/ProductSubcategoryCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Validation/ProductSubcategoryCreateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ProductSubcategoryCreateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public ProductSubcategoryCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Validation/ProductSubcategoryUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Validation/ProductSubcategoryUpdateModelValidator.cs index d4a41f9..52fa56d 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Validation/ProductSubcategoryUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductSubcategory/Validation/ProductSubcategoryUpdateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ProductSubcategoryUpdateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public ProductSubcategoryUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Mapping/ProductVendorProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Mapping/ProductVendorProfile.cs index 3b8f4b8..b23f1d4 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Mapping/ProductVendorProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Mapping/ProductVendorProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class ProductVendorProfile - : Profile +public partial class ProductVendorProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public ProductVendorProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public ProductVendorProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index d2b8a68..ab2b973 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorCreateModel.cs @@ -1,100 +1,103 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductVendorCreateModel - : IEntityCreateModel +public partial class ProductVendorCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorReadModel.cs index 0bf8459..41bba1d 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorReadModel.cs @@ -1,100 +1,103 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductVendorReadModel - : IEntityReadModel +public partial class ProductVendorReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorUpdateModel.cs index 46b8553..2348d2d 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Models/ProductVendorUpdateModel.cs @@ -1,100 +1,103 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ProductVendorUpdateModel - : IEntityUpdateModel +public partial class ProductVendorUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Validation/ProductVendorCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Validation/ProductVendorCreateModelValidator.cs index b852d21..51d7a0d 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Validation/ProductVendorCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Validation/ProductVendorCreateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ProductVendorCreateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public ProductVendorCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.UnitMeasureCode).NotEmpty(); + RuleFor(p => p.UnitMeasureCode).MaximumLength(3); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Validation/ProductVendorUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Validation/ProductVendorUpdateModelValidator.cs index 1f21078..52e5843 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Validation/ProductVendorUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ProductVendor/Validation/ProductVendorUpdateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ProductVendorUpdateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public ProductVendorUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.UnitMeasureCode).NotEmpty(); + RuleFor(p => p.UnitMeasureCode).MaximumLength(3); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Mapping/PurchaseOrderDetailProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Mapping/PurchaseOrderDetailProfile.cs index d4fe752..d0195fc 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Mapping/PurchaseOrderDetailProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Mapping/PurchaseOrderDetailProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class PurchaseOrderDetailProfile - : Profile +public partial class PurchaseOrderDetailProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public PurchaseOrderDetailProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public PurchaseOrderDetailProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 99f5cda..df7a283 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailCreateModel.cs @@ -1,100 +1,103 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class PurchaseOrderDetailCreateModel - : IEntityCreateModel +public partial class PurchaseOrderDetailCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailReadModel.cs index 583b2cb..31fd896 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailReadModel.cs @@ -1,100 +1,103 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class PurchaseOrderDetailReadModel - : IEntityReadModel +public partial class PurchaseOrderDetailReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailUpdateModel.cs index 6462385..82be493 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Models/PurchaseOrderDetailUpdateModel.cs @@ -1,100 +1,103 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class PurchaseOrderDetailUpdateModel - : IEntityUpdateModel +public partial class PurchaseOrderDetailUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Validation/PurchaseOrderDetailCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Validation/PurchaseOrderDetailCreateModelValidator.cs index 2acd848..fed8e97 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Validation/PurchaseOrderDetailCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Validation/PurchaseOrderDetailCreateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class PurchaseOrderDetailCreateModelValidator - : AbstractValidator +public partial class PurchaseOrderDetailCreateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public PurchaseOrderDetailCreateModelValidator() - { - } + /// + /// 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 index 4d6c49e..3701d5d 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Validation/PurchaseOrderDetailUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderDetail/Validation/PurchaseOrderDetailUpdateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class PurchaseOrderDetailUpdateModelValidator - : AbstractValidator +public partial class PurchaseOrderDetailUpdateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public PurchaseOrderDetailUpdateModelValidator() - { - } + /// + /// 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 index e100c8b..8f96719 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Mapping/PurchaseOrderHeaderProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Mapping/PurchaseOrderHeaderProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class PurchaseOrderHeaderProfile - : Profile +public partial class PurchaseOrderHeaderProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public PurchaseOrderHeaderProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public PurchaseOrderHeaderProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index deabe9d..a002515 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Models/PurchaseOrderHeaderCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Models/PurchaseOrderHeaderCreateModel.cs @@ -1,116 +1,119 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class PurchaseOrderHeaderCreateModel - : IEntityCreateModel +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 + #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 index 7786624..49a778c 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Models/PurchaseOrderHeaderReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Models/PurchaseOrderHeaderReadModel.cs @@ -1,116 +1,119 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class PurchaseOrderHeaderReadModel - : IEntityReadModel +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 + #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 index 822b776..876f1b2 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Models/PurchaseOrderHeaderUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Models/PurchaseOrderHeaderUpdateModel.cs @@ -1,116 +1,119 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class PurchaseOrderHeaderUpdateModel - : IEntityUpdateModel +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 + #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 index 968c35f..19a4ba7 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Validation/PurchaseOrderHeaderCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Validation/PurchaseOrderHeaderCreateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class PurchaseOrderHeaderCreateModelValidator - : AbstractValidator +public partial class PurchaseOrderHeaderCreateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public PurchaseOrderHeaderCreateModelValidator() - { - } + /// + /// 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 index 8d7595a..1e9a9f5 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Validation/PurchaseOrderHeaderUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/PurchaseOrderHeader/Validation/PurchaseOrderHeaderUpdateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class PurchaseOrderHeaderUpdateModelValidator - : AbstractValidator +public partial class PurchaseOrderHeaderUpdateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public PurchaseOrderHeaderUpdateModelValidator() - { - } + /// + /// 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 index 6e21bdd..4323d8a 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Mapping/SalesOrderDetailProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Mapping/SalesOrderDetailProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class SalesOrderDetailProfile - : Profile +public partial class SalesOrderDetailProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public SalesOrderDetailProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public SalesOrderDetailProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index bb8653d..97868cd 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailCreateModel.cs @@ -1,100 +1,103 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SalesOrderDetailCreateModel - : IEntityCreateModel +public partial class SalesOrderDetailCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailReadModel.cs index 5762801..c4f98b8 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailReadModel.cs @@ -1,100 +1,103 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SalesOrderDetailReadModel - : IEntityReadModel +public partial class SalesOrderDetailReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailUpdateModel.cs index d45820d..ed90719 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Models/SalesOrderDetailUpdateModel.cs @@ -1,100 +1,103 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SalesOrderDetailUpdateModel - : IEntityUpdateModel +public partial class SalesOrderDetailUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Validation/SalesOrderDetailCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Validation/SalesOrderDetailCreateModelValidator.cs index c7a8f55..0801598 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Validation/SalesOrderDetailCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Validation/SalesOrderDetailCreateModelValidator.cs @@ -1,24 +1,25 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class SalesOrderDetailCreateModelValidator - : AbstractValidator +public partial class SalesOrderDetailCreateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public SalesOrderDetailCreateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.CarrierTrackingNumber).MaximumLength(25); + /// + /// Initializes a new instance of the class. + /// + public SalesOrderDetailCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.CarrierTrackingNumber).MaximumLength(25); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Validation/SalesOrderDetailUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Validation/SalesOrderDetailUpdateModelValidator.cs index 95b22ff..3873750 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Validation/SalesOrderDetailUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderDetail/Validation/SalesOrderDetailUpdateModelValidator.cs @@ -1,24 +1,25 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class SalesOrderDetailUpdateModelValidator - : AbstractValidator +public partial class SalesOrderDetailUpdateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public SalesOrderDetailUpdateModelValidator() - { - #region Generated Constructor - - RuleFor(p => p.CarrierTrackingNumber).MaximumLength(25); + /// + /// Initializes a new instance of the class. + /// + public SalesOrderDetailUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.CarrierTrackingNumber).MaximumLength(25); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Mapping/SalesOrderHeaderProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Mapping/SalesOrderHeaderProfile.cs index 2fbaeef..9e7e695 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Mapping/SalesOrderHeaderProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Mapping/SalesOrderHeaderProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class SalesOrderHeaderProfile - : Profile +public partial class SalesOrderHeaderProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public SalesOrderHeaderProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public SalesOrderHeaderProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index a685b15..d29f2d9 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Models/SalesOrderHeaderCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Models/SalesOrderHeaderCreateModel.cs @@ -1,220 +1,223 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SalesOrderHeaderCreateModel - : IEntityCreateModel +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 + #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 index 9870853..66eb65f 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Models/SalesOrderHeaderReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Models/SalesOrderHeaderReadModel.cs @@ -1,220 +1,223 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SalesOrderHeaderReadModel - : IEntityReadModel +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 + #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 index 718759e..8d5b81b 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Models/SalesOrderHeaderUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Models/SalesOrderHeaderUpdateModel.cs @@ -1,220 +1,223 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SalesOrderHeaderUpdateModel - : IEntityUpdateModel +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 + #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 index ce2daf7..efccecc 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Validation/SalesOrderHeaderCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Validation/SalesOrderHeaderCreateModelValidator.cs @@ -1,27 +1,28 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class SalesOrderHeaderCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Validation/SalesOrderHeaderUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Validation/SalesOrderHeaderUpdateModelValidator.cs index b53f738..b787631 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Validation/SalesOrderHeaderUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeader/Validation/SalesOrderHeaderUpdateModelValidator.cs @@ -1,27 +1,28 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class SalesOrderHeaderUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Mapping/SalesOrderHeaderSalesReasonProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Mapping/SalesOrderHeaderSalesReasonProfile.cs index 0c9ab02..db67c58 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Mapping/SalesOrderHeaderSalesReasonProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Mapping/SalesOrderHeaderSalesReasonProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class SalesOrderHeaderSalesReasonProfile - : Profile +public partial class SalesOrderHeaderSalesReasonProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public SalesOrderHeaderSalesReasonProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public SalesOrderHeaderSalesReasonProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index f215e53..85c55bf 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonCreateModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SalesOrderHeaderSalesReasonCreateModel - : IEntityCreateModel +public partial class SalesOrderHeaderSalesReasonCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonReadModel.cs index bbd89ca..b1008d4 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonReadModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SalesOrderHeaderSalesReasonReadModel - : IEntityReadModel +public partial class SalesOrderHeaderSalesReasonReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonUpdateModel.cs index cbcc883..f8030d2 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Models/SalesOrderHeaderSalesReasonUpdateModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SalesOrderHeaderSalesReasonUpdateModel - : IEntityUpdateModel +public partial class SalesOrderHeaderSalesReasonUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Validation/SalesOrderHeaderSalesReasonCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Validation/SalesOrderHeaderSalesReasonCreateModelValidator.cs index 9220b77..596c454 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Validation/SalesOrderHeaderSalesReasonCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Validation/SalesOrderHeaderSalesReasonCreateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class SalesOrderHeaderSalesReasonCreateModelValidator - : AbstractValidator +public partial class SalesOrderHeaderSalesReasonCreateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public SalesOrderHeaderSalesReasonCreateModelValidator() - { - } + /// + /// 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 index 196de86..e83ebfd 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Validation/SalesOrderHeaderSalesReasonUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesOrderHeaderSalesReason/Validation/SalesOrderHeaderSalesReasonUpdateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class SalesOrderHeaderSalesReasonUpdateModelValidator - : AbstractValidator +public partial class SalesOrderHeaderSalesReasonUpdateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public SalesOrderHeaderSalesReasonUpdateModelValidator() - { - } + /// + /// 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 index 85d6730..e424118 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Mapping/SalesPersonProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Mapping/SalesPersonProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class SalesPersonProfile - : Profile +public partial class SalesPersonProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public SalesPersonProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public SalesPersonProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 3fd4d90..a446788 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonCreateModel.cs @@ -1,84 +1,87 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SalesPersonCreateModel - : IEntityCreateModel +public partial class SalesPersonCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonReadModel.cs index 8dd612f..b175dbc 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonReadModel.cs @@ -1,84 +1,87 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SalesPersonReadModel - : IEntityReadModel +public partial class SalesPersonReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonUpdateModel.cs index f06f402..3682c7a 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Models/SalesPersonUpdateModel.cs @@ -1,84 +1,87 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SalesPersonUpdateModel - : IEntityUpdateModel +public partial class SalesPersonUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Validation/SalesPersonCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Validation/SalesPersonCreateModelValidator.cs index bfc1900..0bee94a 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Validation/SalesPersonCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Validation/SalesPersonCreateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class SalesPersonCreateModelValidator - : AbstractValidator +public partial class SalesPersonCreateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public SalesPersonCreateModelValidator() - { - } + /// + /// 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 index 76dce7e..c6aa7da 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Validation/SalesPersonUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesPerson/Validation/SalesPersonUpdateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class SalesPersonUpdateModelValidator - : AbstractValidator +public partial class SalesPersonUpdateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public SalesPersonUpdateModelValidator() - { - } + /// + /// 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 index 25268bf..d5eec08 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Mapping/SalesPersonQuotaHistoryProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Mapping/SalesPersonQuotaHistoryProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class SalesPersonQuotaHistoryProfile - : Profile +public partial class SalesPersonQuotaHistoryProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public SalesPersonQuotaHistoryProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public SalesPersonQuotaHistoryProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 9dbd130..9ce467e 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Models/SalesPersonQuotaHistoryCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Models/SalesPersonQuotaHistoryCreateModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SalesPersonQuotaHistoryCreateModel - : IEntityCreateModel +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 + #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 index 19dd04f..7219322 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Models/SalesPersonQuotaHistoryReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Models/SalesPersonQuotaHistoryReadModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SalesPersonQuotaHistoryReadModel - : IEntityReadModel +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 + #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 index dddb865..e9e28a1 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Models/SalesPersonQuotaHistoryUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Models/SalesPersonQuotaHistoryUpdateModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SalesPersonQuotaHistoryUpdateModel - : IEntityUpdateModel +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 + #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 index eec5124..d9da854 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Validation/SalesPersonQuotaHistoryCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Validation/SalesPersonQuotaHistoryCreateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class SalesPersonQuotaHistoryCreateModelValidator - : AbstractValidator +public partial class SalesPersonQuotaHistoryCreateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public SalesPersonQuotaHistoryCreateModelValidator() - { - } + /// + /// 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 index ff72b5f..894c6c8 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Validation/SalesPersonQuotaHistoryUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesPersonQuotaHistory/Validation/SalesPersonQuotaHistoryUpdateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class SalesPersonQuotaHistoryUpdateModelValidator - : AbstractValidator +public partial class SalesPersonQuotaHistoryUpdateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public SalesPersonQuotaHistoryUpdateModelValidator() - { - } + /// + /// 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 index 035f1a2..d2d638e 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Mapping/SalesReasonProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Mapping/SalesReasonProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class SalesReasonProfile - : Profile +public partial class SalesReasonProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public SalesReasonProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public SalesReasonProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 0a02c6c..f98ddab 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonCreateModel.cs @@ -1,44 +1,47 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SalesReasonCreateModel - : IEntityCreateModel +public partial class SalesReasonCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonReadModel.cs index d45501d..98775f8 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonReadModel.cs @@ -1,44 +1,47 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SalesReasonReadModel - : IEntityReadModel +public partial class SalesReasonReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonUpdateModel.cs index 3a5018d..5804e49 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Models/SalesReasonUpdateModel.cs @@ -1,44 +1,47 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SalesReasonUpdateModel - : IEntityUpdateModel +public partial class SalesReasonUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Validation/SalesReasonCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Validation/SalesReasonCreateModelValidator.cs index c4e45ce..4c88b91 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Validation/SalesReasonCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Validation/SalesReasonCreateModelValidator.cs @@ -1,27 +1,28 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class SalesReasonCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Validation/SalesReasonUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Validation/SalesReasonUpdateModelValidator.cs index 1bc0d27..da7b5b9 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Validation/SalesReasonUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesReason/Validation/SalesReasonUpdateModelValidator.cs @@ -1,27 +1,28 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class SalesReasonUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Mapping/SalesTaxRateProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Mapping/SalesTaxRateProfile.cs index 4b727e9..2ea4a78 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Mapping/SalesTaxRateProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Mapping/SalesTaxRateProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class SalesTaxRateProfile - : Profile +public partial class SalesTaxRateProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public SalesTaxRateProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public SalesTaxRateProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 62c584e..4cdfa85 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateCreateModel.cs @@ -1,68 +1,71 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SalesTaxRateCreateModel - : IEntityCreateModel +public partial class SalesTaxRateCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateReadModel.cs index ea25a99..0b09023 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateReadModel.cs @@ -1,68 +1,71 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SalesTaxRateReadModel - : IEntityReadModel +public partial class SalesTaxRateReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateUpdateModel.cs index baa5e16..aa6e60f 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Models/SalesTaxRateUpdateModel.cs @@ -1,68 +1,71 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SalesTaxRateUpdateModel - : IEntityUpdateModel +public partial class SalesTaxRateUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Validation/SalesTaxRateCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Validation/SalesTaxRateCreateModelValidator.cs index 4ce57d9..81af04b 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Validation/SalesTaxRateCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Validation/SalesTaxRateCreateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class SalesTaxRateCreateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public SalesTaxRateCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Validation/SalesTaxRateUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Validation/SalesTaxRateUpdateModelValidator.cs index 34fe3dd..3694fae 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Validation/SalesTaxRateUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTaxRate/Validation/SalesTaxRateUpdateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class SalesTaxRateUpdateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public SalesTaxRateUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Mapping/SalesTerritoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Mapping/SalesTerritoryProfile.cs index 748e27b..ad6651a 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Mapping/SalesTerritoryProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Mapping/SalesTerritoryProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class SalesTerritoryProfile - : Profile +public partial class SalesTerritoryProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public SalesTerritoryProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public SalesTerritoryProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 1ba08c7..3516228 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryCreateModel.cs @@ -1,92 +1,95 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SalesTerritoryCreateModel - : IEntityCreateModel +public partial class SalesTerritoryCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryReadModel.cs index 12ccb78..da3e5df 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryReadModel.cs @@ -1,92 +1,95 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SalesTerritoryReadModel - : IEntityReadModel +public partial class SalesTerritoryReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryUpdateModel.cs index c0f9a9b..2331f8f 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Models/SalesTerritoryUpdateModel.cs @@ -1,92 +1,95 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SalesTerritoryUpdateModel - : IEntityUpdateModel +public partial class SalesTerritoryUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Validation/SalesTerritoryCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Validation/SalesTerritoryCreateModelValidator.cs index 0f0ba24..40ed2ea 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Validation/SalesTerritoryCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Validation/SalesTerritoryCreateModelValidator.cs @@ -1,29 +1,30 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class SalesTerritoryCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Validation/SalesTerritoryUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Validation/SalesTerritoryUpdateModelValidator.cs index dfd59f3..53f20f0 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Validation/SalesTerritoryUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritory/Validation/SalesTerritoryUpdateModelValidator.cs @@ -1,29 +1,30 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class SalesTerritoryUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Mapping/SalesTerritoryHistoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Mapping/SalesTerritoryHistoryProfile.cs index 3a3d844..c64d964 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Mapping/SalesTerritoryHistoryProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Mapping/SalesTerritoryHistoryProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class SalesTerritoryHistoryProfile - : Profile +public partial class SalesTerritoryHistoryProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public SalesTerritoryHistoryProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public SalesTerritoryHistoryProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index c675177..5df3069 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Models/SalesTerritoryHistoryCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Models/SalesTerritoryHistoryCreateModel.cs @@ -1,60 +1,63 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SalesTerritoryHistoryCreateModel - : IEntityCreateModel +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 + #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 index 5664f10..339cc74 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Models/SalesTerritoryHistoryReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Models/SalesTerritoryHistoryReadModel.cs @@ -1,60 +1,63 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SalesTerritoryHistoryReadModel - : IEntityReadModel +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 + #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 index 31e4888..65b23b4 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Models/SalesTerritoryHistoryUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Models/SalesTerritoryHistoryUpdateModel.cs @@ -1,60 +1,63 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SalesTerritoryHistoryUpdateModel - : IEntityUpdateModel +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 + #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 index fcf5447..017aa90 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Validation/SalesTerritoryHistoryCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Validation/SalesTerritoryHistoryCreateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class SalesTerritoryHistoryCreateModelValidator - : AbstractValidator +public partial class SalesTerritoryHistoryCreateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public SalesTerritoryHistoryCreateModelValidator() - { - } + /// + /// 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 index 6deb0e0..06b7d5c 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Validation/SalesTerritoryHistoryUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SalesTerritoryHistory/Validation/SalesTerritoryHistoryUpdateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class SalesTerritoryHistoryUpdateModelValidator - : AbstractValidator +public partial class SalesTerritoryHistoryUpdateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public SalesTerritoryHistoryUpdateModelValidator() - { - } + /// + /// 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 index e71e01d..96b6fa3 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Mapping/ScrapReasonProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Mapping/ScrapReasonProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class ScrapReasonProfile - : Profile +public partial class ScrapReasonProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public ScrapReasonProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public ScrapReasonProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 27fb131..685475f 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonCreateModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ScrapReasonCreateModel - : IEntityCreateModel +public partial class ScrapReasonCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonReadModel.cs index 9d9df7e..e61f440 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonReadModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ScrapReasonReadModel - : IEntityReadModel +public partial class ScrapReasonReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonUpdateModel.cs index c8a9ea4..f79e607 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Models/ScrapReasonUpdateModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ScrapReasonUpdateModel - : IEntityUpdateModel +public partial class ScrapReasonUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Validation/ScrapReasonCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Validation/ScrapReasonCreateModelValidator.cs index 8d5c9b8..c15e156 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Validation/ScrapReasonCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Validation/ScrapReasonCreateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ScrapReasonCreateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public ScrapReasonCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Validation/ScrapReasonUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Validation/ScrapReasonUpdateModelValidator.cs index b5c0023..0236b6d 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Validation/ScrapReasonUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ScrapReason/Validation/ScrapReasonUpdateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ScrapReasonUpdateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public ScrapReasonUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Shift/Mapping/ShiftProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Shift/Mapping/ShiftProfile.cs index 9000675..3a1d7f7 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Shift/Mapping/ShiftProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Shift/Mapping/ShiftProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class ShiftProfile - : Profile +public partial class ShiftProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public ShiftProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public ShiftProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index e9788d0..1d8fcbe 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Shift/Models/ShiftCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Shift/Models/ShiftCreateModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ShiftCreateModel - : IEntityCreateModel +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 + #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 index b79bdaa..15948d5 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Shift/Models/ShiftReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Shift/Models/ShiftReadModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ShiftReadModel - : IEntityReadModel +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 + #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 index f0dff3a..bc13b05 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Shift/Models/ShiftUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Shift/Models/ShiftUpdateModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ShiftUpdateModel - : IEntityUpdateModel +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 + #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 index cc92ffb..37a4d23 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Shift/Validation/ShiftCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Shift/Validation/ShiftCreateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ShiftCreateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public ShiftCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Shift/Validation/ShiftUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Shift/Validation/ShiftUpdateModelValidator.cs index ad5adc0..f9c4182 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Shift/Validation/ShiftUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Shift/Validation/ShiftUpdateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ShiftUpdateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public ShiftUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Mapping/ShipMethodProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Mapping/ShipMethodProfile.cs index 5616469..6fde9fa 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Mapping/ShipMethodProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Mapping/ShipMethodProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class ShipMethodProfile - : Profile +public partial class ShipMethodProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public ShipMethodProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public ShipMethodProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 166750a..86b1a7d 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Models/ShipMethodCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Models/ShipMethodCreateModel.cs @@ -1,60 +1,63 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ShipMethodCreateModel - : IEntityCreateModel +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 + #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 index a959458..98cc3b0 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Models/ShipMethodReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Models/ShipMethodReadModel.cs @@ -1,60 +1,63 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ShipMethodReadModel - : IEntityReadModel +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 + #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 index e4e240e..a47dd4b 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Models/ShipMethodUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Models/ShipMethodUpdateModel.cs @@ -1,60 +1,63 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ShipMethodUpdateModel - : IEntityUpdateModel +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 + #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 index 9dde2f2..2e14b36 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Validation/ShipMethodCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Validation/ShipMethodCreateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ShipMethodCreateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public ShipMethodCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Validation/ShipMethodUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Validation/ShipMethodUpdateModelValidator.cs index 23aec32..a8927d1 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Validation/ShipMethodUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ShipMethod/Validation/ShipMethodUpdateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ShipMethodUpdateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public ShipMethodUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Mapping/ShoppingCartItemProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Mapping/ShoppingCartItemProfile.cs index aa093e5..6e45b98 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Mapping/ShoppingCartItemProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Mapping/ShoppingCartItemProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class ShoppingCartItemProfile - : Profile +public partial class ShoppingCartItemProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public ShoppingCartItemProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public ShoppingCartItemProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index bc78580..48dc065 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Models/ShoppingCartItemCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Models/ShoppingCartItemCreateModel.cs @@ -1,60 +1,63 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ShoppingCartItemCreateModel - : IEntityCreateModel +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 + #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 index aafb591..b2f08c8 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Models/ShoppingCartItemReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Models/ShoppingCartItemReadModel.cs @@ -1,60 +1,63 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ShoppingCartItemReadModel - : IEntityReadModel +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 + #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 index 1b3259f..c895261 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Models/ShoppingCartItemUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Models/ShoppingCartItemUpdateModel.cs @@ -1,60 +1,63 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class ShoppingCartItemUpdateModel - : IEntityUpdateModel +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 + #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 index 2daf165..6be3659 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Validation/ShoppingCartItemCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Validation/ShoppingCartItemCreateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ShoppingCartItemCreateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public ShoppingCartItemCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.ShoppingCartId).NotEmpty(); + RuleFor(p => p.ShoppingCartId).MaximumLength(50); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Validation/ShoppingCartItemUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Validation/ShoppingCartItemUpdateModelValidator.cs index 26c76c3..d187292 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Validation/ShoppingCartItemUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/ShoppingCartItem/Validation/ShoppingCartItemUpdateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class ShoppingCartItemUpdateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public ShoppingCartItemUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.ShoppingCartId).NotEmpty(); + RuleFor(p => p.ShoppingCartId).MaximumLength(50); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Mapping/SpecialOfferProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Mapping/SpecialOfferProfile.cs index 27735d5..3df47ec 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Mapping/SpecialOfferProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Mapping/SpecialOfferProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class SpecialOfferProfile - : Profile +public partial class SpecialOfferProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public SpecialOfferProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public SpecialOfferProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index c75e382..e7463a8 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferCreateModel.cs @@ -1,100 +1,103 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SpecialOfferCreateModel - : IEntityCreateModel +public partial class SpecialOfferCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferReadModel.cs index 9035a45..e004a1b 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferReadModel.cs @@ -1,100 +1,103 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SpecialOfferReadModel - : IEntityReadModel +public partial class SpecialOfferReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferUpdateModel.cs index 8a97e93..dad9fad 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Models/SpecialOfferUpdateModel.cs @@ -1,100 +1,103 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SpecialOfferUpdateModel - : IEntityUpdateModel +public partial class SpecialOfferUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Validation/SpecialOfferCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Validation/SpecialOfferCreateModelValidator.cs index 3b9693a..4b67cd0 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Validation/SpecialOfferCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Validation/SpecialOfferCreateModelValidator.cs @@ -1,29 +1,30 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class SpecialOfferCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Validation/SpecialOfferUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Validation/SpecialOfferUpdateModelValidator.cs index 331dca0..353db00 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Validation/SpecialOfferUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SpecialOffer/Validation/SpecialOfferUpdateModelValidator.cs @@ -1,29 +1,30 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class SpecialOfferUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Mapping/SpecialOfferProductProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Mapping/SpecialOfferProductProfile.cs index 632fdff..6003415 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Mapping/SpecialOfferProductProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Mapping/SpecialOfferProductProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class SpecialOfferProductProfile - : Profile +public partial class SpecialOfferProductProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public SpecialOfferProductProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public SpecialOfferProductProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index a913d86..18a413a 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductCreateModel.cs @@ -1,44 +1,47 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SpecialOfferProductCreateModel - : IEntityCreateModel +public partial class SpecialOfferProductCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductReadModel.cs index 1f0ea56..76dd0cd 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductReadModel.cs @@ -1,44 +1,47 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SpecialOfferProductReadModel - : IEntityReadModel +public partial class SpecialOfferProductReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductUpdateModel.cs index 294f964..ae2b087 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Models/SpecialOfferProductUpdateModel.cs @@ -1,44 +1,47 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class SpecialOfferProductUpdateModel - : IEntityUpdateModel +public partial class SpecialOfferProductUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Validation/SpecialOfferProductCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Validation/SpecialOfferProductCreateModelValidator.cs index 6205f4c..f5de9f5 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Validation/SpecialOfferProductCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Validation/SpecialOfferProductCreateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class SpecialOfferProductCreateModelValidator - : AbstractValidator +public partial class SpecialOfferProductCreateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public SpecialOfferProductCreateModelValidator() - { - } + /// + /// 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 index 5055c4b..8932795 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Validation/SpecialOfferProductUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/SpecialOfferProduct/Validation/SpecialOfferProductUpdateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class SpecialOfferProductUpdateModelValidator - : AbstractValidator +public partial class SpecialOfferProductUpdateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public SpecialOfferProductUpdateModelValidator() - { - } + /// + /// 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 index 57ad99d..f0eb7b3 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Mapping/StateProvinceProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Mapping/StateProvinceProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class StateProvinceProfile - : Profile +public partial class StateProvinceProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public StateProvinceProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public StateProvinceProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index b7fa103..e0f2a71 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceCreateModel.cs @@ -1,76 +1,79 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class StateProvinceCreateModel - : IEntityCreateModel +public partial class StateProvinceCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceReadModel.cs index 3ffd8d8..7d29209 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceReadModel.cs @@ -1,76 +1,79 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class StateProvinceReadModel - : IEntityReadModel +public partial class StateProvinceReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceUpdateModel.cs index 80fc474..7133ec6 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Models/StateProvinceUpdateModel.cs @@ -1,76 +1,79 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class StateProvinceUpdateModel - : IEntityUpdateModel +public partial class StateProvinceUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Validation/StateProvinceCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Validation/StateProvinceCreateModelValidator.cs index e1f2377..14cb5d3 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Validation/StateProvinceCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Validation/StateProvinceCreateModelValidator.cs @@ -1,29 +1,30 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class StateProvinceCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Validation/StateProvinceUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Validation/StateProvinceUpdateModelValidator.cs index 5f3fd49..80fd72c 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Validation/StateProvinceUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/StateProvince/Validation/StateProvinceUpdateModelValidator.cs @@ -1,29 +1,30 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class StateProvinceUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Store/Mapping/StoreProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Store/Mapping/StoreProfile.cs index fe0e8b4..bbc26d9 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Store/Mapping/StoreProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Store/Mapping/StoreProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class StoreProfile - : Profile +public partial class StoreProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public StoreProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public StoreProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index a6f92cc..2f0f1e2 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Store/Models/StoreCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Store/Models/StoreCreateModel.cs @@ -1,60 +1,63 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class StoreCreateModel - : IEntityCreateModel +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 + #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 index 9869a61..fdc291f 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Store/Models/StoreReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Store/Models/StoreReadModel.cs @@ -1,60 +1,63 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class StoreReadModel - : IEntityReadModel +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 + #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 index 9e2f9f9..7679f4c 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Store/Models/StoreUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Store/Models/StoreUpdateModel.cs @@ -1,60 +1,63 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class StoreUpdateModel - : IEntityUpdateModel +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 + #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 index ab753c1..e47fe9d 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Store/Validation/StoreCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Store/Validation/StoreCreateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class StoreCreateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public StoreCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Store/Validation/StoreUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Store/Validation/StoreUpdateModelValidator.cs index 2c6c4d7..8b86fe1 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Store/Validation/StoreUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Store/Validation/StoreUpdateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class StoreUpdateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public StoreUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.Name).NotEmpty(); + RuleFor(p => p.Name).MaximumLength(50); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Mapping/TransactionHistoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Mapping/TransactionHistoryProfile.cs index 4e4d4c3..8cd16d3 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Mapping/TransactionHistoryProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Mapping/TransactionHistoryProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class TransactionHistoryProfile - : Profile +public partial class TransactionHistoryProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public TransactionHistoryProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public TransactionHistoryProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 329b89d..3bedaee 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryCreateModel.cs @@ -1,84 +1,87 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class TransactionHistoryCreateModel - : IEntityCreateModel +public partial class TransactionHistoryCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryReadModel.cs index ee13921..553a84a 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryReadModel.cs @@ -1,84 +1,87 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class TransactionHistoryReadModel - : IEntityReadModel +public partial class TransactionHistoryReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryUpdateModel.cs index fc8cbd0..e05a7cb 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Models/TransactionHistoryUpdateModel.cs @@ -1,84 +1,87 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class TransactionHistoryUpdateModel - : IEntityUpdateModel +public partial class TransactionHistoryUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Validation/TransactionHistoryCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Validation/TransactionHistoryCreateModelValidator.cs index 8df86cb..dfc5b4c 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Validation/TransactionHistoryCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Validation/TransactionHistoryCreateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class TransactionHistoryCreateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public TransactionHistoryCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.TransactionType).NotEmpty(); + RuleFor(p => p.TransactionType).MaximumLength(1); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Validation/TransactionHistoryUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Validation/TransactionHistoryUpdateModelValidator.cs index 5f63e95..7d256e9 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Validation/TransactionHistoryUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistory/Validation/TransactionHistoryUpdateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class TransactionHistoryUpdateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public TransactionHistoryUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.TransactionType).NotEmpty(); + RuleFor(p => p.TransactionType).MaximumLength(1); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Mapping/TransactionHistoryArchiveProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Mapping/TransactionHistoryArchiveProfile.cs index 8760883..c4ce781 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Mapping/TransactionHistoryArchiveProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Mapping/TransactionHistoryArchiveProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class TransactionHistoryArchiveProfile - : Profile +public partial class TransactionHistoryArchiveProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public TransactionHistoryArchiveProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public TransactionHistoryArchiveProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index fe0df0d..8083c18 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveCreateModel.cs @@ -1,84 +1,87 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class TransactionHistoryArchiveCreateModel - : IEntityCreateModel +public partial class TransactionHistoryArchiveCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveReadModel.cs index 5d9dc19..a34752e 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveReadModel.cs @@ -1,84 +1,87 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class TransactionHistoryArchiveReadModel - : IEntityReadModel +public partial class TransactionHistoryArchiveReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveUpdateModel.cs index 6fd0fd0..b734038 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Models/TransactionHistoryArchiveUpdateModel.cs @@ -1,84 +1,87 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class TransactionHistoryArchiveUpdateModel - : IEntityUpdateModel +public partial class TransactionHistoryArchiveUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Validation/TransactionHistoryArchiveCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Validation/TransactionHistoryArchiveCreateModelValidator.cs index 3ff31fa..a6f68ff 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Validation/TransactionHistoryArchiveCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Validation/TransactionHistoryArchiveCreateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class TransactionHistoryArchiveCreateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public TransactionHistoryArchiveCreateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.TransactionType).NotEmpty(); + RuleFor(p => p.TransactionType).MaximumLength(1); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Validation/TransactionHistoryArchiveUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Validation/TransactionHistoryArchiveUpdateModelValidator.cs index be214c6..d864d5d 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Validation/TransactionHistoryArchiveUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/TransactionHistoryArchive/Validation/TransactionHistoryArchiveUpdateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class TransactionHistoryArchiveUpdateModelValidator - : AbstractValidator +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); + /// + /// Initializes a new instance of the class. + /// + public TransactionHistoryArchiveUpdateModelValidator() + { + #region Generated Constructor + RuleFor(p => p.TransactionType).NotEmpty(); + RuleFor(p => p.TransactionType).MaximumLength(1); + #endregion + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Mapping/UnitMeasureProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Mapping/UnitMeasureProfile.cs index ecdb818..1a8a44e 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Mapping/UnitMeasureProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Mapping/UnitMeasureProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class UnitMeasureProfile - : Profile +public partial class UnitMeasureProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public UnitMeasureProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public UnitMeasureProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 75d02a6..8e71e38 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureCreateModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class UnitMeasureCreateModel - : IEntityCreateModel +public partial class UnitMeasureCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureReadModel.cs index ee733e5..5bdb4f7 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureReadModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class UnitMeasureReadModel - : IEntityReadModel +public partial class UnitMeasureReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureUpdateModel.cs index 3ad840f..cf96acc 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Models/UnitMeasureUpdateModel.cs @@ -1,36 +1,39 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class UnitMeasureUpdateModel - : IEntityUpdateModel +public partial class UnitMeasureUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Validation/UnitMeasureCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Validation/UnitMeasureCreateModelValidator.cs index 1e61caf..aaabeee 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Validation/UnitMeasureCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Validation/UnitMeasureCreateModelValidator.cs @@ -1,27 +1,28 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class UnitMeasureCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Validation/UnitMeasureUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Validation/UnitMeasureUpdateModelValidator.cs index 1e51cc5..fa9b52a 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Validation/UnitMeasureUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/UnitMeasure/Validation/UnitMeasureUpdateModelValidator.cs @@ -1,27 +1,28 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class UnitMeasureUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Mapping/VAdditionalContactInfoProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Mapping/VAdditionalContactInfoProfile.cs index d19ba20..7debf6d 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Mapping/VAdditionalContactInfoProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Mapping/VAdditionalContactInfoProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class VAdditionalContactInfoProfile - : Profile +public partial class VAdditionalContactInfoProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public VAdditionalContactInfoProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public VAdditionalContactInfoProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index f382972..ec62c12 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Models/VAdditionalContactInfoCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Models/VAdditionalContactInfoCreateModel.cs @@ -1,148 +1,151 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VAdditionalContactInfoCreateModel - : IEntityCreateModel +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 + #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 index e6f929c..7eb0372 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Models/VAdditionalContactInfoReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Models/VAdditionalContactInfoReadModel.cs @@ -1,148 +1,151 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VAdditionalContactInfoReadModel - : IEntityReadModel +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 + #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 index bfcd3cc..3b8feac 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Models/VAdditionalContactInfoUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Models/VAdditionalContactInfoUpdateModel.cs @@ -1,148 +1,151 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VAdditionalContactInfoUpdateModel - : IEntityUpdateModel +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 + #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 index 41e6dbb..7b5a89f 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Validation/VAdditionalContactInfoCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Validation/VAdditionalContactInfoCreateModelValidator.cs @@ -1,36 +1,37 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VAdditionalContactInfoCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Validation/VAdditionalContactInfoUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Validation/VAdditionalContactInfoUpdateModelValidator.cs index 8d6a873..803e46c 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Validation/VAdditionalContactInfoUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VAdditionalContactInfo/Validation/VAdditionalContactInfoUpdateModelValidator.cs @@ -1,36 +1,37 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VAdditionalContactInfoUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Mapping/VEmployeeProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Mapping/VEmployeeProfile.cs index c4c1713..7232d16 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Mapping/VEmployeeProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Mapping/VEmployeeProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class VEmployeeProfile - : Profile +public partial class VEmployeeProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public VEmployeeProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public VEmployeeProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index f46a852..5d0939e 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Models/VEmployeeCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Models/VEmployeeCreateModel.cs @@ -1,156 +1,159 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VEmployeeCreateModel - : IEntityCreateModel +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 + #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 index 14395de..2bd6a26 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Models/VEmployeeReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Models/VEmployeeReadModel.cs @@ -1,156 +1,159 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VEmployeeReadModel - : IEntityReadModel +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 + #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 index 01891e3..1e083a0 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Models/VEmployeeUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Models/VEmployeeUpdateModel.cs @@ -1,156 +1,159 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VEmployeeUpdateModel - : IEntityUpdateModel +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 + #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 index dc0ea72..0b4a240 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Validation/VEmployeeCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Validation/VEmployeeCreateModelValidator.cs @@ -1,46 +1,47 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VEmployeeCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Validation/VEmployeeUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Validation/VEmployeeUpdateModelValidator.cs index c9d2700..79feab1 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Validation/VEmployeeUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployee/Validation/VEmployeeUpdateModelValidator.cs @@ -1,46 +1,47 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VEmployeeUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Mapping/VEmployeeDepartmentProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Mapping/VEmployeeDepartmentProfile.cs index 0b23cf6..12dd4b1 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Mapping/VEmployeeDepartmentProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Mapping/VEmployeeDepartmentProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class VEmployeeDepartmentProfile - : Profile +public partial class VEmployeeDepartmentProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public VEmployeeDepartmentProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public VEmployeeDepartmentProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index b7523f2..a5adb8f 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentCreateModel.cs @@ -1,92 +1,95 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VEmployeeDepartmentCreateModel - : IEntityCreateModel +public partial class VEmployeeDepartmentCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 'StartDate'. - /// - /// - /// The property value for 'StartDate'. - /// - public DateOnly StartDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentReadModel.cs index 0f4cbf5..68cc21c 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentReadModel.cs @@ -1,92 +1,95 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VEmployeeDepartmentReadModel - : IEntityReadModel +public partial class VEmployeeDepartmentReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 'StartDate'. - /// - /// - /// The property value for 'StartDate'. - /// - public DateOnly StartDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentUpdateModel.cs index 77f7a79..ee94987 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Models/VEmployeeDepartmentUpdateModel.cs @@ -1,92 +1,95 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VEmployeeDepartmentUpdateModel - : IEntityUpdateModel +public partial class VEmployeeDepartmentUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 'StartDate'. - /// - /// - /// The property value for 'StartDate'. - /// - public DateOnly StartDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Validation/VEmployeeDepartmentCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Validation/VEmployeeDepartmentCreateModelValidator.cs index 0445ca2..3851155 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Validation/VEmployeeDepartmentCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Validation/VEmployeeDepartmentCreateModelValidator.cs @@ -1,36 +1,37 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VEmployeeDepartmentCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Validation/VEmployeeDepartmentUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Validation/VEmployeeDepartmentUpdateModelValidator.cs index 635b7db..0014adc 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Validation/VEmployeeDepartmentUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartment/Validation/VEmployeeDepartmentUpdateModelValidator.cs @@ -1,36 +1,37 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VEmployeeDepartmentUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Mapping/VEmployeeDepartmentHistoryProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Mapping/VEmployeeDepartmentHistoryProfile.cs index 1bcb36a..4ded6e6 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Mapping/VEmployeeDepartmentHistoryProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Mapping/VEmployeeDepartmentHistoryProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class VEmployeeDepartmentHistoryProfile - : Profile +public partial class VEmployeeDepartmentHistoryProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public VEmployeeDepartmentHistoryProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public VEmployeeDepartmentHistoryProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 3185078..b950d21 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryCreateModel.cs @@ -1,100 +1,103 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VEmployeeDepartmentHistoryCreateModel - : IEntityCreateModel +public partial class VEmployeeDepartmentHistoryCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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 'EndDate'. - /// - /// - /// The property value for 'EndDate'. - /// - public DateOnly? EndDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryReadModel.cs index cfa21e2..2929e15 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryReadModel.cs @@ -1,100 +1,103 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VEmployeeDepartmentHistoryReadModel - : IEntityReadModel +public partial class VEmployeeDepartmentHistoryReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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 'EndDate'. - /// - /// - /// The property value for 'EndDate'. - /// - public DateOnly? EndDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryUpdateModel.cs index c75e04b..d39e0b4 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Models/VEmployeeDepartmentHistoryUpdateModel.cs @@ -1,100 +1,103 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VEmployeeDepartmentHistoryUpdateModel - : IEntityUpdateModel +public partial class VEmployeeDepartmentHistoryUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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 'EndDate'. - /// - /// - /// The property value for 'EndDate'. - /// - public DateOnly? EndDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Validation/VEmployeeDepartmentHistoryCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Validation/VEmployeeDepartmentHistoryCreateModelValidator.cs index cf3dcf0..2b01a45 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Validation/VEmployeeDepartmentHistoryCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Validation/VEmployeeDepartmentHistoryCreateModelValidator.cs @@ -1,36 +1,37 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VEmployeeDepartmentHistoryCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Validation/VEmployeeDepartmentHistoryUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Validation/VEmployeeDepartmentHistoryUpdateModelValidator.cs index b9e2c63..2697b8a 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Validation/VEmployeeDepartmentHistoryUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VEmployeeDepartmentHistory/Validation/VEmployeeDepartmentHistoryUpdateModelValidator.cs @@ -1,36 +1,37 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VEmployeeDepartmentHistoryUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Mapping/VIndividualCustomerProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Mapping/VIndividualCustomerProfile.cs index 0bdbffd..687365d 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Mapping/VIndividualCustomerProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Mapping/VIndividualCustomerProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class VIndividualCustomerProfile - : Profile +public partial class VIndividualCustomerProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public VIndividualCustomerProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public VIndividualCustomerProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 0289943..eb83f49 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Models/VIndividualCustomerCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Models/VIndividualCustomerCreateModel.cs @@ -1,156 +1,159 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VIndividualCustomerCreateModel - : IEntityCreateModel +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 + #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 index 1505bae..d47dc88 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Models/VIndividualCustomerReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Models/VIndividualCustomerReadModel.cs @@ -1,156 +1,159 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VIndividualCustomerReadModel - : IEntityReadModel +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 + #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 index 40f8c6f..3cdd10a 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Models/VIndividualCustomerUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Models/VIndividualCustomerUpdateModel.cs @@ -1,156 +1,159 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VIndividualCustomerUpdateModel - : IEntityUpdateModel +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 + #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 index 7bd93fd..981d8a7 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Validation/VIndividualCustomerCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Validation/VIndividualCustomerCreateModelValidator.cs @@ -1,46 +1,47 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VIndividualCustomerCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Validation/VIndividualCustomerUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Validation/VIndividualCustomerUpdateModelValidator.cs index 4099980..10c4e1e 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Validation/VIndividualCustomerUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VIndividualCustomer/Validation/VIndividualCustomerUpdateModelValidator.cs @@ -1,46 +1,47 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VIndividualCustomerUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Mapping/VJobCandidateProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Mapping/VJobCandidateProfile.cs index d696b76..faf37e3 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Mapping/VJobCandidateProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Mapping/VJobCandidateProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class VJobCandidateProfile - : Profile +public partial class VJobCandidateProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public VJobCandidateProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public VJobCandidateProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index ceeb670..2ce38ee 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Models/VJobCandidateCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Models/VJobCandidateCreateModel.cs @@ -1,140 +1,143 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VJobCandidateCreateModel - : IEntityCreateModel +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 + #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 index 6e8e501..abf38ce 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Models/VJobCandidateReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Models/VJobCandidateReadModel.cs @@ -1,140 +1,143 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VJobCandidateReadModel - : IEntityReadModel +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 + #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 index acd241d..dab9770 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Models/VJobCandidateUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Models/VJobCandidateUpdateModel.cs @@ -1,140 +1,143 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VJobCandidateUpdateModel - : IEntityUpdateModel +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 + #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 index 806913f..a91f7b9 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Validation/VJobCandidateCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Validation/VJobCandidateCreateModelValidator.cs @@ -1,33 +1,34 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VJobCandidateCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Validation/VJobCandidateUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Validation/VJobCandidateUpdateModelValidator.cs index 1bb8d44..60a4eea 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Validation/VJobCandidateUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidate/Validation/VJobCandidateUpdateModelValidator.cs @@ -1,33 +1,34 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VJobCandidateUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Mapping/VJobCandidateEducationProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Mapping/VJobCandidateEducationProfile.cs index af74c8a..5a668bf 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Mapping/VJobCandidateEducationProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Mapping/VJobCandidateEducationProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class VJobCandidateEducationProfile - : Profile +public partial class VJobCandidateEducationProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public VJobCandidateEducationProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public VJobCandidateEducationProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index bf000c3..9239fbc 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Models/VJobCandidateEducationCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Models/VJobCandidateEducationCreateModel.cs @@ -1,116 +1,119 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VJobCandidateEducationCreateModel - : IEntityCreateModel +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 + #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 index 3931a6c..52559f7 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Models/VJobCandidateEducationReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Models/VJobCandidateEducationReadModel.cs @@ -1,116 +1,119 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VJobCandidateEducationReadModel - : IEntityReadModel +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 + #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 index b59e5c8..6f8b83f 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Models/VJobCandidateEducationUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Models/VJobCandidateEducationUpdateModel.cs @@ -1,116 +1,119 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VJobCandidateEducationUpdateModel - : IEntityUpdateModel +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 + #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 index a8a71ff..cd0cbcd 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Validation/VJobCandidateEducationCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Validation/VJobCandidateEducationCreateModelValidator.cs @@ -1,32 +1,33 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VJobCandidateEducationCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Validation/VJobCandidateEducationUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Validation/VJobCandidateEducationUpdateModelValidator.cs index 4a109fc..6967bda 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Validation/VJobCandidateEducationUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEducation/Validation/VJobCandidateEducationUpdateModelValidator.cs @@ -1,32 +1,33 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VJobCandidateEducationUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Mapping/VJobCandidateEmploymentProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Mapping/VJobCandidateEmploymentProfile.cs index 6e708f9..1b6bfd3 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Mapping/VJobCandidateEmploymentProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Mapping/VJobCandidateEmploymentProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class VJobCandidateEmploymentProfile - : Profile +public partial class VJobCandidateEmploymentProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public VJobCandidateEmploymentProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public VJobCandidateEmploymentProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 41add54..7430eec 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentCreateModel.cs @@ -1,100 +1,103 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VJobCandidateEmploymentCreateModel - : IEntityCreateModel +public partial class VJobCandidateEmploymentCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'EmpLocCity'. - /// - /// - /// The property value for 'EmpLocCity'. - /// - public string? EmpLocCity { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentReadModel.cs index 59e6e07..4d084a7 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentReadModel.cs @@ -1,100 +1,103 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VJobCandidateEmploymentReadModel - : IEntityReadModel +public partial class VJobCandidateEmploymentReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'EmpLocCity'. - /// - /// - /// The property value for 'EmpLocCity'. - /// - public string? EmpLocCity { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentUpdateModel.cs index 6848510..0be1cb6 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Models/VJobCandidateEmploymentUpdateModel.cs @@ -1,100 +1,103 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VJobCandidateEmploymentUpdateModel - : IEntityUpdateModel +public partial class VJobCandidateEmploymentUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'EmpLocCity'. - /// - /// - /// The property value for 'EmpLocCity'. - /// - public string? EmpLocCity { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Validation/VJobCandidateEmploymentCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Validation/VJobCandidateEmploymentCreateModelValidator.cs index 9795043..81e45d9 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Validation/VJobCandidateEmploymentCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Validation/VJobCandidateEmploymentCreateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VJobCandidateEmploymentCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Validation/VJobCandidateEmploymentUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Validation/VJobCandidateEmploymentUpdateModelValidator.cs index 69285bb..8430ee4 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Validation/VJobCandidateEmploymentUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VJobCandidateEmployment/Validation/VJobCandidateEmploymentUpdateModelValidator.cs @@ -1,25 +1,26 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VJobCandidateEmploymentUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Mapping/VPersonDemographicsProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Mapping/VPersonDemographicsProfile.cs index a5b3370..7dd0d4e 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Mapping/VPersonDemographicsProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Mapping/VPersonDemographicsProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class VPersonDemographicsProfile - : Profile +public partial class VPersonDemographicsProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public VPersonDemographicsProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public VPersonDemographicsProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index b44e2d8..2901c5d 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Models/VPersonDemographicsCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Models/VPersonDemographicsCreateModel.cs @@ -1,116 +1,119 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VPersonDemographicsCreateModel - : IEntityCreateModel +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 + #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 index f409c0f..89d74fc 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Models/VPersonDemographicsReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Models/VPersonDemographicsReadModel.cs @@ -1,116 +1,119 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VPersonDemographicsReadModel - : IEntityReadModel +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 + #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 index 784087a..bf25f93 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Models/VPersonDemographicsUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Models/VPersonDemographicsUpdateModel.cs @@ -1,116 +1,119 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VPersonDemographicsUpdateModel - : IEntityUpdateModel +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 + #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 index 5945cb9..0f60b6d 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Validation/VPersonDemographicsCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Validation/VPersonDemographicsCreateModelValidator.cs @@ -1,28 +1,29 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VPersonDemographicsCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Validation/VPersonDemographicsUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Validation/VPersonDemographicsUpdateModelValidator.cs index 7d62f40..f3a8b7d 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Validation/VPersonDemographicsUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VPersonDemographics/Validation/VPersonDemographicsUpdateModelValidator.cs @@ -1,28 +1,29 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VPersonDemographicsUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Mapping/VProductAndDescriptionProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Mapping/VProductAndDescriptionProfile.cs index 328423c..dd78ffa 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Mapping/VProductAndDescriptionProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Mapping/VProductAndDescriptionProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class VProductAndDescriptionProfile - : Profile +public partial class VProductAndDescriptionProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public VProductAndDescriptionProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public VProductAndDescriptionProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index cdfb5e0..2c2e11b 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Models/VProductAndDescriptionCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Models/VProductAndDescriptionCreateModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VProductAndDescriptionCreateModel - : IEntityCreateModel +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 + #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 index d236a4c..3e35536 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Models/VProductAndDescriptionReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Models/VProductAndDescriptionReadModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VProductAndDescriptionReadModel - : IEntityReadModel +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 + #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 index 3eaefe5..c686443 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Models/VProductAndDescriptionUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Models/VProductAndDescriptionUpdateModel.cs @@ -1,52 +1,55 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VProductAndDescriptionUpdateModel - : IEntityUpdateModel +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 + #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 index 108c82c..d358877 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Validation/VProductAndDescriptionCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Validation/VProductAndDescriptionCreateModelValidator.cs @@ -1,31 +1,32 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VProductAndDescriptionCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Validation/VProductAndDescriptionUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Validation/VProductAndDescriptionUpdateModelValidator.cs index c92c997..5585186 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Validation/VProductAndDescriptionUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductAndDescription/Validation/VProductAndDescriptionUpdateModelValidator.cs @@ -1,31 +1,32 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VProductAndDescriptionUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Mapping/VProductModelCatalogDescriptionProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Mapping/VProductModelCatalogDescriptionProfile.cs index 992c5be..3c712e9 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Mapping/VProductModelCatalogDescriptionProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Mapping/VProductModelCatalogDescriptionProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class VProductModelCatalogDescriptionProfile - : Profile +public partial class VProductModelCatalogDescriptionProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public VProductModelCatalogDescriptionProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public VProductModelCatalogDescriptionProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index a5f8e5e..43a79e4 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Models/VProductModelCatalogDescriptionCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Models/VProductModelCatalogDescriptionCreateModel.cs @@ -1,212 +1,215 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VProductModelCatalogDescriptionCreateModel - : IEntityCreateModel +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 + #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 index 9c4a574..4ba28d8 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Models/VProductModelCatalogDescriptionReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Models/VProductModelCatalogDescriptionReadModel.cs @@ -1,212 +1,215 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VProductModelCatalogDescriptionReadModel - : IEntityReadModel +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 + #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 index e168e85..e125230 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Models/VProductModelCatalogDescriptionUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Models/VProductModelCatalogDescriptionUpdateModel.cs @@ -1,212 +1,215 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VProductModelCatalogDescriptionUpdateModel - : IEntityUpdateModel +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 + #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 index 17bbc17..3c77e5f 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Validation/VProductModelCatalogDescriptionCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Validation/VProductModelCatalogDescriptionCreateModelValidator.cs @@ -1,43 +1,44 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VProductModelCatalogDescriptionCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Validation/VProductModelCatalogDescriptionUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Validation/VProductModelCatalogDescriptionUpdateModelValidator.cs index e3c0f89..46d812f 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Validation/VProductModelCatalogDescriptionUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductModelCatalogDescription/Validation/VProductModelCatalogDescriptionUpdateModelValidator.cs @@ -1,43 +1,44 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VProductModelCatalogDescriptionUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Mapping/VProductModelInstructionsProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Mapping/VProductModelInstructionsProfile.cs index 1bcf098..01b22c0 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Mapping/VProductModelInstructionsProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Mapping/VProductModelInstructionsProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class VProductModelInstructionsProfile - : Profile +public partial class VProductModelInstructionsProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public VProductModelInstructionsProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public VProductModelInstructionsProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index af10ef7..277157a 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsCreateModel.cs @@ -1,100 +1,103 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VProductModelInstructionsCreateModel - : IEntityCreateModel +public partial class VProductModelInstructionsCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsReadModel.cs index f6d8a91..f5ae309 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsReadModel.cs @@ -1,100 +1,103 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VProductModelInstructionsReadModel - : IEntityReadModel +public partial class VProductModelInstructionsReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsUpdateModel.cs index f993b72..c812ea4 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Models/VProductModelInstructionsUpdateModel.cs @@ -1,100 +1,103 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VProductModelInstructionsUpdateModel - : IEntityUpdateModel +public partial class VProductModelInstructionsUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Validation/VProductModelInstructionsCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Validation/VProductModelInstructionsCreateModelValidator.cs index 5cace11..4db2dd3 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Validation/VProductModelInstructionsCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Validation/VProductModelInstructionsCreateModelValidator.cs @@ -1,26 +1,27 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VProductModelInstructionsCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Validation/VProductModelInstructionsUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Validation/VProductModelInstructionsUpdateModelValidator.cs index 1a84da1..5ffa412 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Validation/VProductModelInstructionsUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VProductModelInstructions/Validation/VProductModelInstructionsUpdateModelValidator.cs @@ -1,26 +1,27 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VProductModelInstructionsUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Mapping/VSalesPersonProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Mapping/VSalesPersonProfile.cs index 054c5ef..043c611 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Mapping/VSalesPersonProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Mapping/VSalesPersonProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class VSalesPersonProfile - : Profile +public partial class VSalesPersonProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public VSalesPersonProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public VSalesPersonProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index e7e19b5..e87c210 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Models/VSalesPersonCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Models/VSalesPersonCreateModel.cs @@ -1,188 +1,191 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VSalesPersonCreateModel - : IEntityCreateModel +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 + #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 index ac11e35..3c65a70 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Models/VSalesPersonReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Models/VSalesPersonReadModel.cs @@ -1,188 +1,191 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VSalesPersonReadModel - : IEntityReadModel +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 + #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 index 3edab88..bd8d55b 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Models/VSalesPersonUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Models/VSalesPersonUpdateModel.cs @@ -1,188 +1,191 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VSalesPersonUpdateModel - : IEntityUpdateModel +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 + #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 index d0871c6..83a40cd 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Validation/VSalesPersonCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Validation/VSalesPersonCreateModelValidator.cs @@ -1,48 +1,49 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VSalesPersonCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Validation/VSalesPersonUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Validation/VSalesPersonUpdateModelValidator.cs index afa7fce..6708e6b 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Validation/VSalesPersonUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VSalesPerson/Validation/VSalesPersonUpdateModelValidator.cs @@ -1,48 +1,49 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VSalesPersonUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Mapping/VSalesPersonSalesByFiscalYearsProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Mapping/VSalesPersonSalesByFiscalYearsProfile.cs index c5dd838..f61f2e2 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Mapping/VSalesPersonSalesByFiscalYearsProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Mapping/VSalesPersonSalesByFiscalYearsProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class VSalesPersonSalesByFiscalYearsProfile - : Profile +public partial class VSalesPersonSalesByFiscalYearsProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public VSalesPersonSalesByFiscalYearsProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public VSalesPersonSalesByFiscalYearsProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 94330d0..c0f26c9 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsCreateModel.cs @@ -1,68 +1,71 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VSalesPersonSalesByFiscalYearsCreateModel - : IEntityCreateModel +public partial class VSalesPersonSalesByFiscalYearsCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'Number2004'. - /// - /// - /// The property value for 'Number2004'. - /// - public decimal? Number2004 { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsReadModel.cs index 90ba064..d353c28 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsReadModel.cs @@ -1,68 +1,71 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VSalesPersonSalesByFiscalYearsReadModel - : IEntityReadModel +public partial class VSalesPersonSalesByFiscalYearsReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'Number2004'. - /// - /// - /// The property value for 'Number2004'. - /// - public decimal? Number2004 { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsUpdateModel.cs index 78848d7..1d03fdd 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Models/VSalesPersonSalesByFiscalYearsUpdateModel.cs @@ -1,68 +1,71 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VSalesPersonSalesByFiscalYearsUpdateModel - : IEntityUpdateModel +public partial class VSalesPersonSalesByFiscalYearsUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'Number2004'. - /// - /// - /// The property value for 'Number2004'. - /// - public decimal? Number2004 { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Validation/VSalesPersonSalesByFiscalYearsCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Validation/VSalesPersonSalesByFiscalYearsCreateModelValidator.cs index 1db0872..d0dc71f 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Validation/VSalesPersonSalesByFiscalYearsCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Validation/VSalesPersonSalesByFiscalYearsCreateModelValidator.cs @@ -1,28 +1,29 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VSalesPersonSalesByFiscalYearsCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Validation/VSalesPersonSalesByFiscalYearsUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Validation/VSalesPersonSalesByFiscalYearsUpdateModelValidator.cs index f8eea3b..1b62de3 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Validation/VSalesPersonSalesByFiscalYearsUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VSalesPersonSalesByFiscalYears/Validation/VSalesPersonSalesByFiscalYearsUpdateModelValidator.cs @@ -1,28 +1,29 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VSalesPersonSalesByFiscalYearsUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Mapping/VStateProvinceCountryRegionProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Mapping/VStateProvinceCountryRegionProfile.cs index 1a13eeb..e0a540d 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Mapping/VStateProvinceCountryRegionProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Mapping/VStateProvinceCountryRegionProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class VStateProvinceCountryRegionProfile - : Profile +public partial class VStateProvinceCountryRegionProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public VStateProvinceCountryRegionProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public VStateProvinceCountryRegionProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 3703ddf..a09b319 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionCreateModel.cs @@ -1,68 +1,71 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VStateProvinceCountryRegionCreateModel - : IEntityCreateModel +public partial class VStateProvinceCountryRegionCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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!; - /// - /// Gets or sets the property value for 'CountryRegionName'. - /// - /// - /// The property value for 'CountryRegionName'. - /// - public string CountryRegionName { get; set; } = null!; + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionReadModel.cs index e0e40f4..4880c33 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionReadModel.cs @@ -1,68 +1,71 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VStateProvinceCountryRegionReadModel - : IEntityReadModel +public partial class VStateProvinceCountryRegionReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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!; - /// - /// Gets or sets the property value for 'CountryRegionName'. - /// - /// - /// The property value for 'CountryRegionName'. - /// - public string CountryRegionName { get; set; } = null!; + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionUpdateModel.cs index 7a313d6..1cf72bd 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Models/VStateProvinceCountryRegionUpdateModel.cs @@ -1,68 +1,71 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VStateProvinceCountryRegionUpdateModel - : IEntityUpdateModel +public partial class VStateProvinceCountryRegionUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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!; - /// - /// Gets or sets the property value for 'CountryRegionName'. - /// - /// - /// The property value for 'CountryRegionName'. - /// - public string CountryRegionName { get; set; } = null!; + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Validation/VStateProvinceCountryRegionCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Validation/VStateProvinceCountryRegionCreateModelValidator.cs index ed5a2f8..f2da03f 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Validation/VStateProvinceCountryRegionCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Validation/VStateProvinceCountryRegionCreateModelValidator.cs @@ -1,31 +1,32 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VStateProvinceCountryRegionCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Validation/VStateProvinceCountryRegionUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Validation/VStateProvinceCountryRegionUpdateModelValidator.cs index 77957a6..8650621 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Validation/VStateProvinceCountryRegionUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VStateProvinceCountryRegion/Validation/VStateProvinceCountryRegionUpdateModelValidator.cs @@ -1,31 +1,32 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VStateProvinceCountryRegionUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Mapping/VStoreWithAddressesProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Mapping/VStoreWithAddressesProfile.cs index fa8b415..7d6bdcc 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Mapping/VStoreWithAddressesProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Mapping/VStoreWithAddressesProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class VStoreWithAddressesProfile - : Profile +public partial class VStoreWithAddressesProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public VStoreWithAddressesProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public VStoreWithAddressesProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index fb5ba2b..0444d15 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesCreateModel.cs @@ -1,84 +1,87 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VStoreWithAddressesCreateModel - : IEntityCreateModel +public partial class VStoreWithAddressesCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 'CountryRegionName'. - /// - /// - /// The property value for 'CountryRegionName'. - /// - public string CountryRegionName { get; set; } = null!; + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesReadModel.cs index e1287bc..ebf19ed 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesReadModel.cs @@ -1,84 +1,87 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VStoreWithAddressesReadModel - : IEntityReadModel +public partial class VStoreWithAddressesReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 'CountryRegionName'. - /// - /// - /// The property value for 'CountryRegionName'. - /// - public string CountryRegionName { get; set; } = null!; + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesUpdateModel.cs index 3fd9a40..50d2b24 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Models/VStoreWithAddressesUpdateModel.cs @@ -1,84 +1,87 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VStoreWithAddressesUpdateModel - : IEntityUpdateModel +public partial class VStoreWithAddressesUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 'CountryRegionName'. - /// - /// - /// The property value for 'CountryRegionName'. - /// - public string CountryRegionName { get; set; } = null!; + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Validation/VStoreWithAddressesCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Validation/VStoreWithAddressesCreateModelValidator.cs index 104a959..31cd635 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Validation/VStoreWithAddressesCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Validation/VStoreWithAddressesCreateModelValidator.cs @@ -1,38 +1,39 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VStoreWithAddressesCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Validation/VStoreWithAddressesUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Validation/VStoreWithAddressesUpdateModelValidator.cs index 495c380..3b30215 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Validation/VStoreWithAddressesUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithAddresses/Validation/VStoreWithAddressesUpdateModelValidator.cs @@ -1,38 +1,39 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VStoreWithAddressesUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Mapping/VStoreWithContactsProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Mapping/VStoreWithContactsProfile.cs index 3ecb971..9228f03 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Mapping/VStoreWithContactsProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Mapping/VStoreWithContactsProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class VStoreWithContactsProfile - : Profile +public partial class VStoreWithContactsProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public VStoreWithContactsProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public VStoreWithContactsProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 6502304..72d5169 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsCreateModel.cs @@ -1,108 +1,111 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VStoreWithContactsCreateModel - : IEntityCreateModel +public partial class VStoreWithContactsCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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 'EmailPromotion'. - /// - /// - /// The property value for 'EmailPromotion'. - /// - public int EmailPromotion { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsReadModel.cs index 54a17dc..87d7d34 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsReadModel.cs @@ -1,108 +1,111 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VStoreWithContactsReadModel - : IEntityReadModel +public partial class VStoreWithContactsReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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 'EmailPromotion'. - /// - /// - /// The property value for 'EmailPromotion'. - /// - public int EmailPromotion { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsUpdateModel.cs index 25b5a5f..7e8cafb 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Models/VStoreWithContactsUpdateModel.cs @@ -1,108 +1,111 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VStoreWithContactsUpdateModel - : IEntityUpdateModel +public partial class VStoreWithContactsUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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 'EmailPromotion'. - /// - /// - /// The property value for 'EmailPromotion'. - /// - public int EmailPromotion { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Validation/VStoreWithContactsCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Validation/VStoreWithContactsCreateModelValidator.cs index 3c51e3a..819fd3b 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Validation/VStoreWithContactsCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Validation/VStoreWithContactsCreateModelValidator.cs @@ -1,37 +1,38 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VStoreWithContactsCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Validation/VStoreWithContactsUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Validation/VStoreWithContactsUpdateModelValidator.cs index f6e7a18..1f4c4d9 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Validation/VStoreWithContactsUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithContacts/Validation/VStoreWithContactsUpdateModelValidator.cs @@ -1,37 +1,38 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VStoreWithContactsUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Mapping/VStoreWithDemographicsProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Mapping/VStoreWithDemographicsProfile.cs index bb36ab9..c9d25d2 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Mapping/VStoreWithDemographicsProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Mapping/VStoreWithDemographicsProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class VStoreWithDemographicsProfile - : Profile +public partial class VStoreWithDemographicsProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public VStoreWithDemographicsProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public VStoreWithDemographicsProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index b2e1e0e..cc6de8b 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsCreateModel.cs @@ -1,108 +1,111 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VStoreWithDemographicsCreateModel - : IEntityCreateModel +public partial class VStoreWithDemographicsCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'NumberEmployees'. - /// - /// - /// The property value for 'NumberEmployees'. - /// - public int? NumberEmployees { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsReadModel.cs index 6da1cb0..61d1d06 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsReadModel.cs @@ -1,108 +1,111 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VStoreWithDemographicsReadModel - : IEntityReadModel +public partial class VStoreWithDemographicsReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'NumberEmployees'. - /// - /// - /// The property value for 'NumberEmployees'. - /// - public int? NumberEmployees { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsUpdateModel.cs index d278b25..bc5cafe 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Models/VStoreWithDemographicsUpdateModel.cs @@ -1,108 +1,111 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VStoreWithDemographicsUpdateModel - : IEntityUpdateModel +public partial class VStoreWithDemographicsUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'NumberEmployees'. - /// - /// - /// The property value for 'NumberEmployees'. - /// - public int? NumberEmployees { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Validation/VStoreWithDemographicsCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Validation/VStoreWithDemographicsCreateModelValidator.cs index ec0c070..da339b5 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Validation/VStoreWithDemographicsCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Validation/VStoreWithDemographicsCreateModelValidator.cs @@ -1,30 +1,31 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VStoreWithDemographicsCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Validation/VStoreWithDemographicsUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Validation/VStoreWithDemographicsUpdateModelValidator.cs index 33b3a41..f4fad26 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Validation/VStoreWithDemographicsUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VStoreWithDemographics/Validation/VStoreWithDemographicsUpdateModelValidator.cs @@ -1,30 +1,31 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VStoreWithDemographicsUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Mapping/VVendorWithAddressesProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Mapping/VVendorWithAddressesProfile.cs index baeeda3..299d87a 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Mapping/VVendorWithAddressesProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Mapping/VVendorWithAddressesProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class VVendorWithAddressesProfile - : Profile +public partial class VVendorWithAddressesProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public VVendorWithAddressesProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public VVendorWithAddressesProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 2b99cb7..122639e 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesCreateModel.cs @@ -1,84 +1,87 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VVendorWithAddressesCreateModel - : IEntityCreateModel +public partial class VVendorWithAddressesCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 'CountryRegionName'. - /// - /// - /// The property value for 'CountryRegionName'. - /// - public string CountryRegionName { get; set; } = null!; + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesReadModel.cs index 04fcd97..0f66d75 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesReadModel.cs @@ -1,84 +1,87 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VVendorWithAddressesReadModel - : IEntityReadModel +public partial class VVendorWithAddressesReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 'CountryRegionName'. - /// - /// - /// The property value for 'CountryRegionName'. - /// - public string CountryRegionName { get; set; } = null!; + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesUpdateModel.cs index ac75415..fcfeb98 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Models/VVendorWithAddressesUpdateModel.cs @@ -1,84 +1,87 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VVendorWithAddressesUpdateModel - : IEntityUpdateModel +public partial class VVendorWithAddressesUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 'CountryRegionName'. - /// - /// - /// The property value for 'CountryRegionName'. - /// - public string CountryRegionName { get; set; } = null!; + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Validation/VVendorWithAddressesCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Validation/VVendorWithAddressesCreateModelValidator.cs index 5f88fea..de0bf1f 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Validation/VVendorWithAddressesCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Validation/VVendorWithAddressesCreateModelValidator.cs @@ -1,38 +1,39 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VVendorWithAddressesCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Validation/VVendorWithAddressesUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Validation/VVendorWithAddressesUpdateModelValidator.cs index 260dea4..2cfb5be 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Validation/VVendorWithAddressesUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithAddresses/Validation/VVendorWithAddressesUpdateModelValidator.cs @@ -1,38 +1,39 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VVendorWithAddressesUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Mapping/VVendorWithContactsProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Mapping/VVendorWithContactsProfile.cs index bed9a9e..5811dad 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Mapping/VVendorWithContactsProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Mapping/VVendorWithContactsProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class VVendorWithContactsProfile - : Profile +public partial class VVendorWithContactsProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public VVendorWithContactsProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public VVendorWithContactsProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 3029875..d34249b 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsCreateModel.cs @@ -1,108 +1,111 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VVendorWithContactsCreateModel - : IEntityCreateModel +public partial class VVendorWithContactsCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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 'EmailPromotion'. - /// - /// - /// The property value for 'EmailPromotion'. - /// - public int EmailPromotion { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsReadModel.cs index 937c0c9..4ad5fd9 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsReadModel.cs @@ -1,108 +1,111 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VVendorWithContactsReadModel - : IEntityReadModel +public partial class VVendorWithContactsReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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 'EmailPromotion'. - /// - /// - /// The property value for 'EmailPromotion'. - /// - public int EmailPromotion { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsUpdateModel.cs index f145292..52bb891 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Models/VVendorWithContactsUpdateModel.cs @@ -1,108 +1,111 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VVendorWithContactsUpdateModel - : IEntityUpdateModel +public partial class VVendorWithContactsUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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 'EmailPromotion'. - /// - /// - /// The property value for 'EmailPromotion'. - /// - public int EmailPromotion { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Validation/VVendorWithContactsCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Validation/VVendorWithContactsCreateModelValidator.cs index 8bddaaa..9767ba7 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Validation/VVendorWithContactsCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Validation/VVendorWithContactsCreateModelValidator.cs @@ -1,37 +1,38 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VVendorWithContactsCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Validation/VVendorWithContactsUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Validation/VVendorWithContactsUpdateModelValidator.cs index 9e4da8c..eaba23c 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Validation/VVendorWithContactsUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/VVendorWithContacts/Validation/VVendorWithContactsUpdateModelValidator.cs @@ -1,37 +1,38 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VVendorWithContactsUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Vendor/Mapping/VendorProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/Vendor/Mapping/VendorProfile.cs index 550ba38..acd88bb 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Vendor/Mapping/VendorProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Vendor/Mapping/VendorProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class VendorProfile - : Profile +public partial class VendorProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public VendorProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public VendorProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index 8e42a44..630ca5f 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorCreateModel.cs @@ -1,76 +1,79 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VendorCreateModel - : IEntityCreateModel +public partial class VendorCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorReadModel.cs index 60eb3b9..52e5b3e 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorReadModel.cs @@ -1,76 +1,79 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VendorReadModel - : IEntityReadModel +public partial class VendorReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorUpdateModel.cs index cc43300..08cb1ee 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Vendor/Models/VendorUpdateModel.cs @@ -1,76 +1,79 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class VendorUpdateModel - : IEntityUpdateModel +public partial class VendorUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Vendor/Validation/VendorCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Vendor/Validation/VendorCreateModelValidator.cs index a944cc1..7aeeb36 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Vendor/Validation/VendorCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Vendor/Validation/VendorCreateModelValidator.cs @@ -1,28 +1,29 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VendorCreateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/Vendor/Validation/VendorUpdateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/Vendor/Validation/VendorUpdateModelValidator.cs index 65cd376..b604255 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/Vendor/Validation/VendorUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/Vendor/Validation/VendorUpdateModelValidator.cs @@ -1,28 +1,29 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class VendorUpdateModelValidator - : AbstractValidator +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); + /// + /// 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 + } - #endregion - } } diff --git a/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Mapping/WorkOrderProfile.cs b/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Mapping/WorkOrderProfile.cs index acbf6f4..f215e40 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Mapping/WorkOrderProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Mapping/WorkOrderProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class WorkOrderProfile - : Profile +public partial class WorkOrderProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public WorkOrderProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public WorkOrderProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index cfdebbc..ca90b2a 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderCreateModel.cs @@ -1,92 +1,95 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class WorkOrderCreateModel - : IEntityCreateModel +public partial class WorkOrderCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderReadModel.cs index d1a9ff2..4ab4ecf 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderReadModel.cs @@ -1,92 +1,95 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class WorkOrderReadModel - : IEntityReadModel +public partial class WorkOrderReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderUpdateModel.cs index 389ea7b..25dbf18 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Models/WorkOrderUpdateModel.cs @@ -1,92 +1,95 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class WorkOrderUpdateModel - : IEntityUpdateModel +public partial class WorkOrderUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Validation/WorkOrderCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Validation/WorkOrderCreateModelValidator.cs index ba19304..b3109c3 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Validation/WorkOrderCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Validation/WorkOrderCreateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class WorkOrderCreateModelValidator - : AbstractValidator +public partial class WorkOrderCreateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public WorkOrderCreateModelValidator() - { - } + /// + /// 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 index cbc3e33..82ca764 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Validation/WorkOrderUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/WorkOrder/Validation/WorkOrderUpdateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class WorkOrderUpdateModelValidator - : AbstractValidator +public partial class WorkOrderUpdateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public WorkOrderUpdateModelValidator() - { - } + /// + /// 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 index 5c019fe..d05ca3d 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Mapping/WorkOrderRoutingProfile.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Mapping/WorkOrderRoutingProfile.cs @@ -1,29 +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 . +/// Mapper class for entity . /// -public class WorkOrderRoutingProfile - : Profile +public partial class WorkOrderRoutingProfile + : Profile { - /// - /// Initializes a new instance of the class. - /// - public WorkOrderRoutingProfile() - { - CreateMap(); + /// + /// Initializes a new instance of the class. + /// + public WorkOrderRoutingProfile() + { + CreateMap(); + + CreateMap(); + + CreateMap(); - CreateMap(); + CreateMap(); - 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 index b1ee3f2..76e5cf7 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingCreateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingCreateModel.cs @@ -1,108 +1,111 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class WorkOrderRoutingCreateModel - : IEntityCreateModel +public partial class WorkOrderRoutingCreateModel + : IEntityCreateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingReadModel.cs b/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingReadModel.cs index eab9d49..32405b8 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingReadModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingReadModel.cs @@ -1,108 +1,111 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class WorkOrderRoutingReadModel - : IEntityReadModel +public partial class WorkOrderRoutingReadModel + : IEntityReadModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingUpdateModel.cs b/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingUpdateModel.cs index e0bcca2..97ba65a 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingUpdateModel.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Models/WorkOrderRoutingUpdateModel.cs @@ -1,108 +1,111 @@ +using System; +using System.Collections.Generic; + namespace Platy.AdventureWorks.Repository.Domain.Models; /// -/// View Model class +/// View Model class /// -public class WorkOrderRoutingUpdateModel - : IEntityUpdateModel +public partial class WorkOrderRoutingUpdateModel + : IEntityUpdateModel { - #region Generated Properties + #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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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 '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; } - /// - /// Gets or sets the property value for 'ModifiedDate'. - /// - /// - /// The property value for 'ModifiedDate'. - /// - public DateTime ModifiedDate { get; set; } + #endregion - #endregion } diff --git a/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Validation/WorkOrderRoutingCreateModelValidator.cs b/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Validation/WorkOrderRoutingCreateModelValidator.cs index 0840cb2..621ab66 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Validation/WorkOrderRoutingCreateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Validation/WorkOrderRoutingCreateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class WorkOrderRoutingCreateModelValidator - : AbstractValidator +public partial class WorkOrderRoutingCreateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public WorkOrderRoutingCreateModelValidator() - { - } + /// + /// 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 index dfd3f7d..f125c09 100644 --- a/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Validation/WorkOrderRoutingUpdateModelValidator.cs +++ b/src/Platy.AdventureWorks.Repository/Domain/WorkOrderRouting/Validation/WorkOrderRoutingUpdateModelValidator.cs @@ -1,19 +1,24 @@ +using System; + using FluentValidation; using Platy.AdventureWorks.Repository.Domain.Models; namespace Platy.AdventureWorks.Repository.Domain.Validation; /// -/// Validator class for . +/// Validator class for . /// [RegisterSingleton>] -public class WorkOrderRoutingUpdateModelValidator - : AbstractValidator +public partial class WorkOrderRoutingUpdateModelValidator + : AbstractValidator { - /// - /// Initializes a new instance of the class. - /// - public WorkOrderRoutingUpdateModelValidator() - { - } + /// + /// 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 index 939ac2e..27ab497 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/AddressCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/AddressCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'Address'. /// public class AddressCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/AddressTypeCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/AddressTypeCreatedEvent.cs index 01539e3..00aba68 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/AddressTypeCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/AddressTypeCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'AddressType'. /// public class AddressTypeCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/BillOfMaterialsCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/BillOfMaterialsCreatedEvent.cs index ac74049..52bad4a 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/BillOfMaterialsCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/BillOfMaterialsCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'BillOfMaterials'. /// public class BillOfMaterialsCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/BusinessEntityCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/BusinessEntityCreatedEvent.cs index e4fda1e..1121cc4 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/BusinessEntityCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/BusinessEntityCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'BusinessEntity'. /// public class BusinessEntityCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ContactTypeCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ContactTypeCreatedEvent.cs index 6576722..f3c03fc 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/ContactTypeCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/ContactTypeCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'ContactType'. /// public class ContactTypeCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/CreditCardCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/CreditCardCreatedEvent.cs index 0629181..d65246a 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/CreditCardCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/CreditCardCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'CreditCard'. /// public class CreditCardCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/CurrencyRateCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/CurrencyRateCreatedEvent.cs index 54f8024..ea29b82 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/CurrencyRateCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/CurrencyRateCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'CurrencyRate'. /// public class CurrencyRateCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/CustomerCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/CustomerCreatedEvent.cs index 9a67fb5..541c7c1 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/CustomerCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/CustomerCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'Customer'. /// public class CustomerCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/DepartmentCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/DepartmentCreatedEvent.cs index bed7644..618fe63 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/DepartmentCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/DepartmentCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'Department'. /// public class DepartmentCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/EmailAddressCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/EmailAddressCreatedEvent.cs index 96f63b3..1cf84f1 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/EmailAddressCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/EmailAddressCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'EmailAddress'. /// public class EmailAddressCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/IllustrationCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/IllustrationCreatedEvent.cs index 81c898c..95921a5 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/IllustrationCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/IllustrationCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'Illustration'. /// public class IllustrationCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/JobCandidateCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/JobCandidateCreatedEvent.cs index 4291c91..16795ad 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/JobCandidateCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/JobCandidateCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'JobCandidate'. /// public class JobCandidateCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/LocationCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/LocationCreatedEvent.cs index 2f1d80d..01e6ff3 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/LocationCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/LocationCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'Location'. /// public class LocationCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/PhoneNumberTypeCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/PhoneNumberTypeCreatedEvent.cs index dbe85f9..29d0690 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/PhoneNumberTypeCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/PhoneNumberTypeCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'PhoneNumberType'. /// public class PhoneNumberTypeCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ProductCategoryCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ProductCategoryCreatedEvent.cs index a1cc9e3..eae503c 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/ProductCategoryCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/ProductCategoryCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'ProductCategory'. /// public class ProductCategoryCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ProductCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ProductCreatedEvent.cs index 44b9d7b..4280d45 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/ProductCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/ProductCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'Product'. /// public class ProductCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ProductDescriptionCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ProductDescriptionCreatedEvent.cs index c4a56cc..121df1d 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/ProductDescriptionCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/ProductDescriptionCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'ProductDescription'. /// public class ProductDescriptionCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ProductModelCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ProductModelCreatedEvent.cs index e14f977..5773547 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/ProductModelCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/ProductModelCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'ProductModel'. /// public class ProductModelCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ProductPhotoCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ProductPhotoCreatedEvent.cs index 0628649..b324579 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/ProductPhotoCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/ProductPhotoCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'ProductPhoto'. /// public class ProductPhotoCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ProductReviewCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ProductReviewCreatedEvent.cs index e31a0c8..4d1b54f 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/ProductReviewCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/ProductReviewCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'ProductReview'. /// public class ProductReviewCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ProductSubcategoryCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ProductSubcategoryCreatedEvent.cs index 3f1e284..5333ce7 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/ProductSubcategoryCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/ProductSubcategoryCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'ProductSubcategory'. /// public class ProductSubcategoryCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/PurchaseOrderDetailCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/PurchaseOrderDetailCreatedEvent.cs index d1a6a17..3607d50 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/PurchaseOrderDetailCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/PurchaseOrderDetailCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'PurchaseOrderDetail'. /// public class PurchaseOrderDetailCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/PurchaseOrderHeaderCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/PurchaseOrderHeaderCreatedEvent.cs index 1f75fd8..799d767 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/PurchaseOrderHeaderCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/PurchaseOrderHeaderCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'PurchaseOrderHeader'. /// public class PurchaseOrderHeaderCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/SalesOrderDetailCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/SalesOrderDetailCreatedEvent.cs index f23a758..6b5f424 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/SalesOrderDetailCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/SalesOrderDetailCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'SalesOrderDetail'. /// public class SalesOrderDetailCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/SalesOrderHeaderCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/SalesOrderHeaderCreatedEvent.cs index 9cd0bc9..63a7f2b 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/SalesOrderHeaderCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/SalesOrderHeaderCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'SalesOrderHeader'. /// public class SalesOrderHeaderCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/SalesReasonCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/SalesReasonCreatedEvent.cs index ba18a84..1c9bc9c 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/SalesReasonCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/SalesReasonCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'SalesReason'. /// public class SalesReasonCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/SalesTaxRateCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/SalesTaxRateCreatedEvent.cs index 7de94ed..b1a9fc5 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/SalesTaxRateCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/SalesTaxRateCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'SalesTaxRate'. /// public class SalesTaxRateCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/SalesTerritoryCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/SalesTerritoryCreatedEvent.cs index 126b896..2c9ab7e 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/SalesTerritoryCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/SalesTerritoryCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'SalesTerritory'. /// public class SalesTerritoryCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ScrapReasonCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ScrapReasonCreatedEvent.cs index d7831a1..bdda323 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/ScrapReasonCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/ScrapReasonCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'ScrapReason'. /// public class ScrapReasonCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ShiftCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ShiftCreatedEvent.cs index 80bf685..f554fb1 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/ShiftCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/ShiftCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'Shift'. /// public class ShiftCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ShipMethodCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ShipMethodCreatedEvent.cs index 48c4bda..44287d5 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/ShipMethodCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/ShipMethodCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'ShipMethod'. /// public class ShipMethodCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/ShoppingCartItemCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/ShoppingCartItemCreatedEvent.cs index 219f71f..6593c65 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/ShoppingCartItemCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/ShoppingCartItemCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'ShoppingCartItem'. /// public class ShoppingCartItemCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/SpecialOfferCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/SpecialOfferCreatedEvent.cs index bc2a28f..82d94d3 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/SpecialOfferCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/SpecialOfferCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'SpecialOffer'. /// public class SpecialOfferCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/StateProvinceCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/StateProvinceCreatedEvent.cs index c942856..ba72941 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/StateProvinceCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/StateProvinceCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'StateProvince'. /// public class StateProvinceCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/TransactionHistoryCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/TransactionHistoryCreatedEvent.cs index c115544..999ee3d 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/TransactionHistoryCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/TransactionHistoryCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'TransactionHistory'. /// public class TransactionHistoryCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateCreatedEvent.cs index bbdbcf5..62ce512 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'vJobCandidate'. /// public class VJobCandidateCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateEducationCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateEducationCreatedEvent.cs index 0e5d13e..0888cdb 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateEducationCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateEducationCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'vJobCandidateEducation'. /// public class VJobCandidateEducationCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateEmploymentCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateEmploymentCreatedEvent.cs index 0781389..311cd7e 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateEmploymentCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/VJobCandidateEmploymentCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'vJobCandidateEmployment'. /// public class VJobCandidateEmploymentCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/VProductModelCatalogDescriptionCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/VProductModelCatalogDescriptionCreatedEvent.cs index f540074..05712fb 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/VProductModelCatalogDescriptionCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/VProductModelCatalogDescriptionCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'vProductModelCatalogDescription'. /// public class VProductModelCatalogDescriptionCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/VProductModelInstructionsCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/VProductModelInstructionsCreatedEvent.cs index 415d98b..4ef86ed 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/VProductModelInstructionsCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/VProductModelInstructionsCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'vProductModelInstructions'. /// public class VProductModelInstructionsCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Create/WorkOrderCreatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Create/WorkOrderCreatedEvent.cs index a2a59c1..f36d75d 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Create/WorkOrderCreatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Create/WorkOrderCreatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'WorkOrder'. /// public class WorkOrderCreatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/AddressDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/AddressDeletedEvent.cs index f9fc532..af9e34b 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/AddressDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/AddressDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'Address'. /// public class AddressDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/AddressTypeDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/AddressTypeDeletedEvent.cs index b222432..f1a354b 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/AddressTypeDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/AddressTypeDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'AddressType'. /// public class AddressTypeDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/BillOfMaterialsDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/BillOfMaterialsDeletedEvent.cs index 09a21a2..43dedc3 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/BillOfMaterialsDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/BillOfMaterialsDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'BillOfMaterials'. /// public class BillOfMaterialsDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/BusinessEntityDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/BusinessEntityDeletedEvent.cs index 7acba94..015d86b 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/BusinessEntityDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/BusinessEntityDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'BusinessEntity'. /// public class BusinessEntityDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ContactTypeDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ContactTypeDeletedEvent.cs index 5fee5e4..e3478ce 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/ContactTypeDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/ContactTypeDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'ContactType'. /// public class ContactTypeDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/CreditCardDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/CreditCardDeletedEvent.cs index 6e2bd61..515bc42 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/CreditCardDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/CreditCardDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'CreditCard'. /// public class CreditCardDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/CurrencyRateDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/CurrencyRateDeletedEvent.cs index 12919f5..b2d9b19 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/CurrencyRateDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/CurrencyRateDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'CurrencyRate'. /// public class CurrencyRateDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/CustomerDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/CustomerDeletedEvent.cs index 2be4fdf..d44111e 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/CustomerDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/CustomerDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'Customer'. /// public class CustomerDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/DepartmentDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/DepartmentDeletedEvent.cs index 8d5d7ee..c1e3cc5 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/DepartmentDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/DepartmentDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'Department'. /// public class DepartmentDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/EmailAddressDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/EmailAddressDeletedEvent.cs index a9360f3..beb299c 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/EmailAddressDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/EmailAddressDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'EmailAddress'. /// public class EmailAddressDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/IllustrationDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/IllustrationDeletedEvent.cs index 8ed761f..18aba20 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/IllustrationDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/IllustrationDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'Illustration'. /// public class IllustrationDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/JobCandidateDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/JobCandidateDeletedEvent.cs index dfeba49..c28e4d9 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/JobCandidateDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/JobCandidateDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'JobCandidate'. /// public class JobCandidateDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/LocationDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/LocationDeletedEvent.cs index 7954644..9df4ea5 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/LocationDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/LocationDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'Location'. /// public class LocationDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/PhoneNumberTypeDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/PhoneNumberTypeDeletedEvent.cs index 80e8f14..b1e89ef 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/PhoneNumberTypeDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/PhoneNumberTypeDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'PhoneNumberType'. /// public class PhoneNumberTypeDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductCategoryDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductCategoryDeletedEvent.cs index 3874803..fa9d4e9 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductCategoryDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductCategoryDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'ProductCategory'. /// public class ProductCategoryDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductDeletedEvent.cs index 3e836f6..8d3d1df 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'Product'. /// public class ProductDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductDescriptionDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductDescriptionDeletedEvent.cs index 90cf8e3..4ddd6c4 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductDescriptionDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductDescriptionDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'ProductDescription'. /// public class ProductDescriptionDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductModelDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductModelDeletedEvent.cs index 564294a..664378f 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductModelDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductModelDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'ProductModel'. /// public class ProductModelDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductPhotoDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductPhotoDeletedEvent.cs index 38c5f88..fbb8464 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductPhotoDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductPhotoDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'ProductPhoto'. /// public class ProductPhotoDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductReviewDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductReviewDeletedEvent.cs index f0469a6..940e232 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductReviewDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductReviewDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'ProductReview'. /// public class ProductReviewDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductSubcategoryDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductSubcategoryDeletedEvent.cs index 3fc4c70..c17cb88 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/ProductSubcategoryDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/ProductSubcategoryDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'ProductSubcategory'. /// public class ProductSubcategoryDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/PurchaseOrderDetailDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/PurchaseOrderDetailDeletedEvent.cs index f33512a..9a20236 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/PurchaseOrderDetailDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/PurchaseOrderDetailDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'PurchaseOrderDetail'. /// public class PurchaseOrderDetailDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/PurchaseOrderHeaderDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/PurchaseOrderHeaderDeletedEvent.cs index 3ee57fc..d2bc493 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/PurchaseOrderHeaderDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/PurchaseOrderHeaderDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'PurchaseOrderHeader'. /// public class PurchaseOrderHeaderDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/SalesOrderDetailDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/SalesOrderDetailDeletedEvent.cs index 704e3d4..8d8f0aa 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/SalesOrderDetailDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/SalesOrderDetailDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'SalesOrderDetail'. /// public class SalesOrderDetailDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/SalesOrderHeaderDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/SalesOrderHeaderDeletedEvent.cs index 0448a18..0980593 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/SalesOrderHeaderDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/SalesOrderHeaderDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'SalesOrderHeader'. /// public class SalesOrderHeaderDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/SalesReasonDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/SalesReasonDeletedEvent.cs index 1fe5e02..01ab569 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/SalesReasonDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/SalesReasonDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'SalesReason'. /// public class SalesReasonDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/SalesTaxRateDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/SalesTaxRateDeletedEvent.cs index 926ee76..597fcbf 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/SalesTaxRateDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/SalesTaxRateDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'SalesTaxRate'. /// public class SalesTaxRateDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/SalesTerritoryDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/SalesTerritoryDeletedEvent.cs index f03f2bd..fb07bc5 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/SalesTerritoryDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/SalesTerritoryDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'SalesTerritory'. /// public class SalesTerritoryDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ScrapReasonDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ScrapReasonDeletedEvent.cs index 652b00a..684549d 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/ScrapReasonDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/ScrapReasonDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'ScrapReason'. /// public class ScrapReasonDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ShiftDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ShiftDeletedEvent.cs index 1c52f0b..f178a48 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/ShiftDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/ShiftDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'Shift'. /// public class ShiftDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ShipMethodDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ShipMethodDeletedEvent.cs index 0359248..340554a 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/ShipMethodDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/ShipMethodDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'ShipMethod'. /// public class ShipMethodDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/ShoppingCartItemDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/ShoppingCartItemDeletedEvent.cs index c43cc10..abdd48e 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/ShoppingCartItemDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/ShoppingCartItemDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'ShoppingCartItem'. /// public class ShoppingCartItemDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/SpecialOfferDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/SpecialOfferDeletedEvent.cs index eded095..b802ec8 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/SpecialOfferDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/SpecialOfferDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'SpecialOffer'. /// public class SpecialOfferDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/StateProvinceDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/StateProvinceDeletedEvent.cs index 4d5ae5e..d229189 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/StateProvinceDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/StateProvinceDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'StateProvince'. /// public class StateProvinceDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/TransactionHistoryDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/TransactionHistoryDeletedEvent.cs index a08751d..5200064 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/TransactionHistoryDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/TransactionHistoryDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'TransactionHistory'. /// public class TransactionHistoryDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateDeletedEvent.cs index 243cb47..7c1a72a 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'vJobCandidate'. /// public class VJobCandidateDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateEducationDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateEducationDeletedEvent.cs index c98ff92..52bf7db 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateEducationDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateEducationDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'vJobCandidateEducation'. /// public class VJobCandidateEducationDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateEmploymentDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateEmploymentDeletedEvent.cs index 85b6e74..aa98ed2 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateEmploymentDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/VJobCandidateEmploymentDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'vJobCandidateEmployment'. /// public class VJobCandidateEmploymentDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/VProductModelCatalogDescriptionDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/VProductModelCatalogDescriptionDeletedEvent.cs index eb4c69f..23f9c9e 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/VProductModelCatalogDescriptionDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/VProductModelCatalogDescriptionDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'vProductModelCatalogDescription'. /// public class VProductModelCatalogDescriptionDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/VProductModelInstructionsDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/VProductModelInstructionsDeletedEvent.cs index 770b508..a7f15d4 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/VProductModelInstructionsDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/VProductModelInstructionsDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'vProductModelInstructions'. /// public class VProductModelInstructionsDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Delete/WorkOrderDeletedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Delete/WorkOrderDeletedEvent.cs index 44344ee..b14ca35 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Delete/WorkOrderDeletedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Delete/WorkOrderDeletedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'WorkOrder'. /// public class WorkOrderDeletedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/AddressTypeUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/AddressTypeUpdatedEvent.cs index 8a10ef9..47fa232 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/AddressTypeUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/AddressTypeUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'AddressType'. /// public class AddressTypeUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/AddressUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/AddressUpdatedEvent.cs index f7778a2..7a78c42 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/AddressUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/AddressUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'Address'. /// public class AddressUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/BillOfMaterialsUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/BillOfMaterialsUpdatedEvent.cs index 2110110..71c2254 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/BillOfMaterialsUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/BillOfMaterialsUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'BillOfMaterials'. /// public class BillOfMaterialsUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/BusinessEntityUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/BusinessEntityUpdatedEvent.cs index 7547fd7..128016e 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/BusinessEntityUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/BusinessEntityUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'BusinessEntity'. /// public class BusinessEntityUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ContactTypeUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ContactTypeUpdatedEvent.cs index 75480e0..1fdacc6 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/ContactTypeUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/ContactTypeUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'ContactType'. /// public class ContactTypeUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/CreditCardUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/CreditCardUpdatedEvent.cs index 67426a9..363c61a 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/CreditCardUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/CreditCardUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'CreditCard'. /// public class CreditCardUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/CurrencyRateUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/CurrencyRateUpdatedEvent.cs index c61e938..eea507f 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/CurrencyRateUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/CurrencyRateUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'CurrencyRate'. /// public class CurrencyRateUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/CustomerUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/CustomerUpdatedEvent.cs index f76d75c..ada20d4 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/CustomerUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/CustomerUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'Customer'. /// public class CustomerUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/DepartmentUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/DepartmentUpdatedEvent.cs index 91a21dc..11d7f46 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/DepartmentUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/DepartmentUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'Department'. /// public class DepartmentUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/EmailAddressUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/EmailAddressUpdatedEvent.cs index 429c7a8..f2aa2da 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/EmailAddressUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/EmailAddressUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'EmailAddress'. /// public class EmailAddressUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/IllustrationUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/IllustrationUpdatedEvent.cs index 65ab497..4a63662 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/IllustrationUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/IllustrationUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'Illustration'. /// public class IllustrationUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/JobCandidateUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/JobCandidateUpdatedEvent.cs index 5c42ea0..c86da1b 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/JobCandidateUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/JobCandidateUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'JobCandidate'. /// public class JobCandidateUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/LocationUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/LocationUpdatedEvent.cs index 8971936..b8c1ee4 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/LocationUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/LocationUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'Location'. /// public class LocationUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/PhoneNumberTypeUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/PhoneNumberTypeUpdatedEvent.cs index 4a75d68..529c7d4 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/PhoneNumberTypeUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/PhoneNumberTypeUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'PhoneNumberType'. /// public class PhoneNumberTypeUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ProductCategoryUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ProductCategoryUpdatedEvent.cs index dc794a0..d84228a 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/ProductCategoryUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/ProductCategoryUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'ProductCategory'. /// public class ProductCategoryUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ProductDescriptionUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ProductDescriptionUpdatedEvent.cs index 7e8df6a..7c9d4a7 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/ProductDescriptionUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/ProductDescriptionUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'ProductDescription'. /// public class ProductDescriptionUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ProductModelUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ProductModelUpdatedEvent.cs index b397f01..77a1034 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/ProductModelUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/ProductModelUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'ProductModel'. /// public class ProductModelUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ProductPhotoUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ProductPhotoUpdatedEvent.cs index 23d2579..5437783 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/ProductPhotoUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/ProductPhotoUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'ProductPhoto'. /// public class ProductPhotoUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ProductReviewUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ProductReviewUpdatedEvent.cs index aa196a5..b51fdb7 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/ProductReviewUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/ProductReviewUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'ProductReview'. /// public class ProductReviewUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ProductSubcategoryUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ProductSubcategoryUpdatedEvent.cs index 22c21bc..8371412 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/ProductSubcategoryUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/ProductSubcategoryUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'ProductSubcategory'. /// public class ProductSubcategoryUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ProductUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ProductUpdatedEvent.cs index 14a95df..45d4d1b 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/ProductUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/ProductUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'Product'. /// public class ProductUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/PurchaseOrderDetailUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/PurchaseOrderDetailUpdatedEvent.cs index 039ae9f..0d7ea88 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/PurchaseOrderDetailUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/PurchaseOrderDetailUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'PurchaseOrderDetail'. /// public class PurchaseOrderDetailUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/PurchaseOrderHeaderUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/PurchaseOrderHeaderUpdatedEvent.cs index 3fd6649..8dd54ce 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/PurchaseOrderHeaderUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/PurchaseOrderHeaderUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'PurchaseOrderHeader'. /// public class PurchaseOrderHeaderUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/SalesOrderDetailUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/SalesOrderDetailUpdatedEvent.cs index c43fb6f..242e970 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/SalesOrderDetailUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/SalesOrderDetailUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'SalesOrderDetail'. /// public class SalesOrderDetailUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/SalesOrderHeaderUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/SalesOrderHeaderUpdatedEvent.cs index 6774901..1cc2dd0 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/SalesOrderHeaderUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/SalesOrderHeaderUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'SalesOrderHeader'. /// public class SalesOrderHeaderUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/SalesReasonUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/SalesReasonUpdatedEvent.cs index b0725ec..0979b89 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/SalesReasonUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/SalesReasonUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'SalesReason'. /// public class SalesReasonUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/SalesTaxRateUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/SalesTaxRateUpdatedEvent.cs index 5c5eac6..8c9dfa3 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/SalesTaxRateUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/SalesTaxRateUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'SalesTaxRate'. /// public class SalesTaxRateUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/SalesTerritoryUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/SalesTerritoryUpdatedEvent.cs index 23adf57..94be5c7 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/SalesTerritoryUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/SalesTerritoryUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'SalesTerritory'. /// public class SalesTerritoryUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ScrapReasonUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ScrapReasonUpdatedEvent.cs index fff07dc..27ab6d6 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/ScrapReasonUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/ScrapReasonUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'ScrapReason'. /// public class ScrapReasonUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ShiftUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ShiftUpdatedEvent.cs index 5f5e612..65142c1 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/ShiftUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/ShiftUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'Shift'. /// public class ShiftUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ShipMethodUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ShipMethodUpdatedEvent.cs index 6c27c2c..36a1844 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/ShipMethodUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/ShipMethodUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'ShipMethod'. /// public class ShipMethodUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/ShoppingCartItemUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/ShoppingCartItemUpdatedEvent.cs index be9d1e9..67fcd18 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/ShoppingCartItemUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/ShoppingCartItemUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'ShoppingCartItem'. /// public class ShoppingCartItemUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/SpecialOfferUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/SpecialOfferUpdatedEvent.cs index d72c121..42806c6 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/SpecialOfferUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/SpecialOfferUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'SpecialOffer'. /// public class SpecialOfferUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/StateProvinceUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/StateProvinceUpdatedEvent.cs index fc692ce..6e5b3c9 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/StateProvinceUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/StateProvinceUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'StateProvince'. /// public class StateProvinceUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/TransactionHistoryUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/TransactionHistoryUpdatedEvent.cs index dd5eb5b..5860e11 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/TransactionHistoryUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/TransactionHistoryUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'TransactionHistory'. /// public class TransactionHistoryUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateEducationUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateEducationUpdatedEvent.cs index 06d794d..e11fc10 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateEducationUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateEducationUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'vJobCandidateEducation'. /// public class VJobCandidateEducationUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateEmploymentUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateEmploymentUpdatedEvent.cs index ec312f3..6b22d78 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateEmploymentUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateEmploymentUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'vJobCandidateEmployment'. /// public class VJobCandidateEmploymentUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateUpdatedEvent.cs index a955814..622e3b4 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/VJobCandidateUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'vJobCandidate'. /// public class VJobCandidateUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/VProductModelCatalogDescriptionUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/VProductModelCatalogDescriptionUpdatedEvent.cs index 254b7ef..4a776bd 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/VProductModelCatalogDescriptionUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/VProductModelCatalogDescriptionUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'vProductModelCatalogDescription'. /// public class VProductModelCatalogDescriptionUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/VProductModelInstructionsUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/VProductModelInstructionsUpdatedEvent.cs index 6fbaa48..d7e44c3 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/VProductModelInstructionsUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/VProductModelInstructionsUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'vProductModelInstructions'. /// public class VProductModelInstructionsUpdatedEvent - : EntityEventBase + : EntityEventBase { } diff --git a/src/Platy.AdventureWorks.Repository/Events/Update/WorkOrderUpdatedEvent.cs b/src/Platy.AdventureWorks.Repository/Events/Update/WorkOrderUpdatedEvent.cs index a2469dc..06e2da2 100644 --- a/src/Platy.AdventureWorks.Repository/Events/Update/WorkOrderUpdatedEvent.cs +++ b/src/Platy.AdventureWorks.Repository/Events/Update/WorkOrderUpdatedEvent.cs @@ -1,11 +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'. +/// Event class representing the data when changes are made to the table 'WorkOrder'. /// public class WorkOrderUpdatedEvent - : EntityEventBase + : 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 index 50d3c8f..c1ef2ad 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/AddressRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/AddressRepository.cs @@ -1,98 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'Address'. /// [RegisterScoped] public class AddressRepository - : EntityRepository, IAddressRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new AddressCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new AddressUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new AddressDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new AddressDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface IAddressRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/AddressTypeRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/AddressTypeRepository.cs index 5c5bb6e..6f01324 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/AddressTypeRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/AddressTypeRepository.cs @@ -1,99 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'AddressType'. /// [RegisterScoped] public class AddressTypeRepository - : EntityRepository, - IAddressTypeRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new AddressTypeCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new AddressTypeUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new AddressTypeDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new AddressTypeDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface IAddressTypeRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/BillOfMaterialsRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/BillOfMaterialsRepository.cs index 2dd6ee5..6c505eb 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/BillOfMaterialsRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/BillOfMaterialsRepository.cs @@ -1,99 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'BillOfMaterials'. /// [RegisterScoped] public class BillOfMaterialsRepository - : EntityRepository, IBillOfMaterialsRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new BillOfMaterialsCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new BillOfMaterialsUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new BillOfMaterialsDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new BillOfMaterialsDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface IBillOfMaterialsRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/BusinessEntityRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/BusinessEntityRepository.cs index 8191355..fbd6622 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/BusinessEntityRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/BusinessEntityRepository.cs @@ -1,99 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'BusinessEntity'. /// [RegisterScoped] public class BusinessEntityRepository - : EntityRepository, IBusinessEntityRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new BusinessEntityCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new BusinessEntityUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new BusinessEntityDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new BusinessEntityDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface IBusinessEntityRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/ContactTypeRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ContactTypeRepository.cs index 191f88e..448e3c0 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/ContactTypeRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/ContactTypeRepository.cs @@ -1,99 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'ContactType'. /// [RegisterScoped] public class ContactTypeRepository - : EntityRepository, - IContactTypeRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new ContactTypeCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new ContactTypeUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new ContactTypeDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new ContactTypeDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface IContactTypeRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/CreditCardRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/CreditCardRepository.cs index 0329265..b3d713b 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/CreditCardRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/CreditCardRepository.cs @@ -1,99 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'CreditCard'. /// [RegisterScoped] public class CreditCardRepository - : EntityRepository, - ICreditCardRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new CreditCardCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new CreditCardUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new CreditCardDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new CreditCardDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface ICreditCardRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/CurrencyRateRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/CurrencyRateRepository.cs index e2be023..705c74b 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/CurrencyRateRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/CurrencyRateRepository.cs @@ -1,99 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'CurrencyRate'. /// [RegisterScoped] public class CurrencyRateRepository - : EntityRepository, - ICurrencyRateRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new CurrencyRateCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new CurrencyRateUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new CurrencyRateDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new CurrencyRateDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface ICurrencyRateRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/CustomerRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/CustomerRepository.cs index b39ce55..18e02d7 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/CustomerRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/CustomerRepository.cs @@ -1,98 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'Customer'. /// [RegisterScoped] public class CustomerRepository - : EntityRepository, ICustomerRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new CustomerCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new CustomerUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new CustomerDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new CustomerDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface ICustomerRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/DepartmentRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/DepartmentRepository.cs index 0b886c6..721b08e 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/DepartmentRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/DepartmentRepository.cs @@ -1,99 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'Department'. /// [RegisterScoped] public class DepartmentRepository - : EntityRepository, - IDepartmentRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(short id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new DepartmentCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new DepartmentUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new DepartmentDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + short id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new DepartmentDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface IDepartmentRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/EmailAddressRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/EmailAddressRepository.cs index cfbf3a7..d0379e9 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/EmailAddressRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/EmailAddressRepository.cs @@ -1,99 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'EmailAddress'. /// [RegisterScoped] public class EmailAddressRepository - : EntityRepository, - IEmailAddressRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new EmailAddressCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new EmailAddressUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new EmailAddressDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new EmailAddressDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface IEmailAddressRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/IllustrationRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/IllustrationRepository.cs index 3883c14..02df669 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/IllustrationRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/IllustrationRepository.cs @@ -1,99 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'Illustration'. /// [RegisterScoped] public class IllustrationRepository - : EntityRepository, - IIllustrationRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new IllustrationCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new IllustrationUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new IllustrationDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new IllustrationDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface IIllustrationRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/JobCandidateRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/JobCandidateRepository.cs index e616d31..635a525 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/JobCandidateRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/JobCandidateRepository.cs @@ -1,99 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'JobCandidate'. /// [RegisterScoped] public class JobCandidateRepository - : EntityRepository, - IJobCandidateRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new JobCandidateCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new JobCandidateUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new JobCandidateDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new JobCandidateDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface IJobCandidateRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/LocationRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/LocationRepository.cs index 9b78800..32cc609 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/LocationRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/LocationRepository.cs @@ -1,98 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'Location'. /// [RegisterScoped] public class LocationRepository - : EntityRepository, ILocationRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(short id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new LocationCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new LocationUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new LocationDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + short id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new LocationDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface ILocationRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/PhoneNumberTypeRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/PhoneNumberTypeRepository.cs index b20fed1..559cff7 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/PhoneNumberTypeRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/PhoneNumberTypeRepository.cs @@ -1,99 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'PhoneNumberType'. /// [RegisterScoped] public class PhoneNumberTypeRepository - : EntityRepository, IPhoneNumberTypeRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new PhoneNumberTypeCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new PhoneNumberTypeUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new PhoneNumberTypeDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new PhoneNumberTypeDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface IPhoneNumberTypeRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/ProductCategoryRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ProductCategoryRepository.cs index 1359ba0..0aeee39 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/ProductCategoryRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/ProductCategoryRepository.cs @@ -1,99 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'ProductCategory'. /// [RegisterScoped] public class ProductCategoryRepository - : EntityRepository, IProductCategoryRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new ProductCategoryCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new ProductCategoryUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new ProductCategoryDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new ProductCategoryDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface IProductCategoryRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/ProductDescriptionRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ProductDescriptionRepository.cs index 779773e..9cc8fe0 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/ProductDescriptionRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/ProductDescriptionRepository.cs @@ -1,100 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'ProductDescription'. /// [RegisterScoped] public class ProductDescriptionRepository - : EntityRepository, IProductDescriptionRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new ProductDescriptionCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new ProductDescriptionUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new ProductDescriptionDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new ProductDescriptionDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface IProductDescriptionRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/ProductModelRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ProductModelRepository.cs index da5b9e2..8a000a3 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/ProductModelRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/ProductModelRepository.cs @@ -1,99 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'ProductModel'. /// [RegisterScoped] public class ProductModelRepository - : EntityRepository, - IProductModelRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new ProductModelCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new ProductModelUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new ProductModelDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new ProductModelDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface IProductModelRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/ProductPhotoRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ProductPhotoRepository.cs index 1e84c3f..0a3dfbb 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/ProductPhotoRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/ProductPhotoRepository.cs @@ -1,99 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'ProductPhoto'. /// [RegisterScoped] public class ProductPhotoRepository - : EntityRepository, - IProductPhotoRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new ProductPhotoCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new ProductPhotoUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new ProductPhotoDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new ProductPhotoDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface IProductPhotoRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/ProductRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ProductRepository.cs index b5336ea..6615116 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/ProductRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/ProductRepository.cs @@ -1,98 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'Product'. /// [RegisterScoped] public class ProductRepository - : EntityRepository, IProductRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new ProductCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new ProductUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new ProductDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new ProductDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface IProductRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/ProductReviewRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ProductReviewRepository.cs index 79c5c9b..f376542 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/ProductReviewRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/ProductReviewRepository.cs @@ -1,99 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'ProductReview'. /// [RegisterScoped] public class ProductReviewRepository - : EntityRepository, - IProductReviewRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new ProductReviewCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new ProductReviewUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new ProductReviewDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new ProductReviewDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface IProductReviewRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/ProductSubcategoryRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ProductSubcategoryRepository.cs index f72fef5..68549e9 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/ProductSubcategoryRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/ProductSubcategoryRepository.cs @@ -1,100 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'ProductSubcategory'. /// [RegisterScoped] public class ProductSubcategoryRepository - : EntityRepository, IProductSubcategoryRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new ProductSubcategoryCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new ProductSubcategoryUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new ProductSubcategoryDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new ProductSubcategoryDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface IProductSubcategoryRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/PurchaseOrderDetailRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/PurchaseOrderDetailRepository.cs index ecdb555..d018ce8 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/PurchaseOrderDetailRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/PurchaseOrderDetailRepository.cs @@ -1,100 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'PurchaseOrderDetail'. /// [RegisterScoped] public class PurchaseOrderDetailRepository - : EntityRepository, IPurchaseOrderDetailRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new PurchaseOrderDetailCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new PurchaseOrderDetailUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new PurchaseOrderDetailDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new PurchaseOrderDetailDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface IPurchaseOrderDetailRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/PurchaseOrderHeaderRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/PurchaseOrderHeaderRepository.cs index d02d1b7..66dad32 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/PurchaseOrderHeaderRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/PurchaseOrderHeaderRepository.cs @@ -1,100 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'PurchaseOrderHeader'. /// [RegisterScoped] public class PurchaseOrderHeaderRepository - : EntityRepository, IPurchaseOrderHeaderRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new PurchaseOrderHeaderCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new PurchaseOrderHeaderUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new PurchaseOrderHeaderDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new PurchaseOrderHeaderDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface IPurchaseOrderHeaderRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/SalesOrderDetailRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/SalesOrderDetailRepository.cs index 9b97cae..eeeec51 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/SalesOrderDetailRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/SalesOrderDetailRepository.cs @@ -1,100 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'SalesOrderDetail'. /// [RegisterScoped] public class SalesOrderDetailRepository - : EntityRepository, ISalesOrderDetailRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new SalesOrderDetailCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new SalesOrderDetailUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new SalesOrderDetailDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new SalesOrderDetailDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface ISalesOrderDetailRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/SalesOrderHeaderRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/SalesOrderHeaderRepository.cs index a48bb7a..abb0da8 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/SalesOrderHeaderRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/SalesOrderHeaderRepository.cs @@ -1,100 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'SalesOrderHeader'. /// [RegisterScoped] public class SalesOrderHeaderRepository - : EntityRepository, ISalesOrderHeaderRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new SalesOrderHeaderCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new SalesOrderHeaderUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new SalesOrderHeaderDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new SalesOrderHeaderDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface ISalesOrderHeaderRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/SalesReasonRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/SalesReasonRepository.cs index da886c5..faca74d 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/SalesReasonRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/SalesReasonRepository.cs @@ -1,99 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'SalesReason'. /// [RegisterScoped] public class SalesReasonRepository - : EntityRepository, - ISalesReasonRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new SalesReasonCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new SalesReasonUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new SalesReasonDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new SalesReasonDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface ISalesReasonRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/SalesTaxRateRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/SalesTaxRateRepository.cs index a1d2df0..17e3679 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/SalesTaxRateRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/SalesTaxRateRepository.cs @@ -1,99 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'SalesTaxRate'. /// [RegisterScoped] public class SalesTaxRateRepository - : EntityRepository, - ISalesTaxRateRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new SalesTaxRateCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new SalesTaxRateUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new SalesTaxRateDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new SalesTaxRateDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface ISalesTaxRateRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/SalesTerritoryRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/SalesTerritoryRepository.cs index 27070c7..2921e43 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/SalesTerritoryRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/SalesTerritoryRepository.cs @@ -1,99 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'SalesTerritory'. /// [RegisterScoped] public class SalesTerritoryRepository - : EntityRepository, ISalesTerritoryRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new SalesTerritoryCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new SalesTerritoryUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new SalesTerritoryDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new SalesTerritoryDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface ISalesTerritoryRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/ScrapReasonRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ScrapReasonRepository.cs index 218cc65..de30fc1 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/ScrapReasonRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/ScrapReasonRepository.cs @@ -1,99 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'ScrapReason'. /// [RegisterScoped] public class ScrapReasonRepository - : EntityRepository, - IScrapReasonRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(short id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new ScrapReasonCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new ScrapReasonUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new ScrapReasonDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + short id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new ScrapReasonDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface IScrapReasonRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/ShiftRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ShiftRepository.cs index c177a85..37a8ad1 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/ShiftRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/ShiftRepository.cs @@ -1,98 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'Shift'. /// [RegisterScoped] public class ShiftRepository - : EntityRepository, IShiftRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(byte id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new ShiftCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new ShiftUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new ShiftDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + byte id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new ShiftDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface IShiftRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/ShipMethodRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ShipMethodRepository.cs index 2b71ee7..62f870d 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/ShipMethodRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/ShipMethodRepository.cs @@ -1,99 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'ShipMethod'. /// [RegisterScoped] public class ShipMethodRepository - : EntityRepository, - IShipMethodRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new ShipMethodCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new ShipMethodUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new ShipMethodDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new ShipMethodDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface IShipMethodRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/ShoppingCartItemRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/ShoppingCartItemRepository.cs index fb5dc77..f160618 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/ShoppingCartItemRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/ShoppingCartItemRepository.cs @@ -1,100 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'ShoppingCartItem'. /// [RegisterScoped] public class ShoppingCartItemRepository - : EntityRepository, IShoppingCartItemRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new ShoppingCartItemCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new ShoppingCartItemUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new ShoppingCartItemDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new ShoppingCartItemDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface IShoppingCartItemRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/SpecialOfferRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/SpecialOfferRepository.cs index 4a2583e..eedfef5 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/SpecialOfferRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/SpecialOfferRepository.cs @@ -1,99 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'SpecialOffer'. /// [RegisterScoped] public class SpecialOfferRepository - : EntityRepository, - ISpecialOfferRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new SpecialOfferCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new SpecialOfferUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new SpecialOfferDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new SpecialOfferDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface ISpecialOfferRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/StateProvinceRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/StateProvinceRepository.cs index 83ae032..1a1c7c0 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/StateProvinceRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/StateProvinceRepository.cs @@ -1,99 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'StateProvince'. /// [RegisterScoped] public class StateProvinceRepository - : EntityRepository, - IStateProvinceRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new StateProvinceCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new StateProvinceUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new StateProvinceDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new StateProvinceDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface IStateProvinceRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/TransactionHistoryRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/TransactionHistoryRepository.cs index af7e890..41a4655 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/TransactionHistoryRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/TransactionHistoryRepository.cs @@ -1,100 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'TransactionHistory'. /// [RegisterScoped] public class TransactionHistoryRepository - : EntityRepository, ITransactionHistoryRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new TransactionHistoryCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new TransactionHistoryUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new TransactionHistoryDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new TransactionHistoryDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface ITransactionHistoryRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/VJobCandidateEducationRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/VJobCandidateEducationRepository.cs index df46d20..fd2c918 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/VJobCandidateEducationRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/VJobCandidateEducationRepository.cs @@ -1,100 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'vJobCandidateEducation'. /// [RegisterScoped] public class VJobCandidateEducationRepository - : EntityRepository, IVJobCandidateEducationRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new VJobCandidateEducationCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new VJobCandidateEducationUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new VJobCandidateEducationDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new VJobCandidateEducationDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface IVJobCandidateEducationRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/VJobCandidateEmploymentRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/VJobCandidateEmploymentRepository.cs index 7f62295..c079ae8 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/VJobCandidateEmploymentRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/VJobCandidateEmploymentRepository.cs @@ -1,100 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'vJobCandidateEmployment'. /// [RegisterScoped] public class VJobCandidateEmploymentRepository - : EntityRepository, IVJobCandidateEmploymentRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new VJobCandidateEmploymentCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new VJobCandidateEmploymentUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new VJobCandidateEmploymentDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new VJobCandidateEmploymentDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface IVJobCandidateEmploymentRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/VJobCandidateRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/VJobCandidateRepository.cs index 2b4e8c9..07aec0a 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/VJobCandidateRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/VJobCandidateRepository.cs @@ -1,99 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'vJobCandidate'. /// [RegisterScoped] public class VJobCandidateRepository - : EntityRepository, - IVJobCandidateRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new VJobCandidateCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new VJobCandidateUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new VJobCandidateDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new VJobCandidateDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface IVJobCandidateRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/VProductModelCatalogDescriptionRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/VProductModelCatalogDescriptionRepository.cs index f4e24db..e915849 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/VProductModelCatalogDescriptionRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/VProductModelCatalogDescriptionRepository.cs @@ -1,101 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'vProductModelCatalogDescription'. /// [RegisterScoped] public class VProductModelCatalogDescriptionRepository - : EntityRepository, - IVProductModelCatalogDescriptionRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new VProductModelCatalogDescriptionCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new VProductModelCatalogDescriptionUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new VProductModelCatalogDescriptionDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new VProductModelCatalogDescriptionDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface IVProductModelCatalogDescriptionRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/VProductModelInstructionsRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/VProductModelInstructionsRepository.cs index e4feadf..368ebe1 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/VProductModelInstructionsRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/VProductModelInstructionsRepository.cs @@ -1,100 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'vProductModelInstructions'. /// [RegisterScoped] public class VProductModelInstructionsRepository - : EntityRepository, IVProductModelInstructionsRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new VProductModelInstructionsCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new VProductModelInstructionsUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new VProductModelInstructionsDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new VProductModelInstructionsDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface IVProductModelInstructionsRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Repository/WorkOrderRepository.cs b/src/Platy.AdventureWorks.Repository/Repository/WorkOrderRepository.cs index 257a357..57eb648 100644 --- a/src/Platy.AdventureWorks.Repository/Repository/WorkOrderRepository.cs +++ b/src/Platy.AdventureWorks.Repository/Repository/WorkOrderRepository.cs @@ -1,99 +1,96 @@ +using System; +using System.Collections.Generic; 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; +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'. +/// Repository class representing data for table 'WorkOrder'. /// [RegisterScoped] public class WorkOrderRepository - : EntityRepository, - IWorkOrderRepository + : 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) - { - } + /// + /// 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 + #region Generated methods - /// - /// Gets an . - /// - public async Task> GetAsync(int id, - CancellationToken cancellationToken) - { - return await ReadModel(id, - cancellationToken); - } + /// + /// 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) - { - return await QueryModel(predicate, 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) - { - return await CreateModel(createModel, - new WorkOrderCreatedEvent(), - 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) - { - return await UpdateModel(id, - updateModel, - new WorkOrderUpdatedEvent(), - 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) - { - return await DeleteModel(id, - new WorkOrderDeletedEvent(), - cancellationToken); - } + /// + /// Deletes a . + /// + public virtual async Task> DeleteAsync( + int id, + CancellationToken cancellationToken) => + await DeleteModel(id, + new WorkOrderDeletedEvent(), + cancellationToken); - #endregion + #endregion } public interface IWorkOrderRepository - : IRepository + : IRepository { } + diff --git a/src/Platy.AdventureWorks.Repository/Yaml/Entity/AddressScript.yml b/src/Platy.AdventureWorks.Repository/Yaml/Entity/AddressScript.yml index edd7d68..5b2a6f7 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/AddressScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/AddressScript.yml @@ -12,98 +12,98 @@ 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 + - 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 index 6bdfa4b..260598b 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/AddressTypeScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/AddressTypeScript.yml @@ -12,51 +12,51 @@ 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 + - 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 index d994f4b..eee9c28 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/BillOfMaterialsScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/BillOfMaterialsScript.yml @@ -12,107 +12,107 @@ 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 + - 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 index 7b834d9..16baf9e 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/BusinessEntityAddressScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/BusinessEntityAddressScript.yml @@ -12,60 +12,60 @@ 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 + - 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 index c88dcfe..8fc4625 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/BusinessEntityContactScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/BusinessEntityContactScript.yml @@ -12,60 +12,60 @@ 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 + - 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 index 0881c61..6019c71 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/BusinessEntityScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/BusinessEntityScript.yml @@ -12,39 +12,39 @@ 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 + - 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 index 53edfda..3169699 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ContactTypeScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ContactTypeScript.yml @@ -12,39 +12,39 @@ 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 + - 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 index b79a2a1..881c34e 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/CountryRegionCurrencyScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/CountryRegionCurrencyScript.yml @@ -12,39 +12,39 @@ 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 + - 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 index b04f4c9..f594593 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/CountryRegionScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/CountryRegionScript.yml @@ -12,39 +12,39 @@ 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 + - 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 index 4615936..9bcc734 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/CreditCardScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/CreditCardScript.yml @@ -12,73 +12,73 @@ 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 + - 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 index 452d1e2..d55e83a 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/CultureScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/CultureScript.yml @@ -12,39 +12,39 @@ 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 + - 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 index 3be33c9..a9107d6 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/CurrencyRateScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/CurrencyRateScript.yml @@ -12,84 +12,84 @@ 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 + - 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 index 16a64cd..3252b89 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/CurrencyScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/CurrencyScript.yml @@ -12,39 +12,39 @@ 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 + - 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 index cb213a3..07bf3c9 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/CustomerScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/CustomerScript.yml @@ -12,85 +12,85 @@ 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 + - 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 index 9097bee..9e1e07e 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/DepartmentScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/DepartmentScript.yml @@ -12,51 +12,51 @@ 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 + - 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 index f5bc751..7fcbae9 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/EmailAddressScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/EmailAddressScript.yml @@ -12,62 +12,62 @@ 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 + - 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 index b47a33e..25df17a 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/EmployeeDepartmentHistoryScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/EmployeeDepartmentHistoryScript.yml @@ -12,70 +12,70 @@ 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 + - 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 index 81f6558..557ea47 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/EmployeePayHistoryScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/EmployeePayHistoryScript.yml @@ -12,59 +12,59 @@ 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 + - 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 index eb92f4b..61d09b7 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/EmployeeScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/EmployeeScript.yml @@ -12,180 +12,180 @@ 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 + - 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 index ab1026f..ff76189 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/IllustrationScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/IllustrationScript.yml @@ -12,38 +12,38 @@ 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 + - 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 index d481f9f..9439f31 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/JobCandidateScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/JobCandidateScript.yml @@ -12,49 +12,49 @@ 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 + - 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 index 99a6c26..c2d9ead 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/LocationScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/LocationScript.yml @@ -12,63 +12,63 @@ 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 + - 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 index 04a0994..24c8fe9 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/PasswordScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/PasswordScript.yml @@ -12,62 +12,62 @@ 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 + - 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 index 4b6a070..a4b066c 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/PersonCreditCardScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/PersonCreditCardScript.yml @@ -12,37 +12,37 @@ 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 + - 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 index c953043..4519438 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/PersonPhoneScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/PersonPhoneScript.yml @@ -12,49 +12,49 @@ 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 + - 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 index fb1837d..a6225f2 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/PersonScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/PersonScript.yml @@ -12,156 +12,156 @@ 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 + - 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 index 672764b..ed3d701 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/PhoneNumberTypeScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/PhoneNumberTypeScript.yml @@ -12,39 +12,39 @@ 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 + - 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 index 16a0501..6e837b7 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductCategoryScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductCategoryScript.yml @@ -12,51 +12,51 @@ 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 + - 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 index e944edf..0ed06a7 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductCostHistoryScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductCostHistoryScript.yml @@ -12,59 +12,59 @@ 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 + - 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 index f62f60e..0919fc5 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductDescriptionScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductDescriptionScript.yml @@ -12,51 +12,51 @@ 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 + - 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 index ca2987e..88fc33d 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductDocumentScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductDocumentScript.yml @@ -12,26 +12,26 @@ 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 + - 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 index e38a425..24140ff 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductInventoryScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductInventoryScript.yml @@ -12,84 +12,84 @@ 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 + - 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 index 4ee1b5a..17408bd 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductListPriceHistoryScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductListPriceHistoryScript.yml @@ -12,59 +12,59 @@ 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 + - 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 index 7d4903b..99578e4 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductModelIllustrationScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductModelIllustrationScript.yml @@ -12,37 +12,37 @@ 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 + - 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 index 422acf6..dbd3b42 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductModelProductDescriptionCultureScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductModelProductDescriptionCultureScript.yml @@ -12,49 +12,49 @@ 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 + - 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 index 186328a..ea5546c 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductModelScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductModelScript.yml @@ -12,73 +12,73 @@ 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 + - 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 index 911b771..ba42309 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductPhotoScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductPhotoScript.yml @@ -12,75 +12,75 @@ 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 + - 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 index d392db2..a51b328 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductProductPhotoScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductProductPhotoScript.yml @@ -12,49 +12,49 @@ 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 + - 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 index 1cc03a3..9b2de2c 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductReviewScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductReviewScript.yml @@ -12,97 +12,97 @@ 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 + - 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 index 0376773..bb251bc 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductScript.yml @@ -12,292 +12,292 @@ 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 + - 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 index 0771e83..b96ee81 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductSubcategoryScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductSubcategoryScript.yml @@ -12,62 +12,62 @@ 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 + - 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 index a04026b..71c08f4 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductVendorScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ProductVendorScript.yml @@ -12,126 +12,126 @@ 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 + - 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 index 38a695a..87335d3 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/PurchaseOrderDetailScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/PurchaseOrderDetailScript.yml @@ -12,128 +12,128 @@ 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 + - 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 index b50ae8d..72f270f 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/PurchaseOrderHeaderScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/PurchaseOrderHeaderScript.yml @@ -12,155 +12,155 @@ 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 + - 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 index 500f9ce..495e253 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesOrderDetailScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesOrderDetailScript.yml @@ -12,130 +12,130 @@ 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 + - 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 index 818e7b6..45c9134 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesOrderHeaderSalesReasonScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesOrderHeaderSalesReasonScript.yml @@ -12,37 +12,37 @@ 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 + - 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 index 10d1c06..344277f 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesOrderHeaderScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesOrderHeaderScript.yml @@ -12,306 +12,306 @@ 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 + - 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 index a6856e7..86c16bc 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesPersonQuotaHistoryScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesPersonQuotaHistoryScript.yml @@ -12,60 +12,60 @@ 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 + - 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 index 6c5828b..050b7b5 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesPersonScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesPersonScript.yml @@ -12,108 +12,108 @@ 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 + - 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 index 165c6e1..44363b2 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesReasonScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesReasonScript.yml @@ -12,51 +12,51 @@ 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 + - 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 index eabc0f1..6cdbadb 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesTaxRateScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesTaxRateScript.yml @@ -12,85 +12,85 @@ 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 + - 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 index a589b80..acda982 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesTerritoryHistoryScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesTerritoryHistoryScript.yml @@ -12,71 +12,71 @@ 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 + - 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 index 53d5989..1ea5ab5 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesTerritoryScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SalesTerritoryScript.yml @@ -12,123 +12,123 @@ 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 + - 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 index ceda549..aa9d63f 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ScrapReasonScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ScrapReasonScript.yml @@ -12,39 +12,39 @@ 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 + - 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 index a37ee95..a86d312 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ShiftScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ShiftScript.yml @@ -12,61 +12,61 @@ 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 + - 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 index e88500e..338d506 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ShipMethodScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ShipMethodScript.yml @@ -12,75 +12,75 @@ 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 + - 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 index bc73ec8..365850a 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/ShoppingCartItemScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/ShoppingCartItemScript.yml @@ -12,74 +12,74 @@ 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 + - 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 index 920fb14..b7a3705 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SpecialOfferProductScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SpecialOfferProductScript.yml @@ -12,49 +12,49 @@ 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 + - 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 index efac99e..94c11a6 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/SpecialOfferScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/SpecialOfferScript.yml @@ -12,132 +12,132 @@ 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 + - 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 index ef7a601..44f8370 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/StateProvinceScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/StateProvinceScript.yml @@ -12,98 +12,98 @@ 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 + - 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 index 2861a21..01d5b54 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/StoreScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/StoreScript.yml @@ -12,72 +12,72 @@ 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 + - 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 index 6507c2c..9efc328 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/TransactionHistoryArchiveScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/TransactionHistoryArchiveScript.yml @@ -12,106 +12,106 @@ 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 + - 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 index 416fa9e..f1662ff 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/TransactionHistoryScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/TransactionHistoryScript.yml @@ -12,107 +12,107 @@ 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 + - 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 index 5012dca..6800dbe 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/UnitMeasureScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/UnitMeasureScript.yml @@ -12,39 +12,39 @@ 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 + - 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 index f552265..736e9ea 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VAdditionalContactInfoScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VAdditionalContactInfoScript.yml @@ -12,204 +12,204 @@ 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 + - 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 index f86a140..8725a17 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VEmployeeDepartmentHistoryScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VEmployeeDepartmentHistoryScript.yml @@ -12,132 +12,132 @@ 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 + - 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 index 09b6108..eb0f420 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VEmployeeDepartmentScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VEmployeeDepartmentScript.yml @@ -12,121 +12,121 @@ 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 + - 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 index 9a78b68..944dd71 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VEmployeeScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VEmployeeScript.yml @@ -12,216 +12,216 @@ 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 + - 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 index cc54d16..9191283 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VIndividualCustomerScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VIndividualCustomerScript.yml @@ -12,216 +12,216 @@ 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 + - 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 index b7aeb15..e963e8c 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VJobCandidateEducationScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VJobCandidateEducationScript.yml @@ -12,157 +12,157 @@ 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 + - 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 index 4931b26..431c403 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VJobCandidateEmploymentScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VJobCandidateEmploymentScript.yml @@ -12,133 +12,133 @@ 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 + - 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 index b2aa0f9..266658a 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VJobCandidateScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VJobCandidateScript.yml @@ -12,193 +12,193 @@ 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 + - 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 index c1a65b4..169b077 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VPersonDemographicsScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VPersonDemographicsScript.yml @@ -12,151 +12,151 @@ 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 + - 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 index 701fdb6..0c54c4e 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VProductAndDescriptionScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VProductAndDescriptionScript.yml @@ -12,62 +12,62 @@ 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 + - 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 index 380f315..5160362 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VProductModelCatalogDescriptionScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VProductModelCatalogDescriptionScript.yml @@ -12,301 +12,301 @@ 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 + - 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 index 57a1dbf..ae97fde 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VProductModelInstructionsScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VProductModelInstructionsScript.yml @@ -12,128 +12,128 @@ 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 + - 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 index 53ab919..404504d 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VSalesPersonSalesByFiscalYearsScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VSalesPersonSalesByFiscalYearsScript.yml @@ -12,83 +12,83 @@ 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 + - 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 index 348a1b4..d49e86b 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VSalesPersonScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VSalesPersonScript.yml @@ -12,262 +12,262 @@ 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 + - 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 index 1fc1377..e0db298 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VStateProvinceCountryRegionScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VStateProvinceCountryRegionScript.yml @@ -12,84 +12,84 @@ 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 + - 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 index 54de82d..2ef8326 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VStoreWithAddressesScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VStoreWithAddressesScript.yml @@ -12,110 +12,110 @@ 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 + - 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 index 02aa003..3386a70 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VStoreWithContactsScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VStoreWithContactsScript.yml @@ -12,145 +12,145 @@ 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 + - 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 index 842b5b4..37d26fb 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VStoreWithDemographicsScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VStoreWithDemographicsScript.yml @@ -12,141 +12,141 @@ 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 + - 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 index c781296..b8a504d 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VVendorWithAddressesScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VVendorWithAddressesScript.yml @@ -12,110 +12,110 @@ 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 + - 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 index 0e25244..efd01d3 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VVendorWithContactsScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VVendorWithContactsScript.yml @@ -12,145 +12,145 @@ 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 + - 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 index 0c27e60..12f9bd0 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/VendorScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/VendorScript.yml @@ -12,97 +12,97 @@ 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 + - 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 index 7c8e5d8..3c74cd2 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/WorkOrderRoutingScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/WorkOrderRoutingScript.yml @@ -12,136 +12,136 @@ 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 + - 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 index 5cb9979..09e5460 100644 --- a/src/Platy.AdventureWorks.Repository/Yaml/Entity/WorkOrderScript.yml +++ b/src/Platy.AdventureWorks.Repository/Yaml/Entity/WorkOrderScript.yml @@ -12,116 +12,116 @@ 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 + - 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));