)>}]
شركة التطبيقات المتكاملة لتصميم وبرمجة البرمجيات الخاصة ش.ش.و.
Integrated Applications Programming Company
Home » Code Library » Event (Ia.Ftn.Cl.Models)

Public general use code classes and xml files that we've compiled and used over the years:

Event Entity Framework class for Fixed Telecommunications Network (FTN) entity model.

    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.Ftn.Cl.Models
    9: {
   10:     ////////////////////////////////////////////////////////////////////////////
   11:  
   12:     /// <summary publish="true">
   13:     /// Event Entity Framework class for Fixed Telecommunications Network (FTN) 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:         ////////////////////////////////////////////////////////////////////////////
   86:  
   87:         /// <summary>
   88:         ///
   89:         /// </summary>
   90:         public override string ToString()
   91:         {
   92:             return Ia.Ftn.Cl.Models.Data.Event.ToString(this);
   93:         }
   94:  
   95:         ////////////////////////////////////////////////////////////////////////////
   96:  
   97:         /// <summary>
   98:         ///
   99:         /// </summary>
  100:         public string ToSimpleTextString()
  101:         {
  102:             return Ia.Ftn.Cl.Models.Data.Event.ToSimpleTextString(this);
  103:         }
  104:  
  105:         ////////////////////////////////////////////////////////////////////////////    
  106:         ////////////////////////////////////////////////////////////////////////////    
  107:     }
  108:  
  109:     ////////////////////////////////////////////////////////////////////////////
  110:     ////////////////////////////////////////////////////////////////////////////   
  111: }