一、基础层搭建

二、PM.Core

三、PM.EntityFramework

四、PM.Application

五、PM.WebApi 

六、PM.Web(MPA)

七、PM.Web(SPA)

八、单元测试

一、基础层搭建

1,创建一个空解决方案 

2,层结构

手动搭建ABP2.1.3 Zero——基础框架

PM.Core[v:4.6]:类库

PM.EntityFramework[v:4.6]:类库(引用PM.Core)

PM.Application[v:4.6]:类库(引用PM.Core)

PM.WebApi[v:4.6]:类库(引用PM.Application、PM.Core)

PM.Web[v:4.6]:WebMvc5.X(引用PM.Core、PM.EntityFramework、PM.Application、PM.WebApi)

PM.Test[v:4.6]:(引用PM.EntityFramework、PM.Core、PM.Application)

二、PM.Core

1,NuGet安装Abp.Zero2.1.3

程序集引用:System.ComponentModel.DataAnnotations

2,基本结构

手动搭建ABP2.1.3 Zero——基础框架

Authorization

手动搭建ABP2.1.3 Zero——基础框架

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Abp.MultiTenancy;
using Abp.Zero.Configuration;

namespace PM.Core.Authorization.Roles
{
    public class PMRoleConfig
    {
        public static void Configure(IRoleManagementConfig roleManagementConfig)
        {
            //静态主机角色
            roleManagementConfig.StaticRoles.Add(new StaticRoleDefinition(
                StaticRoleNames.Host.Admin
                , MultiTenancySides.Host));

            //静态租户角色
            roleManagementConfig.StaticRoles.Add(new StaticRoleDefinition(
                StaticRoleNames.Tenants.Admin,
                MultiTenancySides.Tenant));
        }
    }
}
PMRoleConfig

相关文章:

  • 2021-05-20
  • 2022-12-23
  • 2021-12-05
  • 2021-06-05
  • 2021-07-01
  • 2021-07-11
  • 2022-02-15
  • 2021-11-05
猜你喜欢
  • 2022-01-27
  • 2021-05-13
  • 2021-06-27
  • 2021-11-23
  • 2021-07-22
  • 2022-01-07
相关资源
相似解决方案