19 lines
543 B
C#
19 lines
543 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using UTB.Eshop.Web.Models.Entity;
|
|
|
|
namespace UTB.Eshop.Web.Models.Database.Configurations
|
|
{
|
|
public class OrderConfiguration : IEntityTypeConfiguration<Order>
|
|
{
|
|
public void Configure(EntityTypeBuilder<Order> builder)
|
|
{
|
|
builder.Property(nameof(Order.DateTimeCreated)).HasDefaultValueSql("NOW(6)");
|
|
}
|
|
}
|
|
}
|