mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-07-15 05:13:25 +08:00
Routine Update
This commit is contained in:
parent
4dac594250
commit
9df8c34126
@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
@ -12,91 +10,78 @@ namespace OpenAuth.Domain
|
||||
/// </summary>
|
||||
public partial class Module
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int Id { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 节点语义ID
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string CascadeId { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 组织名称
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Name { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 主页面URL
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Url { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 热键
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string HotKey { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 父节点流水号
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int ParentId { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 是否叶子节点
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public bool IsLeaf { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 是否自动展开
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public bool IsAutoExpand { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 节点图标文件名称
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string IconName { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 当前状态
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int Status { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 父节点名称
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string ParentName { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 矢量图标
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Vector { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 排序号
|
||||
/// </summary>
|
||||
@ -104,37 +89,22 @@ namespace OpenAuth.Domain
|
||||
public int SortNo { get; set; }
|
||||
|
||||
|
||||
|
||||
public Module()
|
||||
{
|
||||
|
||||
this.Id= 0;
|
||||
|
||||
this.CascadeId= string.Empty;
|
||||
|
||||
this.Name= string.Empty;
|
||||
|
||||
this.Url= string.Empty;
|
||||
|
||||
this.HotKey= string.Empty;
|
||||
|
||||
this.ParentId= 0;
|
||||
|
||||
this.IsLeaf= false;
|
||||
|
||||
this.IsAutoExpand= false;
|
||||
|
||||
this.IconName= string.Empty;
|
||||
|
||||
this.Status= 0;
|
||||
|
||||
this.ParentName= string.Empty;
|
||||
|
||||
this.Vector= string.Empty;
|
||||
|
||||
this.SortNo= 0;
|
||||
|
||||
}
|
||||
this.Id= 0;
|
||||
this.CascadeId= string.Empty;
|
||||
this.Name= string.Empty;
|
||||
this.Url= string.Empty;
|
||||
this.HotKey= string.Empty;
|
||||
this.ParentId= 0;
|
||||
this.IsLeaf= false;
|
||||
this.IsAutoExpand= false;
|
||||
this.IconName= string.Empty;
|
||||
this.Status= 0;
|
||||
this.ParentName= string.Empty;
|
||||
this.Vector= string.Empty;
|
||||
this.SortNo= 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -1,85 +1,63 @@
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
|
||||
namespace OpenAuth.Domain
|
||||
{
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
public partial class PageElement
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int Id { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// DOM ID
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string DomId { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 组织名称
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Name { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 组织类型
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int Type { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 所属功能模块流水号
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
|
||||
namespace OpenAuth.Domain
|
||||
{
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
public partial class ModuleElement
|
||||
{
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// DOM ID
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string DomId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 组织名称
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 组织类型
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 所属功能模块流水号
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int ModuleId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Remark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 所属页面ID
|
||||
/// </summary>
|
||||
public int PageId { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Remark { get; set; }
|
||||
|
||||
|
||||
|
||||
public PageElement()
|
||||
{
|
||||
|
||||
this.Id= 0;
|
||||
|
||||
this.DomId= string.Empty;
|
||||
|
||||
this.Name= string.Empty;
|
||||
|
||||
this.Type= 0;
|
||||
|
||||
this.ModuleId= 0;
|
||||
|
||||
this.Remark= string.Empty;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public ModuleElement()
|
||||
{
|
||||
this.Id= 0;
|
||||
this.DomId= string.Empty;
|
||||
this.Name= string.Empty;
|
||||
this.Type= 0;
|
||||
this.ModuleId= 0;
|
||||
this.Remark= string.Empty;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
@ -10,44 +8,32 @@ namespace OpenAuth.Domain
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
public partial class PageElementGrant
|
||||
public partial class ModuleElementGrant
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int Id { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 页面元素流水号
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int ElementId { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 用户流水号
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int UserId { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 角色流水号
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int RoleId { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 岗位流水号
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int PostId { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 权限类型
|
||||
/// </summary>
|
||||
@ -55,23 +41,14 @@ namespace OpenAuth.Domain
|
||||
public int GrantType { get; set; }
|
||||
|
||||
|
||||
|
||||
public PageElementGrant()
|
||||
public ModuleElementGrant()
|
||||
{
|
||||
|
||||
this.Id= 0;
|
||||
|
||||
this.ElementId= 0;
|
||||
|
||||
this.UserId= 0;
|
||||
|
||||
this.RoleId= 0;
|
||||
|
||||
this.PostId= 0;
|
||||
|
||||
this.GrantType= 0;
|
||||
|
||||
}
|
||||
this.Id= 0;
|
||||
this.ElementId= 0;
|
||||
this.UserId= 0;
|
||||
this.RoleId= 0;
|
||||
this.GrantType= 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
@ -12,42 +10,36 @@ namespace OpenAuth.Domain
|
||||
/// </summary>
|
||||
public partial class ModuleRole
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int Id { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 角色流水号
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int RoleId { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 所属功能模块流水号
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int ModuleId { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 组织类型
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int Type { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 授权时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public System.DateTime OperateTime { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 授权人流水号
|
||||
/// </summary>
|
||||
@ -55,23 +47,15 @@ namespace OpenAuth.Domain
|
||||
public int OperatorId { get; set; }
|
||||
|
||||
|
||||
|
||||
public ModuleRole()
|
||||
{
|
||||
|
||||
this.Id= 0;
|
||||
|
||||
this.RoleId= 0;
|
||||
|
||||
this.ModuleId= 0;
|
||||
|
||||
this.Type= 0;
|
||||
|
||||
this.OperateTime= DateTime.Now;
|
||||
|
||||
this.OperatorId= 0;
|
||||
|
||||
}
|
||||
this.Id= 0;
|
||||
this.RoleId= 0;
|
||||
this.ModuleId= 0;
|
||||
this.Type= 0;
|
||||
this.OperateTime= DateTime.Now;
|
||||
this.OperatorId= 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -46,11 +46,10 @@
|
||||
<Compile Include="Interface\IRepository.cs" />
|
||||
<Compile Include="Interface\IUserRepository.cs" />
|
||||
<Compile Include="Module.cs" />
|
||||
<Compile Include="ModuleElement.cs" />
|
||||
<Compile Include="ModuleElementGrant.cs" />
|
||||
<Compile Include="ModuleRole.cs" />
|
||||
<Compile Include="Org.cs" />
|
||||
<Compile Include="Page.cs" />
|
||||
<Compile Include="PageElement.cs" />
|
||||
<Compile Include="PageElementGrant.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Role.cs" />
|
||||
<Compile Include="User.cs" />
|
||||
|
@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
@ -12,112 +10,96 @@ namespace OpenAuth.Domain
|
||||
/// </summary>
|
||||
public partial class Org
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int Id { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 节点语义ID
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string CascadeId { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 组织名称
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Name { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 热键
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string HotKey { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 父节点流水号
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int ParentId { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 父节点名称
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string ParentName { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 是否叶子节点
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public bool IsLeaf { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 是否自动展开
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public bool IsAutoExpand { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 节点图标文件名称
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string IconName { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 当前状态
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int Status { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 组织类型
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int Type { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 业务对照码
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string BizCode { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 自定义扩展码
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string CustomCode { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public System.DateTime CreateTime { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 创建人ID
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int CreateId { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 排序号
|
||||
/// </summary>
|
||||
@ -125,43 +107,25 @@ namespace OpenAuth.Domain
|
||||
public int SortNo { get; set; }
|
||||
|
||||
|
||||
|
||||
public Org()
|
||||
{
|
||||
|
||||
this.Id= 0;
|
||||
|
||||
this.CascadeId= string.Empty;
|
||||
|
||||
this.Name= string.Empty;
|
||||
|
||||
this.HotKey= string.Empty;
|
||||
|
||||
this.ParentId= 0;
|
||||
|
||||
this.ParentName= string.Empty;
|
||||
|
||||
this.IsLeaf= false;
|
||||
|
||||
this.IsAutoExpand= false;
|
||||
|
||||
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.Id= 0;
|
||||
this.CascadeId= string.Empty;
|
||||
this.Name= string.Empty;
|
||||
this.HotKey= string.Empty;
|
||||
this.ParentId= 0;
|
||||
this.ParentName= string.Empty;
|
||||
this.IsLeaf= false;
|
||||
this.IsAutoExpand= false;
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -1,124 +0,0 @@
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
|
||||
namespace OpenAuth.Domain
|
||||
{
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
public partial class Page
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int Id { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 所属功能模块流水号
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int ModuleId { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 组织名称
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Name { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 主页面URL
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Url { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 组织类型
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int Type { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 使能状态
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public bool Enabled { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 是否缺省子页面
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public bool IsDefault { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 小图标
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Icon { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 大图标
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string IconBig { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 矢量图标
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Vector { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 排序号
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int SortNo { get; set; }
|
||||
|
||||
|
||||
|
||||
public Page()
|
||||
{
|
||||
|
||||
this.Id= 0;
|
||||
|
||||
this.ModuleId= 0;
|
||||
|
||||
this.Name= string.Empty;
|
||||
|
||||
this.Url= string.Empty;
|
||||
|
||||
this.Type= 0;
|
||||
|
||||
this.Enabled= false;
|
||||
|
||||
this.IsDefault= false;
|
||||
|
||||
this.Icon= string.Empty;
|
||||
|
||||
this.IconBig= string.Empty;
|
||||
|
||||
this.Vector= string.Empty;
|
||||
|
||||
this.SortNo= 0;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
@ -12,56 +10,48 @@ namespace OpenAuth.Domain
|
||||
/// </summary>
|
||||
public partial class Role
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int Id { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 组织名称
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Name { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 当前状态
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int Status { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 组织类型
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int Type { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public System.DateTime CreateTime { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 创建人ID
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string CreateId { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 创建人所属部门流水号
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int CreateOrgId { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 创建人所属部门节点语义ID
|
||||
/// </summary>
|
||||
@ -69,27 +59,17 @@ namespace OpenAuth.Domain
|
||||
public string CreateOrgCascadeId { get; set; }
|
||||
|
||||
|
||||
|
||||
public Role()
|
||||
{
|
||||
|
||||
this.Id= 0;
|
||||
|
||||
this.Name= string.Empty;
|
||||
|
||||
this.Status= 0;
|
||||
|
||||
this.Type= 0;
|
||||
|
||||
this.CreateTime= DateTime.Now;
|
||||
|
||||
this.CreateId= string.Empty;
|
||||
|
||||
this.CreateOrgId= 0;
|
||||
|
||||
this.CreateOrgCascadeId= string.Empty;
|
||||
|
||||
}
|
||||
this.Id= 0;
|
||||
this.Name= string.Empty;
|
||||
this.Status= 0;
|
||||
this.Type= 0;
|
||||
this.CreateTime= DateTime.Now;
|
||||
this.CreateId= string.Empty;
|
||||
this.CreateOrgId= 0;
|
||||
this.CreateOrgCascadeId= string.Empty;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
@ -12,70 +10,60 @@ namespace OpenAuth.Domain
|
||||
/// </summary>
|
||||
public partial class User
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int Id { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Account { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Password { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 组织名称
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Name { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int Sex { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 当前状态
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int Status { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 组织类型
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int Type { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 业务对照码
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string BizCode { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public System.DateTime CreateTime { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 创建人ID
|
||||
/// </summary>
|
||||
@ -83,31 +71,19 @@ namespace OpenAuth.Domain
|
||||
public int CreateId { get; set; }
|
||||
|
||||
|
||||
|
||||
public User()
|
||||
{
|
||||
|
||||
this.Id= 0;
|
||||
|
||||
this.Account= string.Empty;
|
||||
|
||||
this.Password= string.Empty;
|
||||
|
||||
this.Name= string.Empty;
|
||||
|
||||
this.Sex= 0;
|
||||
|
||||
this.Status= 0;
|
||||
|
||||
this.Type= 0;
|
||||
|
||||
this.BizCode= string.Empty;
|
||||
|
||||
this.CreateTime= DateTime.Now;
|
||||
|
||||
this.CreateId= 0;
|
||||
|
||||
}
|
||||
this.Id= 0;
|
||||
this.Account= string.Empty;
|
||||
this.Password= string.Empty;
|
||||
this.Name= string.Empty;
|
||||
this.Sex= 0;
|
||||
this.Status= 0;
|
||||
this.Type= 0;
|
||||
this.BizCode= string.Empty;
|
||||
this.CreateTime= DateTime.Now;
|
||||
this.CreateId= 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
@ -12,42 +10,36 @@ namespace OpenAuth.Domain
|
||||
/// </summary>
|
||||
public partial class UserCfg
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int Id { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 用户界面主题
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Theme { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 用户界面皮肤
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Skin { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 导航条按钮风格
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string NavBarStyle { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Tab高亮颜色
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string TabFocusColor { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 导航缺省活动页
|
||||
/// </summary>
|
||||
@ -55,23 +47,15 @@ namespace OpenAuth.Domain
|
||||
public int NavTabIndex { get; set; }
|
||||
|
||||
|
||||
|
||||
public UserCfg()
|
||||
{
|
||||
|
||||
this.Id= 0;
|
||||
|
||||
this.Theme= string.Empty;
|
||||
|
||||
this.Skin= string.Empty;
|
||||
|
||||
this.NavBarStyle= string.Empty;
|
||||
|
||||
this.TabFocusColor= string.Empty;
|
||||
|
||||
this.NavTabIndex= 0;
|
||||
|
||||
}
|
||||
this.Id= 0;
|
||||
this.Theme= string.Empty;
|
||||
this.Skin= string.Empty;
|
||||
this.NavBarStyle= string.Empty;
|
||||
this.TabFocusColor= string.Empty;
|
||||
this.NavTabIndex= 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
@ -12,105 +10,90 @@ namespace OpenAuth.Domain
|
||||
/// </summary>
|
||||
public partial class UserExt
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int Id { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 电子邮件
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Email { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 固定电话
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Phone_ { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 移动电话
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Mobile { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 联系地址
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Address { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 邮编
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Zip { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 生日
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Birthday { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 身份证号
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string IdCard { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// QQ
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string QQ { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 动态扩展字段
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string DynamicField { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 用户头像流文件ID
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int ByteArrayId { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Remark { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 静态扩展字段1
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Field1 { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 静态扩展字段2
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Field2 { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 静态扩展字段3
|
||||
/// </summary>
|
||||
@ -118,41 +101,24 @@ namespace OpenAuth.Domain
|
||||
public string Field3 { get; set; }
|
||||
|
||||
|
||||
|
||||
public UserExt()
|
||||
{
|
||||
|
||||
this.Id= 0;
|
||||
|
||||
this.Email= string.Empty;
|
||||
|
||||
this.Phone_= string.Empty;
|
||||
|
||||
this.Mobile= string.Empty;
|
||||
|
||||
this.Address= string.Empty;
|
||||
|
||||
this.Zip= string.Empty;
|
||||
|
||||
this.Birthday= string.Empty;
|
||||
|
||||
this.IdCard= string.Empty;
|
||||
|
||||
this.QQ= string.Empty;
|
||||
|
||||
this.DynamicField= string.Empty;
|
||||
|
||||
this.ByteArrayId= 0;
|
||||
|
||||
this.Remark= string.Empty;
|
||||
|
||||
this.Field1= string.Empty;
|
||||
|
||||
this.Field2= string.Empty;
|
||||
|
||||
this.Field3= string.Empty;
|
||||
|
||||
}
|
||||
this.Id= 0;
|
||||
this.Email= string.Empty;
|
||||
this.Phone_= string.Empty;
|
||||
this.Mobile= string.Empty;
|
||||
this.Address= string.Empty;
|
||||
this.Zip= string.Empty;
|
||||
this.Birthday= string.Empty;
|
||||
this.IdCard= string.Empty;
|
||||
this.QQ= string.Empty;
|
||||
this.DynamicField= string.Empty;
|
||||
this.ByteArrayId= 0;
|
||||
this.Remark= string.Empty;
|
||||
this.Field1= string.Empty;
|
||||
this.Field2= string.Empty;
|
||||
this.Field3= string.Empty;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
@ -12,42 +10,36 @@ namespace OpenAuth.Domain
|
||||
/// </summary>
|
||||
public partial class UserModule
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int Id { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 用户流水号
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int UserId { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 所属功能模块流水号
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int ModuleId { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 组织类型
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int Type { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 授权时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public System.DateTime OperateTime { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 授权人流水号
|
||||
/// </summary>
|
||||
@ -55,23 +47,15 @@ namespace OpenAuth.Domain
|
||||
public int OperatorId { get; set; }
|
||||
|
||||
|
||||
|
||||
public UserModule()
|
||||
{
|
||||
|
||||
this.Id= 0;
|
||||
|
||||
this.UserId= 0;
|
||||
|
||||
this.ModuleId= 0;
|
||||
|
||||
this.Type= 0;
|
||||
|
||||
this.OperateTime= DateTime.Now;
|
||||
|
||||
this.OperatorId= 0;
|
||||
|
||||
}
|
||||
this.Id= 0;
|
||||
this.UserId= 0;
|
||||
this.ModuleId= 0;
|
||||
this.Type= 0;
|
||||
this.OperateTime= DateTime.Now;
|
||||
this.OperatorId= 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
@ -12,35 +10,30 @@ namespace OpenAuth.Domain
|
||||
/// </summary>
|
||||
public partial class UserOrg
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int Id { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int OrgId { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 用户流水号
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int UserId { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 授权时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public System.DateTime OperateTime { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 授权人流水号
|
||||
/// </summary>
|
||||
@ -48,21 +41,14 @@ namespace OpenAuth.Domain
|
||||
public int OperatorId { get; set; }
|
||||
|
||||
|
||||
|
||||
public UserOrg()
|
||||
{
|
||||
|
||||
this.Id= 0;
|
||||
|
||||
this.OrgId= 0;
|
||||
|
||||
this.UserId= 0;
|
||||
|
||||
this.OperateTime= DateTime.Now;
|
||||
|
||||
this.OperatorId= 0;
|
||||
|
||||
}
|
||||
this.Id= 0;
|
||||
this.OrgId= 0;
|
||||
this.UserId= 0;
|
||||
this.OperateTime= DateTime.Now;
|
||||
this.OperatorId= 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
@ -12,35 +10,30 @@ namespace OpenAuth.Domain
|
||||
/// </summary>
|
||||
public partial class UserRole
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int Id { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 角色流水号
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int RoleId { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 用户流水号
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int UserId { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 授权时间
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public System.DateTime OperateTime { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 授权人流水号
|
||||
/// </summary>
|
||||
@ -48,21 +41,14 @@ namespace OpenAuth.Domain
|
||||
public int OperatorId { get; set; }
|
||||
|
||||
|
||||
|
||||
public UserRole()
|
||||
{
|
||||
|
||||
this.Id= 0;
|
||||
|
||||
this.RoleId= 0;
|
||||
|
||||
this.UserId= 0;
|
||||
|
||||
this.OperateTime= DateTime.Now;
|
||||
|
||||
this.OperatorId= 0;
|
||||
|
||||
}
|
||||
this.Id= 0;
|
||||
this.RoleId= 0;
|
||||
this.UserId= 0;
|
||||
this.OperateTime= DateTime.Now;
|
||||
this.OperatorId= 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -12,13 +12,12 @@
|
||||
// <summary>IOC³õʼ»¯</summary>
|
||||
// ***********************************************************************
|
||||
|
||||
using Autofac;
|
||||
using Autofac.Integration.Mvc;
|
||||
using OpenAuth.App;
|
||||
using OpenAuth.Domain.Interface;
|
||||
using OpenAuth.Repository;
|
||||
using System.Reflection;
|
||||
using System.Web.Mvc;
|
||||
using Autofac;
|
||||
using Autofac.Configuration;
|
||||
using Autofac.Integration.Mvc;
|
||||
using OpenAuth.App;
|
||||
|
||||
namespace OpenAuth.Mvc
|
||||
{
|
||||
@ -28,8 +27,7 @@ namespace OpenAuth.Mvc
|
||||
{
|
||||
var builder = new ContainerBuilder();
|
||||
|
||||
builder.RegisterType<UserRepository>().As<IUserRepository>();
|
||||
builder.RegisterType<OrgRepository>().As<IOrgRepository>();
|
||||
builder.RegisterModule(new ConfigurationSettingsReader("autofac"));
|
||||
builder.RegisterType<LoginApp>();
|
||||
builder.RegisterType<OrgManagerApp>();
|
||||
builder.RegisterType<UserManagerApp>();
|
||||
|
@ -1,21 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Web;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Optimization;
|
||||
using System.Web.Routing;
|
||||
using Autofac;
|
||||
using Autofac.Integration.Mvc;
|
||||
using Infrastructure;
|
||||
using OpenAuth.App;
|
||||
using OpenAuth.Domain.Interface;
|
||||
using OpenAuth.Repository;
|
||||
|
||||
namespace OpenAuth.Mvc
|
||||
{
|
||||
public class MvcApplication : System.Web.HttpApplication
|
||||
public class MvcApplication : HttpApplication
|
||||
{
|
||||
protected void Application_Start()
|
||||
{
|
||||
|
@ -42,6 +42,9 @@
|
||||
<Reference Include="Autofac">
|
||||
<HintPath>..\packages\Autofac.3.5.2\lib\net40\Autofac.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Autofac.Configuration">
|
||||
<HintPath>..\packages\Autofac.Configuration.3.3.0\lib\net40\Autofac.Configuration.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Autofac.Integration.Mvc">
|
||||
<HintPath>..\packages\Autofac.Mvc5.3.3.4\lib\net45\Autofac.Integration.Mvc.dll</HintPath>
|
||||
</Reference>
|
||||
|
@ -5,11 +5,13 @@
|
||||
-->
|
||||
<configuration>
|
||||
<configSections>
|
||||
|
||||
|
||||
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
||||
|
||||
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
|
||||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --></configSections>
|
||||
|
||||
<section name="autofac" type="Autofac.Configuration.SectionHandler, Autofac.Configuration"/>
|
||||
</configSections>
|
||||
|
||||
<connectionStrings>
|
||||
<add name="OpenAuthDBContext" connectionString="Data Source=.;Initial Catalog=OpenAuthDB;Persist Security Info=True;User ID=sa;Password=000000;MultipleActiveResultSets=True" providerName="System.Data.SqlClient" />
|
||||
@ -34,8 +36,14 @@
|
||||
<appender-ref ref="RollingLogFileAppender" />
|
||||
</root>
|
||||
</log4net>
|
||||
|
||||
|
||||
|
||||
<autofac defaultAssembly=" OpenAuth.Repository">
|
||||
<components>
|
||||
<component type=" OpenAuth.Repository.UserRepository" service=" OpenAuth.Domain.Interface.IUserRepository,OpenAuth.Domain" />
|
||||
<component type=" OpenAuth.Repository.OrgRepository" service="OpenAuth.Domain.Interface.IOrgRepository,OpenAuth.Domain" />
|
||||
</components>
|
||||
</autofac>
|
||||
|
||||
<appSettings>
|
||||
<add key="webpages:Version" value="3.0.0.0" />
|
||||
<add key="webpages:Enabled" value="false" />
|
||||
@ -54,10 +62,10 @@
|
||||
</system.webServer>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30AD4FE6B2A6AEED" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30AD4FE6B2A6AEED" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
|
||||
@ -90,4 +98,4 @@
|
||||
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
|
||||
</providers>
|
||||
</entityFramework>
|
||||
</configuration>
|
||||
</configuration>
|
@ -2,6 +2,7 @@
|
||||
<packages>
|
||||
<package id="Antlr" version="3.4.1.9004" targetFramework="net45" />
|
||||
<package id="Autofac" version="3.5.2" targetFramework="net45" />
|
||||
<package id="Autofac.Configuration" version="3.3.0" targetFramework="net45" />
|
||||
<package id="Autofac.Mvc5" version="3.3.4" targetFramework="net45" />
|
||||
<package id="bootstrap" version="3.0.0" targetFramework="net45" />
|
||||
<package id="EntityFramework" version="6.1.3" targetFramework="net45" />
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<connectionStrings>
|
||||
<add name="OpenAuthDBContext" connectionString="Data Source=.;Initial Catalog=OpenAuthDB;Persist Security Info=True;User ID=sa;Password=000000;MultipleActiveResultSets=True"
|
||||
<add name="OpenAuthDBContext" connectionString="Data Source=.;Initial Catalog=OpenAuthDB;Integrated Security=True;MultipleActiveResultSets=True"
|
||||
providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>
|
||||
</configuration>
|
@ -4,21 +4,20 @@ using OpenAuth.Domain;
|
||||
|
||||
namespace OpenAuth.Repository.Models.Mapping
|
||||
{
|
||||
public class PageElementGrantMap : EntityTypeConfiguration<PageElementGrant>
|
||||
public class ModuleElementGrantMap : EntityTypeConfiguration<ModuleElementGrant>
|
||||
{
|
||||
public PageElementGrantMap()
|
||||
public ModuleElementGrantMap()
|
||||
{
|
||||
// Primary Key
|
||||
this.HasKey(t => t.Id);
|
||||
|
||||
// Properties
|
||||
// Table & Column Mappings
|
||||
this.ToTable("PageElementGrant");
|
||||
this.ToTable("ModuleElementGrant");
|
||||
this.Property(t => t.Id).HasColumnName("Id");
|
||||
this.Property(t => t.ElementId).HasColumnName("ElementId");
|
||||
this.Property(t => t.UserId).HasColumnName("UserId");
|
||||
this.Property(t => t.RoleId).HasColumnName("RoleId");
|
||||
this.Property(t => t.PostId).HasColumnName("PostId");
|
||||
this.Property(t => t.GrantType).HasColumnName("GrantType");
|
||||
}
|
||||
}
|
@ -4,9 +4,9 @@ using OpenAuth.Domain;
|
||||
|
||||
namespace OpenAuth.Repository.Models.Mapping
|
||||
{
|
||||
public class PageElementMap : EntityTypeConfiguration<PageElement>
|
||||
public class ModuleElementMap : EntityTypeConfiguration<ModuleElement>
|
||||
{
|
||||
public PageElementMap()
|
||||
public ModuleElementMap()
|
||||
{
|
||||
// Primary Key
|
||||
this.HasKey(t => t.Id);
|
||||
@ -25,13 +25,12 @@ namespace OpenAuth.Repository.Models.Mapping
|
||||
.HasMaxLength(4000);
|
||||
|
||||
// Table & Column Mappings
|
||||
this.ToTable("PageElement");
|
||||
this.ToTable("ModuleElement");
|
||||
this.Property(t => t.Id).HasColumnName("Id");
|
||||
this.Property(t => t.DomId).HasColumnName("DomId");
|
||||
this.Property(t => t.Name).HasColumnName("Name");
|
||||
this.Property(t => t.Type).HasColumnName("Type");
|
||||
this.Property(t => t.ModuleId).HasColumnName("ModuleId");
|
||||
this.Property(t => t.PageId).HasColumnName("PageId");
|
||||
this.Property(t => t.Remark).HasColumnName("Remark");
|
||||
}
|
||||
}
|
@ -1,50 +0,0 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
using OpenAuth.Domain;
|
||||
|
||||
namespace OpenAuth.Repository.Models.Mapping
|
||||
{
|
||||
public class PageMap : EntityTypeConfiguration<Page>
|
||||
{
|
||||
public PageMap()
|
||||
{
|
||||
// Primary Key
|
||||
this.HasKey(t => t.Id);
|
||||
|
||||
// Properties
|
||||
this.Property(t => t.Name)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.Url)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.Icon)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.IconBig)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
this.Property(t => t.Vector)
|
||||
.IsRequired()
|
||||
.HasMaxLength(255);
|
||||
|
||||
// Table & Column Mappings
|
||||
this.ToTable("Page");
|
||||
this.Property(t => t.Id).HasColumnName("Id");
|
||||
this.Property(t => t.ModuleId).HasColumnName("ModuleId");
|
||||
this.Property(t => t.Name).HasColumnName("Name");
|
||||
this.Property(t => t.Url).HasColumnName("Url");
|
||||
this.Property(t => t.Type).HasColumnName("Type");
|
||||
this.Property(t => t.Enabled).HasColumnName("Enabled");
|
||||
this.Property(t => t.IsDefault).HasColumnName("IsDefault");
|
||||
this.Property(t => t.Icon).HasColumnName("Icon");
|
||||
this.Property(t => t.IconBig).HasColumnName("IconBig");
|
||||
this.Property(t => t.Vector).HasColumnName("Vector");
|
||||
this.Property(t => t.SortNo).HasColumnName("SortNo");
|
||||
}
|
||||
}
|
||||
}
|
@ -18,11 +18,10 @@ namespace OpenAuth.Repository.Models
|
||||
}
|
||||
|
||||
public DbSet<Module> Modules { get; set; }
|
||||
public DbSet<ModuleElement> ModuleElements { get; set; }
|
||||
public DbSet<ModuleElementGrant> ModuleElementGrants { get; set; }
|
||||
public DbSet<ModuleRole> ModuleRoles { get; set; }
|
||||
public DbSet<Org> Orgs { get; set; }
|
||||
public DbSet<Page> Pages { get; set; }
|
||||
public DbSet<PageElement> PageElements { get; set; }
|
||||
public DbSet<PageElementGrant> PageElementGrants { get; set; }
|
||||
public DbSet<Role> Roles { get; set; }
|
||||
public DbSet<User> Users { get; set; }
|
||||
public DbSet<UserCfg> UserCfgs { get; set; }
|
||||
@ -34,11 +33,10 @@ namespace OpenAuth.Repository.Models
|
||||
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Configurations.Add(new ModuleMap());
|
||||
modelBuilder.Configurations.Add(new ModuleElementMap());
|
||||
modelBuilder.Configurations.Add(new ModuleElementGrantMap());
|
||||
modelBuilder.Configurations.Add(new ModuleRoleMap());
|
||||
modelBuilder.Configurations.Add(new OrgMap());
|
||||
modelBuilder.Configurations.Add(new PageMap());
|
||||
modelBuilder.Configurations.Add(new PageElementMap());
|
||||
modelBuilder.Configurations.Add(new PageElementGrantMap());
|
||||
modelBuilder.Configurations.Add(new RoleMap());
|
||||
modelBuilder.Configurations.Add(new UserMap());
|
||||
modelBuilder.Configurations.Add(new UserCfgMap());
|
||||
|
@ -54,12 +54,11 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="BaseRepository.cs" />
|
||||
<Compile Include="Models\Mapping\ModuleElementGrantMap.cs" />
|
||||
<Compile Include="Models\Mapping\ModuleElementMap.cs" />
|
||||
<Compile Include="Models\Mapping\ModuleMap.cs" />
|
||||
<Compile Include="Models\Mapping\ModuleRoleMap.cs" />
|
||||
<Compile Include="Models\Mapping\OrgMap.cs" />
|
||||
<Compile Include="Models\Mapping\PageElementGrantMap.cs" />
|
||||
<Compile Include="Models\Mapping\PageElementMap.cs" />
|
||||
<Compile Include="Models\Mapping\PageMap.cs" />
|
||||
<Compile Include="Models\Mapping\RoleMap.cs" />
|
||||
<Compile Include="Models\Mapping\UserCfgMap.cs" />
|
||||
<Compile Include="Models\Mapping\UserExtMap.cs" />
|
||||
@ -83,6 +82,7 @@
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
1394
数据库设计关系图/PDM_OA.pdb
1394
数据库设计关系图/PDM_OA.pdb
File diff suppressed because it is too large
Load Diff
1391
数据库设计关系图/PDM_OA.pdm
1391
数据库设计关系图/PDM_OA.pdm
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user