I need to import a huge amount of data without db work interruption. So there are two tables: Data and DataTemp(they are identical). At first data is uploaded to the temp table and then tables are swapped by backing up Data table and renaming DataTemp to Data(this example is simplified - there much more than two tables). Entity Framework is used in this project.
So the question is: is it possible to use entity framework to use DataTemp without duplicating the Data table in the schema? Is there a way to edit final sql before executing it to temporary replace table names? OnModelCreating doesn't fit because it's called once but I need to use both tables at different times.
Thanks!