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-10-26 21:58:12 +08:00
|
|
|
|
using OpenAuth.Domain;
|
|
|
|
|
|
|
|
|
|
namespace OpenAuth.Repository.Models.Mapping
|
|
|
|
|
{
|
2016-09-02 18:05:17 +08:00
|
|
|
|
public partial class RoleMap
|
|
|
|
|
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<Role>
|
2015-10-26 21:58:12 +08:00
|
|
|
|
{
|
|
|
|
|
public RoleMap()
|
|
|
|
|
{
|
2016-09-02 18:05:17 +08:00
|
|
|
|
// table
|
|
|
|
|
ToTable("Role", "dbo");
|
2015-10-26 21:58:12 +08:00
|
|
|
|
|
2016-09-02 18:05:17 +08:00
|
|
|
|
// keys
|
|
|
|
|
HasKey(t => t.Id);
|
2015-10-26 21:58:12 +08:00
|
|
|
|
|
2016-09-02 18:05:17 +08:00
|
|
|
|
// Properties
|
|
|
|
|
Property(t => t.Id)
|
|
|
|
|
.HasColumnName("Id")
|
|
|
|
|
.IsRequired();
|
|
|
|
|
Property(t => t.Name)
|
|
|
|
|
.HasColumnName("Name")
|
|
|
|
|
.HasMaxLength(255)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
Property(t => t.Status)
|
|
|
|
|
.HasColumnName("Status")
|
|
|
|
|
.IsRequired();
|
|
|
|
|
Property(t => t.Type)
|
|
|
|
|
.HasColumnName("Type")
|
|
|
|
|
.IsRequired();
|
|
|
|
|
Property(t => t.CreateTime)
|
|
|
|
|
.HasColumnName("CreateTime")
|
|
|
|
|
.IsRequired();
|
|
|
|
|
Property(t => t.CreateId)
|
|
|
|
|
.HasColumnName("CreateId")
|
|
|
|
|
.HasMaxLength(64)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
// Relationships
|
2015-10-26 21:58:12 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|