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