23 lines
701 B
C#
23 lines
701 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
using ShardingCore.Test2x.Domain.Entities;
|
|
|
|
namespace ShardingCore.Test2x.Domain.Maps
|
|
{
|
|
/*
|
|
* @Author: xjm
|
|
* @Description:
|
|
* @Date: Thursday, 14 January 2021 15:37:33
|
|
* @Email: 326308290@qq.com
|
|
*/
|
|
public class SysUserModMap:IEntityTypeConfiguration<SysUserMod>
|
|
{
|
|
public void Configure(EntityTypeBuilder<SysUserMod> builder)
|
|
{
|
|
builder.HasKey(o => o.Id);
|
|
builder.Property(o => o.Id).ValueGeneratedNever().IsRequired().HasMaxLength(128);
|
|
builder.Property(o => o.Name).HasMaxLength(128);
|
|
builder.ToTable(nameof(SysUserMod));
|
|
}
|
|
}
|
|
} |