I'm using Entity Framework code-first with migrations. Works great but I would like all SQL Server tables created to have the DATA_COMPRESSION=PAGE
option.
What would be the best approach to do that?
I'm using Entity Framework code-first with migrations. Works great but I would like all SQL Server tables created to have the DATA_COMPRESSION=PAGE
option.
What would be the best approach to do that?
1条答案
按热度按时间ohfgkhjo1#
You can do with with a Custom Migration Operation that rebuilds the selected tables with page compression, eg