title: How to enable SQL server data compression by code / with Entity Framework code first
body: <p>How can I enable database compression (supplied by SQL Server Enterprise edition) by code?</p>
  
  <p>I have a large table and do not want to enable compression manually.</p>
  
  <p>I'm using Entity Framework code first, so maybe there is some solution in database initializer?</p>