/// <summary> /// Creates a new <see cref="PortalSetupRecord" /> object instance that is a shallow-copy of the current object instance. /// </summary> /// <returns> /// The shallow-copy of the current <see cref="PortalSetupRecord" /> object instance. /// </returns> public PortalSetupRecord Clone() { PortalSetupRecord record = new PortalSetupRecord(); 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.DisplayLogo = this.DisplayLogo; record.LogoFile = this.LogoFile; record.DisplayMenu = this.DisplayMenu; record.DisplayHeader = this.DisplayHeader; record.DisplayFooter = this.DisplayFooter; record.CopyrightMessage = this.CopyrightMessage; record.PstId = this.PstId; record.PortalTitle = this.PortalTitle; record.StartPmenuId = this.StartPmenuId; record.PortalUrl = this.PortalUrl; record.PortalLangPrefix = this.PortalLangPrefix; record.SessionTimeout = this.SessionTimeout; record.SecureSite = this.SecureSite; record.DisplayDate = this.DisplayDate; record.SingleSignon = this.SingleSignon; record.PrincipOrgId = this.PrincipOrgId; record.RssFeedTtl = this.RssFeedTtl; record.RssFeedChDesc = this.RssFeedChDesc; record.GlbPmenuId = this.GlbPmenuId; record.TopMenuHtml = this.TopMenuHtml; record.AdditionalHeadtags = this.AdditionalHeadtags; record.Bootstrap = this.Bootstrap; record.Menubrand = this.Menubrand; record.FbAppId = this.FbAppId; record.HideToolbarAnony = this.HideToolbarAnony; record.MiniImage = this.MiniImage; record.ImpersonateUser = this.ImpersonateUser; record.ImpersonatePassword = this.ImpersonatePassword; record.LocalPath = this.LocalPath; record.GlobalLoginPmenuId = this.GlobalLoginPmenuId; record.MessagesPmenuId = this.MessagesPmenuId; record.PrimaryProductPmenuId = this.PrimaryProductPmenuId; record.PrimaryEventPmenuId = this.PrimaryEventPmenuId; record.GoogleApiKey = this.GoogleApiKey; record.ShowBreadcrumb = this.ShowBreadcrumb; record.ShowUserAvatar = this.ShowUserAvatar; return(record); }
/// <summary> /// Indicates whether the current <see cref="PortalSetupRecord" /> instance is equal to another <see cref="PortalSetupRecord" /> instance. /// </summary> /// <param name="that"> /// The <see cref="PortalSetupRecord" /> instance to be compared against this instance. /// </param> /// <returns> /// True if both instances are considered equal; otherwise, false. /// </returns> public Boolean Equals(PortalSetupRecord that) { Boolean result = true; result = result && (this.Id == that.Id); result = result && (this.DisplayLogo == that.DisplayLogo); result = result && (this.LogoFile.TrimOrNullify() == that.LogoFile.TrimOrNullify()); result = result && (this.DisplayMenu == that.DisplayMenu); result = result && (this.DisplayHeader == that.DisplayHeader); result = result && (this.DisplayFooter == that.DisplayFooter); result = result && (this.CopyrightMessage.TrimOrNullify() == that.CopyrightMessage.TrimOrNullify()); result = result && (this.PstId == that.PstId); result = result && (this.PortalTitle.TrimOrNullify() == that.PortalTitle.TrimOrNullify()); result = result && (this.StartPmenuId == that.StartPmenuId); result = result && (this.PortalUrl.TrimOrNullify() == that.PortalUrl.TrimOrNullify()); result = result && (this.PortalLangPrefix.TrimOrNullify() == that.PortalLangPrefix.TrimOrNullify()); result = result && (this.SessionTimeout == that.SessionTimeout); result = result && (this.SecureSite == that.SecureSite); result = result && (this.DisplayDate == that.DisplayDate); result = result && (this.SingleSignon == that.SingleSignon); result = result && (this.PrincipOrgId.TrimOrNullify() == that.PrincipOrgId.TrimOrNullify()); result = result && (this.RssFeedTtl == that.RssFeedTtl); result = result && (this.RssFeedChDesc.TrimOrNullify() == that.RssFeedChDesc.TrimOrNullify()); result = result && (this.GlbPmenuId == that.GlbPmenuId); result = result && (this.TopMenuHtml.TrimOrNullify() == that.TopMenuHtml.TrimOrNullify()); result = result && (this.AdditionalHeadtags.TrimOrNullify() == that.AdditionalHeadtags.TrimOrNullify()); result = result && (this.Bootstrap == that.Bootstrap); result = result && (this.Menubrand.TrimOrNullify() == that.Menubrand.TrimOrNullify()); result = result && (this.FbAppId.TrimOrNullify() == that.FbAppId.TrimOrNullify()); result = result && (this.HideToolbarAnony == that.HideToolbarAnony); result = result && (this.MiniImage.TrimOrNullify() == that.MiniImage.TrimOrNullify()); result = result && (this.ImpersonateUser.TrimOrNullify() == that.ImpersonateUser.TrimOrNullify()); result = result && (this.ImpersonatePassword.TrimOrNullify() == that.ImpersonatePassword.TrimOrNullify()); result = result && (this.LocalPath.TrimOrNullify() == that.LocalPath.TrimOrNullify()); result = result && (this.GlobalLoginPmenuId == that.GlobalLoginPmenuId); result = result && (this.MessagesPmenuId == that.MessagesPmenuId); result = result && (this.PrimaryProductPmenuId == that.PrimaryProductPmenuId); result = result && (this.PrimaryEventPmenuId == that.PrimaryEventPmenuId); result = result && (this.GoogleApiKey.TrimOrNullify() == that.GoogleApiKey.TrimOrNullify()); result = result && (this.ShowBreadcrumb == that.ShowBreadcrumb); result = result && (this.ShowUserAvatar == that.ShowUserAvatar); return(result); }