10 Star 36 Fork 12

幻影 / NetCore

加入 Gitee
与超过 600 万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 8.82 KB
一键复制 编辑 Web IDE 原始数据 按行查看 历史
幻影 提交于 2021-02-19 14:05 . update README.md.

NetCore

介绍

1.该项目采用了 IOC DI DDD OOP AOP SOA 设计模式 以及autofac Log4net Signalr EF 等主流中间件进行开发

2.数据层支持ado.net 以及entityframework框架

3.缓存基于redis 支持MemoryCache 缓存。

4.数据查询参照了nhibernate查询方式 为了支持ado 以及enittyframework所有有所更改。

5.该框架采用autofac 包对service层进行属性注入。

6.日志基于log4net 进行写入。

7.该框架采用Areas分层模式。

8.EF 数据迁移

9.实现了Session共享

10.静态文件共享以及压缩

11.js css文件动态压缩合并

12.实现了T4模板的代码在线生成功能

13.实现了数据库之间的服务器同步。

14.实现了负载均衡设置。

15.实现单点登录功能

16.实现简易的webchat聊天室功能

17.数据库完全支持Mysql 以及SqlServer

18.实现业务与系统之间完整解耦

19.基于DDD软件设计模型进行开发

20.实现插件化 模块设计开发

21.实现了Signalr Web端实时通讯功能

22.实现了基于MyFlow的流程设计器功能

23.实现了基于go.js的组织架构图功能

24.实现了应用层的读写分离。

25.实现了基于Action 之间的权限控制,每个按钮菜单无需用户添加,由系统直接生成,超级管理员不受权限控制。

26.实现了基于AOP的日志监控功能,主要体现在对每个请求的时间、返回结果 以及每个Sql的执行时间进行监控。

27.实现了基于ModelBinder的数据绑定 以及验证 。

28.底层数据更新只会更新有修改的字段,并同步更新缓存,业务层无需再次更新缓存。

开发工具以及运行环境

VS2017 Sql2012

基于NetCore 2.2 EF core Ado GetChart js myflow js bootstrap

安装教程

支持跨平台 1.下载源文件,使用cmd 命令进入netcore.web目录。

2.使用dotnet publish -c release 进行发布。

3.编辑 appsettings.json文件

4.将文件放入服务器指定目录。

5.在服务器中打开cmd,进入项目目录

6.使用dotnet netcore.web.dll启动项目

7.如果服务器中不存在该数据库,则会自动创建数据库,确认/cloud/config/initdata文件夹中是否存在initdata.rar文件,将其解压

8.使用浏览器访问项目/home/InitData,系统会自动创建初始化数据以及生成系统权限,创建成功即可访问。

9.关于系统代码生成的相关配置数据,可以远程访问数据库进行直接获取,数据库地址:42.157.131.97,密码:123456。也可在代码生成-服务器管理中添加该数据库,并配置本地同步数据库,将该数据下载下来。

10.关于编码生成需要系统创建完项目后执行文件中/NetCore/NetCore.Web/update-sql 对应的脚本

11.关于系统插件化配置目前没有做界面配置,如果想把所有功能参数化配置请将主项目中对应的引用全部去掉即可,插件化配置节点:“Components”

12.以下是appsettings.json 配置文件信息


