2024年05月14日
打开 nuget管理器 搜索 PinYinConverterCore 安装public static class Helper{public static string ToPinYin(this string val, bool first = false) { return
阅读全文
2024年05月09日
--查询某个表自增列的最大标识值,语法如下SELECT IDENT_CURRENT('TableName');--查询某个表自增类的标识值增量,语法如下:SELECT IDENT_INCR('TableName');--查询某个表自增列的下个标识值,语法如下:SELECT IDENT_CURRENT
阅读全文
2024年04月30日
using Mapster;/// <summary>/// 对象映射/// </summary>public static class MapperExtension{ /// <summary> /// 对象属性映射 /// </sum
阅读全文
2024年04月23日
更好的选择是从config中读取扩展名/ mime类型对,并将其注入到Config方法中,这样可以从配置中管理扩展名:appsettings.json"StaticFilesConfig": { "AllowedExtensions": { &
阅读全文
2024年04月18日
关键代码其实就两行: 1、将光标定位到最下面一行的最开头(之前的内容可使用 WriteLine 输出,这样光标定位的是换行后的开头); 2、使用 Console.Write() 打印内容!Console.SetCursorPosition(0, Console.CursorTop);Consol
阅读全文
2024年04月11日
[HttpGet] [ProducesResponseType(typeof(FileResult), 200)] public IActionResult downloadfile() { var FilePath = FHostingEnvironment.WebRo
阅读全文
2024年04月03日
https://jessibuca.com/
阅读全文
2024年03月21日
vue3 和 ts{"Print to console": {"prefix": "tsvue3","body": ["<template>","","<
阅读全文
2024年03月15日
更新Vue的版本npm add vue@latest更新Vue CLI的版本npm add -g @vue/cli@latest检查依赖npm outdated
阅读全文
2024年03月08日
数据库表CREATE TABLE [dbo].[Sys_Backup]([ID] [int] IDENTITY(1,1) NOT NULL,[Name] [nvarchar](500) NULL,[Version] [nvarchar](500) NULL,[BackupFileName] [nva
阅读全文