Samuel Duarte
Samuel Duarte
CC#
Created by Samuel Duarte on 4/17/2024 in #help
EF Core HasPrecision()
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.2" />
13 replies
CC#
Created by Samuel Duarte on 4/17/2024 in #help
EF Core HasPrecision()
I used SqlServer and still the precision is not defined
13 replies
CC#
Created by Samuel Duarte on 4/17/2024 in #help
EF Core HasPrecision()
builder
.Property(transfer => transfer.Amount)
.HasColumnType("decimal")
.HasPrecision(14, 2);

# Migrations code generated

Amount = table.Column<decimal>(type: "decimal(18,2)", nullable: false)
builder
.Property(transfer => transfer.Amount)
.HasColumnType("decimal")
.HasPrecision(14, 2);

# Migrations code generated

Amount = table.Column<decimal>(type: "decimal(18,2)", nullable: false)
13 replies