{
    "Logging": {
        "LogLevel": {
            "Default": "Warning"
        }
    },
    "AllowedHosts": "*",
    "Kestrel": {
        "EndPoints": {
            "Http": {
                "Url": "http://*:5412"
            },
            "Https": {
                "Url": "https://*:5413"
            }
        }
    },
  "SiteConfig": {
    "ConnectionString": "Server=.\\sql2012;User id=sa;Password=1;Database=NetCore;MultipleActiveResultSets=True",
    "ProviderType": "SqlServer",
    "ProviderVersion": "2008",
    "IsUseEF": true,
    "ServerAddress": "localhost",
    "ApplicationName": "NetCore",
    "IsEntityCache": true,
    "IsUseRedis": false,
    "RedisConnection": "127.0.0.1,defaultDatabase=0,poolsize=10,ssl=false,writeBuffer=10240,prefix=Redis_NetCore_",
    "Passport": "",
    "Version": "1.0",
    "IsWeb": true,
    "Domain": ".netcore.com",
    "AESKey": "whladmin",
    "MD5key": "ae125efkk4454eeff444ferfkny6oxi8",
    "AESIV": "ae125efkk4454eeff444ferfkny6oxi8",
    "SessionTimeout": 30,
    "UserCacheKey": "CACHE_ENTITY_KEY_USERE_NTITY_INDETITY_",
    "UserServiceInstance": "NetCore.BLL.UserService",
    "InitData": "NetCore.BLL;NetCore.BLL.InitDataService",
    "DefaultDirectory": "f:/project/git/netcore/netcore/netcore.Web/",
    "BaseDirectory": "f:/project/git/netcore/netcore/cloud/",
    "HtmlDirectory": "f:/project/git/netcore/netcore/cloud/html/",
    "StaticBrower": "/static/cloud/",
    "AdminUser": "1000000000",
    "DefaultPassword": "123456",
    "DBLog": "",
    "SMTP": {
      "Server": "smtp.qq.com",
      "Port": 25,
      "Account": "403259156@qq.com",
      "Password": "xxjlgceskktwbiig",
      "SendAddress": "403259156@qq.com"
    },
    "Components": {
      "System": {
        "Opened": true,
        "Name": "系统",
        "Model": [
          "NetCore.Model.dll"
        ],
        "Service": [
          "NetCore.BLL.dll"
        ],
        "Mvc": "NetCore.Web.dll",
        "Views": "NetCore.Web.Views.dll",
        "Api": ""
      },
      "Plug": [
        {
          "Id": "0001",
          "Name": "系统管理",
          "Unique": "Admin",
          "Remark": "Admin管理后台",
          "Opened": true,
          "OrderNum": 1500,
          "icon": "fa-wrench",
          "Model": [

          ],
          "Service": [],
          "Mvc": "NetCore.Admin.Web.dll",
          "Views": "NetCore.Admin.Web.Views.dll"

        },
        {
          "Id": "0002",
          "Name": "代码生成器",
          "Unique": "Code",
          "Remark": "",
          "Opened": true,
          "OrderNum": 1200,
          "icon": "fa-code",
          "Model": [
            "NetCore.Code.Model.dll"
          ],
          "Service": [
            "NetCore.Code.BLL.dll"
          ],
          "Mvc": "NetCore.Code.Web.dll",
          "Views": "NetCore.ORG.Web.Views.dll"
        },
        {
          "Id": "0003",
          "Name": "组织架构管理",
          "Unique": "Org",
          "Remark": "组织架构管理",
          "Opened": true,
          "OrderNum": 1300,
          "icon": "fa-sitemap",
          "Model": [
            "NetCore.ORG.Model.dll"
          ],
          "Service": [
            "NetCore.ORG.BLL.dll"
          ],
          "Mvc": "NetCore.ORG.Web.dll",
          "Views": "NetCore.ORG.Web.Views.dll"
        },
        {
          "Id": "0004",
          "Name": "流程管理",
          "Unique": "WF",
          "Remark": "",
          "Opened": true,
          "OrderNum": 1400,
          "icon": "fa-cogs",
          "Model": [
            "NetCore.WF.Model.dll"
          ],
          "Service": [
            "NetCore.WF.BLL.dll"
          ],
          "Mvc": "NetCore.WF.Web.dll",
          "Views": "NetCore.WF.Web.Views.dll"
        },
        {
          "Id": "0005",
          "Name": "附件管理",
          "Unique": "Attach",
          "Remark": "",
          "Opened": true,
          "OrderNum": 1100,
          "icon": "fa-folder",
          "Model": [
            "NetCore.Attach.Model.dll"
          ],
          "Service": [
            "NetCore.Attach.BLL.dll"
          ],
          "Mvc": "NetCore.Attach.Web.dll",
          "Views": "NetCore.Attach.Web.Views.dll"
        },
        {
          "Id": "0006",
          "Name": "Api管理",
          "Unique": "Api",
          "Remark": "",
          "Opened": true,
          "OrderNum": 1000,
          "Model": [
            "NetCore.Api.Model.dll"
          ],
          "Service": [
            "NetCore.Api.BLL.dll"
          ],
          "Mvc": "NetCore.Api.Web.dll",
          "Views": "NetCore.Api.Web.PrecompiledViews.dll"
        },
        {
          "Id": "0007",
          "Name": "个人中心",
          "Unique": "Member",
          "Remark": "",
          "Opened": true,
          "OrderNum": 100,
          "icon": "fa-user",
          "Model": [],
          "Service": [],
          "Mvc": "NetCore.Member.Web.dll",
          "Views": "NetCore.Member.Web.Views.dll"
        }
      ]
    },
    "NoGetResponse": [
      "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
    ],
    "ConfigFile": {
      "configPath": "config/",
      "rootPath": "upload/",
      "tempPath": "temp/",
      "publicPath": "public/"
    },
    "Cookie": {
      "Domain": ".netcore.com",
      "Name": "sso",
      "RootPath": "/",
      "ProtectionProviderPath": "f:/project/git/netcore/netcore/cloud/config/shared-auth-ticket-keys"
    }
  }
}

使用说明

参与贡献

码云特技

参与贡献

王海龙

码云特技

博客 https://my.oschina.net/u/3049482/blog/2990183 在线Demo:http://122.51.212.61:5412/ 账号:admin 密码:123456

评论 ( 0 )

你可以在登录后,发表评论

C#
1
https://gitee.com/whltian/NetCore.git
git@gitee.com:whltian/NetCore.git
whltian
NetCore
NetCore
master

搜索帮助