Browse Source

Change obsolete .ForSqlServerUseSequenceHiLo for .UseHiLo

dotnet3-migration/dev-dotnet3
Miguel Veloso 5 years ago
parent
commit
c3f7178631
10 changed files with 10 additions and 9 deletions
  1. +1
    -1
      src/Services/Catalog/Catalog.API/Infrastructure/EntityConfigurations/CatalogBrandEntityTypeConfiguration.cs
  2. +1
    -1
      src/Services/Catalog/Catalog.API/Infrastructure/EntityConfigurations/CatalogItemEntityTypeConfiguration.cs
  3. +1
    -1
      src/Services/Catalog/Catalog.API/Infrastructure/EntityConfigurations/CatalogTypeEntityTypeConfiguration.cs
  4. +1
    -1
      src/Services/Marketing/Marketing.API/Infrastructure/EntityConfigurations/CampaignEntityTypeConfiguration.cs
  5. +1
    -1
      src/Services/Marketing/Marketing.API/Infrastructure/EntityConfigurations/RuleEntityTypeConfiguration.cs
  6. +1
    -0
      src/Services/Ordering/Ordering.Domain/AggregatesModel/OrderAggregate/Order.cs
  7. +1
    -1
      src/Services/Ordering/Ordering.Infrastructure/EntityConfigurations/BuyerEntityTypeConfiguration.cs
  8. +1
    -1
      src/Services/Ordering/Ordering.Infrastructure/EntityConfigurations/OrderEntityTypeConfiguration.cs
  9. +1
    -1
      src/Services/Ordering/Ordering.Infrastructure/EntityConfigurations/OrderItemEntityTypeConfiguration.cs
  10. +1
    -1
      src/Services/Ordering/Ordering.Infrastructure/EntityConfigurations/PaymentMethodEntityTypeConfiguration.cs

+ 1
- 1
src/Services/Catalog/Catalog.API/Infrastructure/EntityConfigurations/CatalogBrandEntityTypeConfiguration.cs View File

@ -14,7 +14,7 @@ namespace Microsoft.eShopOnContainers.Services.Catalog.API.Infrastructure.Entity
builder.HasKey(ci => ci.Id); builder.HasKey(ci => ci.Id);
builder.Property(ci => ci.Id) builder.Property(ci => ci.Id)
.ForSqlServerUseSequenceHiLo("catalog_brand_hilo")
.UseHiLo("catalog_brand_hilo")
.IsRequired(); .IsRequired();
builder.Property(cb => cb.Brand) builder.Property(cb => cb.Brand)


+ 1
- 1
src/Services/Catalog/Catalog.API/Infrastructure/EntityConfigurations/CatalogItemEntityTypeConfiguration.cs View File

@ -12,7 +12,7 @@ namespace Microsoft.eShopOnContainers.Services.Catalog.API.Infrastructure.Entity
builder.ToTable("Catalog"); builder.ToTable("Catalog");
builder.Property(ci => ci.Id) builder.Property(ci => ci.Id)
.ForSqlServerUseSequenceHiLo("catalog_hilo")
.UseHiLo("catalog_hilo")
.IsRequired(); .IsRequired();
builder.Property(ci => ci.Name) builder.Property(ci => ci.Name)


+ 1
- 1
src/Services/Catalog/Catalog.API/Infrastructure/EntityConfigurations/CatalogTypeEntityTypeConfiguration.cs View File

@ -14,7 +14,7 @@ namespace Microsoft.eShopOnContainers.Services.Catalog.API.Infrastructure.Entity
builder.HasKey(ci => ci.Id); builder.HasKey(ci => ci.Id);
builder.Property(ci => ci.Id) builder.Property(ci => ci.Id)
.ForSqlServerUseSequenceHiLo("catalog_type_hilo")
.UseHiLo("catalog_type_hilo")
.IsRequired(); .IsRequired();
builder.Property(cb => cb.Type) builder.Property(cb => cb.Type)


+ 1
- 1
src/Services/Marketing/Marketing.API/Infrastructure/EntityConfigurations/CampaignEntityTypeConfiguration.cs View File

@ -14,7 +14,7 @@ namespace Microsoft.eShopOnContainers.Services.Marketing.API.Infrastructure.Enti
builder.HasKey(m => m.Id); builder.HasKey(m => m.Id);
builder.Property(m => m.Id) builder.Property(m => m.Id)
.ForSqlServerUseSequenceHiLo("campaign_hilo")
.UseHiLo("campaign_hilo")
.IsRequired(); .IsRequired();
builder.Property(m => m.Name) builder.Property(m => m.Name)


