public virtual SqlLog UpdateSqlLog(SqlLog entity)
        {
            if (entity.IsTransient())
            {
                return(entity);
            }
            SqlLog other = GetSqlLog(entity.SqlLogId);

            if (entity.Equals(other))
            {
                return(entity);
            }
            string sql = @"Update SQLLog set  [SQLText]=@SQLText
							, [ExecutedBy]=@ExecutedBy
							, [ExecutedOn]=@ExecutedOn 
							 where SQLLogID=@SQLLogID"                            ;

            SqlParameter[] parameterArray = new SqlParameter[] {
                new SqlParameter("@SQLLogID", entity.SqlLogId)
                , new SqlParameter("@SQLText", entity.SqlText)
                , new SqlParameter("@ExecutedBy", entity.ExecutedBy)
                , new SqlParameter("@ExecutedOn", entity.ExecutedOn)
            };
            SqlHelper.ExecuteNonQuery(this.ConnectionString, CommandType.Text, sql, parameterArray);
            return(GetSqlLog(entity.SqlLogId));
        }