SimplCommerce icon indicating copy to clipboard operation
SimplCommerce copied to clipboard

There is such an error in the logs

Open fetullahyldz opened this issue 5 years ago • 1 comments

warn: Microsoft.EntityFrameworkCore.Model.Validation[30000] No type was specified for the decimal column 'Rate' on entity type 'TaxRate'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values using 'HasColumnType()'. @thiennn @alinooshabadi @mickey35vn

fetullahyldz avatar Dec 05 '20 21:12 fetullahyldz

I Solved The Problem That Must Be That Way

[Column(TypeName = "decimal(18,2)")] public decimal Price { get; set; }

fetullahyldz avatar Dec 05 '20 23:12 fetullahyldz