new Date(+new Date($("#hidTargetDueDate").val())+8*3600*1000).toISOString()
"2020-03-30T00:00:00.000Z"
.replace(new RegExp('/','gm'),'-') 相当于replaceAll()
js中并没有 replaceAll方法
new Intl.DateTimeFormat("zh-CN").format(new Date($("#hidTargetDueDate").val()))
输出 :2020/3/30
sql server 的判断语句
-
SELECT CAST(
-
CASE
-
WHEN Obsolete = 'N' or InStock = 'Y'
-
THEN 1
-
ELSE 0
-
END AS bit) as Saleable, *
-
FROM Product
SELECT IIF(Obsolete = 'N' or InStock = 'Y', 1, 0) as Saleable, * FROM Product
add-migration migrationName | ||
移除迁移(删除最近的一次迁移) | dotnet ef migrations remove | remove-migration |
应用所有的迁移(使迁移文件应用到数据库) | dotnet ef database update | update-database |
指定版本进行迁移 | dotnet ef database update migrationName | update-database migrationName |
生成对应版本的脚本 | dotnet ef migrations script | Script-Migration |
查看迁移列表 | dotnet ef migrations list | |
查看数据库上下文信息 | dotnet ef dbcontext info |