OpenAuth.Net/OpenAuth.Repository/Mapping/UserMap.cs

73 lines
2.4 KiB
C#
Raw Normal View History

//------------------------------------------------------------------------------
// <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 System;
2017-10-11 16:19:34 +08:00
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
2017-11-29 20:49:14 +08:00
namespace OpenAuth.Repository.Mapping
2015-10-26 21:58:12 +08:00
{
public partial class UserMap
2017-11-29 20:49:14 +08:00
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.User>
2015-10-26 21:58:12 +08:00
{
public UserMap()
{
// table
ToTable("User", "dbo");
2015-10-26 21:58:12 +08:00
// keys
2017-10-11 16:19:34 +08:00
HasKey(t => t.Id);
2015-10-26 21:58:12 +08:00
// Properties
Property(t => t.Id)
.HasColumnName("Id")
2017-10-11 16:19:34 +08:00
.HasMaxLength(50)
.IsRequired();
Property(t => t.Account)
.HasColumnName("Account")
.HasMaxLength(255)
.IsRequired();
Property(t => t.Password)
.HasColumnName("Password")
.HasMaxLength(255)
.IsRequired();
Property(t => t.Name)
.HasColumnName("Name")
.HasMaxLength(255)
.IsRequired();
Property(t => t.Sex)
.HasColumnName("Sex")
.IsRequired();
Property(t => t.Status)
.HasColumnName("Status")
.IsRequired();
Property(t => t.BizCode)
.HasColumnName("BizCode")
.HasMaxLength(255)
.IsRequired();
Property(t => t.CreateTime)
.HasColumnName("CreateTime")
.IsRequired();
Property(t => t.CrateId)
.HasColumnName("CrateId")
2017-10-11 16:19:34 +08:00
.HasMaxLength(50)
.IsOptional();
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
// Relationships
2015-10-26 21:58:12 +08:00
}
}
}