mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-02-18 06:06:24 +08:00
调整结构
This commit is contained in:
@@ -6,15 +6,14 @@
|
||||
// file will be lost if the code is regenerated.
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using OpenAuth.Domain;
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace OpenAuth.Repository.Models.Mapping
|
||||
{
|
||||
public partial class UserMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<User>
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.User>
|
||||
{
|
||||
public UserMap()
|
||||
{
|
||||
@@ -22,11 +21,12 @@ namespace OpenAuth.Repository.Models.Mapping
|
||||
ToTable("User", "dbo");
|
||||
|
||||
// keys
|
||||
HasKey<Guid>(t => t.Id);
|
||||
HasKey(t => t.Id);
|
||||
|
||||
// Properties
|
||||
Property(t => t.Id)
|
||||
.HasColumnName("Id")
|
||||
.HasMaxLength(50)
|
||||
.IsRequired();
|
||||
Property(t => t.Account)
|
||||
.HasColumnName("Account")
|
||||
@@ -58,6 +58,7 @@ namespace OpenAuth.Repository.Models.Mapping
|
||||
.IsRequired();
|
||||
Property(t => t.CrateId)
|
||||
.HasColumnName("CrateId")
|
||||
.HasMaxLength(50)
|
||||
.IsOptional();
|
||||
|
||||
// Relationships
|
||||
|
||||
Reference in New Issue
Block a user