d_sms_service/APT.BaseData.Data/Mapping/PF/PFFlowInstanceTransHisMap.cs
2024-10-28 13:45:58 +08:00

48 lines
1.5 KiB
C#

//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a CodeSmith Template.
//
// DO NOT MODIFY contents of this file. Changes to this
// file will be lost if the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------
using APT.BaseData.Domain.Entities;
using APT.Infrastructure.EF.Map;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace APT.BaseData.Data.Mapping
{
public partial class PFFlowInstanceTransHisMap: APTEntityBaseMap<T_PF_FLOW_INSTANCE_TRANS_HIS>
{
public override void Configure(EntityTypeBuilder<T_PF_FLOW_INSTANCE_TRANS_HIS> builder)
{
base.Configure(builder);
builder.Property(t => t.FromNodeId)
.HasMaxLength(50) ;
builder.Property(t => t.FromNodeType) ;
builder.Property(t => t.FromNodeName)
.HasMaxLength(200) ;
builder.Property(t => t.ToNodeId)
.HasMaxLength(50) ;
builder.Property(t => t.ToNodeType) ;
builder.Property(t => t.ToNodeName)
.HasMaxLength(200) ;
builder.Property(t => t.TransitionSate)
.IsRequired();
builder.Property(t => t.IsFinish)
.IsRequired();
builder.Property(t => t.CreateDate)
.IsRequired();
builder.Property(t => t.CreateUserId)
.HasMaxLength(50) ;
builder.Property(t => t.CreateUserName)
.HasMaxLength(50) ;
builder.HasOne(t => t.FlowInstance).
WithMany(t => t.TransitionHistorys).
HasForeignKey(t => t.InstanceId);
}
}
}