diff --git a/samples/EscapeHit/EscapeHit.Invoice.Database.Design/EscapeHit.Invoice.Database.Design.csproj b/samples/EscapeHit/EscapeHit.Invoice.Database.Design/EscapeHit.Invoice.Database.Design.csproj index 1c65359..027547a 100644 --- a/samples/EscapeHit/EscapeHit.Invoice.Database.Design/EscapeHit.Invoice.Database.Design.csproj +++ b/samples/EscapeHit/EscapeHit.Invoice.Database.Design/EscapeHit.Invoice.Database.Design.csproj @@ -2,16 +2,16 @@ Exe - net8.0 + net10.0 - + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/samples/EscapeHit/EscapeHit.Invoice.Database/EscapeHit.Invoice.Database.csproj b/samples/EscapeHit/EscapeHit.Invoice.Database/EscapeHit.Invoice.Database.csproj index 94d9cad..7075927 100644 --- a/samples/EscapeHit/EscapeHit.Invoice.Database/EscapeHit.Invoice.Database.csproj +++ b/samples/EscapeHit/EscapeHit.Invoice.Database/EscapeHit.Invoice.Database.csproj @@ -1,11 +1,11 @@  - net8.0 + net10.0 - + diff --git a/samples/EscapeHit/EscapeHit.Invoice.Database/Migrations/20260123130039_SpecificationUpdate.Designer.cs b/samples/EscapeHit/EscapeHit.Invoice.Database/Migrations/20260123130039_SpecificationUpdate.Designer.cs new file mode 100644 index 0000000..7c57847 --- /dev/null +++ b/samples/EscapeHit/EscapeHit.Invoice.Database/Migrations/20260123130039_SpecificationUpdate.Designer.cs @@ -0,0 +1,55 @@ +// +using EscapeHit.Invoice.Database; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace EscapeHit.Invoice.Database.Migrations +{ + [DbContext(typeof(InvoiceDbContext))] + [Migration("20260123130039_SpecificationUpdate")] + partial class SpecificationUpdate + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "10.0.2") + .HasAnnotation("Relational:MaxIdentifierLength", 128); + + SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); + + modelBuilder.Entity("EscapeHit.Invoice.InvoiceEntity", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("Amount") + .HasColumnType("decimal(18,2)"); + + b.Property("CustomerNumber") + .IsRequired() + .HasMaxLength(5) + .IsUnicode(false) + .HasColumnType("varchar(5)"); + + b.Property("Number") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.ToTable("Invoices"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/samples/EscapeHit/EscapeHit.Invoice.Database/Migrations/20260123130039_SpecificationUpdate.cs b/samples/EscapeHit/EscapeHit.Invoice.Database/Migrations/20260123130039_SpecificationUpdate.cs new file mode 100644 index 0000000..ddc6c8a --- /dev/null +++ b/samples/EscapeHit/EscapeHit.Invoice.Database/Migrations/20260123130039_SpecificationUpdate.cs @@ -0,0 +1,42 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace EscapeHit.Invoice.Database.Migrations +{ + /// + public partial class SpecificationUpdate : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AlterColumn( + name: "CustomerNumber", + table: "Invoices", + type: "varchar(5)", + unicode: false, + maxLength: 5, + nullable: false, + oldClrType: typeof(string), + oldType: "varchar(255)", + oldUnicode: false, + oldMaxLength: 255); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.AlterColumn( + name: "CustomerNumber", + table: "Invoices", + type: "varchar(255)", + unicode: false, + maxLength: 255, + nullable: false, + oldClrType: typeof(string), + oldType: "varchar(5)", + oldUnicode: false, + oldMaxLength: 5); + } + } +} diff --git a/samples/EscapeHit/EscapeHit.Invoice.Database/Migrations/InvoiceDbContextModelSnapshot.cs b/samples/EscapeHit/EscapeHit.Invoice.Database/Migrations/InvoiceDbContextModelSnapshot.cs index f7d54ec..7f84b6e 100644 --- a/samples/EscapeHit/EscapeHit.Invoice.Database/Migrations/InvoiceDbContextModelSnapshot.cs +++ b/samples/EscapeHit/EscapeHit.Invoice.Database/Migrations/InvoiceDbContextModelSnapshot.cs @@ -16,7 +16,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder - .HasAnnotation("ProductVersion", "8.0.8") + .HasAnnotation("ProductVersion", "10.0.2") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); @@ -34,9 +34,9 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("CustomerNumber") .IsRequired() - .HasMaxLength(255) + .HasMaxLength(5) .IsUnicode(false) - .HasColumnType("varchar(255)"); + .HasColumnType("varchar(5)"); b.Property("Number") .IsRequired() diff --git a/samples/EscapeHit/EscapeHit.Invoice.Service/EscapeHit.Invoice.Service.csproj b/samples/EscapeHit/EscapeHit.Invoice.Service/EscapeHit.Invoice.Service.csproj index 5764226..a6c2447 100644 --- a/samples/EscapeHit/EscapeHit.Invoice.Service/EscapeHit.Invoice.Service.csproj +++ b/samples/EscapeHit/EscapeHit.Invoice.Service/EscapeHit.Invoice.Service.csproj @@ -2,7 +2,7 @@ Exe - net8.0 + net10.0 diff --git a/samples/EscapeHit/EscapeHit.Invoice.WebApi/EscapeHit.Invoice.WebApi.csproj b/samples/EscapeHit/EscapeHit.Invoice.WebApi/EscapeHit.Invoice.WebApi.csproj index 5a3ba1f..746cdd7 100644 --- a/samples/EscapeHit/EscapeHit.Invoice.WebApi/EscapeHit.Invoice.WebApi.csproj +++ b/samples/EscapeHit/EscapeHit.Invoice.WebApi/EscapeHit.Invoice.WebApi.csproj @@ -1,7 +1,7 @@  - net8.0 + net10.0 diff --git a/samples/EscapeHit/EscapeHit.Invoice.WebApi/appsettings.json b/samples/EscapeHit/EscapeHit.Invoice.WebApi/appsettings.json index 0a185df..b7374a3 100644 --- a/samples/EscapeHit/EscapeHit.Invoice.WebApi/appsettings.json +++ b/samples/EscapeHit/EscapeHit.Invoice.WebApi/appsettings.json @@ -11,6 +11,6 @@ }, "AllowedHosts": "*", "ConnectionStrings": { - "Sql": "Server=(local); Initial Catalog=invoice; Integrated Security=true; MultipleActiveResultSets=True;Encrypt=False;Trust Server Certificate=True;" + "Sql": "Server=.\\sqlexpress; Initial Catalog=invoice; Integrated Security=true; MultipleActiveResultSets=True;Encrypt=False;Trust Server Certificate=True;" } } diff --git a/samples/EscapeHit/EscapeHit.Invoice/EscapeHit.Invoice.csproj b/samples/EscapeHit/EscapeHit.Invoice/EscapeHit.Invoice.csproj index 1fdbb3e..bda2eb9 100644 --- a/samples/EscapeHit/EscapeHit.Invoice/EscapeHit.Invoice.csproj +++ b/samples/EscapeHit/EscapeHit.Invoice/EscapeHit.Invoice.csproj @@ -1,7 +1,7 @@  - net8.0 + net10.0 diff --git a/samples/EscapeHit/EscapeHit.Service/EscapeHit.Service.csproj b/samples/EscapeHit/EscapeHit.Service/EscapeHit.Service.csproj index 1a4e0cb..c8b5c92 100644 --- a/samples/EscapeHit/EscapeHit.Service/EscapeHit.Service.csproj +++ b/samples/EscapeHit/EscapeHit.Service/EscapeHit.Service.csproj @@ -1,7 +1,7 @@  - net8.0 + net10.0 diff --git a/samples/EscapeHit/EscapeHit.WebApi/EscapeHit.WebApi.csproj b/samples/EscapeHit/EscapeHit.WebApi/EscapeHit.WebApi.csproj index 94c8ed3..ae73605 100644 --- a/samples/EscapeHit/EscapeHit.WebApi/EscapeHit.WebApi.csproj +++ b/samples/EscapeHit/EscapeHit.WebApi/EscapeHit.WebApi.csproj @@ -1,7 +1,7 @@  - net8.0 + net10.0 @@ -10,7 +10,7 @@ - + diff --git a/samples/EscapeHit/EscapeHit/EscapeHit.csproj b/samples/EscapeHit/EscapeHit/EscapeHit.csproj index 982b7d6..cd22aa2 100644 --- a/samples/EscapeHit/EscapeHit/EscapeHit.csproj +++ b/samples/EscapeHit/EscapeHit/EscapeHit.csproj @@ -1,7 +1,7 @@  - net8.0 + net10.0 diff --git a/src/AppForeach.Framework.AutoMapper/AppForeach.Framework.AutoMapper.csproj b/src/AppForeach.Framework.AutoMapper/AppForeach.Framework.AutoMapper.csproj index fa8a8e8..827beb8 100644 --- a/src/AppForeach.Framework.AutoMapper/AppForeach.Framework.AutoMapper.csproj +++ b/src/AppForeach.Framework.AutoMapper/AppForeach.Framework.AutoMapper.csproj @@ -1,7 +1,7 @@  - net8.0 + net10.0;net9.0;net8.0 enable enable diff --git a/src/AppForeach.Framework.Autofac/AppForeach.Framework.Autofac.csproj b/src/AppForeach.Framework.Autofac/AppForeach.Framework.Autofac.csproj index d684f1d..d89ac13 100644 --- a/src/AppForeach.Framework.Autofac/AppForeach.Framework.Autofac.csproj +++ b/src/AppForeach.Framework.Autofac/AppForeach.Framework.Autofac.csproj @@ -1,11 +1,15 @@ - net8.0 + net10.0;net9.0;net8.0 - + + + + + diff --git a/src/AppForeach.Framework.EntityFrameworkCore.PostgreSql/AppForeach.Framework.EntityFrameworkCore.PostgreSql.csproj b/src/AppForeach.Framework.EntityFrameworkCore.PostgreSql/AppForeach.Framework.EntityFrameworkCore.PostgreSql.csproj index ccb7320..883248c 100644 --- a/src/AppForeach.Framework.EntityFrameworkCore.PostgreSql/AppForeach.Framework.EntityFrameworkCore.PostgreSql.csproj +++ b/src/AppForeach.Framework.EntityFrameworkCore.PostgreSql/AppForeach.Framework.EntityFrameworkCore.PostgreSql.csproj @@ -1,13 +1,17 @@  - net8.0 + net10.0;net9.0;net8.0 enable enable - + + + + + diff --git a/src/AppForeach.Framework.EntityFrameworkCore.SqlServer/AppForeach.Framework.EntityFrameworkCore.SqlServer.csproj b/src/AppForeach.Framework.EntityFrameworkCore.SqlServer/AppForeach.Framework.EntityFrameworkCore.SqlServer.csproj index 48982f2..446c263 100644 --- a/src/AppForeach.Framework.EntityFrameworkCore.SqlServer/AppForeach.Framework.EntityFrameworkCore.SqlServer.csproj +++ b/src/AppForeach.Framework.EntityFrameworkCore.SqlServer/AppForeach.Framework.EntityFrameworkCore.SqlServer.csproj @@ -1,13 +1,15 @@  - net8.0 + net10.0;net9.0;net8.0 enable enable - + + + diff --git a/src/AppForeach.Framework.EntityFrameworkCore/AppForeach.Framework.EntityFrameworkCore.csproj b/src/AppForeach.Framework.EntityFrameworkCore/AppForeach.Framework.EntityFrameworkCore.csproj index 994f631..09cce44 100644 --- a/src/AppForeach.Framework.EntityFrameworkCore/AppForeach.Framework.EntityFrameworkCore.csproj +++ b/src/AppForeach.Framework.EntityFrameworkCore/AppForeach.Framework.EntityFrameworkCore.csproj @@ -1,12 +1,14 @@  - net8.0 + net10.0;net9.0;net8.0 AppForeach.Framework.EntityFrameworkCore - + + + diff --git a/src/AppForeach.Framework.FluentValidation/AppForeach.Framework.FluentValidation.csproj b/src/AppForeach.Framework.FluentValidation/AppForeach.Framework.FluentValidation.csproj index f05dd5b..c8a4081 100644 --- a/src/AppForeach.Framework.FluentValidation/AppForeach.Framework.FluentValidation.csproj +++ b/src/AppForeach.Framework.FluentValidation/AppForeach.Framework.FluentValidation.csproj @@ -1,7 +1,7 @@  - net8.0 + net10.0;net9.0;net8.0 enable enable diff --git a/src/AppForeach.Framework.Hosting.Features.PostgreSql/AppForeach.Framework.Hosting.Features.PostgreSql.csproj b/src/AppForeach.Framework.Hosting.Features.PostgreSql/AppForeach.Framework.Hosting.Features.PostgreSql.csproj index 1af1bb7..a432f44 100644 --- a/src/AppForeach.Framework.Hosting.Features.PostgreSql/AppForeach.Framework.Hosting.Features.PostgreSql.csproj +++ b/src/AppForeach.Framework.Hosting.Features.PostgreSql/AppForeach.Framework.Hosting.Features.PostgreSql.csproj @@ -1,7 +1,7 @@  - net8.0 + net10.0;net9.0;net8.0 enable enable diff --git a/src/AppForeach.Framework.Hosting.Features.Serilog.Ecs/AppForeach.Framework.Hosting.Features.Serilog.Ecs.csproj b/src/AppForeach.Framework.Hosting.Features.Serilog.Ecs/AppForeach.Framework.Hosting.Features.Serilog.Ecs.csproj index b15828c..2f2477c 100644 --- a/src/AppForeach.Framework.Hosting.Features.Serilog.Ecs/AppForeach.Framework.Hosting.Features.Serilog.Ecs.csproj +++ b/src/AppForeach.Framework.Hosting.Features.Serilog.Ecs/AppForeach.Framework.Hosting.Features.Serilog.Ecs.csproj @@ -1,7 +1,7 @@  - net8.0 + net10.0;net9.0;net8.0 enable enable diff --git a/src/AppForeach.Framework.Hosting.Features.SqlServer/AppForeach.Framework.Hosting.Features.SqlServer.csproj b/src/AppForeach.Framework.Hosting.Features.SqlServer/AppForeach.Framework.Hosting.Features.SqlServer.csproj index 5bf3400..312125f 100644 --- a/src/AppForeach.Framework.Hosting.Features.SqlServer/AppForeach.Framework.Hosting.Features.SqlServer.csproj +++ b/src/AppForeach.Framework.Hosting.Features.SqlServer/AppForeach.Framework.Hosting.Features.SqlServer.csproj @@ -1,7 +1,7 @@  - net8.0 + net10.0;net9.0;net8.0 enable enable diff --git a/src/AppForeach.Framework.Hosting.Web/AppForeach.Framework.Hosting.Web.csproj b/src/AppForeach.Framework.Hosting.Web/AppForeach.Framework.Hosting.Web.csproj index 140ea1f..5b8ad33 100644 --- a/src/AppForeach.Framework.Hosting.Web/AppForeach.Framework.Hosting.Web.csproj +++ b/src/AppForeach.Framework.Hosting.Web/AppForeach.Framework.Hosting.Web.csproj @@ -1,7 +1,7 @@  - net8.0 + net10.0;net9.0;net8.0 enable enable diff --git a/src/AppForeach.Framework.Hosting/AppForeach.Framework.Hosting.csproj b/src/AppForeach.Framework.Hosting/AppForeach.Framework.Hosting.csproj index 8cf6189..61cc4e1 100644 --- a/src/AppForeach.Framework.Hosting/AppForeach.Framework.Hosting.csproj +++ b/src/AppForeach.Framework.Hosting/AppForeach.Framework.Hosting.csproj @@ -1,14 +1,21 @@  - net8.0 + net10.0;net9.0;net8.0 disable enable - - + + + + + + + + + diff --git a/src/AppForeach.Framework.MassTransit/AppForeach.Framework.MassTransit.csproj b/src/AppForeach.Framework.MassTransit/AppForeach.Framework.MassTransit.csproj index 6f9f7a4..57d3832 100644 --- a/src/AppForeach.Framework.MassTransit/AppForeach.Framework.MassTransit.csproj +++ b/src/AppForeach.Framework.MassTransit/AppForeach.Framework.MassTransit.csproj @@ -1,14 +1,21 @@  - net8.0 + net10.0;net9.0;net8.0 enable enable - - + + + + + + + + + diff --git a/src/AppForeach.Framework.Microsoft.Extensions/AppForeach.Framework.Microsoft.Extensions.csproj b/src/AppForeach.Framework.Microsoft.Extensions/AppForeach.Framework.Microsoft.Extensions.csproj index 1997cf9..1f3db5b 100644 --- a/src/AppForeach.Framework.Microsoft.Extensions/AppForeach.Framework.Microsoft.Extensions.csproj +++ b/src/AppForeach.Framework.Microsoft.Extensions/AppForeach.Framework.Microsoft.Extensions.csproj @@ -1,13 +1,18 @@  - net8.0 + net10.0;net9.0;net8.0 enable enable - + + + + + + diff --git a/src/AppForeach.Framework.Serilog/AppForeach.Framework.Serilog.csproj b/src/AppForeach.Framework.Serilog/AppForeach.Framework.Serilog.csproj index eca2606..b363b22 100644 --- a/src/AppForeach.Framework.Serilog/AppForeach.Framework.Serilog.csproj +++ b/src/AppForeach.Framework.Serilog/AppForeach.Framework.Serilog.csproj @@ -1,7 +1,7 @@  - net8.0 + net10.0;net9.0;net8.0 enable enable diff --git a/tests/AppForeach.Framework.AutoMapper.Tests/AppForeach.Framework.AutoMapper.Tests.csproj b/tests/AppForeach.Framework.AutoMapper.Tests/AppForeach.Framework.AutoMapper.Tests.csproj index 22ad303..67c5104 100644 --- a/tests/AppForeach.Framework.AutoMapper.Tests/AppForeach.Framework.AutoMapper.Tests.csproj +++ b/tests/AppForeach.Framework.AutoMapper.Tests/AppForeach.Framework.AutoMapper.Tests.csproj @@ -1,7 +1,7 @@ - + - net8.0 + net10.0 enable enable @@ -10,13 +10,19 @@ - - - + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + - - - + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/tests/AppForeach.Framework.FluentValidation.Tests/AppForeach.Framework.FluentValidation.Tests.csproj b/tests/AppForeach.Framework.FluentValidation.Tests/AppForeach.Framework.FluentValidation.Tests.csproj index 102022e..9b8d8ba 100644 --- a/tests/AppForeach.Framework.FluentValidation.Tests/AppForeach.Framework.FluentValidation.Tests.csproj +++ b/tests/AppForeach.Framework.FluentValidation.Tests/AppForeach.Framework.FluentValidation.Tests.csproj @@ -1,7 +1,7 @@ - net8.0 + net10.0 enable enable @@ -10,12 +10,18 @@ - - + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + - - - + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/tests/AppForeach.Framework.Tests/AppForeach.Framework.Tests.csproj b/tests/AppForeach.Framework.Tests/AppForeach.Framework.Tests.csproj index f06da38..aa676c3 100644 --- a/tests/AppForeach.Framework.Tests/AppForeach.Framework.Tests.csproj +++ b/tests/AppForeach.Framework.Tests/AppForeach.Framework.Tests.csproj @@ -1,7 +1,7 @@ - net8.0 + net10.0 enable enable @@ -10,13 +10,19 @@ - - - - - - - + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive +