aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.BL/Entities/RolesPermission.cs
blob: 2ec973cf4fd73930c3ce7dd914fa7c76ca515b7d (plain)
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Xml.Serialization;
using Newtonsoft.Json;
using System.Linq;
using Tango.DAL.Remote.DB;

namespace Tango.BL.Entities
{
    [Table("ROLES_PERMISSIONS")]
    public partial class RolesPermission : ObservableEntity<RolesPermission>
    {

        protected String _roleguid;
        /// <summary>
        /// Gets or sets the rolespermission role guid.
        /// </summary>
        [Column("ROLE_GUID")]
        [ForeignKey("Role")]

        public  String RoleGuid
        {
            get 
            {
                return _roleguid; 
            }

            set 
            {
                _roleguid = value; RaisePropertyChanged(nameof(RoleGuid)); 
            }

        }

        protected String _permissionguid;
        /// <summary>
        /// Gets or sets the rolespermission permission guid.
        /// </summary>
        [Column("PERMISSION_GUID")]
        [ForeignKey("Permission")]

        public  String PermissionGuid
        {
            get 
            {
                return _permissionguid; 
            }

            set 
            {
                _permissionguid = value; RaisePropertyChanged(nameof(PermissionGuid)); 
            }

        }

        protected Permission _permission;
        /// <summary>
        /// Gets or sets the rolespermission permission.
        /// </summary>

        [XmlIgnore]
        [JsonIgnore]
        public virtual Permission Permission
        {
            get 
            {
                return _permission; 
            }

            set 
            {
                _permission = value; RaisePropertyChanged(nameof(Permission)); 
            }

        }

        protected Role _role;
        /// <summary>
        /// Gets or sets the rolespermission role.
        /// </summary>

        [XmlIgnore]
        [JsonIgnore]
        public virtual Role Role
        {
            get 
            {
                return _role; 
            }

            set 
            {
                _role = value; RaisePropertyChanged(nameof(Role)); 
            }

        }

        /// <summary>
        /// Initializes a new instance of the <see cref="RolesPermission" /> class.
        /// </summary>
        public RolesPermission() : base()
        {
        }
    }
}