1: using System;
2: using System.ComponentModel.DataAnnotations;
3: using System.ComponentModel.DataAnnotations.Schema;
4: using System.Linq;
5: using System.Threading;
6: using System.Threading.Tasks;
7:
8: namespace Ia.Ngn.Cl.Model
9: {
10: ////////////////////////////////////////////////////////////////////////////
11:
12: /// <summary publish="true">
13: /// Event Entity Framework class for Optical Fiber Network (OFN) entity model.
14: /// </summary>
15: ///
16: /// <remarks>
17: /// Copyright © 2006-2021 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated Applications - Kuwait. All Rights Reserved.
18: ///
19: /// This library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
20: /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
21: ///
22: /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
23: /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
24: ///
25: /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
26: ///
27: /// Copyright notice: This notice may not be removed or altered from any source distribution.
28: /// </remarks>
29: public class Event
30: {
31: ////////////////////////////////////////////////////////////////////////////
32:
33: /// <summary>
34: ///
35: /// </summary>
36: public Event() { }
37:
38: /// <summary/>
39: [Key]
40: public long Id { get; set; }
41:
42: /// <summary/>
43: public int TypeId { get; set; }
44:
45: /// <summary/>
46: public string System { get; set; }
47:
48: /// <summary/>
49: public string Class { get; set; }
50:
51: /// <summary/>
52: public string Aid { get; set; }
53:
54: /// <summary/>
55: public string Cause { get; set; }
56:
57: /// <summary/>
58: public int Number { get; set; }
59:
60: /// <summary/>
61: public string Detail { get; set; }
62:
63: /// <summary/>
64: public string Severity { get; set; }
65:
66: /// <summary/>
67: public string SeverityEffect { get; set; }
68:
69: /// <summary/>
70: public DateTime EventTime { get; set; }
71:
72: /// <summary/>
73: public DateTime? NodeTime { get; set; }
74:
75: /// <summary/>
76: public DateTime Created { get; set; }
77:
78: /// <summary/>
79: public DateTime Updated { get; set; }
80:
81: /// <summary/>
82: [ForeignKey("Ont_Id")]
83: public virtual Ont Ont { get; set; }
84:
85: /// <summary/>
86: public System.Guid UserId { get; set; }
87:
88: ////////////////////////////////////////////////////////////////////////////
89:
90: /// <summary>
91: ///
92: /// </summary>
93: public override string ToString()
94: {
95: return Ia.Ngn.Cl.Model.Data.Event.ToString(this);
96: }
97:
98: ////////////////////////////////////////////////////////////////////////////
99:
100: /// <summary>
101: ///
102: /// </summary>
103: public string ToSimpleTextString()
104: {
105: return Ia.Ngn.Cl.Model.Data.Event.ToSimpleTextString(this);
106: }
107:
108: ////////////////////////////////////////////////////////////////////////////
109: ////////////////////////////////////////////////////////////////////////////
110: }
111:
112: ////////////////////////////////////////////////////////////////////////////
113: ////////////////////////////////////////////////////////////////////////////
114: }