OpenAuth.Net/OpenAuth.Repository/Mapping/FlowInstanceOperationHistoryMap.cs

55 lines
1.8 KiB
C#
Raw Normal View History

2017-10-11 16:19:34 +08:00
//------------------------------------------------------------------------------
// <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 System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
2017-11-29 20:49:14 +08:00
namespace OpenAuth.Repository.Mapping
2017-10-11 16:19:34 +08:00
{
2018-03-12 23:44:05 +08:00
public partial class FlowInstanceOperationHistoryMap
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.FlowInstanceOperationHistory>
2017-10-11 16:19:34 +08:00
{
2018-03-12 23:44:05 +08:00
public FlowInstanceOperationHistoryMap()
2017-10-11 16:19:34 +08:00
{
// table
2018-03-12 23:44:05 +08:00
ToTable("FlowInstanceOperationHistory", "dbo");
2017-10-11 16:19:34 +08:00
// keys
HasKey(t => t.Id);
// Properties
Property(t => t.Id)
.HasColumnName("Id")
.HasMaxLength(50)
.IsRequired();
2018-03-12 23:44:05 +08:00
Property(t => t.InstanceId)
.HasColumnName("InstanceId")
2017-10-11 16:19:34 +08:00
.HasMaxLength(50)
.IsRequired();
Property(t => t.Content)
.HasColumnName("Content")
.HasMaxLength(200)
.IsOptional();
Property(t => t.CreateDate)
.HasColumnName("CreateDate")
2018-03-12 23:44:05 +08:00
.IsRequired();
2017-10-11 16:19:34 +08:00
Property(t => t.CreateUserId)
.HasColumnName("CreateUserId")
.HasMaxLength(50)
.IsOptional();
Property(t => t.CreateUserName)
.HasColumnName("CreateUserName")
.HasMaxLength(50)
.IsOptional();
// Relationships
}
}
}