上一页 1 ··· 63 64 65 66 67 68 69 70 71 ··· 399 下一页
摘要: Use anonymous type for LINQ based lists instead of var 问题 I've LINQ requests that return anonymous types like: var result = context.Table1.Select( x = 阅读全文
posted @ 2022-07-12 10:27 ChuckLu 阅读(35) 评论(0) 推荐(0)
摘要: Determine what is blocking UI thread 问题 I am working on a rather large .NET WPF real-time application. The application is working great and as expecte 阅读全文
posted @ 2022-07-11 13:41 ChuckLu 阅读(52) 评论(0) 推荐(0)
摘要: What does SynchronizationContext do? 问题 In the book Programming C#, it has some sample code about SynchronizationContext: SynchronizationContext origi 阅读全文
posted @ 2022-07-11 11:19 ChuckLu 阅读(46) 评论(0) 推荐(0)
摘要: When should I use ConfigureAwait(true)? 问题 Has anyone come across a scenario for using ConfigureAwait(true)? Since true is the default option I cannot 阅读全文
posted @ 2022-07-11 11:16 ChuckLu 阅读(57) 评论(0) 推荐(0)
摘要: 在讨论阻塞与加锁之前,需要先理解一些核心概念:并发性、事务、隔离级别、阻塞锁及死锁。 并发性是指多个进程在相同时间访问或者更改共享数据的能力。一般情况而言,一个系统在互不干扰的情况下可以激活的并发用户的进程数越多,该系统的并发性就越强。就像通常所说的系统性能表现,系统同时处理的并发用户数越多,说明系 阅读全文
posted @ 2022-07-08 14:37 ChuckLu 阅读(181) 评论(0) 推荐(0)
摘要: Questions About T-SQL Transaction Isolation Levels You Were Too Shy to Ask Every time you access a relational database to make a query, you have an im 阅读全文
posted @ 2022-07-08 14:31 ChuckLu 阅读(38) 评论(0) 推荐(0)
摘要: SQL Server table hints – WITH (NOLOCK) best practices SQL Server table hints are a special type of explicit command that is used to override the defau 阅读全文
posted @ 2022-07-08 14:30 ChuckLu 阅读(69) 评论(0) 推荐(0)
摘要: await keyword blocks main thread 问题 So I have the following code private async void button1_Click(object sender, EventArgs e) { await DoSomethingAsync 阅读全文
posted @ 2022-07-05 16:21 ChuckLu 阅读(38) 评论(0) 推荐(0)
摘要: When correctly use Task.Run and when just async-await 回答 Note the guidelines for performing work on a UI thread, collected on my blog: Don't block the 阅读全文
posted @ 2022-07-05 14:45 ChuckLu 阅读(41) 评论(0) 推荐(0)
摘要: What is the difference between await Task<T> and Task<T>.Result? 问题 public async Task<string> GetName(int id) { Task<string> nameTask = Task.Factory.S 阅读全文
posted @ 2022-07-05 14:16 ChuckLu 阅读(25) 评论(0) 推荐(0)
上一页 1 ··· 63 64 65 66 67 68 69 70 71 ··· 399 下一页