orchard学习,
orchard,cms
学习,
下载,Orchard-1.10.2.zip
目录:Orchard-1.10.2\
工程:Orchard-1.10.2\Orchard.sln
命令行工具:Orchard-1.10.2\src\Orchard.Web\bin\Orchard.exe (它也是其中一个项目) (帮助命令:help commands)
1. 启用 Orchard.CodeGeneration ,命令行:feature enable Orchard.CodeGeneration (需要关闭Orchard.exe重新编译项目)
2. 命令行工具,创建项目:codegen module Masapin.UnitTest
3. 命令行工具,列出项目:feature list /Summary:true (哪些为enabled,哪些为disabled)
4. 设置 feature enable Masapin.UnitTest ,奇怪的是方案关闭打开,还要再手动添加现有项目,,,
5. 在 Orchard.Framework ,WebApi\添加BaseController
在项目,package.config,添加 <package id="AutoMapper" version="6.2.2" targetFramework="net452" />
使用nuget 命令,update-package -project Orchard.Framework -reinstall 重新安装项目的依赖包
autofac,3.5.2,
autofac.configuration,
IOC的容器确实不少,unity,autofac,Castle
https://www.cnblogs.com/anduril/p/5412923.html ,Orchard工作原理
POST http://m.mooshine.cn/Api/Dashboards/Account/Login HTTP/1.1
Host: m.mooshine.cn
Connection: keep-alive
Content-Length: 41
Accept: application/json, text/plain, */*
Origin: http://localhost:8080
access-token: 43FF5E25C63CE4155D54E092AB34EA37
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
Content-Type: application/json;charset=UTF-8
Referer: http://localhost:8080/
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
{"username":"asdsdf","password":"sdfsdf"}
Orchard中codegen相关命令
实体关联
postman,接口请求工具,