会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
流年sugar
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
15
16
17
18
19
20
21
22
23
···
35
下一页
2022年5月23日
tried accessing the SQLite plugin but Cordova is not available
摘要: 使用SQLite 创建表报错如下: 警告提示:tried accessing the SQLite plugin but Cordova is not available 场景:在浏览器模拟测试 原因:SQLite 只能在真机上使用,不能再浏览器上使用
阅读全文
posted @ 2022-05-23 09:53 流年sugar
阅读(56)
评论(0)
推荐(0)
2022年5月20日
HTTP Error 500.30 - ASP.NET Core app failed to start
摘要: 场景: 程序运行正常,但发布ABP程序到本地iis部署,运行异常 异常: 查看日志,异常如下: 原因: 数据库连接字符串异常 解决: 未发布前的连接字符串 发布后需要改成如下(必须添加账号密码)
阅读全文
posted @ 2022-05-20 14:42 流年sugar
阅读(1586)
评论(0)
推荐(0)
2022年5月19日
Angular + ABP前后端分离 登录验证码
摘要: 1.后端 生成验证码 1 /// <summary> 2 /// 自定义长度验证码(字母+数字) 3 /// </summary> 4 /// <param name="length">验证码长度</param> 5 /// <returns></returns> 6 private Verific
阅读全文
posted @ 2022-05-19 17:47 流年sugar
阅读(533)
评论(0)
推荐(0)
Angular安装旧项目的依赖包,运行项目出现异常NullInjectorError: No provider for NzModalService!(环境已升级)
摘要: 在环境都升级的情况下 方式一:删除依赖包node_modules和带有lock标识的yarn和package的文件(如yarn.lock,package-lock.json) 重新安装依赖包 若方式一失败使用方式二 方式二: 删除路径node_modules\@delon\theme下的node_m
阅读全文
posted @ 2022-05-19 14:08 流年sugar
阅读(788)
评论(0)
推荐(0)
2022年5月18日
C# xml格式公钥转pem格式公钥
摘要: 转换 1 public static string XmlPublicKeyToPem(string xmlPublicKey) 2 { 3 RSAParameters rsaParam; 4 using (RSACryptoServiceProvider rsa = new RSACryptoSe
阅读全文
posted @ 2022-05-18 19:12 流年sugar
阅读(549)
评论(0)
推荐(0)
c# RSA加密
摘要: 获取密钥并存储至密钥容器 1 /// <summary> 2 /// 生成密钥 3 /// </summary> 4 public static RSAKey GenerateRSAKey() 5 { 6 RSAKey RSAKEY = new RSAKey(); 7 //密钥存储容器 8 CspP
阅读全文
posted @ 2022-05-18 12:01 流年sugar
阅读(6086)
评论(0)
推荐(0)
2022年5月17日
EF读取多个结果集
摘要: 1 using (var command = CreateCommand(sql, CommandType.Text, parameters)) 2 { 3 using (var reader = await command.ExecuteReaderAsync()) 4 { 5 var list
阅读全文
posted @ 2022-05-17 11:22 流年sugar
阅读(103)
评论(0)
推荐(0)
mysql 获取分页数据并获取总条数
摘要: 1 select SQL_CALC_FOUND_ROWS * from table1 LIMIT 0,10; 2 select FOUND_ROWS() as total; 注:以上两条语句同时选中执行 结果: 结果1为 分页的前10条数据,结果2位分页的总条数(此种方式只会在数据库中执行一次)
阅读全文
posted @ 2022-05-17 10:40 流年sugar
阅读(1245)
评论(0)
推荐(0)
2022年5月11日
循环并行执行
摘要: 1 ConcurrentBag<PackageCheckDataDownLoadDto> pList = new ConcurrentBag<PackageCheckDataDownLoadDto>();//保证线程安全 2 Parallel.ForEach(list, new ParallelOp
阅读全文
posted @ 2022-05-11 20:09 流年sugar
阅读(32)
评论(0)
推荐(0)
c# 计算语句执行时间
摘要: Stopwatch sw = new Stopwatch(); sw.Start(); //需要计算执行时间代码 sw.Stop(); TimeSpan ts2 = sw.Elapsed; Console.WriteLine("Stopwatch总共花费{0}ms.", ts2.TotalMilli
阅读全文
posted @ 2022-05-11 20:06 流年sugar
阅读(89)
评论(0)
推荐(0)
上一页
1
···
15
16
17
18
19
20
21
22
23
···
35
下一页
公告