10 2019 档案

摘要:.netcore 2.1使用左表连接时报错,原因是对数据库中实体 DateTimeOffset date做查询判断时,将数据库中date转为string进行了判断,这样判断是错误的,并且效率低,应该是不改变数据库中字段类型,将查询条件字段更改为数据库字段类型 错误的写法: 正确的写法: 阅读全文
posted @ 2019-10-28 16:51 低调码农哥! 阅读(1472) 评论(0) 推荐(0) 编辑
摘要:使用.netcore2.1 做文件上传时,要求是小于20M,上传3至5M都没问题,大于10M,提示错误【如标题】,原来是nginx配置的原因 解决方法: 打开nginx反向代理服务器nginx.conf配置文件,修改client_max_body_size值,client_max_body_size 阅读全文
posted @ 2019-10-28 10:59 低调码农哥! 阅读(1919) 评论(0) 推荐(0) 编辑
摘要:var begin_daily = from a in _postgreDbContext.tab1 join b in _postgreDbContext.tab2 on a.id equals b.merchant_id into a_left from left_a in a_left.Def 阅读全文
posted @ 2019-10-24 15:15 低调码农哥! 阅读(558) 评论(0) 推荐(0) 编辑
摘要:在C#的数字运算过程中,有时候针对十进制decimal类型的计算需要保留2位有效小数,针对decimal变量保留2位有效小数有多种方法,可以使用Math.Round方法以及ToString先转换为字符串等操作来实现。 (1)方法一:使用C#中的数字计算类Math类中的方法Math.Round方法。 阅读全文
posted @ 2019-10-23 11:10 低调码农哥! 阅读(11263) 评论(0) 推荐(0) 编辑
摘要:使用let赋值给临时变量 阅读全文
posted @ 2019-10-21 17:23 低调码农哥! 阅读(529) 评论(0) 推荐(0) 编辑
摘要:添加NotMapped 特性 阅读全文
posted @ 2019-10-21 17:18 低调码农哥! 阅读(1569) 评论(0) 推荐(0) 编辑
摘要:账号提钱、存钱实例方法 测试方法 阅读全文
posted @ 2019-10-19 14:43 低调码农哥! 阅读(455) 评论(0) 推荐(0) 编辑
摘要:在项目视图中,找到-》输出 窗口,在窗口中选择ASP.NET Core Web服务器,调试项目即可看到执行的sql语句 阅读全文
posted @ 2019-10-14 13:03 低调码农哥! 阅读(1181) 评论(0) 推荐(0) 编辑
摘要:对数值保存两位小数,有时是整数时,不需要显示两位小数。例如值为:1.32 保留两位,结果是1.32,值为:2,结果有两种显示,2和2.00 阅读全文
posted @ 2019-10-11 18:16 低调码农哥! 阅读(4343) 评论(0) 推荐(0) 编辑
摘要://实体类 [Table("invoiceinfo", Schema = "obs")] public class invoice { [Key] public string invoice_num { get; set; } public string merchant_id { get; set; } public DateTimeOffset? verify_time { get; set; 阅读全文
posted @ 2019-10-10 16:34 低调码农哥! 阅读(2103) 评论(0) 推荐(0) 编辑
摘要:Parallel.ForEach相对于foreach是多线程,并行操作;foreach是单线程品德操作。 static void Main(string[] args) { Console.WriteLine("Hello World!"); List<UserInfo> lst = new Lis 阅读全文
posted @ 2019-10-09 11:42 低调码农哥! 阅读(5166) 评论(0) 推荐(0) 编辑
摘要:家里海康POE摄像头铜丝断了一根,拆开自己接了个RJ44座,线序黑、 棕、 绿、 橙、 红、 黄、 紫、 蓝 以此 对应橙白、橙、绿白、蓝、蓝白、绿、棕白、棕经测试无误,可以正常使用 阅读全文
posted @ 2019-10-02 13:48 低调码农哥! 阅读(47180) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示