摘要:
using System.Collections.Generic; using System.Linq; namespace BasicChat { public class ConnectionMapping<T> { private readonly Dictionary<T, HashSet< 阅读全文
摘要:
public class User { public string UserId { get; set; } public string UserName { get; set; } public bool Equals(User user) => user.UserId.Equals(UserId 阅读全文
摘要:
Ref: SignalR - authenticating with access token (讲解了如何在Javascript中添加其他字段) Authentication and authorization in ASP.NET Core SignalR Struggling to authe 阅读全文
摘要:
Ref: What's the difference between git reset --mixed, --soft, and --hard? 阅读全文
摘要:
使用的是MSSQLSever. 使用 select top 50 percent * from [table] order by newid() 可以随机选取table的50%行。 使用 update randowmRecords set randowmRecords.[column] = [val 阅读全文
摘要:
前段时间在学习Auth2.0, Implicit grant flow已经不适用了,因为第三方Cookies在逐步被各浏览器禁止使用。 为了能够同样保持用户的登录状态保持,现在推荐使用OAuth2.0 auth code flow。 下面是来自MS的文档,同样在OAuth 也有类似的官方文档 另外一 阅读全文
摘要:
摘抄 Ref: How to create an array containing 1…N 阅读全文
摘要:
使用 Scaffold-DbContext [Connection String] Microsoft.EntityFrameworkCore.SqlServer 生成entities Ref: Creating a Model for an Existing Database in Entity 阅读全文
摘要:
table, th, td { border: 1px solid black; border-collapse: collapse;} ref: HTML Tables (w3schools.com) 阅读全文
摘要:
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 阅读全文