会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
望着天的蜗牛
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2022年4月15日
C# 访问sqlserver Sqlparameter传参时程序里的执行结果和数据库直接结果不一致 记录
摘要: 产生背景 某天用户反馈.我们系统有个数据查不出来. 我检查了代码 其中有一个判断. 如果 需要查询 才去查询 . 不需要查询就忽略了. 用户遇到的情况就是这个条件值查出来是 不需要查询(这个是后来才发现的) , 于是我就找到这个条件值产生的地方.它是一个存储过程 output回来的值 . 于是我就拿
阅读全文
posted @ 2022-04-15 14:45 望着天的蜗牛
阅读(349)
评论(0)
推荐(0)
2022年4月4日
树莓派(64位系统) 使用.net core
摘要: 硬件 : 树莓派 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)
2022年1月28日
.net core跨域配置
摘要: 配置上都大同小异网上有很多.但发现有时候按网上的配置好确还是不行 添加跨域的策略(ConfigureServices)services.AddCors(options => options.AddPolicy("cors", p => p.AllowAnyOrigin().AllowAnyHeade
阅读全文
posted @ 2022-01-28 10:19 望着天的蜗牛
阅读(407)
评论(0)
推荐(0)
2022年1月21日
C#/.net Json序列化时指定字段的json属性名
摘要: 在应用中有的时候响应的数据和实在的字段可能存在大小写等之类的差别 .这时候不想改实体类时我们可以通过特性标签来实现 如实体 class N { public int ID { get; set; } public string Name { get; set; } } 自带的(默认json序列化器)
阅读全文
posted @ 2022-01-21 10:40 望着天的蜗牛
阅读(1764)
评论(0)
推荐(0)
2021年12月16日
System.ValueTuple C#使用元组错误
摘要: 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)
2021年8月19日
EFCore 使用Sqlite(带加密)
摘要: 1. 创建加密和Sqlite 数据库(已存在的数据我按网上的教程试过.没成功) 1. 安装依赖 --这是连接驱动 Microsoft.Data.Sqlite.Core --这个是加密需要用到的 SQLitePCLRaw.bundle_e_sqlcipher 2. 创建有密码的数据库 var conn
阅读全文
posted @ 2021-08-19 13:50 望着天的蜗牛
阅读(2846)
评论(8)
推荐(4)
2021年6月15日
angular发布到iis
摘要: 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)
2021年6月9日
Angular 多语言
摘要: 参考文献 : 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)
2021年6月8日
Angular 基础记录
摘要: 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)
2021年5月16日
Content-Security-Policy 在aspx中的使用注意
摘要: 在webform中使用 Content-Security-Policy 有些同学可能会遇到加了它之后 后台事件没办法触发的问题,对于该问题是因为设置时禁止了 行内脚本运行的原因。 这个时候只要在script的规则中添加上 'unsafe-inline' 即可 如 script-src 'unsafe
阅读全文
posted @ 2021-05-16 11:49 望着天的蜗牛
阅读(180)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告