addng changes to allow the EF enums