2016-09-02 18:05:17 +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>
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
2015-12-14 21:39:39 +08:00
|
|
|
|
using OpenAuth.Domain;
|
|
|
|
|
|
|
|
|
|
namespace OpenAuth.Repository.Models.Mapping
|
|
|
|
|
{
|
2016-09-02 18:05:17 +08:00
|
|
|
|
public partial class DicDetailMap
|
|
|
|
|
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<DicDetail>
|
2015-12-14 21:39:39 +08:00
|
|
|
|
{
|
|
|
|
|
public DicDetailMap()
|
|
|
|
|
{
|
2016-09-02 18:05:17 +08:00
|
|
|
|
// table
|
|
|
|
|
ToTable("DicDetail", "dbo");
|
2015-12-14 21:39:39 +08:00
|
|
|
|
|
2016-09-02 18:05:17 +08:00
|
|
|
|
// keys
|
|
|
|
|
HasKey(t => t.Id);
|
2015-12-14 21:39:39 +08:00
|
|
|
|
|
2016-09-02 18:05:17 +08:00
|
|
|
|
// Properties
|
|
|
|
|
Property(t => t.Id)
|
|
|
|
|
.HasColumnName("Id")
|
|
|
|
|
.IsRequired();
|
|
|
|
|
Property(t => t.Value)
|
|
|
|
|
.HasColumnName("Value")
|
|
|
|
|
.HasMaxLength(100)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
Property(t => t.Text)
|
|
|
|
|
.HasColumnName("Text")
|
|
|
|
|
.HasMaxLength(100)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
Property(t => t.SortNo)
|
|
|
|
|
.HasColumnName("SortNo")
|
|
|
|
|
.IsRequired();
|
|
|
|
|
Property(t => t.Status)
|
|
|
|
|
.HasColumnName("Status")
|
|
|
|
|
.IsRequired();
|
|
|
|
|
Property(t => t.Description)
|
|
|
|
|
.HasColumnName("Description")
|
|
|
|
|
.HasMaxLength(100)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
Property(t => t.DicId)
|
|
|
|
|
.HasColumnName("DicId")
|
|
|
|
|
.IsRequired();
|
2015-12-14 21:39:39 +08:00
|
|
|
|
|
2016-09-02 18:05:17 +08:00
|
|
|
|
// Relationships
|
2015-12-14 21:39:39 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|