From b515dc720f6264a390092bcd15d592f0371e46bc Mon Sep 17 00:00:00 2001 From: Erik Ejlskov Jensen Date: Wed, 15 Nov 2023 13:42:06 +0100 Subject: [PATCH] Update to 8.0.0 in test app --- test/Ef7Playground/Ef7Playground/Ef7Playground.csproj | 8 ++++---- .../Ef7Playground/Models/NorthwindContext.cs | 2 +- .../Ef7Playground/Models/SalesByCategoryResult.cs | 1 + test/Ef7Playground/Ef7Playground/efpt.config.json | 1 + 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/test/Ef7Playground/Ef7Playground/Ef7Playground.csproj b/test/Ef7Playground/Ef7Playground/Ef7Playground.csproj index b7ceed39e..8d622385f 100644 --- a/test/Ef7Playground/Ef7Playground/Ef7Playground.csproj +++ b/test/Ef7Playground/Ef7Playground/Ef7Playground.csproj @@ -10,13 +10,13 @@ - + runtime; build; native; contentfiles; analyzers; buildtransitive all - - - + + + diff --git a/test/Ef7Playground/Ef7Playground/Models/NorthwindContext.cs b/test/Ef7Playground/Ef7Playground/Models/NorthwindContext.cs index 20ccc7c5c..3776e78e1 100644 --- a/test/Ef7Playground/Ef7Playground/Models/NorthwindContext.cs +++ b/test/Ef7Playground/Ef7Playground/Models/NorthwindContext.cs @@ -88,7 +88,7 @@ public NorthwindContext(DbContextOptions options) protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) #warning To protect potentially sensitive information in your connection string, you should move it out of source code. You can avoid scaffolding the connection string by using the Name= syntax to read it from configuration - see https://go.microsoft.com/fwlink/?linkid=2131148. For more guidance on storing connection strings, see http://go.microsoft.com/fwlink/?LinkId=723263. - => optionsBuilder.UseSqlServer("Data Source=.\\SQLEXPRESS;Initial Catalog=Northwind;Integrated Security=True;Trust Server Certificate=True;Command Timeout=300", x => x + => optionsBuilder.UseSqlServer("Data Source=.\\SQLEXPRESS;Initial Catalog=Northwind;Integrated Security=True;Encrypt=True;Trust Server Certificate=True;Command Timeout=300", x => x .UseNetTopologySuite() .UseHierarchyId()); diff --git a/test/Ef7Playground/Ef7Playground/Models/SalesByCategoryResult.cs b/test/Ef7Playground/Ef7Playground/Models/SalesByCategoryResult.cs index 1f0476410..355667043 100644 --- a/test/Ef7Playground/Ef7Playground/Models/SalesByCategoryResult.cs +++ b/test/Ef7Playground/Ef7Playground/Models/SalesByCategoryResult.cs @@ -10,6 +10,7 @@ namespace Ef7Playground.Models public partial class SalesByCategoryResult { public string ProductName { get; set; } = default!; + [Column("TotalPurchase", TypeName = "decimal(38,2)")] public decimal? TotalPurchase { get; set; } } } diff --git a/test/Ef7Playground/Ef7Playground/efpt.config.json b/test/Ef7Playground/Ef7Playground/efpt.config.json index 408822be1..b8db09801 100644 --- a/test/Ef7Playground/Ef7Playground/efpt.config.json +++ b/test/Ef7Playground/Ef7Playground/efpt.config.json @@ -209,6 +209,7 @@ "UseDatabaseNames": false, "UseDateOnlyTimeOnly": true, "UseDbContextSplitting": false, + "UseDecimalDataAnnotationForSprocResult": true, "UseFluentApiOnly": true, "UseHandleBars": false, "UseHierarchyId": true,