// Decompiled with JetBrains decompiler
// Type: SE0085.Q2CdB.mdsq2ccd
// Assembly: SE0085Q2CdB, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: A5680110-30A2-457F-A920-E4C024719231
// Assembly location: C:\Users\Abishek\Downloads\SchneiderCode_Breaker_09292016\Breaker Schedule-20160930T014118Z\Breaker Schedule\Solution for gathering Breaker Data\DMS\bin\Debug\SE0085Q2CdB.dll

using Microsoft.VisualBasic.CompilerServices;
using System;
using System.Data.Objects.DataClasses;
using System.Diagnostics;
using System.Runtime.Serialization;

namespace SE0085.Q2CdB
{
  [DataContract(IsReference = true)]
  [EdmEntityType(Name = "mdsq2ccd", NamespaceName = "MDSS_dbmdsModel")]
  [Serializable]
  public class mdsq2ccd : EntityObject
  {
    private string _col_nm;
    private short _col_nm_cd_nbr;
    private string _col_nm_cd_char;
    private short _cd_desc_seq_nbr;
    private string _cd_desc;
    private string _lng_cd;
    private DateTime _last_chg_dt;
    private string _last_chg_rsn_cd;

    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    [DataMember]
    public string col_nm
    {
      get
      {
        return this._col_nm;
      }
      set
      {
        if (Operators.CompareString(this._col_nm, value, false) == 0)
          return;
        this.ReportPropertyChanging("col_nm");
        this._col_nm = StructuralObject.SetValidValue(value, false);
        this.ReportPropertyChanged("col_nm");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    [DataMember]
    public short col_nm_cd_nbr
    {
      get
      {
        return this._col_nm_cd_nbr;
      }
      set
      {
        if ((int) this._col_nm_cd_nbr == (int) value)
          return;
        this.ReportPropertyChanging("col_nm_cd_nbr");
        this._col_nm_cd_nbr = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("col_nm_cd_nbr");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    [DataMember]
    public string col_nm_cd_char
    {
      get
      {
        return this._col_nm_cd_char;
      }
      set
      {
        if (Operators.CompareString(this._col_nm_cd_char, value, false) == 0)
          return;
        this.ReportPropertyChanging("col_nm_cd_char");
        this._col_nm_cd_char = StructuralObject.SetValidValue(value, false);
        this.ReportPropertyChanged("col_nm_cd_char");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    [DataMember]
    public short cd_desc_seq_nbr
    {
      get
      {
        return this._cd_desc_seq_nbr;
      }
      set
      {
        if ((int) this._cd_desc_seq_nbr == (int) value)
          return;
        this.ReportPropertyChanging("cd_desc_seq_nbr");
        this._cd_desc_seq_nbr = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("cd_desc_seq_nbr");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    public string cd_desc
    {
      get
      {
        return this._cd_desc;
      }
      set
      {
        if (Operators.CompareString(this._cd_desc, value, false) == 0)
          return;
        this.ReportPropertyChanging("cd_desc");
        this._cd_desc = StructuralObject.SetValidValue(value, false);
        this.ReportPropertyChanged("cd_desc");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    [DataMember]
    public string lng_cd
    {
      get
      {
        return this._lng_cd;
      }
      set
      {
        if (Operators.CompareString(this._lng_cd, value, false) == 0)
          return;
        this.ReportPropertyChanging("lng_cd");
        this._lng_cd = StructuralObject.SetValidValue(value, false);
        this.ReportPropertyChanged("lng_cd");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    public DateTime last_chg_dt
    {
      get
      {
        return this._last_chg_dt;
      }
      set
      {
        if (DateTime.Compare(this._last_chg_dt, value) == 0)
          return;
        this.ReportPropertyChanging("last_chg_dt");
        this._last_chg_dt = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("last_chg_dt");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    [DataMember]
    public string last_chg_rsn_cd
    {
      get
      {
        return this._last_chg_rsn_cd;
      }
      set
      {
        if (Operators.CompareString(this._last_chg_rsn_cd, value, false) == 0)
          return;
        this.ReportPropertyChanging("last_chg_rsn_cd");
        this._last_chg_rsn_cd = StructuralObject.SetValidValue(value, false);
        this.ReportPropertyChanged("last_chg_rsn_cd");
      }
    }

    [DebuggerNonUserCode]
    public mdsq2ccd()
    {
    }

    public static mdsq2ccd Createmdsq2ccd(string col_nm, short col_nm_cd_nbr, string col_nm_cd_char, short cd_desc_seq_nbr, string cd_desc, string lng_cd, DateTime last_chg_dt, string last_chg_rsn_cd)
    {
      return new mdsq2ccd() { col_nm = col_nm, col_nm_cd_nbr = col_nm_cd_nbr, col_nm_cd_char = col_nm_cd_char, cd_desc_seq_nbr = cd_desc_seq_nbr, cd_desc = cd_desc, lng_cd = lng_cd, last_chg_dt = last_chg_dt, last_chg_rsn_cd = last_chg_rsn_cd };
    }
  }
}
