- 博客(7)
- 收藏
- 关注
转载 ASP.NET Core In Process Hosting on IIS with ASP.NET Core 2.2(转载)
ASP.NET Core 2.2 has been out for a while now and with it come some significant improvements to the hosting model if you plan on hosting in IIS. In previous versions you were required to host ASP...
2019-09-26 09:27:00 794
转载 DateTime的ToString方法格式
新建一个.NET Core控制台项目,敲入如下代码:using System;namespace NetCoreDatetime{ class Program { static void Main(string[] args) { DateTime now = DateTime.Now;...
2019-09-25 16:03:00 315
转载 当Windows操作系统关机时,不会执行Windows Service的OnStop方法(转载)
Windows Service OnStop when computer shutdown问:I'm writing a Windows Service in C#. I want to take the same action for when the service is stopped by the Service control panel as w...
2019-09-18 19:50:00 700
转载 using 语句(C# 参考)(转载)
using 语句提供可确保正确使用 IDisposable 对象的方便语法。示例下面的示例演示如何使用 using 语句。using (var font1 = new Font("Arial", 10.0f)) { byte charset = font1.GdiCharSet;}备注File ...
2019-09-18 00:32:00 120
转载 SQL Server的常用提示
在SQL Server中,有许多SQL语句的提示,本文总结一些比较常用的提示。OPTION LOOP/MERGE/HASH JOIN提示该提示可以改变整个SQL语句中所有JOIN的关联算法,所以请慎用!下面语句中,我们使用OPTION(MERGE JOIN)提示,将SQL语句的两个JOIN都改为了MERGE JOIN:SELECT *FROM...
2019-09-17 11:17:00 131
转载 ASP.NET Core中app.UseDeveloperExceptionPage和app.UseExceptionHandler方法有什么用
在新建一个ASP.NET Core项目后,在项目Startup类的Configure方法中默认会添加两个方法的调用,app.UseDeveloperExceptionPage和app.UseExceptionHandler,如下所示:// This method gets called by the runtime. Use this method to configure th...
2019-09-04 16:39:00 663
转载 SQL Server中COALESCE函数的用法
在SQL Server中COALESCE函数,会返回其参数中第一个不为NULL的参数,效果如下:SELECT COALESCE(NULL,NULL,N'A',NULL,NULL)结果:SELECT COALESCE(NULL,NULL,N'A',N'B',N'C',NULL)结果:使用COALESCE函数时要注意,其参数必须是相同的...
2019-09-02 10:56:00 193
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人