Fix null reference exception for mySQL data provider when using custom transactions (#395)
Fix null reference exception for mySQL data provider when using custom transactions (#395)

* Causes a null reference exception for mySQL data provider when using a DbContextTransaction to create custom transactions

* Remove redundant castings and refactor.
thepirat000/Audit.NET,thepirat000/Audit.NET,thepirat000/Audit.NET