Generate Enum from database table with T4 Just copy SQL_T4_Enum\AutoEnum.tt to your project and change it