You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
498 B
15 lines
498 B
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
using Microsoft.eShopWeb.ApplicationCore.Entities.BasketAggregate;
|
|
|
|
namespace Microsoft.eShopWeb.Infrastructure.Data.Config;
|
|
|
|
public class BasketItemConfiguration : IEntityTypeConfiguration<BasketItem>
|
|
{
|
|
public void Configure(EntityTypeBuilder<BasketItem> builder)
|
|
{
|
|
builder.Property(bi => bi.UnitPrice)
|
|
.IsRequired(true)
|
|
.HasColumnType("decimal(18,2)");
|
|
}
|
|
}
|
|
|