Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        public override SysExceptionLog Retrieve(SqlTransaction transaction, SysExceptionLog entity)
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder(200);
            sb.Append("select * from [sys_exception_log] ");
            sb.Append("where [log_id] = @LogId ");
            ParameterBuilder paramList = new ParameterBuilder(1);

            paramList.Add("@LogId", entity.LogId);

            DataTable data = SqlHelper.ExecuteDataTableBySql(transaction, sb.ToString(), paramList.ToArray());

            if (data.Rows.Count > 0)
            {
                FillEntityByRow(entity, data.Rows[0]);
                return(entity);
            }
            return(null);
        }