Create a static class to inject Dapper services. /// <summary> /// Inject Dapper /// </summary> public static class DapperService { /// <summary> /// Inject Dapper /// </summary> public static IServiceCollection AddDapperCon[......]继续阅读

2020年4月3日 0条评论 102点热度 6人点赞 痴者工良 阅读全文

新建一个静态类吗,注入 dapper 服务。 /// <summary> /// 注入dapper /// </summary> public static class DapperService { /// <summary> /// 注入dapper /// </summary> public static IServiceCollection AddDapperContext(this IServiceCollection service[......]继续阅读

2020年4月3日 0条评论 5107点热度 6人点赞 痴者工良 阅读全文

可以在容器中执行命令,查看到信息 /egrep '^1:.+(docker|lxc|kubepods)' /proc/1/cgroup 那么我们可以通过读取文件的方法,去分析是否在容器中运行。 代码如下 /// <summary> /// 是否在容器中运行 /// </summary> /// <returns></returns> private static async Task<bool> IsRunAtD[......]继续阅读

2020年4月1日 0条评论 3628点热度 0人点赞 痴者工良 阅读全文

可以在容器中执行命令,查看到信息 /egrep '^1:.+(docker|lxc|kubepods)' /proc/1/cgroup 那么我们可以通过读取文件的方法,去分析是否在容器中运行。 代码如下 /// <summary> /// 是否在容器中运行 /// </summary> /// <returns></returns> private static async Task<bool>[......]继续阅读

2020年4月1日 0条评论 3604点热度 0人点赞 痴者工良 阅读全文

SQLite does not actually delete data; instead, it moves the data to free pages. This can cause the database size to increase over time. The vacuum command copies the contents of the main database into a temporary database file, then clears the main database an…

2020年4月1日 0条评论 64点热度 4人点赞 痴者工良 阅读全文

SQLite 删除数据不会真正删除,而是移动到空闲页中。这样会导致体积越来越大。 vacuum 命令通过复制主数据库中的内容到一个临时数据库文件,然后清空主数据库,并从副本中重新载入原始的数据库文件。这消除了空闲页,把表中的数据排列为连续的,另外会清理数据库文件结构。 意思是,体积太大,就执行 vacuum 命令(SQL)命令,这样就可以清楚缓存,整理碎片。 https://www.runoob.com/sqlite/sqlite-vacuum.html [......] 继续阅读

2020年4月1日 0条评论 3822点热度 4人点赞 痴者工良 阅读全文

1. Knowledge Scope Basics of Java Language Operations and Statements Basics of Object-Oriented Programming Arrays and Strings Graphical User Interface (GUI) Graphics and Multimedia Multithreading Input and Output Streams Network and Database Programming Among …

2020年3月29日 0条评论 74点热度 0人点赞 痴者工良 阅读全文

1,知识范围 Java 语言基础 运算和语句 面向对象编程基础 数组和字符串 图像界面(GUI) 图形图像多媒体 多线程 输出输入流 网络和数据库编程 这些知识中,GUI、和图像、多线程、输出输入流、网络数据库,时间较紧的情况下,没那么多时间学习(不想学Java)。 一张试卷 100 分,60 及格,75 良好。 那么,要求达到 75 分,需要在合理时间内大概学习浏览一下 Java 的知识。 2,考试题型和分值 题序 题型 总分值 单题分值 题数 一 选择 10 1 10 二 填空 20 2 10 三 简答题 20…

2020年3月29日 0条评论 3058点热度 0人点赞 痴者工良 阅读全文

The previous article mainly focused on basic syntax, while this one focuses on GUI-related topics. GUI is very old, and I wouldn't learn it if it weren't for exams. 1. What models are used to detect and respond to events in the java.awt.event package? Answer: …

2020年3月28日 0条评论 3202点热度 0人点赞 痴者工良 阅读全文

上一篇主要是基础语法,这一篇主要是 GUI 方面的题目。 GUI 非常老啦,如果不是为了考试,才不学这个。 1,在 java.awt.event 包中用来检测并对事件做出反应的模型有哪些? 答:源对象(Source)、监视器对象(Eventlistener)、事件对象(EventObject) 监视器对象 -> 注册监视某动作 -> 源对象动作触发事件 -> 产生信息(事件对象) -> 传递 模型中不包含事件方法。 2,Java 中, JPanel 是一种通用容器,它的默认布局为 FlowL…

2020年3月28日 0条评论 3202点热度 0人点赞 痴者工良 阅读全文

The author is proficient in C#, and is learning JAVA solely for an exam in April. How to learn the basic syntax of JAVA and pass the exam in the shortest time possible? To cope with the exam, the sections on conditions and loops are similar in C, C++, C#, and …

