摘要: #服务端 ##拉取registry镜像 docker pull registry ##启动registry容器 docker run -d -p 5000:5000 \ --restart always \ --name registry \ -e "REGISTRY_AUTH=htpasswd" 阅读全文
posted @ 2020-12-22 13:45 自笑非 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 左列是Excel生成的日期,右列是代码写入的日期,Excel中将1900年错当作闰年处理。 阅读全文
posted @ 2020-11-05 10:13 自笑非 阅读(125) 评论(0) 推荐(0) 编辑
摘要: #Java ##code: public class Outer{ private int outerNum = 1; public int getOuterNum() { return outerNum; } public class Inner{ //错误,非静态内部类不能有静态成员 //sta 阅读全文
posted @ 2020-10-28 13:44 自笑非 阅读(85) 评论(0) 推荐(0) 编辑
摘要: Java C# public public × protected(所有子类) protected internal protected × private protected(同程序集内的子类) default internal private private(default) 阅读全文
posted @ 2020-10-28 10:27 自笑非 阅读(70) 评论(0) 推荐(0) 编辑
摘要: public static async Task Main(string[] args) { new Child(); Console.ReadKey(); await Task.CompletedTask; } public static class Helper { public static 阅读全文
posted @ 2020-09-15 10:00 自笑非 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 1 dynamic dynamicObject = new System.Dynamic.ExpandoObject(); 2 dynamicObject.Id = Guid.NewGuid(); 3 (dynamicObject as ICollection<KeyValuePair<string, object>>).Add(new KeyValuePair<string, object>(" 阅读全文
posted @ 2019-10-08 20:10 自笑非 阅读(1102) 评论(0) 推荐(0) 编辑
摘要: 若要使用 OFFSET 和 FETCH 在查询请求之间获得稳定的结果,必须满足以下条件: 查询使用的基础数据不能发生变化。 即,不会更新查询处理的行,也不会在单个事务中使用快照或可序列化事务隔离执行查询中的所有页面请求。 ORDER BY 子句包含保证是唯一的列或列组合。 特别注意,使用offset 阅读全文
posted @ 2019-09-24 10:05 自笑非 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Concurrent; 3 using System.Collections.Generic; 4 using System.Linq; 5 using System.Threading; 6 using System.Threading.Tasks; 7 8 namespace Try 9 { 10 publi 阅读全文
posted @ 2019-09-17 09:25 自笑非 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 之前写的触发器里取影响数据是这样的: select @Id=Id from inserted 网上的大多数触发器都是这样写的,让我以为触发器是影响的每行数据都会触发。 直到…… 然后去查官方文档,如下 原来如此 ,流下了不学无术的泪水…… 阅读全文
posted @ 2019-09-12 09:20 自笑非 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 引用: 自定义转化器: 调用: 效果: 阅读全文
posted @ 2019-09-11 08:58 自笑非 阅读(1308) 评论(0) 推荐(0) 编辑