public override void Create(ViewLogRecord record)
        {
            DbCommand command = this.Provider.GetStoredProcedure("spInsertUpdateViewLog");

            this.MapParameterIn(command, "@PA_VIEW_TYPE", record.Type);
            this.MapParameterIn(command, "@PA_USER_LOGIN_ID", UserId);
            this.MapParameterIn(command, "@PA_VIEW_TABLE", record.Table);
            this.MapParameterIn(command, "@PA_VIEW_SOURCE", record.Source);
            this.MapParameterIn(command, "@PA_VIEW_REC_ID", record.RecId);
            this.Execute(command);
            this.MapParametersOut(command, record);
        }
Esempio n. 2
0
        /// <summary>
        ///     Indicates whether the current <see cref="ViewLogRecord" /> instance is equal to another <see cref="ViewLogRecord" /> instance.
        /// </summary>
        /// <param name="that">
        ///     The <see cref="ViewLogRecord" /> instance to be compared against this instance.
        /// </param>
        /// <returns>
        ///     True if both instances are considered equal; otherwise, false.
        /// </returns>
        public Boolean Equals(ViewLogRecord that)
        {
            Boolean result = true;

            result = result && (this.Id == that.Id);
            result = result && (this.Table.TrimOrNullify() == that.Table.TrimOrNullify());
            result = result && (this.RecId.TrimOrNullify() == that.RecId.TrimOrNullify());
            result = result && (this.Source == that.Source);
            result = result && (this.Type == that.Type);
            result = result && (this.RecId2.TrimOrNullify() == that.RecId2.TrimOrNullify());
            result = result && (this.Table2.TrimOrNullify() == that.Table2.TrimOrNullify());
            return(result);
        }
Esempio n. 3
0
        /// <summary>
        ///     Creates a new <see cref="ViewLogRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="ViewLogRecord" /> object instance.
        /// </returns>
        public ViewLogRecord Clone()
        {
            ViewLogRecord record = new ViewLogRecord();

            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.Table   = this.Table;
            record.RecId   = this.RecId;
            record.Source  = this.Source;
            record.Type    = this.Type;
            record.RecId2  = this.RecId2;
            record.Table2  = this.Table2;
            return(record);
        }