mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-04-03 15:03:25 +08:00
全面修改Id为Guid类型,为2.0版做准备
This commit is contained in:
@@ -1,62 +1,71 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 class ModuleElementMap : EntityTypeConfiguration<ModuleElement>
|
||||
public partial class ModuleElementMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<ModuleElement>
|
||||
{
|
||||
public ModuleElementMap()
|
||||
{
|
||||
// Primary Key
|
||||
this.HasKey(t => t.Id);
|
||||
// table
|
||||
ToTable("ModuleElement", "dbo");
|
||||
|
||||
// keys
|
||||
HasKey(t => t.Id);
|
||||
|
||||
// Properties
|
||||
this.Property(t => t.DomId)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
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();
|
||||
|
||||
this.Property(t => t.Name)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.Type)
|
||||
.IsRequired()
|
||||
.HasMaxLength(50);
|
||||
|
||||
this.Property(t => t.Attr)
|
||||
.IsRequired()
|
||||
.HasMaxLength(500);
|
||||
|
||||
this.Property(t => t.Script)
|
||||
.IsRequired()
|
||||
.HasMaxLength(500);
|
||||
|
||||
this.Property(t => t.Icon)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.Class)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.Remark)
|
||||
.IsRequired()
|
||||
.HasMaxLength(200);
|
||||
|
||||
// Table & Column Mappings
|
||||
this.ToTable("ModuleElement");
|
||||
this.Property(t => t.Id).HasColumnName("Id");
|
||||
this.Property(t => t.DomId).HasColumnName("DomId");
|
||||
this.Property(t => t.Name).HasColumnName("Name");
|
||||
this.Property(t => t.Type).HasColumnName("Type");
|
||||
this.Property(t => t.ModuleId).HasColumnName("ModuleId");
|
||||
this.Property(t => t.Attr).HasColumnName("Attr");
|
||||
this.Property(t => t.Script).HasColumnName("Script");
|
||||
this.Property(t => t.Icon).HasColumnName("Icon");
|
||||
this.Property(t => t.Class).HasColumnName("Class");
|
||||
this.Property(t => t.Remark).HasColumnName("Remark");
|
||||
this.Property(t => t.Sort).HasColumnName("Sort");
|
||||
// Relationships
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user