diff --git a/src/ApiGateways/ApiGw-Base/OcelotApiGw.csproj b/src/ApiGateways/ApiGw-Base/OcelotApiGw.csproj
index eb88972c0..f19e84335 100644
--- a/src/ApiGateways/ApiGw-Base/OcelotApiGw.csproj
+++ b/src/ApiGateways/ApiGw-Base/OcelotApiGw.csproj
@@ -10,7 +10,7 @@
-
+
diff --git a/src/ApiGateways/Mobile.Bff.Shopping/aggregator/Mobile.Shopping.HttpAggregator.csproj b/src/ApiGateways/Mobile.Bff.Shopping/aggregator/Mobile.Shopping.HttpAggregator.csproj
index 1e9508843..e0426f3bc 100644
--- a/src/ApiGateways/Mobile.Bff.Shopping/aggregator/Mobile.Shopping.HttpAggregator.csproj
+++ b/src/ApiGateways/Mobile.Bff.Shopping/aggregator/Mobile.Shopping.HttpAggregator.csproj
@@ -19,7 +19,7 @@
-
+
diff --git a/src/ApiGateways/Web.Bff.Shopping/aggregator/Web.Shopping.HttpAggregator.csproj b/src/ApiGateways/Web.Bff.Shopping/aggregator/Web.Shopping.HttpAggregator.csproj
index a15e101d3..7309593a8 100644
--- a/src/ApiGateways/Web.Bff.Shopping/aggregator/Web.Shopping.HttpAggregator.csproj
+++ b/src/ApiGateways/Web.Bff.Shopping/aggregator/Web.Shopping.HttpAggregator.csproj
@@ -18,7 +18,7 @@
-
+
diff --git a/src/BuildingBlocks/EventBus/EventBusRabbitMQ/EventBusRabbitMQ.csproj b/src/BuildingBlocks/EventBus/EventBusRabbitMQ/EventBusRabbitMQ.csproj
index 62373d1b3..cc16b89e1 100644
--- a/src/BuildingBlocks/EventBus/EventBusRabbitMQ/EventBusRabbitMQ.csproj
+++ b/src/BuildingBlocks/EventBus/EventBusRabbitMQ/EventBusRabbitMQ.csproj
@@ -6,12 +6,12 @@
-
+
-
-
+
+
diff --git a/src/BuildingBlocks/EventBus/EventBusServiceBus/EventBusServiceBus.csproj b/src/BuildingBlocks/EventBus/EventBusServiceBus/EventBusServiceBus.csproj
index 3de07e329..4b86c7234 100644
--- a/src/BuildingBlocks/EventBus/EventBusServiceBus/EventBusServiceBus.csproj
+++ b/src/BuildingBlocks/EventBus/EventBusServiceBus/EventBusServiceBus.csproj
@@ -6,8 +6,8 @@
-
-
+
+
diff --git a/src/BuildingBlocks/WebHostCustomization/WebHost.Customization/WebHost.Customization.csproj b/src/BuildingBlocks/WebHostCustomization/WebHost.Customization/WebHost.Customization.csproj
index 1d4ea7a2d..37e038028 100644
--- a/src/BuildingBlocks/WebHostCustomization/WebHost.Customization/WebHost.Customization.csproj
+++ b/src/BuildingBlocks/WebHostCustomization/WebHost.Customization/WebHost.Customization.csproj
@@ -5,7 +5,7 @@
-
+
diff --git a/src/Services/Basket/Basket.API/Basket.API.csproj b/src/Services/Basket/Basket.API/Basket.API.csproj
index d6459698c..77d58aff1 100644
--- a/src/Services/Basket/Basket.API/Basket.API.csproj
+++ b/src/Services/Basket/Basket.API/Basket.API.csproj
@@ -24,13 +24,13 @@
-
+
-
+
diff --git a/src/Services/Basket/Basket.FunctionalTests/Basket.FunctionalTests.csproj b/src/Services/Basket/Basket.FunctionalTests/Basket.FunctionalTests.csproj
index e781b218d..294d3bcc3 100644
--- a/src/Services/Basket/Basket.FunctionalTests/Basket.FunctionalTests.csproj
+++ b/src/Services/Basket/Basket.FunctionalTests/Basket.FunctionalTests.csproj
@@ -17,7 +17,7 @@
-
+
@@ -29,8 +29,6 @@
-
-
diff --git a/src/Services/Basket/Basket.FunctionalTests/BasketScenarios.cs b/src/Services/Basket/Basket.FunctionalTests/BasketScenarios.cs
index 5c7ecdef5..142cc51f1 100644
--- a/src/Services/Basket/Basket.FunctionalTests/BasketScenarios.cs
+++ b/src/Services/Basket/Basket.FunctionalTests/BasketScenarios.cs
@@ -5,7 +5,6 @@ using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
-using WebMVC.Models;
using Xunit;
namespace Basket.FunctionalTests
@@ -74,7 +73,8 @@ namespace Basket.FunctionalTests
string BuildCheckout()
{
- var checkoutBasket = new BasketDTO()
+
+ var checkoutBasket = new
{
City = "city",
Street = "street",
diff --git a/src/Services/Basket/Basket.UnitTests/Basket.UnitTests.csproj b/src/Services/Basket/Basket.UnitTests/Basket.UnitTests.csproj
index bf5cb593a..d76680291 100644
--- a/src/Services/Basket/Basket.UnitTests/Basket.UnitTests.csproj
+++ b/src/Services/Basket/Basket.UnitTests/Basket.UnitTests.csproj
@@ -7,14 +7,14 @@
-
+
all
runtime; build; native; contentfiles; analyzers
-
+
diff --git a/src/Services/Catalog/Catalog.API/Catalog.API.csproj b/src/Services/Catalog/Catalog.API/Catalog.API.csproj
index e7c996586..af93035ec 100644
--- a/src/Services/Catalog/Catalog.API/Catalog.API.csproj
+++ b/src/Services/Catalog/Catalog.API/Catalog.API.csproj
@@ -39,9 +39,9 @@
-
+
@@ -52,7 +52,7 @@
-
+
diff --git a/src/Services/Catalog/Catalog.API/Infrastructure/CatalogContextSeed.cs b/src/Services/Catalog/Catalog.API/Infrastructure/CatalogContextSeed.cs
index e7ea1e09d..5d0e38bbf 100644
--- a/src/Services/Catalog/Catalog.API/Infrastructure/CatalogContextSeed.cs
+++ b/src/Services/Catalog/Catalog.API/Infrastructure/CatalogContextSeed.cs
@@ -6,6 +6,7 @@
using Microsoft.Extensions.Options;
using Model;
using Polly;
+ using Polly.Retry;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
@@ -369,7 +370,7 @@
}
}
- private Policy CreatePolicy( ILogger logger, string prefix,int retries = 3)
+ private AsyncRetryPolicy CreatePolicy( ILogger logger, string prefix,int retries = 3)
{
return Policy.Handle().
WaitAndRetryAsync(
diff --git a/src/Services/Catalog/Catalog.FunctionalTests/Catalog.FunctionalTests.csproj b/src/Services/Catalog/Catalog.FunctionalTests/Catalog.FunctionalTests.csproj
index 07e9e2991..04aeeb8ef 100644
--- a/src/Services/Catalog/Catalog.FunctionalTests/Catalog.FunctionalTests.csproj
+++ b/src/Services/Catalog/Catalog.FunctionalTests/Catalog.FunctionalTests.csproj
@@ -33,7 +33,7 @@
-
+
diff --git a/src/Services/Catalog/Catalog.UnitTests/Catalog.UnitTests.csproj b/src/Services/Catalog/Catalog.UnitTests/Catalog.UnitTests.csproj
index 6a9a2bf99..e69d785b1 100644
--- a/src/Services/Catalog/Catalog.UnitTests/Catalog.UnitTests.csproj
+++ b/src/Services/Catalog/Catalog.UnitTests/Catalog.UnitTests.csproj
@@ -7,7 +7,7 @@
-
+
all
diff --git a/src/Services/Identity/Identity.API/Identity.API.csproj b/src/Services/Identity/Identity.API/Identity.API.csproj
index fe4432af8..a6dea0d4b 100644
--- a/src/Services/Identity/Identity.API/Identity.API.csproj
+++ b/src/Services/Identity/Identity.API/Identity.API.csproj
@@ -17,20 +17,20 @@
-
+
-
-
+
+
-
+
diff --git a/src/Services/Identity/Identity.API/Migrations/20170912114036_Initial.Designer.cs b/src/Services/Identity/Identity.API/Migrations/20190301122307_Initial.Designer.cs
similarity index 87%
rename from src/Services/Identity/Identity.API/Migrations/20170912114036_Initial.Designer.cs
rename to src/Services/Identity/Identity.API/Migrations/20190301122307_Initial.Designer.cs
index 0850b37b9..591f24cb7 100644
--- a/src/Services/Identity/Identity.API/Migrations/20170912114036_Initial.Designer.cs
+++ b/src/Services/Identity/Identity.API/Migrations/20190301122307_Initial.Designer.cs
@@ -1,110 +1,26 @@
//
+using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Microsoft.eShopOnContainers.Services.Identity.API.Data;
-using System;
namespace Identity.API.Migrations
{
[DbContext(typeof(ApplicationDbContext))]
- [Migration("20170912114036_Initial")]
+ [Migration("20190301122307_Initial")]
partial class Initial
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
- .HasAnnotation("ProductVersion", "2.0.0-rtm-26452")
+ .HasAnnotation("ProductVersion", "2.2.1-servicing-10028")
+ .HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
- modelBuilder.Entity("Identity.API.Models.ApplicationUser", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("AccessFailedCount");
-
- b.Property("CardHolderName")
- .IsRequired();
-
- b.Property("CardNumber")
- .IsRequired();
-
- b.Property("CardType");
-
- b.Property("City")
- .IsRequired();
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken();
-
- b.Property("Country")
- .IsRequired();
-
- b.Property("Email")
- .HasMaxLength(256);
-
- b.Property("EmailConfirmed");
-
- b.Property("Expiration")
- .IsRequired();
-
- b.Property("LastName")
- .IsRequired();
-
- b.Property("LockoutEnabled");
-
- b.Property("LockoutEnd");
-
- b.Property("Name")
- .IsRequired();
-
- b.Property("NormalizedEmail")
- .HasMaxLength(256);
-
- b.Property("NormalizedUserName")
- .HasMaxLength(256);
-
- b.Property("PasswordHash");
-
- b.Property("PhoneNumber");
-
- b.Property("PhoneNumberConfirmed");
-
- b.Property("SecurityNumber")
- .IsRequired();
-
- b.Property("SecurityStamp");
-
- b.Property("State")
- .IsRequired();
-
- b.Property("Street")
- .IsRequired();
-
- b.Property("TwoFactorEnabled");
-
- b.Property("UserName")
- .HasMaxLength(256);
-
- b.Property("ZipCode")
- .IsRequired();
-
- b.HasKey("Id");
-
- b.HasIndex("NormalizedEmail")
- .HasName("EmailIndex");
-
- b.HasIndex("NormalizedUserName")
- .IsUnique()
- .HasName("UserNameIndex")
- .HasFilter("[NormalizedUserName] IS NOT NULL");
-
- b.ToTable("AspNetUsers");
- });
-
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
{
b.Property("Id")
@@ -132,7 +48,8 @@ namespace Identity.API.Migrations
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b =>
{
b.Property("Id")
- .ValueGeneratedOnAdd();
+ .ValueGeneratedOnAdd()
+ .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("ClaimType");
@@ -151,7 +68,8 @@ namespace Identity.API.Migrations
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b =>
{
b.Property("Id")
- .ValueGeneratedOnAdd();
+ .ValueGeneratedOnAdd()
+ .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("ClaimType");
@@ -213,6 +131,92 @@ namespace Identity.API.Migrations
b.ToTable("AspNetUserTokens");
});
+ modelBuilder.Entity("Microsoft.eShopOnContainers.Services.Identity.API.Models.ApplicationUser", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd();
+
+ b.Property("AccessFailedCount");
+
+ b.Property("CardHolderName")
+ .IsRequired();
+
+ b.Property("CardNumber")
+ .IsRequired();
+
+ b.Property("CardType");
+
+ b.Property("City")
+ .IsRequired();
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken();
+
+ b.Property("Country")
+ .IsRequired();
+
+ b.Property("Email")
+ .HasMaxLength(256);
+
+ b.Property("EmailConfirmed");
+
+ b.Property("Expiration")
+ .IsRequired();
+
+ b.Property("LastName")
+ .IsRequired();
+
+ b.Property("LockoutEnabled");
+
+ b.Property("LockoutEnd");
+
+ b.Property("Name")
+ .IsRequired();
+
+ b.Property("NormalizedEmail")
+ .HasMaxLength(256);
+
+ b.Property("NormalizedUserName")
+ .HasMaxLength(256);
+
+ b.Property("PasswordHash");
+
+ b.Property("PhoneNumber");
+
+ b.Property("PhoneNumberConfirmed");
+
+ b.Property("SecurityNumber")
+ .IsRequired();
+
+ b.Property("SecurityStamp");
+
+ b.Property("State")
+ .IsRequired();
+
+ b.Property("Street")
+ .IsRequired();
+
+ b.Property("TwoFactorEnabled");
+
+ b.Property("UserName")
+ .HasMaxLength(256);
+
+ b.Property("ZipCode")
+ .IsRequired();
+
+ b.HasKey("Id");
+
+ b.HasIndex("NormalizedEmail")
+ .HasName("EmailIndex");
+
+ b.HasIndex("NormalizedUserName")
+ .IsUnique()
+ .HasName("UserNameIndex")
+ .HasFilter("[NormalizedUserName] IS NOT NULL");
+
+ b.ToTable("AspNetUsers");
+ });
+
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b =>
{
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole")
@@ -223,7 +227,7 @@ namespace Identity.API.Migrations
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b =>
{
- b.HasOne("Identity.API.Models.ApplicationUser")
+ b.HasOne("Microsoft.eShopOnContainers.Services.Identity.API.Models.ApplicationUser")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
@@ -231,7 +235,7 @@ namespace Identity.API.Migrations
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b =>
{
- b.HasOne("Identity.API.Models.ApplicationUser")
+ b.HasOne("Microsoft.eShopOnContainers.Services.Identity.API.Models.ApplicationUser")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
@@ -244,7 +248,7 @@ namespace Identity.API.Migrations
.HasForeignKey("RoleId")
.OnDelete(DeleteBehavior.Cascade);
- b.HasOne("Identity.API.Models.ApplicationUser")
+ b.HasOne("Microsoft.eShopOnContainers.Services.Identity.API.Models.ApplicationUser")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
@@ -252,7 +256,7 @@ namespace Identity.API.Migrations
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b =>
{
- b.HasOne("Identity.API.Models.ApplicationUser")
+ b.HasOne("Microsoft.eShopOnContainers.Services.Identity.API.Models.ApplicationUser")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
diff --git a/src/Services/Identity/Identity.API/Migrations/20170912114036_Initial.cs b/src/Services/Identity/Identity.API/Migrations/20190301122307_Initial.cs
similarity index 58%
rename from src/Services/Identity/Identity.API/Migrations/20170912114036_Initial.cs
rename to src/Services/Identity/Identity.API/Migrations/20190301122307_Initial.cs
index cf771dac8..f349645f8 100644
--- a/src/Services/Identity/Identity.API/Migrations/20170912114036_Initial.cs
+++ b/src/Services/Identity/Identity.API/Migrations/20190301122307_Initial.cs
@@ -1,7 +1,6 @@
-using Microsoft.EntityFrameworkCore.Metadata;
+using System;
+using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
-using System;
-using System.Collections.Generic;
namespace Identity.API.Migrations
{
@@ -13,10 +12,10 @@ namespace Identity.API.Migrations
name: "AspNetRoles",
columns: table => new
{
- Id = table.Column(type: "nvarchar(450)", nullable: false),
- ConcurrencyStamp = table.Column(type: "nvarchar(max)", nullable: true),
- Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true),
- NormalizedName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true)
+ Id = table.Column(nullable: false),
+ Name = table.Column(maxLength: 256, nullable: true),
+ NormalizedName = table.Column(maxLength: 256, nullable: true),
+ ConcurrencyStamp = table.Column(nullable: true)
},
constraints: table =>
{
@@ -27,33 +26,33 @@ namespace Identity.API.Migrations
name: "AspNetUsers",
columns: table => new
{
- Id = table.Column(type: "nvarchar(450)", nullable: false),
- AccessFailedCount = table.Column(type: "int", nullable: false),
- CardHolderName = table.Column(type: "nvarchar(max)", nullable: false),
- CardNumber = table.Column(type: "nvarchar(max)", nullable: false),
- CardType = table.Column(type: "int", nullable: false),
- City = table.Column(type: "nvarchar(max)", nullable: false),
- ConcurrencyStamp = table.Column(type: "nvarchar(max)", nullable: true),
- Country = table.Column(type: "nvarchar(max)", nullable: false),
- Email = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true),
- EmailConfirmed = table.Column(type: "bit", nullable: false),
- Expiration = table.Column(type: "nvarchar(max)", nullable: false),
- LastName = table.Column(type: "nvarchar(max)", nullable: false),
- LockoutEnabled = table.Column(type: "bit", nullable: false),
- LockoutEnd = table.Column(type: "datetimeoffset", nullable: true),
- Name = table.Column(type: "nvarchar(max)", nullable: false),
- NormalizedEmail = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true),
- NormalizedUserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true),
- PasswordHash = table.Column(type: "nvarchar(max)", nullable: true),
- PhoneNumber = table.Column(type: "nvarchar(max)", nullable: true),
- PhoneNumberConfirmed = table.Column(type: "bit", nullable: false),
- SecurityNumber = table.Column(type: "nvarchar(max)", nullable: false),
- SecurityStamp = table.Column(type: "nvarchar(max)", nullable: true),
- State = table.Column(type: "nvarchar(max)", nullable: false),
- Street = table.Column(type: "nvarchar(max)", nullable: false),
- TwoFactorEnabled = table.Column(type: "bit", nullable: false),
- UserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true),
- ZipCode = table.Column(type: "nvarchar(max)", nullable: false)
+ Id = table.Column(nullable: false),
+ UserName = table.Column(maxLength: 256, nullable: true),
+ NormalizedUserName = table.Column(maxLength: 256, nullable: true),
+ Email = table.Column(maxLength: 256, nullable: true),
+ NormalizedEmail = table.Column(maxLength: 256, nullable: true),
+ EmailConfirmed = table.Column(nullable: false),
+ PasswordHash = table.Column(nullable: true),
+ SecurityStamp = table.Column(nullable: true),
+ ConcurrencyStamp = table.Column(nullable: true),
+ PhoneNumber = table.Column(nullable: true),
+ PhoneNumberConfirmed = table.Column(nullable: false),
+ TwoFactorEnabled = table.Column(nullable: false),
+ LockoutEnd = table.Column(nullable: true),
+ LockoutEnabled = table.Column(nullable: false),
+ AccessFailedCount = table.Column(nullable: false),
+ CardNumber = table.Column(nullable: false),
+ SecurityNumber = table.Column(nullable: false),
+ Expiration = table.Column(nullable: false),
+ CardHolderName = table.Column(nullable: false),
+ CardType = table.Column(nullable: false),
+ Street = table.Column(nullable: false),
+ City = table.Column(nullable: false),
+ State = table.Column(nullable: false),
+ Country = table.Column(nullable: false),
+ ZipCode = table.Column(nullable: false),
+ Name = table.Column(nullable: false),
+ LastName = table.Column(nullable: false)
},
constraints: table =>
{
@@ -64,11 +63,11 @@ namespace Identity.API.Migrations
name: "AspNetRoleClaims",
columns: table => new
{
- Id = table.Column(type: "int", nullable: false)
+ Id = table.Column(nullable: false)
.Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
- ClaimType = table.Column(type: "nvarchar(max)", nullable: true),
- ClaimValue = table.Column(type: "nvarchar(max)", nullable: true),
- RoleId = table.Column(type: "nvarchar(450)", nullable: false)
+ RoleId = table.Column(nullable: false),
+ ClaimType = table.Column(nullable: true),
+ ClaimValue = table.Column(nullable: true)
},
constraints: table =>
{
@@ -85,11 +84,11 @@ namespace Identity.API.Migrations
name: "AspNetUserClaims",
columns: table => new
{
- Id = table.Column(type: "int", nullable: false)
+ Id = table.Column(nullable: false)
.Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
- ClaimType = table.Column(type: "nvarchar(max)", nullable: true),
- ClaimValue = table.Column(type: "nvarchar(max)", nullable: true),
- UserId = table.Column(type: "nvarchar(450)", nullable: false)
+ UserId = table.Column(nullable: false),
+ ClaimType = table.Column(nullable: true),
+ ClaimValue = table.Column(nullable: true)
},
constraints: table =>
{
@@ -106,10 +105,10 @@ namespace Identity.API.Migrations
name: "AspNetUserLogins",
columns: table => new
{
- LoginProvider = table.Column(type: "nvarchar(450)", nullable: false),
- ProviderKey = table.Column(type: "nvarchar(450)", nullable: false),
- ProviderDisplayName = table.Column(type: "nvarchar(max)", nullable: true),
- UserId = table.Column(type: "nvarchar(450)", nullable: false)
+ LoginProvider = table.Column(nullable: false),
+ ProviderKey = table.Column(nullable: false),
+ ProviderDisplayName = table.Column(nullable: true),
+ UserId = table.Column(nullable: false)
},
constraints: table =>
{
@@ -126,8 +125,8 @@ namespace Identity.API.Migrations
name: "AspNetUserRoles",
columns: table => new
{
- UserId = table.Column(type: "nvarchar(450)", nullable: false),
- RoleId = table.Column(type: "nvarchar(450)", nullable: false)
+ UserId = table.Column(nullable: false),
+ RoleId = table.Column(nullable: false)
},
constraints: table =>
{
@@ -150,10 +149,10 @@ namespace Identity.API.Migrations
name: "AspNetUserTokens",
columns: table => new
{
- UserId = table.Column(type: "nvarchar(450)", nullable: false),
- LoginProvider = table.Column(type: "nvarchar(450)", nullable: false),
- Name = table.Column(type: "nvarchar(450)", nullable: false),
- Value = table.Column(type: "nvarchar(max)", nullable: true)
+ UserId = table.Column(nullable: false),
+ LoginProvider = table.Column(nullable: false),
+ Name = table.Column(nullable: false),
+ Value = table.Column(nullable: true)
},
constraints: table =>
{
diff --git a/src/Services/Identity/Identity.API/Migrations/ApplicationDbContextModelSnapshot.cs b/src/Services/Identity/Identity.API/Migrations/ApplicationDbContextModelSnapshot.cs
index dcc87bc73..57c3fea70 100644
--- a/src/Services/Identity/Identity.API/Migrations/ApplicationDbContextModelSnapshot.cs
+++ b/src/Services/Identity/Identity.API/Migrations/ApplicationDbContextModelSnapshot.cs
@@ -1,9 +1,10 @@
//
+using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Microsoft.eShopOnContainers.Services.Identity.API.Data;
-using System;
namespace Identity.API.Migrations
{
@@ -14,95 +15,10 @@ namespace Identity.API.Migrations
{
#pragma warning disable 612, 618
modelBuilder
- .HasAnnotation("ProductVersion", "2.0.0-rtm-26452")
+ .HasAnnotation("ProductVersion", "2.2.1-servicing-10028")
+ .HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
- modelBuilder.Entity("Identity.API.Models.ApplicationUser", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("AccessFailedCount");
-
- b.Property("CardHolderName")
- .IsRequired();
-
- b.Property("CardNumber")
- .IsRequired();
-
- b.Property("CardType");
-
- b.Property("City")
- .IsRequired();
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken();
-
- b.Property("Country")
- .IsRequired();
-
- b.Property("Email")
- .HasMaxLength(256);
-
- b.Property("EmailConfirmed");
-
- b.Property("Expiration")
- .IsRequired();
-
- b.Property("LastName")
- .IsRequired();
-
- b.Property("LockoutEnabled");
-
- b.Property("LockoutEnd");
-
- b.Property("Name")
- .IsRequired();
-
- b.Property("NormalizedEmail")
- .HasMaxLength(256);
-
- b.Property("NormalizedUserName")
- .HasMaxLength(256);
-
- b.Property("PasswordHash");
-
- b.Property("PhoneNumber");
-
- b.Property("PhoneNumberConfirmed");
-
- b.Property("SecurityNumber")
- .IsRequired();
-
- b.Property("SecurityStamp");
-
- b.Property("State")
- .IsRequired();
-
- b.Property("Street")
- .IsRequired();
-
- b.Property("TwoFactorEnabled");
-
- b.Property("UserName")
- .HasMaxLength(256);
-
- b.Property("ZipCode")
- .IsRequired();
-
- b.HasKey("Id");
-
- b.HasIndex("NormalizedEmail")
- .HasName("EmailIndex");
-
- b.HasIndex("NormalizedUserName")
- .IsUnique()
- .HasName("UserNameIndex")
- .HasFilter("[NormalizedUserName] IS NOT NULL");
-
- b.ToTable("AspNetUsers");
- });
-
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
{
b.Property("Id")
@@ -130,7 +46,8 @@ namespace Identity.API.Migrations
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b =>
{
b.Property("Id")
- .ValueGeneratedOnAdd();
+ .ValueGeneratedOnAdd()
+ .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("ClaimType");
@@ -149,7 +66,8 @@ namespace Identity.API.Migrations
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b =>
{
b.Property("Id")
- .ValueGeneratedOnAdd();
+ .ValueGeneratedOnAdd()
+ .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("ClaimType");
@@ -211,6 +129,92 @@ namespace Identity.API.Migrations
b.ToTable("AspNetUserTokens");
});
+ modelBuilder.Entity("Microsoft.eShopOnContainers.Services.Identity.API.Models.ApplicationUser", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd();
+
+ b.Property("AccessFailedCount");
+
+ b.Property("CardHolderName")
+ .IsRequired();
+
+ b.Property("CardNumber")
+ .IsRequired();
+
+ b.Property("CardType");
+
+ b.Property("City")
+ .IsRequired();
+
+ b.Property("ConcurrencyStamp")
+ .IsConcurrencyToken();
+
+ b.Property("Country")
+ .IsRequired();
+
+ b.Property("Email")
+ .HasMaxLength(256);
+
+ b.Property("EmailConfirmed");
+
+ b.Property("Expiration")
+ .IsRequired();
+
+ b.Property("LastName")
+ .IsRequired();
+
+ b.Property("LockoutEnabled");
+
+ b.Property("LockoutEnd");
+
+ b.Property("Name")
+ .IsRequired();
+
+ b.Property("NormalizedEmail")
+ .HasMaxLength(256);
+
+ b.Property("NormalizedUserName")
+ .HasMaxLength(256);
+
+ b.Property("PasswordHash");
+
+ b.Property("PhoneNumber");
+
+ b.Property("PhoneNumberConfirmed");
+
+ b.Property("SecurityNumber")
+ .IsRequired();
+
+ b.Property("SecurityStamp");
+
+ b.Property("State")
+ .IsRequired();
+
+ b.Property("Street")
+ .IsRequired();
+
+ b.Property("TwoFactorEnabled");
+
+ b.Property("UserName")
+ .HasMaxLength(256);
+
+ b.Property("ZipCode")
+ .IsRequired();
+
+ b.HasKey("Id");
+
+ b.HasIndex("NormalizedEmail")
+ .HasName("EmailIndex");
+
+ b.HasIndex("NormalizedUserName")
+ .IsUnique()
+ .HasName("UserNameIndex")
+ .HasFilter("[NormalizedUserName] IS NOT NULL");
+
+ b.ToTable("AspNetUsers");
+ });
+
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b =>
{
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole")
@@ -221,7 +225,7 @@ namespace Identity.API.Migrations
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b =>
{
- b.HasOne("Identity.API.Models.ApplicationUser")
+ b.HasOne("Microsoft.eShopOnContainers.Services.Identity.API.Models.ApplicationUser")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
@@ -229,7 +233,7 @@ namespace Identity.API.Migrations
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b =>
{
- b.HasOne("Identity.API.Models.ApplicationUser")
+ b.HasOne("Microsoft.eShopOnContainers.Services.Identity.API.Models.ApplicationUser")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
@@ -242,7 +246,7 @@ namespace Identity.API.Migrations
.HasForeignKey("RoleId")
.OnDelete(DeleteBehavior.Cascade);
- b.HasOne("Identity.API.Models.ApplicationUser")
+ b.HasOne("Microsoft.eShopOnContainers.Services.Identity.API.Models.ApplicationUser")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
@@ -250,7 +254,7 @@ namespace Identity.API.Migrations
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b =>
{
- b.HasOne("Identity.API.Models.ApplicationUser")
+ b.HasOne("Microsoft.eShopOnContainers.Services.Identity.API.Models.ApplicationUser")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
diff --git a/src/Services/Identity/Identity.API/Migrations/ConfigurationDb/20170927170433_Config.Designer.cs b/src/Services/Identity/Identity.API/Migrations/ConfigurationDb/20181129175524_Config.Designer.cs
similarity index 71%
rename from src/Services/Identity/Identity.API/Migrations/ConfigurationDb/20170927170433_Config.Designer.cs
rename to src/Services/Identity/Identity.API/Migrations/ConfigurationDb/20181129175524_Config.Designer.cs
index 327d2fee0..f8a7b6452 100644
--- a/src/Services/Identity/Identity.API/Migrations/ConfigurationDb/20170927170433_Config.Designer.cs
+++ b/src/Services/Identity/Identity.API/Migrations/ConfigurationDb/20181129175524_Config.Designer.cs
@@ -1,30 +1,33 @@
//
+using System;
using IdentityServer4.EntityFramework.DbContexts;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
-using Microsoft.EntityFrameworkCore.Storage;
-using Microsoft.EntityFrameworkCore.Storage.Internal;
-using System;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace Identity.API.Migrations.ConfigurationDb
{
[DbContext(typeof(ConfigurationDbContext))]
- [Migration("20170927170433_Config")]
+ [Migration("20181129175524_Config")]
partial class Config
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
- .HasAnnotation("ProductVersion", "2.0.0-rtm-26452")
+ .HasAnnotation("ProductVersion", "2.1.4-rtm-31024")
+ .HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResource", b =>
{
b.Property("Id")
- .ValueGeneratedOnAdd();
+ .ValueGeneratedOnAdd()
+ .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
+
+ b.Property("Created");
b.Property("Description")
.HasMaxLength(1000);
@@ -34,10 +37,16 @@ namespace Identity.API.Migrations.ConfigurationDb
b.Property("Enabled");
+ b.Property("LastAccessed");
+
b.Property("Name")
.IsRequired()
.HasMaxLength(200);
+ b.Property("NonEditable");
+
+ b.Property("Updated");
+
b.HasKey("Id");
b.HasIndex("Name")
@@ -49,10 +58,10 @@ namespace Identity.API.Migrations.ConfigurationDb
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceClaim", b =>
{
b.Property("Id")
- .ValueGeneratedOnAdd();
+ .ValueGeneratedOnAdd()
+ .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
- b.Property("ApiResourceId")
- .IsRequired();
+ b.Property("ApiResourceId");
b.Property("Type")
.IsRequired()
@@ -65,13 +74,36 @@ namespace Identity.API.Migrations.ConfigurationDb
b.ToTable("ApiClaims");
});
+ modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceProperty", b =>
+ {
+ b.Property("Id")
+ .ValueGeneratedOnAdd()
+ .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
+
+ b.Property("ApiResourceId");
+
+ b.Property("Key")
+ .IsRequired()
+ .HasMaxLength(250);
+
+ b.Property("Value")
+ .IsRequired()
+ .HasMaxLength(2000);
+
+ b.HasKey("Id");
+
+ b.HasIndex("ApiResourceId");
+
+ b.ToTable("ApiProperties");
+ });
+
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScope", b =>
{
b.Property("Id")
- .ValueGeneratedOnAdd();
+ .ValueGeneratedOnAdd()
+ .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
- b.Property("ApiResourceId")
- .IsRequired();
+ b.Property("ApiResourceId");
b.Property("Description")
.HasMaxLength(1000);
@@ -102,10 +134,10 @@ namespace Identity.API.Migrations.ConfigurationDb
modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScopeClaim", b =>
{
b.Property("Id")
- .ValueGeneratedOnAdd();
+ .ValueGeneratedOnAdd()
+ .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
- b.Property