上一页 1 2 3 4 5 6 7 8 9 ··· 22 下一页
摘要: 有个项目,ctrl+k ctrl+k创建书签后,保存所有,然后关闭vs,再次用vs打开项目,之前创建的书签丢失了,并且关闭前打开的文件也没有恢复,每次打开就是固定的几个打开的文件,而不是保持在关闭前vs里打开的文件,解决办法:找到项目根目录删除 .vs隐藏文件夹即可. https://develop 阅读全文
posted @ 2023-09-19 14:04 Ace001 阅读(278) 评论(0) 推荐(0)
摘要: 直接使用 var result = list1.Where(str1 => list2.Contains(str))是不行的,这个要求两个list的string值必须有相等的才行 例如list1中有apple,那么list2中必须有apple才能匹配,而list2中只有app所以匹配不了 解决办法: 阅读全文
posted @ 2023-07-25 13:17 Ace001 阅读(289) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2023-07-18 10:34 Ace001 阅读(1) 评论(0) 推荐(0)
摘要: ef/efcore: 以datatype字段分组后按count倒序: var list=db.table1.GroupBy(x => x.DataType).Select(group=>new { group.Key,Count=group.Count()}).OrderByDescending(x 阅读全文
posted @ 2023-05-30 15:52 Ace001 阅读(626) 评论(0) 推荐(0)
摘要: AutoMapper的集合转换用起来有点别扭,原因如下图 简单封装一下,使使用体验一致:(相同属性才拷贝) public class Mapper { public static D Map<S, D>(S src, List<string> ignoreProperties = null) whe 阅读全文
posted @ 2023-05-25 15:57 Ace001 阅读(96) 评论(0) 推荐(0)
摘要: services.AddDbContextPool<DbContext1>(optionsBuilder => optionsBuilder.UseDm(Configuration.GetConnectionString("DB")),500 ); 转自:https://www.cnblogs.co 阅读全文
posted @ 2023-05-15 11:06 Ace001 阅读(68) 评论(0) 推荐(0)
摘要: 命令行模板 dotnet publish -r <运行时> -c Release -f <框架版本,单框架时可不指定> --self-contained -p:PublishSingleFile=<单文件 true/false> -p:PublishTrimmed=<裁剪 true/false> ( 阅读全文
posted @ 2023-05-11 09:45 Ace001 阅读(552) 评论(0) 推荐(1)
摘要: 1.nuget安装对应包 2.winform里使用 2.1配置连接字符串 <appSettings><add key="db" value="Server=ip:5236;Database=Db1;User Id=root;Password=xxx" /></appSettings> 2.2使用 s 阅读全文
posted @ 2022-10-06 19:47 Ace001 阅读(930) 评论(0) 推荐(0)
摘要: services.Configure<Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions>(options => {//414 uri too long options.Limits.MaxRequestLineSize = i 阅读全文
posted @ 2022-01-17 14:06 Ace001 阅读(724) 评论(1) 推荐(1)
摘要: 查看输出窗口提示: 正在从 origin 提取正在推送 masterWarning: Pulling without specifying how to reconcile divergent branches isdiscouraged. You can squelch this message 阅读全文
posted @ 2022-01-10 10:58 Ace001 阅读(5380) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 22 下一页