scaffolded from DB2 and use the same entities in the project. For all select and get Linq queries, the framework is adding the schema name. But it is adding the logged in userid as the schema to while inserting (adding) a new entity to the table.
If we assign the Identity column value to the entity, the framework adds the schema name to the table when context.savechanges called.
But we dont want to assign the identity column value to the entity as it should be generated by the database. In this case, the framework is adding the userid as schema to the table.
------------------------------
Kishan Devunoori
------------------------------
Original Message:
Sent: Thu August 03, 2023 08:53 PM
From: Youssef Sbai Idrissi
Subject: EntityFrameworkCore 7 - context.saveChanges - userid instead of schema is getting added to insert record to DB2 table
This is likely a configuration or mapping issue.
------------------------------
Youssef Sbai Idrissi
Software Engineer
------------------------------