OpenAuth.Net/OpenAuth.Repository/Mapping/FlowSchemeDetailMap.cs

58 lines
1.9 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 FlowSchemeDetailMap
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.FlowSchemeDetail>
2017-10-11 16:19:34 +08:00
{
2018-03-12 23:44:05 +08:00
public FlowSchemeDetailMap()
2017-10-11 16:19:34 +08:00
{
// table
2018-03-12 23:44:05 +08:00
ToTable("FlowSchemeDetail", "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.SchemeId)
.HasColumnName("SchemeId")
2017-10-11 16:19:34 +08:00
.HasMaxLength(50)
.IsRequired();
Property(t => t.SchemeVersion)
.HasColumnName("SchemeVersion")
.HasMaxLength(50)
.IsOptional();
Property(t => t.SchemeContent)
.HasColumnName("SchemeContent")
.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
}
}
}