/// <summary>
        ///     Indicates whether the current <see cref="PortalUserRecord" /> instance is equal to another <see cref="PortalUserRecord" /> instance.
        /// </summary>
        /// <param name="that">
        ///     The <see cref="PortalUserRecord" /> instance to be compared against this instance.
        /// </param>
        /// <returns>
        ///     True if both instances are considered equal; otherwise, false.
        /// </returns>
        public Boolean Equals(PortalUserRecord that)
        {
            Boolean result = true;

            result = result && (this.Id == that.Id);
            result = result && (this.PrId == that.PrId);
            result = result && (this.ProleId.TrimOrNullify() == that.ProleId.TrimOrNullify());
            result = result && (this.LoginId.TrimOrNullify() == that.LoginId.TrimOrNullify());
            result = result && (this.Password.TrimOrNullify() == that.Password.TrimOrNullify());
            result = result && (this.Barred == that.Barred);
            result = result && (this.SysAdmin == that.SysAdmin);
            result = result && (this.ShtLoginId.TrimOrNullify() == that.ShtLoginId.TrimOrNullify());
            result = result && (this.Create.TrimOrNullify() == that.Create.TrimOrNullify());
            result = result && (this.Read.TrimOrNullify() == that.Read.TrimOrNullify());
            result = result && (this.Update.TrimOrNullify() == that.Update.TrimOrNullify());
            result = result && (this.Delete.TrimOrNullify() == that.Delete.TrimOrNullify());
            result = result && (this.Ntusername.TrimOrNullify() == that.Ntusername.TrimOrNullify());
            result = result && (this.SelcoSpId.TrimOrNullify() == that.SelcoSpId.TrimOrNullify());
            result = result && (this.IncMyorg == that.IncMyorg);
            result = result && (this.AttemptCount == that.AttemptCount);
            result = result && (this.LockedUntil == that.LockedUntil);
            result = result && (this.ResetCode.TrimOrNullify() == that.ResetCode.TrimOrNullify());
            result = result && (this.PartnerSysRef.TrimOrNullify() == that.PartnerSysRef.TrimOrNullify());
            result = result && (this.SecretQuest.TrimOrNullify() == that.SecretQuest.TrimOrNullify());
            result = result && (this.SecretAnswer.TrimOrNullify() == that.SecretAnswer.TrimOrNullify());
            result = result && (this.FirstLogin == that.FirstLogin);
            result = result && (this.LastLogin == that.LastLogin);
            result = result && (this.NoLogins == that.NoLogins);
            result = result && (this.ResetValidUntil == that.ResetValidUntil);
            result = result && (this.ResetUrl.TrimOrNullify() == that.ResetUrl.TrimOrNullify());
            result = result && (this.Guid == that.Guid);
            result = result && (this.AuthProvider.TrimOrNullify() == that.AuthProvider.TrimOrNullify());
            return(result);
        }
        public override void Modify(PortalUserRecord record)
        {
            DbCommand command = this.Provider.GetStoredProcedure("spInsertUpdatePortal_User");

            this.MapParameterIn(command, "@PA_USER_LOGIN_ID", "dev");
            this.MapParametersIn(command, record, true);
            this.Execute(command);
            this.MapParametersOut(command, record);
        }
        /// <summary>
        ///     Creates a new <see cref="PortalUserRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="PortalUserRecord" /> object instance.
        /// </returns>
        public PortalUserRecord Clone()
        {
            PortalUserRecord record = new PortalUserRecord();

            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.PrId            = this.PrId;
            record.ProleId         = this.ProleId;
            record.LoginId         = this.LoginId;
            record.Password        = this.Password;
            record.Barred          = this.Barred;
            record.SysAdmin        = this.SysAdmin;
            record.ShtLoginId      = this.ShtLoginId;
            record.Create          = this.Create;
            record.Read            = this.Read;
            record.Update          = this.Update;
            record.Delete          = this.Delete;
            record.Ntusername      = this.Ntusername;
            record.SelcoSpId       = this.SelcoSpId;
            record.IncMyorg        = this.IncMyorg;
            record.AttemptCount    = this.AttemptCount;
            record.LockedUntil     = this.LockedUntil;
            record.ResetCode       = this.ResetCode;
            record.PartnerSysRef   = this.PartnerSysRef;
            record.SecretQuest     = this.SecretQuest;
            record.SecretAnswer    = this.SecretAnswer;
            record.FirstLogin      = this.FirstLogin;
            record.LastLogin       = this.LastLogin;
            record.NoLogins        = this.NoLogins;
            record.ResetValidUntil = this.ResetValidUntil;
            record.ResetUrl        = this.ResetUrl;
            record.Guid            = this.Guid;
            record.AuthProvider    = this.AuthProvider;
            return(record);
        }