-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCategory.cs
40 lines (31 loc) · 1.02 KB
/
Category.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
#nullable disable
namespace ShopWebData
{
[Table("Categories")]
public partial class Category : INotifyPropertyChanged
{
[Key]
public int Id { get; set; }
[Required]
[MaxLength(20)]
public string Name { get; set; }
[JsonIgnore]
public Category Parent { get; set; }
public int Rating { get; set; }
public bool ShowText { get; set; } = true;
public bool Active { get; set; }
public List<Image> Images { get; set; }
public virtual List<Product> Products { get; set; } = new List<Product>();
public bool IsSmart { get; set; }
public string SmartQuery { get; set; }
#pragma warning disable 0067
public event PropertyChangedEventHandler PropertyChanged;
#pragma warning restore 0067
}
}