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

35 lines
1.1 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 PFFlowInstanceOperHisMap
: APTEntityBaseMap<T_PF_FLOW_INSTANCE_OPER_HIS>
{
public override void Configure(EntityTypeBuilder<T_PF_FLOW_INSTANCE_OPER_HIS> builder)
{
base.Configure(builder);
builder.Property(t => t.Content)
.HasMaxLength(200);
builder.Property(t => t.CreateDate) ;
builder.Property(t => t.CreateUserId)
.HasMaxLength(50);
builder.Property(t => t.CreateUserName)
.HasMaxLength(50);
builder.HasOne(t => t.FlowInstance).
WithMany(t => t.OperationHistorys).
HasForeignKey(t => t.InstanceId);
// Relationships
}
}
}