I have a SAAS application which handle a multi tenant functionality.
I am planning to use different schema for each client.
My tables are created in .NET Core 3.1 using Entity Framework Core with a code-first approach and default schema dbo
.
Now, whenever a client is created through the application, I want to create a same copy of dbo
schema tables structure to another schema
For example: consider I have a table called dbo.Product
, when Client A is registered, I need to create a table with ClientA.Product
How can I handle dynamic creation of tables in .NET Core 3.1 / Entity Framework Core?