mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-07 18:04:45 +08:00
每一次都是大放血
This commit is contained in:
@@ -5,10 +5,8 @@ using System.Data.Entity.Validation;
|
||||
using System.Linq;
|
||||
using System.Linq.Expressions;
|
||||
using EntityFramework.Extensions;
|
||||
using OpenAuth.Domain.Interface;
|
||||
using Infrastructure;
|
||||
using OpenAuth.Domain;
|
||||
using OpenAuth.Repository.Models;
|
||||
using OpenAuth.Repository.Interface;
|
||||
|
||||
namespace OpenAuth.Repository
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OpenAuth.Domain
|
||||
namespace OpenAuth.Repository.Domain
|
||||
{
|
||||
/// <summary>
|
||||
/// 应用
|
||||
|
||||
@@ -11,52 +11,46 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OpenAuth.Domain
|
||||
namespace OpenAuth.Repository.Domain
|
||||
{
|
||||
/// <summary>
|
||||
/// 分类表
|
||||
/// 分类表,表示一个全集,比如:男、女、未知。关联的分类类型表示按什么进行的分类,如:按照性别对人类对象集进行分类
|
||||
/// </summary>
|
||||
public partial class Category : Entity
|
||||
{
|
||||
public Category()
|
||||
{
|
||||
this.CascadeId= string.Empty;
|
||||
this.Name= string.Empty;
|
||||
this.Code= string.Empty;
|
||||
this.Status= 0;
|
||||
this.SortNo= 0;
|
||||
this.Icon= string.Empty;
|
||||
this.Description= string.Empty;
|
||||
this.TypeId= string.Empty;
|
||||
this.ParentId= string.Empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 节点语义ID
|
||||
/// </summary>
|
||||
public string CascadeId { get; set; }
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
/// <summary>
|
||||
/// 编号
|
||||
/// 是否可用
|
||||
/// </summary>
|
||||
public string Code { get; set; }
|
||||
/// <summary>
|
||||
/// 当前状态
|
||||
/// </summary>
|
||||
public int Status { get; set; }
|
||||
public bool Disabled { get; set; }
|
||||
/// <summary>
|
||||
/// 排序号
|
||||
/// </summary>
|
||||
public int SortNo { get; set; }
|
||||
/// <summary>
|
||||
/// 分类所属科目
|
||||
/// 分类图标
|
||||
/// </summary>
|
||||
public string Icon { get; set; }
|
||||
/// <summary>
|
||||
/// 分类描述
|
||||
/// </summary>
|
||||
public string Description { get; set; }
|
||||
/// <summary>
|
||||
/// 分类类型ID
|
||||
/// </summary>
|
||||
public string TypeId { get; set; }
|
||||
/// <summary>
|
||||
/// 父节点流水号
|
||||
/// </summary>
|
||||
public string ParentId { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OpenAuth.Domain
|
||||
namespace OpenAuth.Repository.Domain
|
||||
{
|
||||
/// <summary>
|
||||
/// 分类类型
|
||||
@@ -21,9 +21,7 @@ namespace OpenAuth.Domain
|
||||
public CategoryType()
|
||||
{
|
||||
this.Name= string.Empty;
|
||||
this.Code= string.Empty;
|
||||
this.CreateTime= DateTime.Now;
|
||||
this.CreateUser= string.Empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -31,17 +29,9 @@ namespace OpenAuth.Domain
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
/// <summary>
|
||||
/// 编码
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public string Code { get; set; }
|
||||
/// <summary>
|
||||
/// 创建日期
|
||||
/// </summary>
|
||||
public System.DateTime? CreateTime { get; set; }
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
/// </summary>
|
||||
public string CreateUser { get; set; }
|
||||
public System.DateTime CreateTime { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace OpenAuth.Domain
|
||||
namespace OpenAuth.Repository.Domain
|
||||
{
|
||||
public abstract class Entity
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OpenAuth.Domain
|
||||
namespace OpenAuth.Repository.Domain
|
||||
{
|
||||
/// <summary>
|
||||
/// 功能模块表
|
||||
|
||||
@@ -11,7 +11,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OpenAuth.Domain
|
||||
namespace OpenAuth.Repository.Domain
|
||||
{
|
||||
/// <summary>
|
||||
/// 模块元素表(需要权限控制的按钮)
|
||||
@@ -22,7 +22,6 @@ namespace OpenAuth.Domain
|
||||
{
|
||||
this.DomId= string.Empty;
|
||||
this.Name= string.Empty;
|
||||
this.Type= string.Empty;
|
||||
this.Attr= string.Empty;
|
||||
this.Script= string.Empty;
|
||||
this.Icon= string.Empty;
|
||||
@@ -30,6 +29,8 @@ namespace OpenAuth.Domain
|
||||
this.Remark= string.Empty;
|
||||
this.Sort= 0;
|
||||
this.ModuleId= string.Empty;
|
||||
this.TypeName= string.Empty;
|
||||
this.TypeId= string.Empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -40,10 +41,6 @@ namespace OpenAuth.Domain
|
||||
/// 名称
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
/// <summary>
|
||||
/// 类型
|
||||
/// </summary>
|
||||
public string Type { get; set; }
|
||||
/// <summary>
|
||||
/// 元素附加属性
|
||||
/// </summary>
|
||||
@@ -72,6 +69,14 @@ namespace OpenAuth.Domain
|
||||
/// 功能模块Id
|
||||
/// </summary>
|
||||
public string ModuleId { get; set; }
|
||||
/// <summary>
|
||||
/// 分类名称
|
||||
/// </summary>
|
||||
public string TypeName { get; set; }
|
||||
/// <summary>
|
||||
/// 分类ID
|
||||
/// </summary>
|
||||
public string TypeId { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OpenAuth.Domain
|
||||
namespace OpenAuth.Repository.Domain
|
||||
{
|
||||
/// <summary>
|
||||
/// 组织表
|
||||
@@ -26,13 +26,14 @@ namespace OpenAuth.Domain
|
||||
this.ParentName= string.Empty;
|
||||
this.IconName= string.Empty;
|
||||
this.Status= 0;
|
||||
this.Type= 0;
|
||||
this.BizCode= string.Empty;
|
||||
this.CustomCode= string.Empty;
|
||||
this.CreateTime= DateTime.Now;
|
||||
this.CreateId= 0;
|
||||
this.SortNo= 0;
|
||||
this.ParentId= string.Empty;
|
||||
this.TypeName= string.Empty;
|
||||
this.TypeId= string.Empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -67,10 +68,6 @@ namespace OpenAuth.Domain
|
||||
/// 当前状态
|
||||
/// </summary>
|
||||
public int Status { get; set; }
|
||||
/// <summary>
|
||||
/// 组织类型
|
||||
/// </summary>
|
||||
public int Type { get; set; }
|
||||
/// <summary>
|
||||
/// 业务对照码
|
||||
/// </summary>
|
||||
@@ -95,6 +92,14 @@ namespace OpenAuth.Domain
|
||||
/// 父节点流水号
|
||||
/// </summary>
|
||||
public string ParentId { get; set; }
|
||||
/// <summary>
|
||||
/// 分类名称
|
||||
/// </summary>
|
||||
public string TypeName { get; set; }
|
||||
/// <summary>
|
||||
/// 分类ID
|
||||
/// </summary>
|
||||
public string TypeId { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OpenAuth.Domain
|
||||
namespace OpenAuth.Repository.Domain
|
||||
{
|
||||
/// <summary>
|
||||
/// 多对多关系集中映射
|
||||
|
||||
@@ -11,7 +11,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OpenAuth.Domain
|
||||
namespace OpenAuth.Repository.Domain
|
||||
{
|
||||
/// <summary>
|
||||
/// 资源表
|
||||
@@ -27,8 +27,9 @@ namespace OpenAuth.Domain
|
||||
this.SortNo= 0;
|
||||
this.Description= string.Empty;
|
||||
this.ParentId= string.Empty;
|
||||
this.CategoryId= string.Empty;
|
||||
this.AppId= string.Empty;
|
||||
this.TypeName= string.Empty;
|
||||
this.TypeId= string.Empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -59,14 +60,18 @@ namespace OpenAuth.Domain
|
||||
/// 父节点流水号
|
||||
/// </summary>
|
||||
public string ParentId { get; set; }
|
||||
/// <summary>
|
||||
/// 资源分类
|
||||
/// </summary>
|
||||
public string CategoryId { get; set; }
|
||||
/// <summary>
|
||||
/// 资源所属应用
|
||||
/// </summary>
|
||||
public string AppId { get; set; }
|
||||
/// <summary>
|
||||
/// 分类名称
|
||||
/// </summary>
|
||||
public string TypeName { get; set; }
|
||||
/// <summary>
|
||||
/// 分类ID
|
||||
/// </summary>
|
||||
public string TypeId { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OpenAuth.Domain
|
||||
namespace OpenAuth.Repository.Domain
|
||||
{
|
||||
/// <summary>
|
||||
/// 角色表
|
||||
@@ -22,9 +22,10 @@ namespace OpenAuth.Domain
|
||||
{
|
||||
this.Name= string.Empty;
|
||||
this.Status= 0;
|
||||
this.Type= 0;
|
||||
this.CreateTime= DateTime.Now;
|
||||
this.CreateId= string.Empty;
|
||||
this.TypeName= string.Empty;
|
||||
this.TypeId= string.Empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -35,10 +36,6 @@ namespace OpenAuth.Domain
|
||||
/// 当前状态
|
||||
/// </summary>
|
||||
public int Status { get; set; }
|
||||
/// <summary>
|
||||
/// 角色类型
|
||||
/// </summary>
|
||||
public int Type { get; set; }
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
@@ -47,6 +44,14 @@ namespace OpenAuth.Domain
|
||||
/// 创建人ID
|
||||
/// </summary>
|
||||
public string CreateId { get; set; }
|
||||
/// <summary>
|
||||
/// 分类名称
|
||||
/// </summary>
|
||||
public string TypeName { get; set; }
|
||||
/// <summary>
|
||||
/// 分类ID
|
||||
/// </summary>
|
||||
public string TypeId { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OpenAuth.Domain
|
||||
namespace OpenAuth.Repository.Domain
|
||||
{
|
||||
/// <summary>
|
||||
/// 出入库信息表
|
||||
|
||||
@@ -11,7 +11,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OpenAuth.Domain
|
||||
namespace OpenAuth.Repository.Domain
|
||||
{
|
||||
/// <summary>
|
||||
/// 用户基本信息表
|
||||
@@ -25,10 +25,11 @@ namespace OpenAuth.Domain
|
||||
this.Name= string.Empty;
|
||||
this.Sex= 0;
|
||||
this.Status= 0;
|
||||
this.Type= 0;
|
||||
this.BizCode= string.Empty;
|
||||
this.CreateTime= DateTime.Now;
|
||||
this.CrateId= string.Empty;
|
||||
this.TypeName= string.Empty;
|
||||
this.TypeId= string.Empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -51,10 +52,6 @@ namespace OpenAuth.Domain
|
||||
/// 用户状态
|
||||
/// </summary>
|
||||
public int Status { get; set; }
|
||||
/// <summary>
|
||||
/// 用户类型
|
||||
/// </summary>
|
||||
public int Type { get; set; }
|
||||
/// <summary>
|
||||
/// 业务对照码
|
||||
/// </summary>
|
||||
@@ -67,6 +64,14 @@ namespace OpenAuth.Domain
|
||||
/// 创建人
|
||||
/// </summary>
|
||||
public string CrateId { get; set; }
|
||||
/// <summary>
|
||||
/// 分类名称
|
||||
/// </summary>
|
||||
public string TypeName { get; set; }
|
||||
/// <summary>
|
||||
/// 分类ID
|
||||
/// </summary>
|
||||
public string TypeId { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace OpenAuth.Domain
|
||||
namespace OpenAuth.Repository.Domain
|
||||
{
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
|
||||
@@ -11,7 +11,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OpenAuth.Domain
|
||||
namespace OpenAuth.Repository.Domain
|
||||
{
|
||||
/// <summary>
|
||||
/// 表单模板表
|
||||
|
||||
@@ -11,7 +11,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OpenAuth.Domain
|
||||
namespace OpenAuth.Repository.Domain
|
||||
{
|
||||
/// <summary>
|
||||
/// 工作流流程实例表
|
||||
@@ -103,6 +103,7 @@ namespace OpenAuth.Domain
|
||||
/// </summary>
|
||||
public string MakerList { get; set; }
|
||||
|
||||
|
||||
#region 扩展操作
|
||||
/// <summary>
|
||||
/// 新增调用
|
||||
|
||||
@@ -11,7 +11,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OpenAuth.Domain
|
||||
namespace OpenAuth.Repository.Domain
|
||||
{
|
||||
/// <summary>
|
||||
/// 工作流实例操作记录
|
||||
|
||||
@@ -11,7 +11,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OpenAuth.Domain
|
||||
namespace OpenAuth.Repository.Domain
|
||||
{
|
||||
/// <summary>
|
||||
/// 工作流实例模板对应表
|
||||
@@ -42,6 +42,7 @@ namespace OpenAuth.Domain
|
||||
/// </summary>
|
||||
public int? ProcessType { get; set; }
|
||||
|
||||
|
||||
#region 扩展操作
|
||||
/// <summary>
|
||||
/// 新增调用
|
||||
|
||||
@@ -11,7 +11,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OpenAuth.Domain
|
||||
namespace OpenAuth.Repository.Domain
|
||||
{
|
||||
/// <summary>
|
||||
/// 工作流实例流转历史记录
|
||||
|
||||
@@ -11,7 +11,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OpenAuth.Domain
|
||||
namespace OpenAuth.Repository.Domain
|
||||
{
|
||||
/// <summary>
|
||||
/// 工作流模板内容表
|
||||
|
||||
@@ -11,7 +11,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OpenAuth.Domain
|
||||
namespace OpenAuth.Repository.Domain
|
||||
{
|
||||
/// <summary>
|
||||
/// 工作流模板信息表
|
||||
|
||||
@@ -16,7 +16,7 @@ using System;
|
||||
using System.Linq;
|
||||
using System.Linq.Expressions;
|
||||
|
||||
namespace OpenAuth.Domain.Interface
|
||||
namespace OpenAuth.Repository.Interface
|
||||
{
|
||||
public interface IRepository<T> where T : class
|
||||
{
|
||||
|
||||
@@ -12,8 +12,9 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Linq.Expressions;
|
||||
using OpenAuth.Repository.Domain;
|
||||
|
||||
namespace OpenAuth.Domain.Interface
|
||||
namespace OpenAuth.Repository.Interface
|
||||
{
|
||||
/// <summary>
|
||||
/// 工作单元接口
|
||||
|
||||
@@ -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 ApplicationMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.Application>
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.Application>
|
||||
{
|
||||
public ApplicationMap()
|
||||
{
|
||||
|
||||
@@ -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 CategoryMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.Category>
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.Category>
|
||||
{
|
||||
public CategoryMap()
|
||||
{
|
||||
@@ -28,32 +28,28 @@ namespace OpenAuth.Repository.Models.Mapping
|
||||
.HasColumnName("Id")
|
||||
.HasMaxLength(50)
|
||||
.IsRequired();
|
||||
Property(t => t.CascadeId)
|
||||
.HasColumnName("CascadeId")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.Name)
|
||||
.HasColumnName("Name")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.Code)
|
||||
.HasColumnName("Code")
|
||||
.HasMaxLength(255)
|
||||
.IsOptional();
|
||||
Property(t => t.Status)
|
||||
.HasColumnName("Status")
|
||||
Property(t => t.Disabled)
|
||||
.HasColumnName("Disabled")
|
||||
.IsRequired();
|
||||
Property(t => t.SortNo)
|
||||
.HasColumnName("SortNo")
|
||||
.IsRequired();
|
||||
Property(t => t.Icon)
|
||||
.HasColumnName("Icon")
|
||||
.HasMaxLength(255)
|
||||
.IsOptional();
|
||||
Property(t => t.Description)
|
||||
.HasColumnName("Description")
|
||||
.HasMaxLength(500)
|
||||
.IsOptional();
|
||||
Property(t => t.TypeId)
|
||||
.HasColumnName("TypeId")
|
||||
.HasMaxLength(50)
|
||||
.IsOptional();
|
||||
Property(t => t.ParentId)
|
||||
.HasColumnName("ParentId")
|
||||
.HasMaxLength(50)
|
||||
.IsOptional();
|
||||
|
||||
// Relationships
|
||||
}
|
||||
|
||||
@@ -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 CategoryTypeMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.CategoryType>
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.CategoryType>
|
||||
{
|
||||
public CategoryTypeMap()
|
||||
{
|
||||
@@ -32,17 +32,9 @@ namespace OpenAuth.Repository.Models.Mapping
|
||||
.HasColumnName("Name")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.Code)
|
||||
.HasColumnName("Code")
|
||||
.HasMaxLength(255)
|
||||
.IsOptional();
|
||||
Property(t => t.CreateTime)
|
||||
.HasColumnName("CreateTime")
|
||||
.IsOptional();
|
||||
Property(t => t.CreateUser)
|
||||
.HasColumnName("CreateUser")
|
||||
.HasMaxLength(50)
|
||||
.IsOptional();
|
||||
.IsRequired();
|
||||
|
||||
// Relationships
|
||||
}
|
||||
|
||||
@@ -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 ModuleElementMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.ModuleElement>
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.ModuleElement>
|
||||
{
|
||||
public ModuleElementMap()
|
||||
{
|
||||
@@ -36,10 +36,6 @@ namespace OpenAuth.Repository.Models.Mapping
|
||||
.HasColumnName("Name")
|
||||
.HasMaxLength(255)
|
||||
.IsRequired();
|
||||
Property(t => t.Type)
|
||||
.HasColumnName("Type")
|
||||
.HasMaxLength(50)
|
||||
.IsRequired();
|
||||
Property(t => t.Attr)
|
||||
.HasColumnName("Attr")
|
||||
.HasMaxLength(500)
|
||||
@@ -67,6 +63,14 @@ namespace OpenAuth.Repository.Models.Mapping
|
||||
.HasColumnName("ModuleId")
|
||||
.HasMaxLength(50)
|
||||
.IsRequired();
|
||||
Property(t => t.TypeName)
|
||||
.HasColumnName("TypeName")
|
||||
.HasMaxLength(20)
|
||||
.IsOptional();
|
||||
Property(t => t.TypeId)
|
||||
.HasColumnName("TypeId")
|
||||
.HasMaxLength(50)
|
||||
.IsOptional();
|
||||
|
||||
// Relationships
|
||||
}
|
||||
|
||||
@@ -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 ModuleMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.Module>
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.Module>
|
||||
{
|
||||
public ModuleMap()
|
||||
{
|
||||
|
||||
@@ -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 OrgMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.Org>
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.Org>
|
||||
{
|
||||
public OrgMap()
|
||||
{
|
||||
@@ -57,9 +57,6 @@ namespace OpenAuth.Repository.Models.Mapping
|
||||
Property(t => t.Status)
|
||||
.HasColumnName("Status")
|
||||
.IsRequired();
|
||||
Property(t => t.Type)
|
||||
.HasColumnName("Type")
|
||||
.IsRequired();
|
||||
Property(t => t.BizCode)
|
||||
.HasColumnName("BizCode")
|
||||
.HasMaxLength(255)
|
||||
@@ -81,6 +78,14 @@ namespace OpenAuth.Repository.Models.Mapping
|
||||
.HasColumnName("ParentId")
|
||||
.HasMaxLength(50)
|
||||
.IsOptional();
|
||||
Property(t => t.TypeName)
|
||||
.HasColumnName("TypeName")
|
||||
.HasMaxLength(20)
|
||||
.IsOptional();
|
||||
Property(t => t.TypeId)
|
||||
.HasColumnName("TypeId")
|
||||
.HasMaxLength(50)
|
||||
.IsOptional();
|
||||
|
||||
// Relationships
|
||||
}
|
||||
|
||||
@@ -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 RelevanceMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.Relevance>
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.Relevance>
|
||||
{
|
||||
public RelevanceMap()
|
||||
{
|
||||
|
||||
@@ -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 ResourceMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.Resource>
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.Resource>
|
||||
{
|
||||
public ResourceMap()
|
||||
{
|
||||
@@ -54,14 +54,18 @@ namespace OpenAuth.Repository.Models.Mapping
|
||||
.HasColumnName("ParentId")
|
||||
.HasMaxLength(50)
|
||||
.IsOptional();
|
||||
Property(t => t.CategoryId)
|
||||
.HasColumnName("CategoryId")
|
||||
.HasMaxLength(50)
|
||||
.IsOptional();
|
||||
Property(t => t.AppId)
|
||||
.HasColumnName("AppId")
|
||||
.HasMaxLength(50)
|
||||
.IsOptional();
|
||||
Property(t => t.TypeName)
|
||||
.HasColumnName("TypeName")
|
||||
.HasMaxLength(20)
|
||||
.IsOptional();
|
||||
Property(t => t.TypeId)
|
||||
.HasColumnName("TypeId")
|
||||
.HasMaxLength(50)
|
||||
.IsOptional();
|
||||
|
||||
// Relationships
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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 StockMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.Stock>
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.Stock>
|
||||
{
|
||||
public StockMap()
|
||||
{
|
||||
|
||||
@@ -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 UserMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.User>
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.User>
|
||||
{
|
||||
public UserMap()
|
||||
{
|
||||
@@ -46,9 +46,6 @@ namespace OpenAuth.Repository.Models.Mapping
|
||||
Property(t => t.Status)
|
||||
.HasColumnName("Status")
|
||||
.IsRequired();
|
||||
Property(t => t.Type)
|
||||
.HasColumnName("Type")
|
||||
.IsRequired();
|
||||
Property(t => t.BizCode)
|
||||
.HasColumnName("BizCode")
|
||||
.HasMaxLength(255)
|
||||
@@ -60,6 +57,14 @@ namespace OpenAuth.Repository.Models.Mapping
|
||||
.HasColumnName("CrateId")
|
||||
.HasMaxLength(50)
|
||||
.IsOptional();
|
||||
Property(t => t.TypeName)
|
||||
.HasColumnName("TypeName")
|
||||
.HasMaxLength(20)
|
||||
.IsOptional();
|
||||
Property(t => t.TypeId)
|
||||
.HasColumnName("TypeId")
|
||||
.HasMaxLength(50)
|
||||
.IsOptional();
|
||||
|
||||
// Relationships
|
||||
}
|
||||
|
||||
@@ -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 WFFrmMainMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.WFFrmMain>
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.WFFrmMain>
|
||||
{
|
||||
public WFFrmMainMap()
|
||||
{
|
||||
|
||||
@@ -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 WFProcessInstanceMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.WFProcessInstance>
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.WFProcessInstance>
|
||||
{
|
||||
public WFProcessInstanceMap()
|
||||
{
|
||||
|
||||
@@ -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 WFProcessOperationHistoryMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.WFProcessOperationHistory>
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.WFProcessOperationHistory>
|
||||
{
|
||||
public WFProcessOperationHistoryMap()
|
||||
{
|
||||
|
||||
@@ -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 WFProcessSchemeMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.WFProcessScheme>
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.WFProcessScheme>
|
||||
{
|
||||
public WFProcessSchemeMap()
|
||||
{
|
||||
|
||||
@@ -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 WFProcessTransitionHistoryMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.WFProcessTransitionHistory>
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.WFProcessTransitionHistory>
|
||||
{
|
||||
public WFProcessTransitionHistoryMap()
|
||||
{
|
||||
|
||||
@@ -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 WFSchemeContentMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.WFSchemeContent>
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.WFSchemeContent>
|
||||
{
|
||||
public WFSchemeContentMap()
|
||||
{
|
||||
|
||||
@@ -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 WFSchemeInfoMap
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Domain.WFSchemeInfo>
|
||||
: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<OpenAuth.Repository.Domain.WFSchemeInfo>
|
||||
{
|
||||
public WFSchemeInfoMap()
|
||||
{
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System.Data.Entity;
|
||||
using OpenAuth.Domain;
|
||||
using OpenAuth.Repository.Models.Mapping;
|
||||
using OpenAuth.Repository.Domain;
|
||||
using OpenAuth.Repository.Mapping;
|
||||
|
||||
namespace OpenAuth.Repository
|
||||
{
|
||||
|
||||
@@ -5,10 +5,8 @@ using System.Data.Entity.Validation;
|
||||
using System.Linq;
|
||||
using System.Linq.Expressions;
|
||||
using EntityFramework.Extensions;
|
||||
using OpenAuth.Domain.Interface;
|
||||
using Infrastructure;
|
||||
using OpenAuth.Domain;
|
||||
using OpenAuth.Repository.Models;
|
||||
using OpenAuth.Repository.Interface;
|
||||
|
||||
namespace OpenAuth.Repository
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user