Change obsolete .ForSqlServerUseSequenceHiLo for .UseHiLo
This commit is contained in:
parent
866e89cad2
commit
c3f7178631
@ -14,7 +14,7 @@ namespace Microsoft.eShopOnContainers.Services.Catalog.API.Infrastructure.Entity
|
||||
builder.HasKey(ci => ci.Id);
|
||||
|
||||
builder.Property(ci => ci.Id)
|
||||
.ForSqlServerUseSequenceHiLo("catalog_brand_hilo")
|
||||
.UseHiLo("catalog_brand_hilo")
|
||||
.IsRequired();
|
||||
|
||||
builder.Property(cb => cb.Brand)
|
||||
|
@ -12,7 +12,7 @@ namespace Microsoft.eShopOnContainers.Services.Catalog.API.Infrastructure.Entity
|
||||
builder.ToTable("Catalog");
|
||||
|
||||
builder.Property(ci => ci.Id)
|
||||
.ForSqlServerUseSequenceHiLo("catalog_hilo")
|
||||
.UseHiLo("catalog_hilo")
|
||||
.IsRequired();
|
||||
|
||||
builder.Property(ci => ci.Name)
|
||||
|
@ -14,7 +14,7 @@ namespace Microsoft.eShopOnContainers.Services.Catalog.API.Infrastructure.Entity
|
||||
builder.HasKey(ci => ci.Id);
|
||||
|
||||
builder.Property(ci => ci.Id)
|
||||
.ForSqlServerUseSequenceHiLo("catalog_type_hilo")
|
||||
.UseHiLo("catalog_type_hilo")
|
||||
.IsRequired();
|
||||
|
||||
builder.Property(cb => cb.Type)
|
||||
|
@ -14,7 +14,7 @@ namespace Microsoft.eShopOnContainers.Services.Marketing.API.Infrastructure.Enti
|
||||
builder.HasKey(m => m.Id);
|
||||
|
||||
builder.Property(m => m.Id)
|
||||
.ForSqlServerUseSequenceHiLo("campaign_hilo")
|
||||
.UseHiLo("campaign_hilo")
|
||||
.IsRequired();
|
||||
|
||||
builder.Property(m => m.Name)
|
||||
|
@ -14,7 +14,7 @@ namespace Microsoft.eShopOnContainers.Services.Marketing.API.Infrastructure.Enti
|
||||
builder.HasKey(r => r.Id);
|
||||
|
||||
builder.Property(r => r.Id)
|
||||
.ForSqlServerUseSequenceHiLo("rule_hilo")
|
||||
.UseHiLo("rule_hilo")
|
||||
.IsRequired();
|
||||
|
||||
builder.HasDiscriminator<int>("RuleTypeId")
|
||||
|
@ -27,6 +27,7 @@ namespace Microsoft.eShopOnContainers.Services.Ordering.Domain.AggregatesModel.O
|
||||
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
|
||||
private bool _isDraft;
|
||||
|
||||
|
@ -17,7 +17,7 @@ namespace Ordering.Infrastructure.EntityConfigurations
|
||||
buyerConfiguration.Ignore(b => b.DomainEvents);
|
||||
|
||||
buyerConfiguration.Property(b => b.Id)
|
||||
.ForSqlServerUseSequenceHiLo("buyerseq", OrderingContext.DEFAULT_SCHEMA);
|
||||
.UseHiLo("buyerseq", OrderingContext.DEFAULT_SCHEMA);
|
||||
|
||||
buyerConfiguration.Property(b => b.IdentityGuid)
|
||||
.HasMaxLength(200)
|
||||
|
@ -18,7 +18,7 @@ namespace Ordering.Infrastructure.EntityConfigurations
|
||||
orderConfiguration.Ignore(b => b.DomainEvents);
|
||||
|
||||
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
|
||||
orderConfiguration
|
||||
|
@ -17,7 +17,7 @@ namespace Ordering.Infrastructure.EntityConfigurations
|
||||
orderItemConfiguration.Ignore(b => b.DomainEvents);
|
||||
|
||||
orderItemConfiguration.Property(o => o.Id)
|
||||
.ForSqlServerUseSequenceHiLo("orderitemseq");
|
||||
.UseHiLo("orderitemseq");
|
||||
|
||||
orderItemConfiguration.Property<int>("OrderId")
|
||||
.IsRequired();
|
||||
|
@ -18,7 +18,7 @@ namespace Ordering.Infrastructure.EntityConfigurations
|
||||
paymentConfiguration.Ignore(b => b.DomainEvents);
|
||||
|
||||
paymentConfiguration.Property(b => b.Id)
|
||||
.ForSqlServerUseSequenceHiLo("paymentseq", OrderingContext.DEFAULT_SCHEMA);
|
||||
.UseHiLo("paymentseq", OrderingContext.DEFAULT_SCHEMA);
|
||||
|
||||
paymentConfiguration.Property<int>("BuyerId")
|
||||
.IsRequired();
|
||||
|
Loading…
x
Reference in New Issue
Block a user