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 >>
|
// << NEU >>
|
||||||
public bool IsFeatured { get; set; }
|
public bool IsFeatured { get; set; }
|
||||||
public int FeaturedDisplayOrder { 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 decimal? PurchasePrice { get; set; }
|
||||||
public bool IsFeatured { get; set; }
|
public bool IsFeatured { get; set; }
|
||||||
public int FeaturedDisplayOrder { 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++ });
|
existingProduct.Images.Add(new ProductImage { Url = url, IsMainImage = false, DisplayOrder = displayOrder++ });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
_context.Entry(existingProduct).Property(p => p.RowVersion).OriginalValue = productDto.RowVersion;
|
||||||
|
|
||||||
// --- EIGENSCHAFTEN-UPDATE ---
|
// --- EIGENSCHAFTEN-UPDATE ---
|
||||||
Console.WriteLine("---- AKTUALISIERE PRODUKT-EIGENSCHAFTEN ----");
|
Console.WriteLine("---- AKTUALISIERE PRODUKT-EIGENSCHAFTEN ----");
|
||||||
|
|||||||
@@ -53,5 +53,7 @@ namespace Webshop.Domain.Entities
|
|||||||
public virtual ICollection<ProductDiscount> ProductDiscounts { get; set; } = new List<ProductDiscount>();
|
public virtual ICollection<ProductDiscount> ProductDiscounts { get; set; } = new List<ProductDiscount>();
|
||||||
public virtual ICollection<Productcategorie> Productcategories { get; set; } = new List<Productcategorie>();
|
public virtual ICollection<Productcategorie> Productcategories { get; set; } = new List<Productcategorie>();
|
||||||
public virtual ICollection<ProductImage> Images { get; set; } = new List<ProductImage>();
|
public virtual ICollection<ProductImage> Images { get; set; } = new List<ProductImage>();
|
||||||
|
[Timestamp] // Diese Annotation ist entscheidend!
|
||||||
|
public byte[] RowVersion { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user