摘要: 定义 //定义动物接口 public interface IAnimal { /// <summary> /// 动物名称 /// </summary> public string _Name { get; set; } /// <summary> /// 动物行动 /// </summary> v 阅读全文
posted @ 2024-04-01 15:06 DaiWK 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 定义 public abstract class Yabo { public abstract void print(); } public class WuhanYabo : Yabo { public WuhanYabo() { Console.WriteLine("我是武汉鸭脖"); } pu 阅读全文
posted @ 2024-04-01 15:04 DaiWK 阅读(11) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 懒汉式 /// </summary> public class SingletonObjectLH { private SingletonObjectLH() { } private static readonly object lock_obj=new obje 阅读全文
posted @ 2024-04-01 15:03 DaiWK 阅读(1) 评论(0) 推荐(0) 编辑
摘要: version: "3.0" services: redis6379: image: redis:latest container_name: redis6379 ports: - "6379:6379" #挂载配置文件 volumes: - ./redis.conf:/etc/redis/redi 阅读全文
posted @ 2022-04-29 15:34 DaiWK 阅读(31) 评论(0) 推荐(0) 编辑
摘要: mysql8.0以前修改密码 update user set password=password('123456') where user='root'; flush privileges; mysql8.0后修改密码 update user set authentication_string='' 阅读全文
posted @ 2022-04-29 15:33 DaiWK 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 一、接口定义 public interface ITestSerivceSingleton { public string GetServiceNameBase() { return "ITestSerivceSingleton"; } public string GetServiceName(); 阅读全文
posted @ 2022-03-29 15:02 DaiWK 阅读(408) 评论(0) 推荐(0) 编辑
摘要: 一、mysql事务四大特性 1、原子性 原子性是指事务包含的所有操作要么全部成功,要么全部失败回滚,因此事务的操作如果成功就必须要完成应用到数据库,如果操作失败则不能对数据库有任何影响。 2、一致性 一致性是指事务必须使数据库从一个支持性状态变换到另一个一致性状态,也就是说一个事务执行之前和执行之后 阅读全文
posted @ 2022-03-03 13:29 DaiWK 阅读(1575) 评论(3) 推荐(2) 编辑
摘要: Docker简介 Docker技术的三大核心概念,分别是: l 镜像(Image) l 容器(Container) l 仓库(Repostitory) 负责对Docker镜像进行管理的,是Docker Registry服务(类似仓库管理员) 不是任何人建的任何镜像都是合法的,万一有人盖了一个有问题的 阅读全文
posted @ 2021-12-30 11:56 DaiWK 阅读(43) 评论(0) 推荐(0) 编辑
摘要: NLog帮助类 1 public enum LogType 2 { 3 [Description("网站")] 4 Web, 5 [Description("数据库")] 6 DataBase, 7 [Description("Api接口")] 8 ApiRequest, 9 [Descriptio 阅读全文
posted @ 2021-01-25 16:42 DaiWK 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 数据库安装 Step1 先删除data文件 Step2 再根据ini配置文件初始化 mysqld --initialize-insecure --user=mysql Step3 安装mysql服务 mysqld --install MySQL Step4 启动MySQL服务 net start m 阅读全文
posted @ 2020-12-21 14:49 DaiWK 阅读(103) 评论(0) 推荐(0) 编辑