posts - 609,  comments - 13,  views - 64万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

文档:https://docs.abp.io/zh-Hans/abp
abp默认管理员:admin,密码:123qwe,这是写死的,xxx.Core\Authorization\Users\User.cs 行数:10
1.先在Core项目中建立模型
Models》Model.cs/ModelManager.cs

2.在Application中建立接口和具体类:
IModelAppService.cs
ModelAppService.cs
建立Dto和QueryInput类
ModelDto/ModelQueryInput

3.在EntityFramework的DbContext.cs类中,注册数据表,然后执行对应的migration命令更新数据库
public virtual IDbSet<Articles.Article> Articles { get; set; }

查看所有接口

http://localhost:6234/api/AbpServiceProxies/GetAll?type=angular

swagger:http://localhost:6234/apis/index

多数据库:

abp框架多数据库:
A56.WMS.EntityFramework中:
增加:对应的 DbContext.cs
增加:对应的 /EntityFramework/Repositories/DbRepositoryBase.cs
增加:对应的 Migrations文件夹,在文件夹里增加 Configuration.cs

4.创建实体可以继承的几个:FullAuditedEntity<long>:增删改的时间和用户id, IMustHaveTenant:增加TenantId多租户, IPassivable:启用禁用IsActive


https://www.cnblogs.com/LmuQuan/p/9122143.html

http://www.cnblogs.com/farb/p/ModuleZeroContent.html

http://www.cnblogs.com/farb/p/4849791.html

http://www.cnblogs.com/farb/p/modulezeroInstall.html

http://www.mamicode.com/info-detail-2320070.html

http://www.bubuko.com/infodetail-2594809.html

http://www.cnblogs.com/1zhk/p/5456389.html

https://www.cnblogs.com/farb/p/moduleZeroUserManagement.html

http://www.cnblogs.com/mienreal/p/4687789.html

AbpSession管理:http://www.cnblogs.com/mienreal/p/4561235.html

自定义过滤器:http://www.cnblogs.com/farb/p/ABPDataFilters.html

https://www.cnblogs.com/Wddpct/p/5919507.html

ABP框架使用Mysql:

https://github.com/ABPFrameWorkGroup/AbpDocument2Chinese/blob/master/Markdown/Abp/9.4ABP%E5%9F%BA%E7%A1%80%E8%AE%BE%E6%96%BD%E5%B1%82-%E9%9B%86%E6%88%90EntityFrameworkMySql.md

https://www.cnblogs.com/ixysy/p/6219719.html

添加左侧菜单:https://blog.csdn.net/ysj1163620987/article/details/54909635
ABP入门系列(16)——通过webapi与系统进行交互:https://www.jianshu.com/p/d14733432dc2
ABP中文文档:https://github.com/ABPFrameWorkGroup/AbpDocument2Chinese/tree/master/Markdown
ABP模板下载:https://aspnetboilerplate.com/Templates

posted on   邢帅杰  阅读(950)  评论(0编辑  收藏  举报
编辑推荐:
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
阅读排行:
· 地球OL攻略 —— 某应届生求职总结
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 提示词工程——AI应用必不可少的技术
· .NET周刊【3月第1期 2025-03-02】
历史上的今天:
2016-08-02 WCF三种通信模式
点击右上角即可分享
微信分享提示