decimalproperties, precision defines the maximum number of digits needed to express any value the column will contain, and scale defines the maximum number of decimal places needed.
DateTimeproperties, precision defines the maximum number of digits needed to express fractions of seconds, and scale is not used.
Scoreproperty to have precision 14 and scale 2 will cause a column of type
decimal(14,2)to be created on SQL Server, and configuring the
LastUpdatedproperty to have precision 3 will cause a column of type
Entity Framework does not do any validation of precision or scale before passing data to the provider. It is up to the provider or data store to validate as appropriate. For example, when targeting SQL Server, a column of data type
datetimedoes not allow the precision to be set, whereas a
datetime2one can have precision between 0 and 7 inclusive.