mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-04-22 21:00:47 +08:00
72 lines
2.3 KiB
C#
72 lines
2.3 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 OpenAuth.Domain;
|
|
|
|
namespace OpenAuth.Repository.Models.Mapping
|
|
{
|
|
public partial class ModuleElementMap
|
|
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<ModuleElement>
|
|
{
|
|
public ModuleElementMap()
|
|
{
|
|
// table
|
|
ToTable("ModuleElement", "dbo");
|
|
|
|
// keys
|
|
HasKey(t => t.Id);
|
|
|
|
// Properties
|
|
Property(t => t.Id)
|
|
.HasColumnName("Id")
|
|
.IsRequired();
|
|
Property(t => t.DomId)
|
|
.HasColumnName("DomId")
|
|
.HasMaxLength(255)
|
|
.IsRequired();
|
|
Property(t => t.Name)
|
|
.HasColumnName("Name")
|
|
.HasMaxLength(255)
|
|
.IsRequired();
|
|
Property(t => t.Type)
|
|
.HasColumnName("Type")
|
|
.HasMaxLength(50)
|
|
.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")
|
|
.IsRequired();
|
|
|
|
// Relationships
|
|
}
|
|
}
|
|
}
|