百度了很久,网上全是抄抄抄,特别是 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…

2019年12月20日 1条评论 17056点热度 24人点赞 痴者工良 阅读全文

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…

2019年12月18日 0条评论 1336点热度 1人点赞 痴者工良 阅读全文

使用方法: 直接新建查询,将代码粘贴到里面即可。 可以根据需求简化查询 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 '逻辑写入次数',[.…

2019年12月18日 0条评论 4019点热度 1人点赞 痴者工良 阅读全文

C# Core Technical Guide [......] 继续阅读

2019年12月16日 1条评论 4320点热度 0人点赞 痴者工良 阅读全文

来自C#核心技术指南 14.2.6 [......] 继续阅读

2019年12月16日 1条评论 4509点热度 0人点赞 痴者工良 阅读全文

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.…

2019年12月15日 0条评论 1382点热度 0人点赞 痴者工良 阅读全文

探究 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 = …

2019年12月15日 0条评论 3704点热度 0人点赞 痴者工良 阅读全文

.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; …

2019年12月15日 1条评论 1668点热度 4人点赞 痴者工良 阅读全文

.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 {[......]继续阅读

2019年12月15日 1条评论 5591点热度 4人点赞 痴者工良 阅读全文

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…

2019年12月15日 2条评论 4874点热度 0人点赞 痴者工良 阅读全文

Deepin 下 使用 Rider 开发 .NET Core [TOC] 国产的 Deepin 不错,安利一下。 Deepin 用了也有一两年,也只是玩玩,没用在开发上面。后来 Win10 不太清真了,就想着能不能到 Deepin下撸码。要搞开发,首先少不了 IDE,VS2019 用不来,Vs Code 太复杂、麻烦,后来发现了 Rider 这个神器,可是 Rider 是英文界面,笔者的英文是渣渣的。结果在 Windows 下 使用 Rider 开发一段时间后, 已经熟悉了 Rider ,于是计划后面迁移到 Dee…

2019年12月15日 2条评论 5088点热度 0人点赞 痴者工良 阅读全文

Support for .NET Core on Loongson and Thoughts on Developing Embedded Systems with .NET Core [TOC] 1. Regrettable Attempt Not long ago, I came across a public post by Zhang on WeChat titled “Asp.Net Finally Runs on Loongson Servers: Jexus Successfully Adapts t…

2019年12月15日 16条评论 1316点热度 1人点赞 痴者工良 阅读全文

.NET Core 对龙芯的支持情况和对 .NET Core 开发嵌入式的思考 [TOC] 一,遗憾的尝试 前些天看到了张队公众推送的《Asp.Net终于可以在龙芯服务器上运行啦:Jexus成功完成对国产系列CPU的适配》,联想到上一周与朋友在龙芯捣鼓 .NET Core,就想写一下关于 .NET Core 在龙芯下的资料。 Jexus Web Server 能够在龙芯服务器上跑,但是 ASP.NET 呢?.NET Core 呢?安装什么版本的 Mono ?Jexus 作者的文章表达有点模糊呀~ 上一周与朋友在龙芯…

2019年12月15日 16条评论 32049点热度 1人点赞 痴者工良 阅读全文

[TOC] Description ASP.NET Core 3.0 is a lightweight JWT role/user authentication library controlled by a single API. Recently, I had some spare time to redo a role authorization library. The previous library I developed relied on Microsoft's default interfaces…

2019年12月15日 0条评论 5632点热度 0人点赞 痴者工良 阅读全文

[TOC] 说明 ASP.NET Core 3.0 一个 jwt 的轻量角色/用户、单个API控制的授权认证库 最近得空,重新做一个角色授权库,而之前做了一个角色授权库,是利用微软的默认接口做的,查阅了很多文档,因为理解不够,所以最终做出了有问题。 之前的旧版本 https://github.com/whuanle/CZGL.Auth/tree/1.0.0 如果要使用微软的默认接口,我个人认为过于繁杂,而且对于这部分的资料较少。。。 使用默认接口实现授权认证,可以参考我另一篇文章 ASP.NET Core 使用 J…

2019年12月15日 0条评论 3824点热度 0人点赞 痴者工良 阅读全文

C# Xamarin Data Binding Basics [TOC] About Data Binding Xamarin One-way and Two-way Binding Xaml Binding C# Code Binding Before diving deeper, here are some pseudocode snippets to help beginners like myself get started... Suppose we have two controls: a Slider…

2019年12月15日 0条评论 1282点热度 0人点赞 痴者工良 阅读全文

目录 关于数据绑定 视图-视图绑定 绑定模式 简单的集合绑定 C# Xamarin 数据绑定入门基础 关于数据绑定 Xamarin 单向、双向绑定 Xaml绑定 C#代码绑定 在此之前,几段 伪代码 帮助像我一样菜的同学入门。。。 假如说,有两个控件,一个是滑动条(Slider),一个是显示文本的标签(Label)。 Slider slider = new Slider() { Maximum = 1,[......]继续阅读

2019年12月15日 0条评论 3988点热度 0人点赞 痴者工良 阅读全文

C# HttpClient Request Authentication and Data Transmission Notes [TOC] I. Authorization Authentication When a client requests a server, authorization authentication is required to obtain server resources. Currently, common authentication methods include Basic,…

2019年12月15日 0条评论 1564点热度 0人点赞 痴者工良 阅读全文

目录 一,授权认证 二,请求类型 三,数据传输 C# HttpClient 请求认证、数据传输笔记 一,授权认证 客户端请求服务器时,需要通过授权认证许可,方能获取服务器资源,目前比较常见的认证方式有 Basic 、JWT、Cookie。 HttpClient 是 C# 中的 HTTP/HTTPS 客户端,用于发送 HTTP 请求和接收来自通过 URI 确认的资源的 HTTP 响应。下面以具体代码做示范。 1. 基础认证示例 // Basic基础认证 public async Task Basi[......]继续…

2019年12月15日 0条评论 8129点热度 0人点赞 痴者工良 阅读全文

Expression Tree Practical Exercises: C# Value Types, Reference Types, Generics, Collections, Function Calls [TOC] 1. Defining Variables In C# expression trees, to define a variable, use ParameterExpression. There are two ways to create variable nodes: Expressi…

2019年12月15日 1条评论 10280点热度 0人点赞 痴者工良 阅读全文
1394041424354