issue #19261: Add support to create a new record.
issue #19261: Add dirty check before creating new record.