06 2020 档案

摘要:目的是熟悉linux的命令以及windows下开发的项目在linux下部署发布,以及用docker发布 阅读全文
posted @ 2020-06-30 09:19 青兰柳 阅读(84) 评论(0) 推荐(0) 编辑
摘要:1 支付宝只能调用外部网络 SetNotifyUrl()这就是支付宝能调用的外部网址 2新建一个Nlog.config (下面两个都行,只是路径不一样) <?xml version="1.0" encoding="utf-8" ?><nlog xmlns="http://www.nlog-proje 阅读全文
posted @ 2020-06-29 18:25 青兰柳 阅读(340) 评论(0) 推荐(0) 编辑
摘要:先设置 在TortoiseGit ->setting->git->Remote Remote 远端名字 url 远端地址 putty key私钥和git远端公钥对应 1 git commit 提交本地仓库 2pull 拉取 到本地,运行没有报错进行第三步 3push 推送到远端分支 小乌龟中的git 阅读全文
posted @ 2020-06-28 18:53 青兰柳 阅读(134) 评论(0) 推荐(0) 编辑
摘要:#if DEBUG sendResult = 1;#else sendResult = SendSmallMsg(phone, num);#endif debug模式和release 模式 net core 发布到外网时,用release 模式,生成的xxx.xml也要要放上去,不然报错,调了一天这 阅读全文
posted @ 2020-06-28 10:29 青兰柳 阅读(188) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/en-us/aspnet/core/fundamentals/configuration 官方文档 1在appsetting里面设置相应的值对象,比如数据库的连接,一些其他的固定的配置信息 2然后新建一个对象,里面的属性对应相应的key值 3在s 阅读全文
posted @ 2020-06-24 16:54 青兰柳 阅读(1896) 评论(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 青兰柳 阅读(5126) 评论(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 青兰柳 阅读(957) 评论(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 青兰柳 阅读(420) 评论(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) 编辑