摘要: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/configuration 官方文档 1在appsetting里面设置相应的值对象,比如数据库的连接,一些其他的固定的配置信息 2然后新建一个对象,里面的属性对应相应的key值 3在s 阅读全文
posted @ 2020-06-24 16:54 青兰柳 阅读(1898) 评论(0) 推荐(0) 编辑
摘要: 1 前端传一个EntityDto,我这边接收 现在的问题是.想根据里面的主键Id,先是找出这条数据(假设存在) 那我找到了这条数据之后,如何将剩余的属性值一一赋值 只想到了一个比较笨的方法 QueryEntity(查询出来的那条数据) QueryEntiy.xxx1=EntityDto.xxx1; 阅读全文
posted @ 2020-06-23 19:09 青兰柳 阅读(197) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/weixin_44277627/article/details/100156026 https://www.bbsmax.com/A/ZOJP4KDOJv/ 阅读全文
posted @ 2020-06-21 17:52 青兰柳 阅读(566) 评论(0) 推荐(0) 编辑
摘要: 1今天调用支付宝支付接口然后写回调函数时,发现一个问题,红色处提示没有方法定义 /// <summary> /// 异步POST回调 /// </summary> /// <returns></returns> [HttpPost] public async Task<JObject> Notify 阅读全文
posted @ 2020-06-20 23:00 青兰柳 阅读(561) 评论(0) 推荐(0) 编辑
摘要: 先安装 Newtonsoft.Json 包 public class JsonHelper { /// <summary> /// 将实体类序列化为JSON /// </summary> /// <typeparam name="T"></typeparam> /// <param name="da 阅读全文
posted @ 2020-06-20 22:24 青兰柳 阅读(5145) 评论(0) 推荐(0) 编辑
摘要: 1安装automapper 包 (需要注意的是如果在同一个解决方法的不同项目安装了两个包,会导致冲突报错) 选择 AutoMapper.Extensions.Microsoft.DependencyInjection 2 ConfigureServices中进行服务注册(程序集方式): servic 阅读全文
posted @ 2020-06-18 14:27 青兰柳 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 1.用的是工厂仓储模式(数据层data) public interface IRepositoryFactory { IRepository<T> CreateRepository<T>(IDBContext dataContext) where T : class; } public class 阅读全文
posted @ 2020-06-17 19:19 青兰柳 阅读(958) 评论(0) 推荐(0) 编辑
摘要: 1下载vscode,然后安装插件(支持中文,html css support,html snippets(html自动填充,open in default browser(打开默认浏览器)) debugger for chrome(谷歌调试))有其他需求的可以自行添加插件 2新建文件夹,在vscod 阅读全文
posted @ 2020-06-07 18:47 青兰柳 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 在点击按钮上面添加 onclick="javascript: login();return false;" 阅读全文
posted @ 2020-06-04 11:02 青兰柳 阅读(421) 评论(0) 推荐(0) 编辑
摘要: @{ Layout = null; } <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Login</title> <link href="~/css/fonts/Login.css" rel="styles 阅读全文
posted @ 2020-06-03 19:39 青兰柳 阅读(100) 评论(0) 推荐(0) 编辑