When you create an entity for a database context in Entity Framework that has a
decimal column, you may run into problems with truncation happening silently to you behind the scenes. With a default precision of 18 digits and 2 decimal places you may lose some data and the framework/runtime won’t complain about it when you do.
You can fix that though data annotations or with an explicit wire-up in your database context. Let’s look at how that’s done.