EF Core HasPrecision()
Has anyone ever defined precision for decimal numbers in EF Core without using attributes? Even defining the value for some reason is truncated at "decimal(18,2)" when I do the migrations.
10 Replies

worked for me using postgresql

you can also specify the column type directly as
decimal(x,y)
I didn't even need to specify the columntype on my first try efcore automagically did its work
I wonder if his issue is a version/db issue
I used SqlServer and still the precision is not defined
and what is the version of the efcore nuget you're using?
yeah I cannot reproduce it sorry
maybe some one else knows about it