This commit is contained in:
yubaolee
2015-04-15 23:57:36 +08:00
commit 7c42a3fc9f
119 changed files with 18893 additions and 0 deletions

24
OpenAuth.Domain/Button.cs Normal file
View File

@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
namespace OpenAuth.Domain
{
public partial class Button
{
public Button()
{
this.RoleMenuButtons = new List<RoleMenuButton>();
}
public string ButtonId { get; set; }
public string FullName { get; set; }
public string Img { get; set; }
public string Event { get; set; }
public string Control_ID { get; set; }
public string Category { get; set; }
public string Description { get; set; }
public Nullable<int> Enabled { get; set; }
public Nullable<int> SortCode { get; set; }
public virtual ICollection<RoleMenuButton> RoleMenuButtons { get; set; }
}
}

View File

@@ -0,0 +1,11 @@
namespace OpenAuth.Domain
{
public partial class DataPermission
{
public string Id { get; set; }
public string RoleId { get; set; }
public string ResourceId { get; set; }
public string ObjectId { get; set; }
public virtual Role Role { get; set; }
}
}

View File

@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
namespace OpenAuth.Domain
{
public partial class Department
{
public Department()
{
this.Roles = new List<Role>();
this.Users = new List<User>();
}
public string DepartmentId { get; set; }
public string ParentId { get; set; }
public string FullName { get; set; }
public string Description { get; set; }
public Nullable<int> Enabled { get; set; }
public Nullable<int> SortCode { get; set; }
public Nullable<int> DeleteMark { get; set; }
public virtual ICollection<Role> Roles { get; set; }
public virtual ICollection<User> Users { get; set; }
}
}

29
OpenAuth.Domain/Menu.cs Normal file
View File

@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
namespace OpenAuth.Domain
{
public partial class Menu
{
public Menu()
{
this.Buttons = new List<Button>();
this.RoleMenuButtons = new List<RoleMenuButton>();
}
public string MenuId { get; set; }
public string ParentId { get; set; }
public string FullName { get; set; }
public string Description { get; set; }
public string Img { get; set; }
public Nullable<int> Category { get; set; }
public string NavigateUrl { get; set; }
public string FormName { get; set; }
public string Target { get; set; }
public Nullable<int> IsUnfold { get; set; }
public Nullable<int> Enabled { get; set; }
public Nullable<int> SortCode { get; set; }
public virtual ICollection<Button> Buttons { get; set; }
public virtual ICollection<RoleMenuButton> RoleMenuButtons { get; set; }
}
}

View File

@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{6108DA8E-92A1-4ABE-B9F5-26D64D55CA2C}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>OpenAuth.Domain</RootNamespace>
<AssemblyName>OpenAuth.Domain</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Button.cs" />
<Compile Include="DataPermission.cs" />
<Compile Include="Department.cs" />
<Compile Include="Menu.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Role.cs" />
<Compile Include="RoleMenuButton.cs" />
<Compile Include="User.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

View File

@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("OpenAuth.Domain")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("OpenAuth.Domain")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 使此程序集中的类型
// 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
// 则将该类型上的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("b387116d-343a-462e-b2ed-b509a6be2c9b")]
// 程序集的版本信息由下面四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
// 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
// 方法是按如下所示使用“*”:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

31
OpenAuth.Domain/Role.cs Normal file
View File

@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
namespace OpenAuth.Domain
{
public partial class Role
{
public Role()
{
this.DataPermissions = new List<DataPermission>();
this.RoleMenus = new List<Menu>();
this.RoleMenuButtons = new List<RoleMenuButton>();
this.Users = new List<User>();
}
public string RoleId { get; set; }
public string ParentId { get; set; }
public string FullName { get; set; }
public string Category { get; set; }
public string Description { get; set; }
public Nullable<int> Enabled { get; set; }
public Nullable<int> SortCode { get; set; }
public Nullable<int> DeleteMark { get; set; }
public string DepartmentId { get; set; }
public virtual ICollection<DataPermission> DataPermissions { get; set; }
public virtual Department Department { get; set; }
public virtual ICollection<Menu> RoleMenus { get; set; }
public virtual ICollection<RoleMenuButton> RoleMenuButtons { get; set; }
public virtual ICollection<User> Users { get; set; }
}
}

View File

@@ -0,0 +1,13 @@
namespace OpenAuth.Domain
{
public partial class RoleMenuButton
{
public string RoleMenuButtonId { get; set; }
public string RoleId { get; set; }
public string MenuId { get; set; }
public string ButtonId { get; set; }
public virtual Button Button { get; set; }
public virtual Menu Menu { get; set; }
public virtual Role Role { get; set; }
}
}

24
OpenAuth.Domain/User.cs Normal file
View File

@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
namespace OpenAuth.Domain
{
public partial class User
{
public User()
{
this.Departments = new List<Department>();
this.Roles = new List<Role>();
}
public string UserId { get; set; }
public string Account { get; set; }
public string Password { get; set; }
public string RealName { get; set; }
public string RoleId { get; set; }
public Nullable<int> Enabled { get; set; }
public Nullable<int> DeleteMark { get; set; }
public virtual ICollection<Department> Departments { get; set; }
public virtual ICollection<Role> Roles { get; set; }
}
}