+ 1
- 1
src/Services/Marketing/Marketing.API/Infrastructure/EntityConfigurations/RuleEntityTypeConfiguration.cs View File

@ -14,7 +14,7 @@ namespace Microsoft.eShopOnContainers.Services.Marketing.API.Infrastructure.Enti
builder.HasKey(r => r.Id); builder.HasKey(r => r.Id);
builder.Property(r => r.Id) builder.Property(r => r.Id)
.ForSqlServerUseSequenceHiLo("rule_hilo")
.UseHiLo("rule_hilo")
.IsRequired(); .IsRequired();
builder.HasDiscriminator<int>("RuleTypeId") builder.HasDiscriminator<int>("RuleTypeId")


+ 1
- 0
src/Services/Ordering/Ordering.Domain/AggregatesModel/OrderAggregate/Order.cs View File

@ -27,6 +27,7 @@ namespace Microsoft.eShopOnContainers.Services.Ordering.Domain.AggregatesModel.O
private string _description; private string _description;
// Draft orders have this set to true. Currently we don't check anywhere the draft status of an Order, but we could do it if needed // Draft orders have this set to true. Currently we don't check anywhere the draft status of an Order, but we could do it if needed
private bool _isDraft; private bool _isDraft;


+ 1
- 1
src/Services/Ordering/Ordering.Infrastructure/EntityConfigurations/BuyerEntityTypeConfiguration.cs View File

@ -17,7 +17,7 @@ namespace Ordering.Infrastructure.EntityConfigurations
buyerConfiguration.Ignore(b => b.DomainEvents); buyerConfiguration.Ignore(b => b.DomainEvents);
buyerConfiguration.Property(b => b.Id) buyerConfiguration.Property(b => b.Id)
.ForSqlServerUseSequenceHiLo("buyerseq", OrderingContext.DEFAULT_SCHEMA);
.UseHiLo("buyerseq", OrderingContext.DEFAULT_SCHEMA);
buyerConfiguration.Property(b => b.IdentityGuid) buyerConfiguration.Property(b => b.IdentityGuid)
.HasMaxLength(200) .HasMaxLength(200)


+ 1
- 1
src/Services/Ordering/Ordering.Infrastructure/EntityConfigurations/OrderEntityTypeConfiguration.cs View File

@ -18,7 +18,7 @@ namespace Ordering.Infrastructure.EntityConfigurations
orderConfiguration.Ignore(b => b.DomainEvents); orderConfiguration.Ignore(b => b.DomainEvents);
orderConfiguration.Property(o => o.Id) orderConfiguration.Property(o => o.Id)
.ForSqlServerUseSequenceHiLo("orderseq", OrderingContext.DEFAULT_SCHEMA);
.UseHiLo("orderseq", OrderingContext.DEFAULT_SCHEMA);
//Address value object persisted as owned entity type supported since EF Core 2.0 //Address value object persisted as owned entity type supported since EF Core 2.0
orderConfiguration orderConfiguration


+ 1
- 1
src/Services/Ordering/Ordering.Infrastructure/EntityConfigurations/OrderItemEntityTypeConfiguration.cs View File

@ -17,7 +17,7 @@ namespace Ordering.Infrastructure.EntityConfigurations
orderItemConfiguration.Ignore(b => b.DomainEvents); orderItemConfiguration.Ignore(b => b.DomainEvents);
orderItemConfiguration.Property(o => o.Id) orderItemConfiguration.Property(o => o.Id)
.ForSqlServerUseSequenceHiLo("orderitemseq");
.UseHiLo("orderitemseq");
orderItemConfiguration.Property<int>("OrderId") orderItemConfiguration.Property<int>("OrderId")
.IsRequired(); .IsRequired();


+ 1
- 1
src/Services/Ordering/Ordering.Infrastructure/EntityConfigurations/PaymentMethodEntityTypeConfiguration.cs View File

@ -18,7 +18,7 @@ namespace Ordering.Infrastructure.EntityConfigurations
paymentConfiguration.Ignore(b => b.DomainEvents); paymentConfiguration.Ignore(b => b.DomainEvents);
paymentConfiguration.Property(b => b.Id) paymentConfiguration.Property(b => b.Id)
.ForSqlServerUseSequenceHiLo("paymentseq", OrderingContext.DEFAULT_SCHEMA);
.UseHiLo("paymentseq", OrderingContext.DEFAULT_SCHEMA);
paymentConfiguration.Property<int>("BuyerId") paymentConfiguration.Property<int>("BuyerId")
.IsRequired(); .IsRequired();


Loading…
Cancel
Save