test
All checks were successful
Branch - test - Build and Push Backend API Docker Image / build-and-push (push) Successful in 27s
All checks were successful
Branch - test - Build and Push Backend API Docker Image / build-and-push (push) Successful in 27s
This commit is contained in:
@@ -27,5 +27,6 @@ namespace Webshop.Application.DTOs.Products
|
||||
// << NEU >>
|
||||
public bool IsFeatured { get; set; }
|
||||
public int FeaturedDisplayOrder { get; set; }
|
||||
public byte[] RowVersion { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -35,5 +35,7 @@ namespace Webshop.Application.DTOs.Products
|
||||
public decimal? PurchasePrice { get; set; }
|
||||
public bool IsFeatured { get; set; }
|
||||
public int FeaturedDisplayOrder { get; set; }
|
||||
[Required]
|
||||
public byte[] RowVersion { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -151,6 +151,7 @@ namespace Webshop.Application.Services.Admin
|
||||
existingProduct.Images.Add(new ProductImage { Url = url, IsMainImage = false, DisplayOrder = displayOrder++ });
|
||||
}
|
||||
}
|
||||
_context.Entry(existingProduct).Property(p => p.RowVersion).OriginalValue = productDto.RowVersion;
|
||||
|
||||
// --- EIGENSCHAFTEN-UPDATE ---
|
||||
Console.WriteLine("---- AKTUALISIERE PRODUKT-EIGENSCHAFTEN ----");
|
||||
|
||||
Reference in New Issue
Block a user