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>
|
|
|
|
|
//------------------------------------------------------------------------------
|
2017-10-11 16:19:34 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2015-10-26 21:58:12 +08:00
|
|
|
|
|
2017-11-29 20:49:14 +08:00
|
|
|
|
namespace OpenAuth.Repository.Mapping
|
2015-10-26 21:58:12 +08:00
|
|
|
|
{
|
2016-09-02 18:05:17 +08:00
|
|
|
|
public partial class ModuleElementMap
|
2017-11-29 20:49:14 +08:00
|
|
|
|
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.ModuleElement>
|
2015-10-26 21:58:12 +08:00
|
|
|
|
{
|
2015-11-13 23:25:46 +08:00
|
|
|
|
public ModuleElementMap()
|
2015-10-26 21:58:12 +08:00
|
|
|
|
{
|
2016-09-02 18:05:17 +08:00
|
|
|
|
// table
|
|
|
|
|
ToTable("ModuleElement", "dbo");
|
2015-12-14 21:39:39 +08:00
|
|
|
|
|
2016-09-02 18:05:17 +08:00
|
|
|
|
// keys
|
|
|
|
|
HasKey(t => t.Id);
|
2015-12-05 16:07:53 +08:00
|
|
|
|
|
2016-09-02 18:05:17 +08:00
|
|
|
|
// Properties
|
|
|
|
|
Property(t => t.Id)
|
|
|
|
|
.HasColumnName("Id")
|
2017-10-11 16:19:34 +08:00
|
|
|
|
.HasMaxLength(50)
|
2016-09-02 18:05:17 +08:00
|
|
|
|
.IsRequired();
|
|
|
|
|
Property(t => t.DomId)
|
|
|
|
|
.HasColumnName("DomId")
|
|
|
|
|
.HasMaxLength(255)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
Property(t => t.Name)
|
|
|
|
|
.HasColumnName("Name")
|
|
|
|
|
.HasMaxLength(255)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
Property(t => t.Attr)
|
|
|
|
|
.HasColumnName("Attr")
|
|
|
|
|
.HasMaxLength(500)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
Property(t => t.Script)
|
|
|
|
|
.HasColumnName("Script")
|
|
|
|
|
.HasMaxLength(500)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
Property(t => t.Icon)
|
|
|
|
|
.HasColumnName("Icon")
|
|
|
|
|
.HasMaxLength(255)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
Property(t => t.Class)
|
|
|
|
|
.HasColumnName("Class")
|
|
|
|
|
.HasMaxLength(255)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
Property(t => t.Remark)
|
|
|
|
|
.HasColumnName("Remark")
|
|
|
|
|
.HasMaxLength(200)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
Property(t => t.Sort)
|
|
|
|
|
.HasColumnName("Sort")
|
|
|
|
|
.IsRequired();
|
|
|
|
|
Property(t => t.ModuleId)
|
|
|
|
|
.HasColumnName("ModuleId")
|
2017-10-11 16:19:34 +08:00
|
|
|
|
.HasMaxLength(50)
|
2016-09-02 18:05:17 +08:00
|
|
|
|
.IsRequired();
|
2017-11-29 20:49:14 +08:00
|
|
|
|
Property(t => t.TypeName)
|
|
|
|
|
.HasColumnName("TypeName")
|
|
|
|
|
.HasMaxLength(20)
|
|
|
|
|
.IsOptional();
|
|
|
|
|
Property(t => t.TypeId)
|
|
|
|
|
.HasColumnName("TypeId")
|
|
|
|
|
.HasMaxLength(50)
|
|
|
|
|
.IsOptional();
|
2015-10-26 21:58:12 +08:00
|
|
|
|
|
2016-09-02 18:05:17 +08:00
|
|
|
|
// Relationships
|
2015-10-26 21:58:12 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|