Use JoinTypes-method

Change from joining Types (as typemarker) to use the JoinTypes-method
Merge pull request #400 from Tasteful/DeleteByQuery2

Use JoinTypes-method