-
Notifications
You must be signed in to change notification settings - Fork 0
/
Category.cs
75 lines (70 loc) · 2.1 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Orders
{
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
public partial class Category : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
protected void OnPropertyChanged(string propertyName)
{
var handler = PropertyChanged;
if (handler != null)
handler(this, new PropertyChangedEventArgs(propertyName));
}
public Category()
{
this.Products = new ObservableCollection<Product>();
}
int _CategoryID;
public int CategoryID
{
get { return _CategoryID; }
set
{
_CategoryID = value;
OnPropertyChanged("CategoryID");
}
}
string _CategoryName;
public string CategoryName
{
get { return _CategoryName; }
set
{
_CategoryName = value;
OnPropertyChanged("CategoryName");
}
}
string _Description;
public string Description
{
get { return _Description; }
set
{
_Description = value;
OnPropertyChanged("Description");
}
}
byte[] _Picture;
public byte[] Picture
{
get { return _Picture; }
set
{
_Picture = value;
OnPropertyChanged("Picture");
}
}
public virtual ObservableCollection<Product> Products { get; set; }
}
}