09 2020 档案

摘要:情况是这样的: 我在add方法中,还有一个updateBalance减库存方法。 serviceImpl是这样的 //尽量简单演示 //新增 @Transactional @Override public T add() { } //减库存 @Transactional @Override publ 阅读全文
posted @ 2020-09-30 13:56 正怒月神 阅读(260) 评论(0) 推荐(0) 编辑
摘要:sql语句: select a.id,substring_index(substring_index(a.name,',',b.help_topic_id+1),',',-1) name from test a join mysql.help_topic b on b.help_topic_id < 阅读全文
posted @ 2020-09-25 14:19 正怒月神 阅读(784) 评论(0) 推荐(0) 编辑
摘要:开发环境 ASP.NET Core 3.0 + Entity Framework 3.0 正文 Entity Framework Core 通过实体类的导航属性来加载相关数据。有三种常见的方式: 预先加载 - 将关联数据作为查询的一部分一起查询出来。 显示加载 - 查询主数据之后,再从数据库查询相关 阅读全文
posted @ 2020-09-24 11:48 正怒月神 阅读(322) 评论(0) 推荐(0) 编辑
摘要:有两个方法 一, Application层 代码如下:继承IApplicationService public class TestService : IApplicationService { public List<dynamic> Test() { List<dynamic> list = n 阅读全文
posted @ 2020-09-24 01:19 正怒月神 阅读(475) 评论(0) 推荐(0) 编辑
摘要:使用abp框架,使用了Zero模块。再使用Element ui进行上传图片。出现400 bad request错误请求。 用postman传数据到接口时正常工作的。 经过几经波折,终于找到问题是nati token的问题。 https://forum.aspnetboilerplate.com/vi 阅读全文
posted @ 2020-09-22 00:34 正怒月神 阅读(398) 评论(0) 推荐(0) 编辑
摘要:Interface: using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Threading.Tasks; using Webdi 阅读全文
posted @ 2020-09-15 14:37 正怒月神 阅读(507) 评论(2) 推荐(0) 编辑
摘要:本节内容: 什么是依赖注入 传统方式的问题 解决方案 构造器注入模式 属性注入模式 依赖注入框架 ABP 依赖注入基础 注册依赖 约定注入 辅助接口 自定义/直接 注册 使用IocManager 使用Castle Windsor API 解析 构造器和属性注入 IIocResolver 和 IIoc 阅读全文
posted @ 2020-09-11 12:47 正怒月神 阅读(505) 评论(0) 推荐(0) 编辑
摘要:[AbpMvcAuthorize] [Route("api/Test")] [ApiController] public class TestController : DiveCRMControllerBase { private readonly IDbContextProvider<DiveCR 阅读全文
posted @ 2020-09-10 16:39 正怒月神 阅读(1071) 评论(0) 推荐(0) 编辑
摘要:添加jpa策略 spring: jpa: hibernate: naming: physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl database: mysql 两种策略的含义: 阅读全文
posted @ 2020-09-09 14:22 正怒月神 阅读(702) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示