From 1e3de03118ae9cfe4a470ef28ac8f3579898b722 Mon Sep 17 00:00:00 2001 From: Yaser Moradi Date: Thu, 7 Nov 2024 19:41:48 +0100 Subject: [PATCH] fix(templates): resolve Boilerplate appsettings.json issues #9140 (#9142) --- ...241107182721_InitialMigration.Designer.cs} | 66 ++++++++++--------- ....cs => 20241107182721_InitialMigration.cs} | 64 +++++++++--------- .../Migrations/AppDbContextModelSnapshot.cs | 64 +++++++++--------- .../src/Shared/appsettings.json | 46 ++++++------- 4 files changed, 124 insertions(+), 116 deletions(-) rename src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/{20241028193317_InitialMigration.Designer.cs => 20241107182721_InitialMigration.Designer.cs} (97%) rename src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/{20241028193317_InitialMigration.cs => 20241107182721_InitialMigration.cs} (88%) diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/20241028193317_InitialMigration.Designer.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/20241107182721_InitialMigration.Designer.cs similarity index 97% rename from src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/20241028193317_InitialMigration.Designer.cs rename to src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/20241107182721_InitialMigration.Designer.cs index 25f3376906..d7123ec841 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/20241028193317_InitialMigration.Designer.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/20241107182721_InitialMigration.Designer.cs @@ -6,7 +6,7 @@ namespace Boilerplate.Server.Api.Data.Migrations; [DbContext(typeof(AppDbContext))] -[Migration("20241028193317_InitialMigration")] +[Migration("20241107182721_InitialMigration")] partial class InitialMigration { /// @@ -46,35 +46,35 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = new Guid("31d78bd0-0b4f-4e87-b02f-8f66d4ab2845"), Color = "#FFCD56", - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, Name = "Ford" }, new { Id = new Guid("582b8c19-0709-4dae-b7a6-fa0e704dad3c"), Color = "#FF6384", - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, Name = "Nissan" }, new { Id = new Guid("6fae78f3-b067-40fb-a2d5-9c8dd5eb2e08"), Color = "#4BC0C0", - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, Name = "Benz" }, new { Id = new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), Color = "#FF9124", - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, Name = "BMW" }, new { Id = new Guid("747f6d66-7524-40ca-8494-f65e85b5ee5d"), Color = "#2B88D8", - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, Name = "Tesla" }); }); @@ -87,7 +87,9 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ConcurrencyStamp") .IsConcurrencyToken() - .HasColumnType("TEXT"); + .ValueGeneratedOnAddOrUpdate() + .HasColumnType("TEXT") + .HasAnnotation("Cosmos:PropertyName", "_etag"); b.Property("Name") .HasMaxLength(50) @@ -124,7 +126,9 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ConcurrencyStamp") .IsConcurrencyToken() - .HasColumnType("TEXT"); + .ValueGeneratedOnAddOrUpdate() + .HasColumnType("TEXT") + .HasAnnotation("Cosmos:PropertyName", "_etag"); b.Property("Email") .HasMaxLength(256) @@ -285,7 +289,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = new Guid("9a59dda2-7b12-4cc1-9658-d2586eef91d4"), CategoryId = new Guid("31d78bd0-0b4f-4e87-b02f-8f66d4ab2845"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306466648064000000L, Description = "The Ford Mustang is ranked #1 in Sports Cars", Name = "Mustang", @@ -295,7 +299,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = new Guid("a42914e2-92da-4f0b-aab0-b9572c9671b4"), CategoryId = new Guid("31d78bd0-0b4f-4e87-b02f-8f66d4ab2845"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306457800704000000L, Description = "The Ford GT is a mid-engine two-seater sports car manufactured and marketed by American automobile manufacturer", Name = "GT", @@ -305,7 +309,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = new Guid("f75325c8-a213-470b-ab93-4677ca4caeef"), CategoryId = new Guid("31d78bd0-0b4f-4e87-b02f-8f66d4ab2845"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306440105984000000L, Description = "Ford Ranger is a nameplate that has been used on multiple model lines of pickup trucks sold by Ford worldwide.", Name = "Ranger", @@ -315,7 +319,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = new Guid("43a82ec1-aab6-445f-83af-a85028417cf7"), CategoryId = new Guid("31d78bd0-0b4f-4e87-b02f-8f66d4ab2845"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306431258624000000L, Description = "Raptor is a SCORE off-road trophy truck living in a asphalt world", Name = "Raptor", @@ -325,7 +329,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = new Guid("f01b32bb-eccd-43be-aaf3-3c788a7d7558"), CategoryId = new Guid("31d78bd0-0b4f-4e87-b02f-8f66d4ab2845"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306422411264000000L, Description = "The Ford Maverick is a compact pickup truck produced by Ford Motor Company.", Name = "Maverick", @@ -335,7 +339,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = new Guid("d53bb159-f4f9-493a-b4dc-215fd765ca25"), CategoryId = new Guid("582b8c19-0709-4dae-b7a6-fa0e704dad3c"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306466648064000000L, Description = "A powerful convertible sports car", Name = "Roadster", @@ -345,7 +349,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = new Guid("74bb268f-18cf-45ec-9f2f-30b34b18fb3c"), CategoryId = new Guid("582b8c19-0709-4dae-b7a6-fa0e704dad3c"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306457800704000000L, Description = "A perfectly adequate family sedan with sharp looks", Name = "Altima", @@ -355,7 +359,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = new Guid("eb787e1a-7ba8-4708-924b-9f7964fa0f64"), CategoryId = new Guid("582b8c19-0709-4dae-b7a6-fa0e704dad3c"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306440105984000000L, Description = "Legendary supercar with AWD, 4 seats, a powerful V6 engine and the latest tech", Name = "GT-R", @@ -365,7 +369,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = new Guid("362a6638-0031-485d-825f-e8aeae63a334"), CategoryId = new Guid("582b8c19-0709-4dae-b7a6-fa0e704dad3c"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306422411264000000L, Description = "A new smart SUV", Name = "Juke", @@ -375,7 +379,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = new Guid("8629931e-e26e-4885-b561-e447197d4b69"), CategoryId = new Guid("6fae78f3-b067-40fb-a2d5-9c8dd5eb2e08"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306466648064000000L, Description = "", Name = "H247", @@ -385,7 +389,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = new Guid("a1c1987d-ee6c-41ad-9647-18de4504303a"), CategoryId = new Guid("6fae78f3-b067-40fb-a2d5-9c8dd5eb2e08"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306457800704000000L, Description = "", Name = "V297", @@ -395,7 +399,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = new Guid("59eea437-bdf2-4c11-b262-06643b253288"), CategoryId = new Guid("6fae78f3-b067-40fb-a2d5-9c8dd5eb2e08"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306422411264000000L, Description = "", Name = "R50", @@ -405,7 +409,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = new Guid("01d223a3-182d-406a-9722-19dab083f96e"), CategoryId = new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306466648064000000L, Description = "", Name = "M550i", @@ -415,7 +419,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = new Guid("64a2616f-3af6-4248-86cf-4a605095a644"), CategoryId = new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306457800704000000L, Description = "", Name = "540i", @@ -425,7 +429,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = new Guid("ac50dc29-4b7e-4d4d-b23a-4227d91f2bb0"), CategoryId = new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306448953344000000L, Description = "", Name = "530e", @@ -435,7 +439,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = new Guid("fb41cc51-9abd-4b45-b0d9-ea8f565ec502"), CategoryId = new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306440105984000000L, Description = "", Name = "530i", @@ -445,7 +449,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = new Guid("e159b1ad-12aa-4e02-a39b-d5e4a32eaf99"), CategoryId = new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306431258624000000L, Description = "", Name = "M850i", @@ -455,7 +459,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = new Guid("4d9cb0f4-1f32-45d5-8c84-d7f15bc569d5"), CategoryId = new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306422411264000000L, Description = "", Name = "X7", @@ -465,7 +469,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = new Guid("1b22319e-0a58-471e-82b6-75cd8b9d98e1"), CategoryId = new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306413563904000000L, Description = "", Name = "IX", @@ -475,7 +479,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = new Guid("96c73b9c-03df-4f70-ac8d-75c32b89881a"), CategoryId = new Guid("747f6d66-7524-40ca-8494-f65e85b5ee5d"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306466648064000000L, Description = "rapid acceleration and dynamic handling", Name = "Model 3", @@ -485,7 +489,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = new Guid("840ba759-bde9-4821-b49b-c981c082bb96"), CategoryId = new Guid("747f6d66-7524-40ca-8494-f65e85b5ee5d"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306457800704000000L, Description = "finishes near the top of our luxury electric car rankings.", Name = "Model S", @@ -495,7 +499,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = new Guid("840e113b-5074-4b1c-86bd-e9affb659412"), CategoryId = new Guid("747f6d66-7524-40ca-8494-f65e85b5ee5d"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306448953344000000L, Description = "Heart-pumping acceleration, long drive range", Name = "Model X", @@ -505,7 +509,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) { Id = new Guid("b2db9074-a0a9-4054-87e2-206b7a55c793"), CategoryId = new Guid("747f6d66-7524-40ca-8494-f65e85b5ee5d"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306422411264000000L, Description = "extensive driving range, lots of standard safety features", Name = "Model Y", diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/20241028193317_InitialMigration.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/20241107182721_InitialMigration.cs similarity index 88% rename from src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/20241028193317_InitialMigration.cs rename to src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/20241107182721_InitialMigration.cs index 91d3adaafc..5530558a95 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/20241028193317_InitialMigration.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/20241107182721_InitialMigration.cs @@ -45,7 +45,7 @@ protected override void Up(MigrationBuilder migrationBuilder) Id = table.Column(type: "TEXT", nullable: false), Name = table.Column(type: "TEXT", maxLength: 50, nullable: true), NormalizedName = table.Column(type: "TEXT", maxLength: 256, nullable: true), - ConcurrencyStamp = table.Column(type: "TEXT", nullable: true) + ConcurrencyStamp = table.Column(type: "TEXT", rowVersion: true, nullable: true) }, constraints: table => { @@ -74,7 +74,7 @@ protected override void Up(MigrationBuilder migrationBuilder) EmailConfirmed = table.Column(type: "INTEGER", nullable: false), PasswordHash = table.Column(type: "TEXT", nullable: true), SecurityStamp = table.Column(type: "TEXT", nullable: true), - ConcurrencyStamp = table.Column(type: "TEXT", nullable: true), + ConcurrencyStamp = table.Column(type: "TEXT", rowVersion: true, nullable: true), PhoneNumber = table.Column(type: "TEXT", nullable: true), PhoneNumberConfirmed = table.Column(type: "INTEGER", nullable: false), TwoFactorEnabled = table.Column(type: "INTEGER", nullable: false), @@ -266,46 +266,46 @@ protected override void Up(MigrationBuilder migrationBuilder) columns: new[] { "Id", "Color", "ConcurrencyStamp", "Name" }, values: new object[,] { - { new Guid("31d78bd0-0b4f-4e87-b02f-8f66d4ab2845"), "#FFCD56", new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, "Ford" }, - { new Guid("582b8c19-0709-4dae-b7a6-fa0e704dad3c"), "#FF6384", new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, "Nissan" }, - { new Guid("6fae78f3-b067-40fb-a2d5-9c8dd5eb2e08"), "#4BC0C0", new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, "Benz" }, - { new Guid("747f6d66-7524-40ca-8494-f65e85b5ee5d"), "#2B88D8", new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, "Tesla" }, - { new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), "#FF9124", new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, "BMW" } + { new Guid("31d78bd0-0b4f-4e87-b02f-8f66d4ab2845"), "#FFCD56", new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, "Ford" }, + { new Guid("582b8c19-0709-4dae-b7a6-fa0e704dad3c"), "#FF6384", new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, "Nissan" }, + { new Guid("6fae78f3-b067-40fb-a2d5-9c8dd5eb2e08"), "#4BC0C0", new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, "Benz" }, + { new Guid("747f6d66-7524-40ca-8494-f65e85b5ee5d"), "#2B88D8", new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, "Tesla" }, + { new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), "#FF9124", new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, "BMW" } }); migrationBuilder.InsertData( table: "Users", - columns: new[] { "Id", "AccessFailedCount", "BirthDate", "ConcurrencyStamp", "Email", "EmailConfirmed", "EmailTokenRequestedOn", "FullName", "Gender", "LockoutEnabled", "LockoutEnd", "NormalizedEmail", "NormalizedUserName", "OtpRequestedOn", "PasswordHash", "PhoneNumber", "PhoneNumberConfirmed", "PhoneNumberTokenRequestedOn", "ProfileImageName", "ResetPasswordTokenRequestedOn", "SecurityStamp", "Sessions", "TwoFactorEnabled", "TwoFactorTokenRequestedOn", "UserName" }, - values: new object[] { new Guid("8ff71671-a1d6-4f97-abb9-d87d7b47d6e7"), 0, 1306790461440000000L, "315e1a26-5b3a-4544-8e91-2760cd28e231", "test@bitplatform.dev", true, 1306790461440000000L, "Boilerplate test account", 0, true, null, "TEST@BITPLATFORM.DEV", "TEST", null, "AQAAAAIAAYagAAAAEP0v3wxkdWtMkHA3Pp5/JfS+42/Qto9G05p2mta6dncSK37hPxEHa3PGE4aqN30Aag==", "+31684207362", true, null, null, null, "959ff4a9-4b07-4cc1-8141-c5fc033daf83", "[]", false, null, "test" }); + columns: new[] { "Id", "AccessFailedCount", "BirthDate", "Email", "EmailConfirmed", "EmailTokenRequestedOn", "FullName", "Gender", "LockoutEnabled", "LockoutEnd", "NormalizedEmail", "NormalizedUserName", "OtpRequestedOn", "PasswordHash", "PhoneNumber", "PhoneNumberConfirmed", "PhoneNumberTokenRequestedOn", "ProfileImageName", "ResetPasswordTokenRequestedOn", "SecurityStamp", "Sessions", "TwoFactorEnabled", "TwoFactorTokenRequestedOn", "UserName" }, + values: new object[] { new Guid("8ff71671-a1d6-4f97-abb9-d87d7b47d6e7"), 0, 1306790461440000000L, "test@bitplatform.dev", true, 1306790461440000000L, "Boilerplate test account", 0, true, null, "TEST@BITPLATFORM.DEV", "TEST", null, "AQAAAAIAAYagAAAAEP0v3wxkdWtMkHA3Pp5/JfS+42/Qto9G05p2mta6dncSK37hPxEHa3PGE4aqN30Aag==", "+31684207362", true, null, null, null, "959ff4a9-4b07-4cc1-8141-c5fc033daf83", "[]", false, null, "test" }); migrationBuilder.InsertData( table: "Products", columns: new[] { "Id", "CategoryId", "ConcurrencyStamp", "CreatedOn", "Description", "Name", "Price" }, values: new object[,] { - { new Guid("01d223a3-182d-406a-9722-19dab083f96e"), new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, 1306466648064000000L, "", "M550i", 77790m }, - { new Guid("1b22319e-0a58-471e-82b6-75cd8b9d98e1"), new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, 1306413563904000000L, "", "IX", 87000m }, - { new Guid("362a6638-0031-485d-825f-e8aeae63a334"), new Guid("582b8c19-0709-4dae-b7a6-fa0e704dad3c"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, 1306422411264000000L, "A new smart SUV", "Juke", 28100m }, - { new Guid("43a82ec1-aab6-445f-83af-a85028417cf7"), new Guid("31d78bd0-0b4f-4e87-b02f-8f66d4ab2845"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, 1306431258624000000L, "Raptor is a SCORE off-road trophy truck living in a asphalt world", "Raptor", 53205m }, - { new Guid("4d9cb0f4-1f32-45d5-8c84-d7f15bc569d5"), new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, 1306422411264000000L, "", "X7", 77980m }, - { new Guid("59eea437-bdf2-4c11-b262-06643b253288"), new Guid("6fae78f3-b067-40fb-a2d5-9c8dd5eb2e08"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, 1306422411264000000L, "", "R50", 2000000m }, - { new Guid("64a2616f-3af6-4248-86cf-4a605095a644"), new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, 1306457800704000000L, "", "540i", 60945m }, - { new Guid("74bb268f-18cf-45ec-9f2f-30b34b18fb3c"), new Guid("582b8c19-0709-4dae-b7a6-fa0e704dad3c"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, 1306457800704000000L, "A perfectly adequate family sedan with sharp looks", "Altima", 24550m }, - { new Guid("840ba759-bde9-4821-b49b-c981c082bb96"), new Guid("747f6d66-7524-40ca-8494-f65e85b5ee5d"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, 1306457800704000000L, "finishes near the top of our luxury electric car rankings.", "Model S", 135000m }, - { new Guid("840e113b-5074-4b1c-86bd-e9affb659412"), new Guid("747f6d66-7524-40ca-8494-f65e85b5ee5d"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, 1306448953344000000L, "Heart-pumping acceleration, long drive range", "Model X", 138890m }, - { new Guid("8629931e-e26e-4885-b561-e447197d4b69"), new Guid("6fae78f3-b067-40fb-a2d5-9c8dd5eb2e08"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, 1306466648064000000L, "", "H247", 54950m }, - { new Guid("96c73b9c-03df-4f70-ac8d-75c32b89881a"), new Guid("747f6d66-7524-40ca-8494-f65e85b5ee5d"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, 1306466648064000000L, "rapid acceleration and dynamic handling", "Model 3", 61990m }, - { new Guid("9a59dda2-7b12-4cc1-9658-d2586eef91d4"), new Guid("31d78bd0-0b4f-4e87-b02f-8f66d4ab2845"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, 1306466648064000000L, "The Ford Mustang is ranked #1 in Sports Cars", "Mustang", 27155m }, - { new Guid("a1c1987d-ee6c-41ad-9647-18de4504303a"), new Guid("6fae78f3-b067-40fb-a2d5-9c8dd5eb2e08"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, 1306457800704000000L, "", "V297", 103360m }, - { new Guid("a42914e2-92da-4f0b-aab0-b9572c9671b4"), new Guid("31d78bd0-0b4f-4e87-b02f-8f66d4ab2845"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, 1306457800704000000L, "The Ford GT is a mid-engine two-seater sports car manufactured and marketed by American automobile manufacturer", "GT", 500000m }, - { new Guid("ac50dc29-4b7e-4d4d-b23a-4227d91f2bb0"), new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, 1306448953344000000L, "", "530e", 56545m }, - { new Guid("b2db9074-a0a9-4054-87e2-206b7a55c793"), new Guid("747f6d66-7524-40ca-8494-f65e85b5ee5d"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, 1306422411264000000L, "extensive driving range, lots of standard safety features", "Model Y", 67790m }, - { new Guid("d53bb159-f4f9-493a-b4dc-215fd765ca25"), new Guid("582b8c19-0709-4dae-b7a6-fa0e704dad3c"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, 1306466648064000000L, "A powerful convertible sports car", "Roadster", 42800m }, - { new Guid("e159b1ad-12aa-4e02-a39b-d5e4a32eaf99"), new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, 1306431258624000000L, "", "M850i", 100045m }, - { new Guid("eb787e1a-7ba8-4708-924b-9f7964fa0f64"), new Guid("582b8c19-0709-4dae-b7a6-fa0e704dad3c"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, 1306440105984000000L, "Legendary supercar with AWD, 4 seats, a powerful V6 engine and the latest tech", "GT-R", 113540m }, - { new Guid("f01b32bb-eccd-43be-aaf3-3c788a7d7558"), new Guid("31d78bd0-0b4f-4e87-b02f-8f66d4ab2845"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, 1306422411264000000L, "The Ford Maverick is a compact pickup truck produced by Ford Motor Company.", "Maverick", 22470m }, - { new Guid("f75325c8-a213-470b-ab93-4677ca4caeef"), new Guid("31d78bd0-0b4f-4e87-b02f-8f66d4ab2845"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, 1306440105984000000L, "Ford Ranger is a nameplate that has been used on multiple model lines of pickup trucks sold by Ford worldwide.", "Ranger", 25000m }, - { new Guid("fb41cc51-9abd-4b45-b0d9-ea8f565ec502"), new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, 1306440105984000000L, "", "530i", 55195m } + { new Guid("01d223a3-182d-406a-9722-19dab083f96e"), new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, 1306466648064000000L, "", "M550i", 77790m }, + { new Guid("1b22319e-0a58-471e-82b6-75cd8b9d98e1"), new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, 1306413563904000000L, "", "IX", 87000m }, + { new Guid("362a6638-0031-485d-825f-e8aeae63a334"), new Guid("582b8c19-0709-4dae-b7a6-fa0e704dad3c"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, 1306422411264000000L, "A new smart SUV", "Juke", 28100m }, + { new Guid("43a82ec1-aab6-445f-83af-a85028417cf7"), new Guid("31d78bd0-0b4f-4e87-b02f-8f66d4ab2845"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, 1306431258624000000L, "Raptor is a SCORE off-road trophy truck living in a asphalt world", "Raptor", 53205m }, + { new Guid("4d9cb0f4-1f32-45d5-8c84-d7f15bc569d5"), new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, 1306422411264000000L, "", "X7", 77980m }, + { new Guid("59eea437-bdf2-4c11-b262-06643b253288"), new Guid("6fae78f3-b067-40fb-a2d5-9c8dd5eb2e08"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, 1306422411264000000L, "", "R50", 2000000m }, + { new Guid("64a2616f-3af6-4248-86cf-4a605095a644"), new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, 1306457800704000000L, "", "540i", 60945m }, + { new Guid("74bb268f-18cf-45ec-9f2f-30b34b18fb3c"), new Guid("582b8c19-0709-4dae-b7a6-fa0e704dad3c"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, 1306457800704000000L, "A perfectly adequate family sedan with sharp looks", "Altima", 24550m }, + { new Guid("840ba759-bde9-4821-b49b-c981c082bb96"), new Guid("747f6d66-7524-40ca-8494-f65e85b5ee5d"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, 1306457800704000000L, "finishes near the top of our luxury electric car rankings.", "Model S", 135000m }, + { new Guid("840e113b-5074-4b1c-86bd-e9affb659412"), new Guid("747f6d66-7524-40ca-8494-f65e85b5ee5d"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, 1306448953344000000L, "Heart-pumping acceleration, long drive range", "Model X", 138890m }, + { new Guid("8629931e-e26e-4885-b561-e447197d4b69"), new Guid("6fae78f3-b067-40fb-a2d5-9c8dd5eb2e08"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, 1306466648064000000L, "", "H247", 54950m }, + { new Guid("96c73b9c-03df-4f70-ac8d-75c32b89881a"), new Guid("747f6d66-7524-40ca-8494-f65e85b5ee5d"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, 1306466648064000000L, "rapid acceleration and dynamic handling", "Model 3", 61990m }, + { new Guid("9a59dda2-7b12-4cc1-9658-d2586eef91d4"), new Guid("31d78bd0-0b4f-4e87-b02f-8f66d4ab2845"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, 1306466648064000000L, "The Ford Mustang is ranked #1 in Sports Cars", "Mustang", 27155m }, + { new Guid("a1c1987d-ee6c-41ad-9647-18de4504303a"), new Guid("6fae78f3-b067-40fb-a2d5-9c8dd5eb2e08"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, 1306457800704000000L, "", "V297", 103360m }, + { new Guid("a42914e2-92da-4f0b-aab0-b9572c9671b4"), new Guid("31d78bd0-0b4f-4e87-b02f-8f66d4ab2845"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, 1306457800704000000L, "The Ford GT is a mid-engine two-seater sports car manufactured and marketed by American automobile manufacturer", "GT", 500000m }, + { new Guid("ac50dc29-4b7e-4d4d-b23a-4227d91f2bb0"), new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, 1306448953344000000L, "", "530e", 56545m }, + { new Guid("b2db9074-a0a9-4054-87e2-206b7a55c793"), new Guid("747f6d66-7524-40ca-8494-f65e85b5ee5d"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, 1306422411264000000L, "extensive driving range, lots of standard safety features", "Model Y", 67790m }, + { new Guid("d53bb159-f4f9-493a-b4dc-215fd765ca25"), new Guid("582b8c19-0709-4dae-b7a6-fa0e704dad3c"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, 1306466648064000000L, "A powerful convertible sports car", "Roadster", 42800m }, + { new Guid("e159b1ad-12aa-4e02-a39b-d5e4a32eaf99"), new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, 1306431258624000000L, "", "M850i", 100045m }, + { new Guid("eb787e1a-7ba8-4708-924b-9f7964fa0f64"), new Guid("582b8c19-0709-4dae-b7a6-fa0e704dad3c"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, 1306440105984000000L, "Legendary supercar with AWD, 4 seats, a powerful V6 engine and the latest tech", "GT-R", 113540m }, + { new Guid("f01b32bb-eccd-43be-aaf3-3c788a7d7558"), new Guid("31d78bd0-0b4f-4e87-b02f-8f66d4ab2845"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, 1306422411264000000L, "The Ford Maverick is a compact pickup truck produced by Ford Motor Company.", "Maverick", 22470m }, + { new Guid("f75325c8-a213-470b-ab93-4677ca4caeef"), new Guid("31d78bd0-0b4f-4e87-b02f-8f66d4ab2845"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, 1306440105984000000L, "Ford Ranger is a nameplate that has been used on multiple model lines of pickup trucks sold by Ford worldwide.", "Ranger", 25000m }, + { new Guid("fb41cc51-9abd-4b45-b0d9-ea8f565ec502"), new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, 1306440105984000000L, "", "530i", 55195m } }); migrationBuilder.CreateIndex( diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/AppDbContextModelSnapshot.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/AppDbContextModelSnapshot.cs index eebe4f3f8e..03c510345a 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/AppDbContextModelSnapshot.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/AppDbContextModelSnapshot.cs @@ -44,35 +44,35 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = new Guid("31d78bd0-0b4f-4e87-b02f-8f66d4ab2845"), Color = "#FFCD56", - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, Name = "Ford" }, new { Id = new Guid("582b8c19-0709-4dae-b7a6-fa0e704dad3c"), Color = "#FF6384", - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, Name = "Nissan" }, new { Id = new Guid("6fae78f3-b067-40fb-a2d5-9c8dd5eb2e08"), Color = "#4BC0C0", - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, Name = "Benz" }, new { Id = new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), Color = "#FF9124", - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, Name = "BMW" }, new { Id = new Guid("747f6d66-7524-40ca-8494-f65e85b5ee5d"), Color = "#2B88D8", - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, Name = "Tesla" }); }); @@ -85,7 +85,9 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("ConcurrencyStamp") .IsConcurrencyToken() - .HasColumnType("TEXT"); + .ValueGeneratedOnAddOrUpdate() + .HasColumnType("TEXT") + .HasAnnotation("Cosmos:PropertyName", "_etag"); b.Property("Name") .HasMaxLength(50) @@ -122,7 +124,9 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("ConcurrencyStamp") .IsConcurrencyToken() - .HasColumnType("TEXT"); + .ValueGeneratedOnAddOrUpdate() + .HasColumnType("TEXT") + .HasAnnotation("Cosmos:PropertyName", "_etag"); b.Property("Email") .HasMaxLength(256) @@ -283,7 +287,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = new Guid("9a59dda2-7b12-4cc1-9658-d2586eef91d4"), CategoryId = new Guid("31d78bd0-0b4f-4e87-b02f-8f66d4ab2845"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306466648064000000L, Description = "The Ford Mustang is ranked #1 in Sports Cars", Name = "Mustang", @@ -293,7 +297,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = new Guid("a42914e2-92da-4f0b-aab0-b9572c9671b4"), CategoryId = new Guid("31d78bd0-0b4f-4e87-b02f-8f66d4ab2845"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306457800704000000L, Description = "The Ford GT is a mid-engine two-seater sports car manufactured and marketed by American automobile manufacturer", Name = "GT", @@ -303,7 +307,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = new Guid("f75325c8-a213-470b-ab93-4677ca4caeef"), CategoryId = new Guid("31d78bd0-0b4f-4e87-b02f-8f66d4ab2845"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306440105984000000L, Description = "Ford Ranger is a nameplate that has been used on multiple model lines of pickup trucks sold by Ford worldwide.", Name = "Ranger", @@ -313,7 +317,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = new Guid("43a82ec1-aab6-445f-83af-a85028417cf7"), CategoryId = new Guid("31d78bd0-0b4f-4e87-b02f-8f66d4ab2845"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306431258624000000L, Description = "Raptor is a SCORE off-road trophy truck living in a asphalt world", Name = "Raptor", @@ -323,7 +327,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = new Guid("f01b32bb-eccd-43be-aaf3-3c788a7d7558"), CategoryId = new Guid("31d78bd0-0b4f-4e87-b02f-8f66d4ab2845"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306422411264000000L, Description = "The Ford Maverick is a compact pickup truck produced by Ford Motor Company.", Name = "Maverick", @@ -333,7 +337,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = new Guid("d53bb159-f4f9-493a-b4dc-215fd765ca25"), CategoryId = new Guid("582b8c19-0709-4dae-b7a6-fa0e704dad3c"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306466648064000000L, Description = "A powerful convertible sports car", Name = "Roadster", @@ -343,7 +347,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = new Guid("74bb268f-18cf-45ec-9f2f-30b34b18fb3c"), CategoryId = new Guid("582b8c19-0709-4dae-b7a6-fa0e704dad3c"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306457800704000000L, Description = "A perfectly adequate family sedan with sharp looks", Name = "Altima", @@ -353,7 +357,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = new Guid("eb787e1a-7ba8-4708-924b-9f7964fa0f64"), CategoryId = new Guid("582b8c19-0709-4dae-b7a6-fa0e704dad3c"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306440105984000000L, Description = "Legendary supercar with AWD, 4 seats, a powerful V6 engine and the latest tech", Name = "GT-R", @@ -363,7 +367,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = new Guid("362a6638-0031-485d-825f-e8aeae63a334"), CategoryId = new Guid("582b8c19-0709-4dae-b7a6-fa0e704dad3c"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306422411264000000L, Description = "A new smart SUV", Name = "Juke", @@ -373,7 +377,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = new Guid("8629931e-e26e-4885-b561-e447197d4b69"), CategoryId = new Guid("6fae78f3-b067-40fb-a2d5-9c8dd5eb2e08"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306466648064000000L, Description = "", Name = "H247", @@ -383,7 +387,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = new Guid("a1c1987d-ee6c-41ad-9647-18de4504303a"), CategoryId = new Guid("6fae78f3-b067-40fb-a2d5-9c8dd5eb2e08"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306457800704000000L, Description = "", Name = "V297", @@ -393,7 +397,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = new Guid("59eea437-bdf2-4c11-b262-06643b253288"), CategoryId = new Guid("6fae78f3-b067-40fb-a2d5-9c8dd5eb2e08"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306422411264000000L, Description = "", Name = "R50", @@ -403,7 +407,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = new Guid("01d223a3-182d-406a-9722-19dab083f96e"), CategoryId = new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306466648064000000L, Description = "", Name = "M550i", @@ -413,7 +417,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = new Guid("64a2616f-3af6-4248-86cf-4a605095a644"), CategoryId = new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306457800704000000L, Description = "", Name = "540i", @@ -423,7 +427,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = new Guid("ac50dc29-4b7e-4d4d-b23a-4227d91f2bb0"), CategoryId = new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306448953344000000L, Description = "", Name = "530e", @@ -433,7 +437,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = new Guid("fb41cc51-9abd-4b45-b0d9-ea8f565ec502"), CategoryId = new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306440105984000000L, Description = "", Name = "530i", @@ -443,7 +447,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = new Guid("e159b1ad-12aa-4e02-a39b-d5e4a32eaf99"), CategoryId = new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306431258624000000L, Description = "", Name = "M850i", @@ -453,7 +457,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = new Guid("4d9cb0f4-1f32-45d5-8c84-d7f15bc569d5"), CategoryId = new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306422411264000000L, Description = "", Name = "X7", @@ -463,7 +467,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = new Guid("1b22319e-0a58-471e-82b6-75cd8b9d98e1"), CategoryId = new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306413563904000000L, Description = "", Name = "IX", @@ -473,7 +477,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = new Guid("96c73b9c-03df-4f70-ac8d-75c32b89881a"), CategoryId = new Guid("747f6d66-7524-40ca-8494-f65e85b5ee5d"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306466648064000000L, Description = "rapid acceleration and dynamic handling", Name = "Model 3", @@ -483,7 +487,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = new Guid("840ba759-bde9-4821-b49b-c981c082bb96"), CategoryId = new Guid("747f6d66-7524-40ca-8494-f65e85b5ee5d"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306457800704000000L, Description = "finishes near the top of our luxury electric car rankings.", Name = "Model S", @@ -493,7 +497,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = new Guid("840e113b-5074-4b1c-86bd-e9affb659412"), CategoryId = new Guid("747f6d66-7524-40ca-8494-f65e85b5ee5d"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306448953344000000L, Description = "Heart-pumping acceleration, long drive range", Name = "Model X", @@ -503,7 +507,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { Id = new Guid("b2db9074-a0a9-4054-87e2-206b7a55c793"), CategoryId = new Guid("747f6d66-7524-40ca-8494-f65e85b5ee5d"), - ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }, + ConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, CreatedOn = 1306422411264000000L, Description = "extensive driving range, lots of standard safety features", Name = "Model Y", diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/appsettings.json b/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/appsettings.json index 1e1db52871..e1c395b44c 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/appsettings.json +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/appsettings.json @@ -7,68 +7,68 @@ }, //#endif "Logging": { - "Console": { + //#if (appInsights == true) + "ApplicationInsights": { "LogLevel": { "Default": "Warning", - "Microsoft.EntityFrameworkCore.Database.Command": "Information" + "Microsoft.EntityFrameworkCore.Database.Command": "Information", + "Boilerplate.Client.Core.Services.AuthenticationManager": "Information" }, "IncludeScopes": true }, - "EventLog": { + "ApplicationInsightsLoggerProvider": { "LogLevel": { "Default": "Warning", - "Microsoft.EntityFrameworkCore.Database.Command": "Information" + "Microsoft.EntityFrameworkCore.Database.Command": "Information", + "Boilerplate.Client.Core.Services.AuthenticationManager": "Information" }, "IncludeScopes": true }, - "EventSource": { + //#endif + //#if (appCenter == true) + "AppCenterLoggerProvider": { "LogLevel": { "Default": "Warning", - "Microsoft.EntityFrameworkCore.Database.Command": "Information" + "Microsoft.EntityFrameworkCore.Database.Command": "Information", + "Boilerplate.Client.Core.Services.AuthenticationManager": "Information" }, "IncludeScopes": true }, - "DiagnosticLogger": { + //#endif + "Console": { "LogLevel": { "Default": "Warning", "Microsoft.EntityFrameworkCore.Database.Command": "Information" }, "IncludeScopes": true }, - "Debug": { + "EventLog": { "LogLevel": { - "Default": "None" + "Default": "Warning", + "Microsoft.EntityFrameworkCore.Database.Command": "Information" }, "IncludeScopes": true }, - //#if (appInsights == true) - "ApplicationInsights": { + "EventSource": { "LogLevel": { "Default": "Warning", - "Microsoft.EntityFrameworkCore.Database.Command": "Information", - "Boilerplate.Client.Core.Services.AuthenticationManager": "Information" + "Microsoft.EntityFrameworkCore.Database.Command": "Information" }, "IncludeScopes": true }, - "ApplicationInsightsLoggerProvider": { + "DiagnosticLogger": { "LogLevel": { "Default": "Warning", - "Microsoft.EntityFrameworkCore.Database.Command": "Information", - "Boilerplate.Client.Core.Services.AuthenticationManager": "Information" + "Microsoft.EntityFrameworkCore.Database.Command": "Information" }, "IncludeScopes": true }, - //#endif - //#if (appCenter == true) - "AppCenterLoggerProvider": { + "Debug": { "LogLevel": { - "Default": "Warning", - "Microsoft.EntityFrameworkCore.Database.Command": "Information", - "Boilerplate.Client.Core.Services.AuthenticationManager": "Information" + "Default": "None" }, "IncludeScopes": true } - //#endif }, "$schema": "https://json.schemastore.org/appsettings.json" }