18 lines
611 B
C#
18 lines
611 B
C#
|
using Microsoft.EntityFrameworkCore;
|
|||
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|||
|
using ShardingCore.Test5x.Domain.Entities;
|
|||
|
|
|||
|
namespace ShardingCore.Test5x.Domain.Maps
|
|||
|
{
|
|||
|
public class LogWeekDateTimeMap:IEntityTypeConfiguration<LogWeekDateTime>
|
|||
|
{
|
|||
|
public void Configure(EntityTypeBuilder<LogWeekDateTime> builder)
|
|||
|
{
|
|||
|
builder.HasKey(o => o.Id);
|
|||
|
builder.Property(o => o.Id).IsRequired().IsUnicode(false).HasMaxLength(50);
|
|||
|
builder.Property(o => o.Body).HasMaxLength(128);
|
|||
|
builder.ToTable(nameof(LogWeekDateTime));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|