I have a custom table naming convention which prefixes B_ to the entity name. This works fine when I generate the migration scripts. However, when I execute any get method, the EF Core generated code doesn't generate the table name with the prefix. Instead it uses the Entity name itself as table name and due to this, an exception - *
Microsoft.Data.SqlClient.SqlException (0x80131904): Invalid object name 'Appointment'
*.- is thrown. The query is supposed to be generated with table name as B_Appointments, which is the custom table name.
Do anyone have any idea, why this is happening?
User contributions licensed under CC BY-SA 3.0