using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using ShardingCore.Test5x.Domain.Entities; namespace ShardingCore.Test5x.Domain.Maps { public class LogYearDateTimeMap : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { builder.HasKey(o => o.Id); builder.Property(o => o.LogBody).IsRequired().HasMaxLength(256); builder.ToTable(nameof(LogYearDateTime)); } } }