mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 10:37:55 +08:00
每一次都是大放血
This commit is contained in:
@@ -10,10 +10,10 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace OpenAuth.Repository.Models.Mapping
|
||||
namespace OpenAuth.Repository.Mapping
|
||||
{
|
||||
public partial class RoleMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.Role>
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.Role>
|
||||
{
|
||||
public RoleMap()
|
||||
{
|
||||
@@ -35,16 +35,21 @@ namespace OpenAuth.Repository.Models.Mapping
|
||||
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(50)
|
||||
.IsRequired();
|
||||
.IsOptional();
|
||||
Property(t => t.TypeName)
|
||||
.HasColumnName("TypeName")
|
||||
.HasMaxLength(20)
|
||||
.IsOptional();
|
||||
Property(t => t.TypeId)
|
||||
.HasColumnName("TypeId")
|
||||
.HasMaxLength(50)
|
||||
.IsOptional();
|
||||
|
||||
// Relationships
|
||||
}
|
||||
|
Reference in New Issue
Block a user