Through reflection, after obtaining the property names and attributes, the next step is to retrieve the values of the properties. static void Main(string[] args) { Test test = new Test() { A = 13510377651, B = 1,[......]继续阅读
Through reflection, after obtaining the property names and attributes, the next step is to retrieve the values of the properties. static void Main(string[] args) { Test test = new Test() { A = 13510377651, B = 1,[......]继续阅读
通过反射获取到属性名称以及特性后,要获取属性的值。 static void Main(string[] args) { Test test = new Test() { A = 13510377651, B = 1, C = 13510399648 }; Type type = test.GetType(); // 获取类的属性列表[......]继续阅读
Study Plan for the Week of 23-19: Finish and master Chapter 19 "Reflection and Metadata" of "C# 7.0 Core Technology Guide". Complete the corresponding reflection section of "C# 7.0 Essentials". Read "PostgreSQL 9.6 Starting f…
23-19日,周学习计划: 1,看完、学会 《C# 7.0 核心技术指南》 第19章《反射和元数据》。 2,看完 《C# 7.0 本质论》 相应 反射部分得内容。 3,早晚上坐车,一周内看完 《PostgreSQL 9.6 从零开始学》,带上平板,随时查资料。 4,周六日实践 PostgreSQL、C# 反射。 计划细谈 学习反射内容并且进行相关实践后,下一步学习 Ioc ,自己实现 Ioc,了解 ASP.NET Core 中的反射和路由区配。 看完 PostgreSQL 后,先不用着急,网上查找资料,进行为期一周…
There's nothing much to say; just executing the command below can solve the issue: apt-get -u dist-upgrade 统一更新到发布的版本 [......] 继续阅读
没啥好说,执行下面的命令就可以解决了 apt-get -u dist-upgrade 统一更新到发布的版本 [......] 继续阅读
Recently, while installing software, I accidentally removed Ubuntu's apt, apt-get, etc., and at that moment, I felt like I was in deep trouble. It prompted me to enter some text to confirm... I thought it was to confirm the installation, until I saw a bunch of…
最近在安装软件时,不小心把 Ubuntu 的 apt、apt-get等移除了,当时心情是日了狗了。 当时提示输入一些文字确认。。。我以为是确认安装,直到看到一堆的 Removing ... (Reading database ... 149416 files and directories currently installed.) Removing unattended-upgrades (1.1ubuntu1.18.04.8) ... Removing apt-utils (1.8.4) ... Removin…
百度了很久,网上全是抄抄抄,特别是 CSDN,要么卡,要么404,根本用不了。 将下面的源替换到 /etc/apt/source/list 即可 deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic universe deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-updates universe deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic multi…
百度了很久,网上全是抄抄抄,特别是 CSDN ,要么卡,要么404,根本用不了。 将下面的源替换到 /etc/apt/source/list 即可 deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic universe deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-updates universe deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic mult…
Method of use: Simply create a new query and paste the code inside. You can simplify the query as needed. SELECT TOP 1000 ST.text AS 'Executed SQL Statement', QS.execution_count AS 'Execution Count', QS.total_elapsed_time AS 'Elapsed Time', QS.total_logical_re…
使用方法: 直接新建查询,将代码粘贴到里面即可。 可以根据需求简化查询 SELECT TOP 1000 ST.text AS '执行的SQL语句', QS.execution_count AS '执行次数', QS.total_elapsed_time AS '耗时', QS.total_logical_reads AS '逻辑读取次数', QS.total_logical_writes AS '逻辑写入次数',[.…
C# Core Technical Guide [......] 继续阅读
Exploring char and string in C# [TOC] 1. System.Char Character char is an alias for System.Char. System.Char occupies two bytes, which is 16 binary bits. System.Char is used to represent and store a single Unicode character. The representation range of System.…
探究 C# 中的 char 、 string(一) [TOC] 1. System.Char 字符 char 是 System.Char 的别名。 System.Char 占两个字节,16个二进制位。 System.Char 用来表示、存储一个 Unicode 字符。 System.Char 的表示范围是 U+0000 到U+FFFF,char 默认值是 \0,即 U+0000。 Unicode 的表示,通常以 U+____形式表示,即 U 和 一组16进制的数字组成。 char 有四种赋值方法 char a = …
.NET Core Method for Obtaining Database Context Instance and Configuring Connection Strings [TOC] Assuming the database has two tables: User and Blogs, The model classes are as follows: public class User { public int Id { get; set; } public string Name { get; …
.NET Core 获取数据库上下文实例的方法和配置连接字符串 [TOC] 假设数据库就两个表:User、Blogs, 模型类如下 public class User { public int Id { get; set; } public string Name { get; set; } public string Number { get; set; } public string Email { get; set; } } public class Blogs {[......]继续阅读
Developing .NET Core on Deepin using Rider [TOC] The domestic Deepin is quite good; I’d recommend it. I've used Deepin for a year or two just for casual use, not for development. Later, I found Windows 10 not very satisfying, so I thought about coding on Deepi…
Deepin 下 使用 Rider 开发 .NET Core [TOC] 国产的 Deepin 不错,安利一下。 Deepin 用了也有一两年,也只是玩玩,没用在开发上面。后来 Win10 不太清真了,就想着能不能到 Deepin下撸码。要搞开发,首先少不了 IDE,VS2019 用不来,Vs Code 太复杂、麻烦,后来发现了 Rider 这个神器,可是 Rider 是英文界面,笔者的英文是渣渣的。结果在 Windows 下 使用 Rider 开发一段时间后, 已经熟悉了 Rider ,于是计划后面迁移到 Dee…