2020年3月28日 0条评论 108点热度 0人点赞 痴者工良 阅读全文

笔者擅长 C# 语言,4月份要考试,学习 JAVA 是为了考试罢了。 如何在最短时间内学习 JAVA 基础语法和通过考试考核呢~ 学习 JAVA ,要为了应付考试,判断、循环这部分,C、C++、C#、JAVA 都是一样的,不需要重复学习。 基础语法上,C++ 跟 C# 接近,例如命名空间(namespace)、继承(:)。 高级语法 JAVA 跟 C# 接近,很多 API 甚至名字都一样。 笔者在学习和完成试卷练习时,将具有代表性的 JAVA 题目抽取出来,集中复习和了解习题的套类,这样最短时间能够通过考试,并且拿…

2020年3月28日 0条评论 2942点热度 0人点赞 痴者工良 阅读全文

刚学 C++ 时(为了考试),里面有很多关于内存,流的函数或类,记起来比较伤脑。C++ 中,命名空间,类,函数和字段的层次关系比较散,有时很难记全某些功能的函数如果使用。 这里介绍的是 C++ 中的流。 此图来自中国农业大学阚道宏的 C++课程。老师的课程地址:https://www.icourse163.org/u/828041496?userId=9557378&trace_c_p_k2=65c0410da50e4f8196ed498a433292ee C++ 中,流 分为 标准流,文件流,字符流。 i…

2020年3月28日 0条评论 70点热度 0人点赞 痴者工良 阅读全文

刚学 C++ 时(为了考试),里面有很多关于内存,流的函数或类,记起来比较伤脑。C++ 中,命名空间,类,函数和字段的层次关系比较散,有时很难记全某些功能的函数如果使用。 这里介绍的是 C++ 中的流。 此图来自中国农业大学阚道宏的 C++课程。老师的课程地址:https://www.icourse163.org/u/828041496?userId=9557378&_trace_c_p_k2_=65c0410da50e4f8196ed498a433292ee C++ 中,流 分为 标准流,文件流,字符流…

2020年3月28日 0条评论 3117点热度 0人点赞 痴者工良 阅读全文

A tool for converting databases, supporting mutual conversion among dozens of databases. The conversion speed is quite good. Unfortunately, it does not support remote databases and can only use local databases. The cracked version download link is https://www.…

2020年3月27日 0条评论 100点热度 0人点赞 痴者工良 阅读全文

用于转换数据库的工具,支持几十种数据库互相转换。 转换速度不错。 可惜不支持远程数据库,只能使用本地数据库。 破解版下载地址 https://www.cncrk.com/downinfo/40576.html 原版要 $322 偶~ 支持繁体中文、英文。 支持多种转换规则,可以使用正则表达式转换字符,支持表名小写大写。 包括主键这些都给我弄上去了,舒服。 设置额不转换大小写,倒是表名还是变成小写了,字段没有变化。 [......] 继续阅读

2020年3月27日 0条评论 5192点热度 0人点赞 痴者工良 阅读全文

C/C++、C#、JAVA(三):字符串操作 Table of Contents C/C++、C#、JAVA(三):字符串操作 Defining Strings Catching Input and Output Value Comparison String Operations String Search String Extraction, Insertion, Deletion, Replacement Defining Strings C In C, there is no string object; …

2020年3月23日 0条评论 108点热度 2人点赞 痴者工良 阅读全文

C/C++、C#、JAVA(三):字符串操作 目录 C/C++、C#、JAVA(三):字符串操作 定义字符串 捕捉输入和输出 等值比较 字符串操作 字符串搜索 字符串提取、插入、删除、替换 定义字符串 C 语言中,没有字符串对象,是使用 char [] 来存储字符串。 char a[] = "abcdef"; char c[6] = {'a', 'b', 'c', 'd', 'e', '\0'}; char* b = a; C 语言中,字符串应当以 \0 结尾。 定义数组时,必须多一位,用来存储 \0 。 C++ …

2020年3月23日 0条评论 2990点热度 2人点赞 痴者工良 阅读全文

Learn C, C++, and Java programming languages. Pass the exams; "Introduction to .NET Core Internals" Use of unit testing frameworks and the moq framework. [......] 继续阅读

2020年3月23日 0条评论 76点热度 0人点赞 痴者工良 阅读全文

学会 C、C++、Java 三种语言 通过考试; 《.NET Core 底层入门》 单元测试框架和 moq 框架的使用 [......] 继续阅读

2020年3月23日 0条评论 3078点热度 0人点赞 痴者工良 阅读全文
1333435363754