From 45664122bc05adafadf7ce7bca41330122ab77ca Mon Sep 17 00:00:00 2001 From: "Tizian.Breuch" Date: Fri, 7 Nov 2025 09:53:33 +0100 Subject: [PATCH] test bilder upload --- Webshop.Application/Services/Public/ProductService.cs | 2 +- Webshop.Infrastructure/Data/ApplicationDbContext.cs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Webshop.Application/Services/Public/ProductService.cs b/Webshop.Application/Services/Public/ProductService.cs index a745af1..96bd398 100644 --- a/Webshop.Application/Services/Public/ProductService.cs +++ b/Webshop.Application/Services/Public/ProductService.cs @@ -68,7 +68,7 @@ namespace Webshop.Application.Services.Public { Id = product.Id, Name = product.Name, - Description = useShortDescription ? product.ShortDescription : product.Description, + Description = product.Description, Price = product.Price, OldPrice = product.OldPrice, SKU = product.SKU, diff --git a/Webshop.Infrastructure/Data/ApplicationDbContext.cs b/Webshop.Infrastructure/Data/ApplicationDbContext.cs index dd74cac..557f0d7 100644 --- a/Webshop.Infrastructure/Data/ApplicationDbContext.cs +++ b/Webshop.Infrastructure/Data/ApplicationDbContext.cs @@ -65,9 +65,7 @@ namespace Webshop.Infrastructure.Data e.Property(p => p.OldPrice).HasPrecision(18, 2); e.Property(p => p.PurchasePrice).HasPrecision(18, 2); e.Property(p => p.Weight).HasPrecision(18, 3); - e.Property(p => p.Width).HasPrecision(18, 2); - e.Property(p => p.Height).HasPrecision(18, 2); - e.Property(p => p.Length).HasPrecision(18, 2); + }); modelBuilder.Entity(entity =>