naming
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// src/Webshop.Domain/Entities/Category.cs
|
||||
// src/Webshop.Domain/Entities/categorie.cs
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
@@ -9,7 +9,7 @@ namespace Webshop.Domain.Entities
|
||||
/// <summary>
|
||||
/// Zum Gruppieren und Organisieren von Produkten.
|
||||
/// </summary>
|
||||
public class Category
|
||||
public class categorie
|
||||
{
|
||||
[Key]
|
||||
public Guid Id { get; set; } = Guid.NewGuid(); // Hinzufügen von Default-Wert
|
||||
@@ -25,8 +25,8 @@ namespace Webshop.Domain.Entities
|
||||
[MaxLength(255)]
|
||||
public string Slug { get; set; } = string.Empty; // Hinzufügen von Default-Wert
|
||||
|
||||
[ForeignKey(nameof(ParentCategory))]
|
||||
public Guid? ParentCategoryId { get; set; }
|
||||
[ForeignKey(nameof(Parentcategorie))]
|
||||
public Guid? ParentcategorieId { get; set; }
|
||||
|
||||
[MaxLength(2000)]
|
||||
public string? ImageUrl { get; set; }
|
||||
@@ -43,9 +43,9 @@ namespace Webshop.Domain.Entities
|
||||
// << ENDE NEUE EIGENSCHAFTEN >>
|
||||
|
||||
// Navigation Properties
|
||||
public virtual Category? ParentCategory { get; set; }
|
||||
public virtual ICollection<Category> Subcategorys { get; set; } = new List<Category>();
|
||||
public virtual ICollection<ProductCategory> Productcategorys { get; set; } = new List<ProductCategory>();
|
||||
public virtual ICollection<CategoryDiscount> CategoryDiscounts { get; set; } = new List<CategoryDiscount>();
|
||||
public virtual categorie? Parentcategorie { get; set; }
|
||||
public virtual ICollection<categorie> Subcategories { get; set; } = new List<categorie>();
|
||||
public virtual ICollection<Productcategorie> Productcategories { get; set; } = new List<Productcategorie>();
|
||||
public virtual ICollection<categorieDiscount> categorieDiscounts { get; set; } = new List<categorieDiscount>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user