public static DbCommand Command(this DbConnection connection, ISqlObjectFactory sqlObjectFactory, string sql) { var command = sqlObjectFactory.GetCommand(sql, connection); return(command); }