24 lines
715 B
C#
24 lines
715 B
C#
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 LogYearLongMap:IEntityTypeConfiguration<LogYearLong>
|
|
{
|
|
public void Configure(EntityTypeBuilder<LogYearLong> builder)
|
|
{
|
|
|
|
builder.HasKey(o => o.Id);
|
|
builder.Property(o => o.Id).IsRequired().IsUnicode(false).HasMaxLength(50);
|
|
builder.Property(o => o.LogBody).HasMaxLength(128);
|
|
builder.ToTable(nameof(LogYearLong));
|
|
}
|
|
}
|
|
}
|