摘要: 用户跑到我们的网站来访问一个需要登录的页面 我们的网站检测到用户没有登录,返回一个跳转到QQ登录页的响应(302 指向QQ登录页面的地址并加上一个返回的链接页面,通常是returnUrl=) 用户被跳转到指定QQ的登录页面 用户在QQ登录页面上输入用户名和密码,QQ会到自己的数据库中查询,一旦登录成 阅读全文
posted @ 2017-01-10 17:49 乐哈哈1 阅读(251) 评论(0) 推荐(0) 编辑
摘要: @Html.EditorFor(model => model.MaxNumber, new { htmlAttributes = new { @min = "1" } }) 阅读全文
posted @ 2016-12-22 11:39 乐哈哈1 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 上边的方法中因为业务需要,造成代码中对其他三个服务的内容依赖,上边的关系图可以清楚看到他们的依赖关系。 如下使用事件总线解耦他们 首先定义事件方法接收事件: 阅读全文
posted @ 2016-12-15 20:11 乐哈哈1 阅读(316) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 通过条件批量更新实体的部分值【异步更新】 /// </summary> /// <param name="filterExpression">更新条件</param> /// <param name="updateExpression">更新值</param> p 阅读全文
posted @ 2016-12-11 17:17 乐哈哈1 阅读(1069) 评论(0) 推荐(1) 编辑
摘要: bind-address = 127.0.0.1 => bind-address= 136.129.20.168 IP要这么改 这么改远程连不上,那么需要把这行整行注释掉,重启MYSQL,telnet 136.129.20.168 3306,提示1130 is not allowed to conn 阅读全文
posted @ 2016-12-09 20:05 乐哈哈1 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 是因为创建表的时候,用户权限不够 NaviCat for Mysql 用这个工具打开MYSQL 在用户 下找到 root@% 这个用户,双击打开 设置服务器权限,最后两个权限勾上就OK 了,需要把MYSQL重启。 表写入数据,提示 Table 'MyDatabase.tmpIdentity_Invi 阅读全文
posted @ 2016-12-08 10:54 乐哈哈1 阅读(439) 评论(0) 推荐(0) 编辑
摘要: MongoClient _client; IMongoDatabase _db; 阅读全文
posted @ 2016-12-05 21:09 乐哈哈1 阅读(217) 评论(0) 推荐(0) 编辑
摘要: Understanding the various methods of an API can be a challenge for a developer when building a consuming application. Generating good documentation an 阅读全文
posted @ 2016-11-27 10:40 乐哈哈1 阅读(501) 评论(0) 推荐(0) 编辑
摘要: Dapper.NET is not just another ORM tool, it’s considered as the king of ORM. Because it’s fast, easy to integrate, requires fewer lines of code, suppo 阅读全文
posted @ 2016-11-26 23:34 乐哈哈1 阅读(2390) 评论(0) 推荐(0) 编辑
摘要: 导出(Export) Export命令用于持久化容器(不是镜像)。所以,我们就需要通过以下方法得到容器ID: sudo docker ps -a 接着执行导出: sudo docker export <CONTAINER ID> > /home/export.tar 最后的结果是一个2.7MB大小的 阅读全文
posted @ 2016-11-19 22:34 乐哈哈1 阅读(3065) 评论(0) 推荐(0) 编辑