摘要: using System.Collections.Generic; using System.Linq; namespace BasicChat { public class ConnectionMapping<T> { private readonly Dictionary<T, HashSet< 阅读全文
posted @ 2021-02-19 04:04 LLLZC 阅读(33) 评论(0) 推荐(0) 编辑
摘要: public class User { public string UserId { get; set; } public string UserName { get; set; } public bool Equals(User user) => user.UserId.Equals(UserId 阅读全文
posted @ 2021-02-18 12:34 LLLZC 阅读(34) 评论(0) 推荐(0) 编辑
摘要: Ref: SignalR - authenticating with access token (讲解了如何在Javascript中添加其他字段) Authentication and authorization in ASP.NET Core SignalR Struggling to authe 阅读全文
posted @ 2021-02-18 11:00 LLLZC 阅读(961) 评论(0) 推荐(0) 编辑
摘要: Ref: What's the difference between git reset --mixed, --soft, and --hard? 阅读全文
posted @ 2021-02-16 05:06 LLLZC 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 使用的是MSSQLSever. 使用 select top 50 percent * from [table] order by newid() 可以随机选取table的50%行。 使用 update randowmRecords set randowmRecords.[column] = [val 阅读全文
posted @ 2021-02-10 06:09 LLLZC 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 前段时间在学习Auth2.0, Implicit grant flow已经不适用了,因为第三方Cookies在逐步被各浏览器禁止使用。 为了能够同样保持用户的登录状态保持,现在推荐使用OAuth2.0 auth code flow。 下面是来自MS的文档,同样在OAuth 也有类似的官方文档 另外一 阅读全文
posted @ 2021-02-08 15:29 LLLZC 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 摘抄 Ref: How to create an array containing 1…N 阅读全文
posted @ 2021-02-05 11:55 LLLZC 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 使用 Scaffold-DbContext [Connection String] Microsoft.EntityFrameworkCore.SqlServer 生成entities Ref: Creating a Model for an Existing Database in Entity 阅读全文
posted @ 2021-02-04 07:01 LLLZC 阅读(35) 评论(0) 推荐(0) 编辑
摘要: table, th, td { border: 1px solid black; border-collapse: collapse;} ref: HTML Tables (w3schools.com) 阅读全文
posted @ 2021-02-04 06:44 LLLZC 阅读(38) 评论(0) 推荐(0) 编辑
摘要: reading list 4. Four ways to style react components Modular CSS with React Moving from SCSS to styled-components: Advantages and caveats How to use st 阅读全文
posted @ 2021-02-04 06:29 LLLZC 阅读(89) 评论(0) 推荐(0) 编辑