上一页 1 ··· 4 5 6 7 8
摘要: 注意: 所有语句 ,结尾要用;结束。 1 查询用户 select user from user; 2 创建用户 Create user test1 IDENTIFIED BY 'test1001'; 也可以使用Grant 或 Insert新建用户,但是用 Create user 是最清楚和简单的语句 阅读全文
posted @ 2020-08-23 15:40 誓鼎 阅读(227) 评论(0) 推荐(0) 编辑
摘要: DROP PROCEDUREIF EXISTS `InsertMsgTemp`;DELIMITER ;;CREATE PROCEDURE `InsertMsgTemp` (IN orgcode VARCHAR(50))BEGIN DECLARE t_error INTEGER DEFAULT 0; 阅读全文
posted @ 2020-08-23 15:32 誓鼎 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 1 事务:一 次性保存全部的变化 using (JDDbContext context = new JDDbContext()) { context.Database.Log += c => Console.WriteLine(c); User user2 = context.Users.Find( 阅读全文
posted @ 2020-08-23 15:26 誓鼎 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 对identityserver4 神往已久,先记录下官网哈:https://identityserver4.readthedocs.io/en/latest/ 折腾了两个星期,终于把identityserver4 应用在项目中,从一无所知到搭建完成,参考学习了很多大佬文章。 首先记录一下学习路线,后 阅读全文
posted @ 2020-05-28 22:52 誓鼎 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 对于一次性使用的二维码,没有必要把二维码保存起来,直接把二维码流返回。 [HttpGet] public ActionResult GetQrCode(string url) { using (MemoryStream ms = new MemoryStream()) { Bitmap bitmap 阅读全文
posted @ 2020-05-28 22:23 誓鼎 阅读(311) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8