Tuesday, November 25, 2014

WPF C# Data Save, Update and Delete with 3 layer architecture - Part 1(Entity Class)

In ENTITY class library project, add a class and name it CustomerInfo.cs or whatever you want.
Now Use this code to your Entity class.



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
76
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ENTITY
{
    public class CustomerInfo
    {
        private int id;

        public int Id
        {
            get { return id; }
            set { id = value; }
        }

        private string customerName;

        public string CustomerName
        {
            get { return customerName; }
            set { customerName = value; }
        }

        private string customerAddress;

        public string CustomerAddress
        {
            get { return customerAddress; }
            set { customerAddress = value; }
        }

        private string customerPhone;

        public string CustomerPhone
        {
            get { return customerPhone; }
            set { customerPhone = value; }
        }

        private string customerMobile;

        public string CustomerMobile
        {
            get { return customerMobile; }
            set { customerMobile = value; }
        }

        private string customerFax;

        public string CustomerFax
        {
            get { return customerFax; }
            set { customerFax = value; }
        }

        private string customerEmail;

        public string CustomerEmail
        {
            get { return customerEmail; }
            set { customerEmail = value; }
        }

        private string customerNote;

        public string CustomerNote
        {
            get { return customerNote; }
            set { customerNote = value; }
        }

    }
}


No comments:

Post a Comment