I'm doing .net project upgradation from ADO.Net to Entity Framework DBContext.
There are multiple schema's in my SQL database, from SCHEMA 1 to 150 SCHEMA'S. Each schema has 12 tables with different data, but the table structure remains the same.
Existing code has multiple queries like below as well nested queries
SELECT COLUMN NAME FROM [SCHEMA].TABLE NAME ORDER BY 1; here [SCHEMA] will be dynamic
When I call Scaffold-DbContext "Server=;Database=;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir DBModels
It generate single DBContext with multiple tables entity with respect of SCHEMA's.
I would need your suggestion. How I should generate Scaffold-DbContext so that I can query any tables by just passing SCHEMA'S dynamic.