Fixed identity column not populating when database entity is saved.