I want to modify the mapping of an entity to a table, the moment I use the model, not at design time. Is this possible? Context:
- I have an entity 'ProductPicture' mapped to its table with the same name
- this table is actually an inventory of pictures gathered from different sources and is rebuilt daily
- during rebuild, I delete the rows from one source and reinsert them for that source
- during that rebuild which takes a certain time, the images are not available which I don't want
- my idea was to rework my rebuild so it writes to a _productpicture table instead and drop/rename the tables at the end. But I don't want an extra entity in my model just for that => temporarely make entity framework with another tablename than specified by the modelbuilder