EF Core - using letters instead numbers for enums in the database

Sometimes, I actually prefer to store letters for rather than integers in the database. Yes, it can be less performant (as you do need to implement a custom converter), but can make the database a lot easier to read. Consider the example below that TradeDirection. It might be more preferable to see B and S in the database which is more readable instead of using 1 and 2 for Buy and Sell which is somewhat meaningless.

In the code, it usually doesn't matter what numbers are behind the enum, so the ints (32-bits) can be replaced with chars (16-bits).

Below you can find 4 simple extensions methods on enum, string, and PropertyBuilder that enable that enum to letter conversion with one line.