rowversion3
All checks were successful
Branch - test - Build and Push Backend API Docker Image / build-and-push (push) Successful in 26s

This commit is contained in:
Tizian.Breuch
2025-11-20 15:19:34 +01:00
parent b86c006f25
commit 7a0e56e27a
7 changed files with 2780 additions and 3 deletions

View File

@@ -100,7 +100,8 @@ namespace Webshop.Application.Services.Admin
IsFeatured = productDto.IsFeatured,
FeaturedDisplayOrder = productDto.FeaturedDisplayOrder,
Images = images,
Productcategories = productDto.CategorieIds.Select(cId => new Productcategorie { categorieId = cId }).ToList()
Productcategories = productDto.CategorieIds.Select(cId => new Productcategorie { categorieId = cId }).ToList(),
RowVersion = Guid.NewGuid().ToByteArray()
};
await _productRepository.AddProductAsync(newProduct);
@@ -183,6 +184,7 @@ namespace Webshop.Application.Services.Admin
existingProduct.LastModifiedDate = DateTimeOffset.UtcNow;
existingProduct.IsFeatured = productDto.IsFeatured;
existingProduct.FeaturedDisplayOrder = productDto.FeaturedDisplayOrder;
existingProduct.RowVersion = Guid.NewGuid().ToByteArray();
// --- KATEGORIEN-UPDATE ---
Console.WriteLine("---- AKTUALISIERE KATEGORIEN ----");