/// <summary> /// Initialises a new <see cref="LocalProfileOrganisationModel" /> instance. /// </summary> /// <param name="provider"> /// The business provider to which the business model is bound. /// </param> /// <param name="record"> /// The data record which is encapsulated by the business model. /// </param> internal LocalProfileOrganisationModel(LocalProvider provider, ProfileRecord record) : base(provider, record) { }
/// <summary> /// Initialises a new <see cref="LocalProfileProductModel" /> instance. /// </summary> /// <param name="provider"> /// The business provider to which the business model is bound. /// </param> /// <param name="record"> /// The data record which is encapsulated by the business model. /// </param> internal LocalProfileProductModel(LocalProvider provider, ProfileRecord record) : base(provider, record) { }
/// <summary> /// Indicates whether the current <see cref="ProfileRecord" /> instance is equal to another <see cref="ProfileRecord" /> instance. /// </summary> /// <param name="that"> /// The <see cref="ProfileRecord" /> instance to be compared against this instance. /// </param> /// <returns> /// True if both instances are considered equal; otherwise, false. /// </returns> public Boolean Equals(ProfileRecord that) { Boolean result = true; result = result && (this.Id.TrimOrNullify() == that.Id.TrimOrNullify()); result = result && (this.OrgId.TrimOrNullify() == that.OrgId.TrimOrNullify()); result = result && (this.PersonId.TrimOrNullify() == that.PersonId.TrimOrNullify()); result = result && (this.RoleId.TrimOrNullify() == that.RoleId.TrimOrNullify()); result = result && (this.ProdId.TrimOrNullify() == that.ProdId.TrimOrNullify()); result = result && (this.Key.TrimOrNullify() == that.Key.TrimOrNullify()); result = result && (this.Value.TrimOrNullify() == that.Value.TrimOrNullify()); result = result && (this.Notes.TrimOrNullify() == that.Notes.TrimOrNullify()); result = result && (this.Date == that.Date); result = result && (this.MrTop.TrimOrNullify() == that.MrTop.TrimOrNullify()); result = result && (this.MrId.TrimOrNullify() == that.MrId.TrimOrNullify()); result = result && (this.MrQuestPar.TrimOrNullify() == that.MrQuestPar.TrimOrNullify()); result = result && (this.MrQuestKey == that.MrQuestKey); result = result && (this.MrAnswType == that.MrAnswType); result = result && (this.MrNum == that.MrNum); result = result && (this.MrAlpha.TrimOrNullify() == that.MrAlpha.TrimOrNullify()); result = result && (this.MrChk1 == that.MrChk1); result = result && (this.MrChk2 == that.MrChk2); result = result && (this.MrChk3 == that.MrChk3); result = result && (this.MrChk4 == that.MrChk4); result = result && (this.MrChk5 == that.MrChk5); result = result && (this.MrOpt == that.MrOpt); result = result && (this.MrChild.TrimOrNullify() == that.MrChild.TrimOrNullify()); result = result && (this.Lock.TrimOrNullify() == that.Lock.TrimOrNullify()); result = result && (this.OppId.TrimOrNullify() == that.OppId.TrimOrNullify()); result = result && (this.MrLinkType == that.MrLinkType); result = result && (this.Value3.TrimOrNullify() == that.Value3.TrimOrNullify()); result = result && (this.Userchar1.TrimOrNullify() == that.Userchar1.TrimOrNullify()); result = result && (this.Usernum1 == that.Usernum1); result = result && (this.Userchar2.TrimOrNullify() == that.Userchar2.TrimOrNullify()); result = result && (this.CourseId.TrimOrNullify() == that.CourseId.TrimOrNullify()); result = result && (this.SelectDte == that.SelectDte); result = result && (this.MailDate == that.MailDate); result = result && (this.DtePassed == that.DtePassed); result = result && (this.PhoneDte == that.PhoneDte); result = result && (this.Userdate1 == that.Userdate1); result = result && (this.Userdate2 == that.Userdate2); result = result && (this.Userdate3 == that.Userdate3); result = result && (this.Userchar3.TrimOrNullify() == that.Userchar3.TrimOrNullify()); result = result && (this.Usernum2 == that.Usernum2); result = result && (this.Usernum3 == that.Usernum3); result = result && (this.Status.TrimOrNullify() == that.Status.TrimOrNullify()); result = result && (this.SpouseNam.TrimOrNullify() == that.SpouseNam.TrimOrNullify()); result = result && (this.Diet1.TrimOrNullify() == that.Diet1.TrimOrNullify()); result = result && (this.Diet2.TrimOrNullify() == that.Diet2.TrimOrNullify()); result = result && (this.AccptDte == that.AccptDte); result = result && (this.PgpId.TrimOrNullify() == that.PgpId.TrimOrNullify()); result = result && (this.Value2.TrimOrNullify() == that.Value2.TrimOrNullify()); result = result && (this.LinkId.TrimOrNullify() == that.LinkId.TrimOrNullify()); result = result && (this.LinkType == that.LinkType); result = result && (this.ProjId.TrimOrNullify() == that.ProjId.TrimOrNullify()); result = result && (this.Cost == that.Cost); result = result && (this.QualId.TrimOrNullify() == that.QualId.TrimOrNullify()); result = result && (this.LocId.TrimOrNullify() == that.LocId.TrimOrNullify()); result = result && (this.AttribTint01 == that.AttribTint01); result = result && (this.PdsId.TrimOrNullify() == that.PdsId.TrimOrNullify()); result = result && (this.TrainId.TrimOrNullify() == that.TrainId.TrimOrNullify()); result = result && (this.MemId.TrimOrNullify() == that.MemId.TrimOrNullify()); result = result && (this.DelId.TrimOrNullify() == that.DelId.TrimOrNullify()); result = result && (this.CertId.TrimOrNullify() == that.CertId.TrimOrNullify()); result = result && (this.VolId.TrimOrNullify() == that.VolId.TrimOrNullify()); return(result); }
/// <summary> /// Creates a new <see cref="ProfileRecord" /> object instance that is a shallow-copy of the current object instance. /// </summary> /// <returns> /// The shallow-copy of the current <see cref="ProfileRecord" /> object instance. /// </returns> public ProfileRecord Clone() { ProfileRecord record = new ProfileRecord(); record.Id = this.Id; record.AddDate = this.AddDate; record.AddBy = this.AddBy; record.ModDate = this.ModDate; record.ModBy = this.ModBy; record.RcvDate = this.RcvDate; record.RcvFrom = this.RcvFrom; record.OrgId = this.OrgId; record.PersonId = this.PersonId; record.RoleId = this.RoleId; record.ProdId = this.ProdId; record.Key = this.Key; record.Value = this.Value; record.Notes = this.Notes; record.Date = this.Date; record.MrTop = this.MrTop; record.MrId = this.MrId; record.MrQuestPar = this.MrQuestPar; record.MrQuestKey = this.MrQuestKey; record.MrAnswType = this.MrAnswType; record.MrNum = this.MrNum; record.MrAlpha = this.MrAlpha; record.MrChk1 = this.MrChk1; record.MrChk2 = this.MrChk2; record.MrChk3 = this.MrChk3; record.MrChk4 = this.MrChk4; record.MrChk5 = this.MrChk5; record.MrOpt = this.MrOpt; record.MrChild = this.MrChild; record.Lock = this.Lock; record.OppId = this.OppId; record.MrLinkType = this.MrLinkType; record.Value3 = this.Value3; record.Userchar1 = this.Userchar1; record.Usernum1 = this.Usernum1; record.Userchar2 = this.Userchar2; record.CourseId = this.CourseId; record.SelectDte = this.SelectDte; record.MailDate = this.MailDate; record.DtePassed = this.DtePassed; record.PhoneDte = this.PhoneDte; record.Userdate1 = this.Userdate1; record.Userdate2 = this.Userdate2; record.Userdate3 = this.Userdate3; record.Userchar3 = this.Userchar3; record.Usernum2 = this.Usernum2; record.Usernum3 = this.Usernum3; record.Status = this.Status; record.SpouseNam = this.SpouseNam; record.Diet1 = this.Diet1; record.Diet2 = this.Diet2; record.AccptDte = this.AccptDte; record.PgpId = this.PgpId; record.Value2 = this.Value2; record.LinkId = this.LinkId; record.LinkType = this.LinkType; record.ProjId = this.ProjId; record.Cost = this.Cost; record.QualId = this.QualId; record.LocId = this.LocId; record.AttribTint01 = this.AttribTint01; record.PdsId = this.PdsId; record.TrainId = this.TrainId; record.MemId = this.MemId; record.DelId = this.DelId; record.CertId = this.CertId; record.VolId = this.VolId; return(record); }
/// <summary> /// Initialises a new <see cref="LocalProfileCoursesModel" /> instance. /// </summary> /// <param name="provider"> /// The business provider to which the business model is bound. /// </param> /// <param name="record"> /// The data record which is encapsulated by the business model. /// </param> internal LocalProfileCoursesModel(LocalProvider provider, ProfileRecord record) : base(provider, record) { }