15 lines
454 B
C#
15 lines
454 B
C#
|
using Core.Entities.OrderAggregate;
|
||
|
using Microsoft.EntityFrameworkCore;
|
||
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||
|
|
||
|
namespace Infrastructure.Data.Config
|
||
|
{
|
||
|
public class DeliveryMethodConfiguration : IEntityTypeConfiguration<DeliveryMethod>
|
||
|
{
|
||
|
public void Configure(EntityTypeBuilder<DeliveryMethod> builder)
|
||
|
{
|
||
|
builder.Property(d => d.Price)
|
||
|
.HasColumnType("decimal(18,2)");
|
||
|
}
|
||
|
}
|
||
|
}
|