On Oracle, as the OracleDQE has logic to use a different kind of sequence retrieval code, you should set a config file parameter, see Application configuration through .config files in the documentation.
On SqlServer, set the sequence of the PK field to @@IDENTITY instead of SCOPE_IDENTITY(). Though as Brian asks: what's the type of the PK? It will only work with numeric sequences, not with a trigger which sets the PK to NEWID() or something.