• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
PowerCoder
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 68 下一页
2020年2月7日
Is default(CancellationToken) equivalent to CancellationToken.None?(转载)
摘要: 问 Looking at the implementation of CancellationToken.None, it is simply returning default(CancellationToken). However, I see no reference in Cancellat 阅读全文
posted @ 2020-02-07 01:16 PowerCoder 阅读(345) 评论(0) 推荐(0)
2020年2月6日
Stored Procedures: OUTPUT vs OUT?(转载)
摘要: 问 I've seen in BOL under the section regarding Stored Procedures, specifically declaring OUTPUT parameters, where both "OUTPUT" and "OUT" are used.Is 阅读全文
posted @ 2020-02-06 17:11 PowerCoder 阅读(215) 评论(0) 推荐(0)
关于TransactionScope.Complete方法(链接)
摘要: 相信有些同学会困扰,当我们执行TransactionScope.Complete()方法的时候,是否Transaction被真正提交到数据库了。 对于这一点,MSDN上有这么一段描述: If the TransactionScope object created the transaction in 阅读全文
posted @ 2020-02-06 11:28 PowerCoder 阅读(632) 评论(0) 推荐(0)
2020年2月5日
Do I need to dispose of Tasks?(链接)
摘要: Do I need to dispose of Tasks? Here’s my short answer to this question: “No. Don’t bother disposing of your tasks.” 阅读全文
posted @ 2020-02-05 15:30 PowerCoder 阅读(182) 评论(0) 推荐(0)
EF Core 3.0 Keyless Entity Types (链接)
摘要: Keyless Entity Types 阅读全文
posted @ 2020-02-05 11:50 PowerCoder 阅读(586) 评论(0) 推荐(0)
2020年2月4日
为什么C#接口中不能声明async异步函数(转载)
摘要: Unable to declare Interface “ async Task<myObject> MyMethod(Object myObj); ” 问 I'm unable to declare interface IMyInterface { async Task<myObject> MyM 阅读全文
posted @ 2020-02-04 16:00 PowerCoder 阅读(2466) 评论(0) 推荐(0)
2020年1月22日
How does SqlDataReader handle really large queries?(转载)
摘要: 问 Actually I'm not sure the title accurately describes the question, but I hope it is close enough. I have some code that performs a SELECT from a dat 阅读全文
posted @ 2020-01-22 13:52 PowerCoder 阅读(250) 评论(0) 推荐(0)
2020年1月20日
ASP.NET Core MVC中的Filter如果不实现IFilterFactory接口,那么Filter默认情况下在ASP.NET Core生命周期内是单例的,会被重用
摘要: 问 I have an AuthorizationFilter as follows: I found the constructor of AuthorizationFilter will just be called one time during the whole ASP.NET Core 阅读全文
posted @ 2020-01-20 16:37 PowerCoder 阅读(722) 评论(0) 推荐(0)
2020年1月18日
What is the use for Task.FromResult<TResult> in C#(转载)
摘要: 问: In C# and TPL (Task Parallel Library), the Task class represents an ongoing work that produces a value of type T.I'd like to know what is the need 阅读全文
posted @ 2020-01-18 21:57 PowerCoder 阅读(409) 评论(0) 推荐(0)
2020年1月16日
await Task.Yield()和await Task.CompletedTask有什么不同
摘要: 有时候我们在代码中要执行一些非常耗时的操作,我们不希望这些操作阻塞调用线程(主线程)的执行,因为调用线程(主线程)可能还有更重要的工作要做,我们希望将这些非常耗时的操作由另外一个线程去执行,这个时候就可以用到await Task.Yield(),它借助了C# 5.0中的异步函数关键字await as 阅读全文
posted @ 2020-01-16 15:28 PowerCoder 阅读(7114) 评论(0) 推荐(7)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 68 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3