Refactoring SqlGenerator and using OUTPUT clause for Sql Server