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.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)
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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")
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
@ -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
|
||||||
|
@ -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();
|
||||||
|
@ -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…
x
Reference in New Issue
Block a user