摘要: 产生背景 某天用户反馈.我们系统有个数据查不出来. 我检查了代码 其中有一个判断. 如果 需要查询 才去查询 . 不需要查询就忽略了. 用户遇到的情况就是这个条件值查出来是 不需要查询(这个是后来才发现的) , 于是我就找到这个条件值产生的地方.它是一个存储过程 output回来的值 . 于是我就拿 阅读全文
posted @ 2022-04-15 14:45 望着天的蜗牛 阅读(349) 评论(0) 推荐(0)
摘要: 硬件 : 树莓派 4B 板 软件环境 : https://shumeipai.nxez.com/download#os 64位系统 下载包 :https://dotnet.microsoft.com/zh-cn/download 下载arm64的包( 如果安装的是32位的则下载 arm32的包 将下 阅读全文
posted @ 2022-04-04 12:22 望着天的蜗牛 阅读(641) 评论(0) 推荐(0)
摘要: 配置上都大同小异网上有很多.但发现有时候按网上的配置好确还是不行 添加跨域的策略(ConfigureServices)services.AddCors(options => options.AddPolicy("cors", p => p.AllowAnyOrigin().AllowAnyHeade 阅读全文
posted @ 2022-01-28 10:19 望着天的蜗牛 阅读(407) 评论(0) 推荐(0)
摘要: 在应用中有的时候响应的数据和实在的字段可能存在大小写等之类的差别 .这时候不想改实体类时我们可以通过特性标签来实现 如实体 class N { public int ID { get; set; } public string Name { get; set; } } 自带的(默认json序列化器) 阅读全文
posted @ 2022-01-21 10:40 望着天的蜗牛 阅读(1764) 评论(0) 推荐(0)
摘要: C#使用元组生成失败 System.ValueTuple ; expected } expected Identifier expected ; expected Invalid token ')' in class, struct, or interface member declaration Invalid token '(' in class, struct, or interface member declaration 阅读全文
posted @ 2021-12-16 11:28 望着天的蜗牛 阅读(880) 评论(0) 推荐(0)
摘要: 1. 创建加密和Sqlite 数据库(已存在的数据我按网上的教程试过.没成功) 1. 安装依赖 --这是连接驱动 Microsoft.Data.Sqlite.Core --这个是加密需要用到的 SQLitePCLRaw.bundle_e_sqlcipher 2. 创建有密码的数据库 var conn 阅读全文
posted @ 2021-08-19 13:50 望着天的蜗牛 阅读(2846) 评论(8) 推荐(4)
摘要: 1. 为IIS安装以下组件 短地址http://www.iis.net/extensions/URLRewrite 下载页面https://www.iis.net/downloads/microsoft/url-rewrite#additionalDownloads 下载链接https://down 阅读全文
posted @ 2021-06-15 17:42 望着天的蜗牛 阅读(198) 评论(0) 推荐(0)
摘要: 参考文献 : https://zhuanlan.zhihu.com/p/346329015 安装 npm install @ngx-translate/core --save npm install @ngx-translate/http-loader --save 创建服务 import { In 阅读全文
posted @ 2021-06-09 08:33 望着天的蜗牛 阅读(231) 评论(0) 推荐(0)
摘要: Angular 基础 1.安装angular的脚手架(安装 过的可以忽略 ) npm install -g @angular/cli 卸载安装最新的 : npm uninstall -g @angular/cli npm cache clean npm install -g @angular/cli 阅读全文
posted @ 2021-06-08 10:48 望着天的蜗牛 阅读(102) 评论(0) 推荐(0)
摘要: 在webform中使用 Content-Security-Policy 有些同学可能会遇到加了它之后 后台事件没办法触发的问题,对于该问题是因为设置时禁止了 行内脚本运行的原因。 这个时候只要在script的规则中添加上 'unsafe-inline' 即可 如 script-src 'unsafe 阅读全文
posted @ 2021-05-16 11:49 望着天的蜗牛 阅读(180) 评论(0) 推荐(0)