23 lines
705 B
C#
23 lines
705 B
C#
|
using Microsoft.EntityFrameworkCore;
|
||
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||
|
using ShardingCore.Test2x.Domain.Entities;
|
||
|
|
||
|
namespace ShardingCore.Test2x.Domain.Maps
|
||
|
{
|
||
|
/*
|
||
|
* @Author: xjm
|
||
|
* @Description:
|
||
|
* @Date: Monday, 01 February 2021 15:42:35
|
||
|
* @Email: 326308290@qq.com
|
||
|
*/
|
||
|
public class SysUserSalaryMap:IEntityTypeConfiguration<SysUserSalary>
|
||
|
{
|
||
|
public void Configure(EntityTypeBuilder<SysUserSalary> builder)
|
||
|
{
|
||
|
builder.HasKey(o => o.Id);
|
||
|
builder.Property(o => o.Id).IsRequired().HasMaxLength(128);
|
||
|
builder.Property(o => o.UserId).IsRequired().HasMaxLength(128);
|
||
|
builder.ToTable(nameof(SysUserSalary));
|
||
|
}
|
||
|
}
|
||
|
}
|