Expression Tree Practical Exercises: C# Value Types, Reference Types, Generics, Collections, Function Calls [TOC] 1. Defining Variables In C# express[......] 继续阅读
Expression Tree Practical Exercises: C# Value Types, Reference Types, Generics, Collections, Function Calls [TOC] 1. Defining Variables In C# express[......] 继续阅读
表达式树练习实践:C#值类型、引用类型、泛型、集合、调用函数 [TOC] 一,定义变量 C# 表达式树中,定义一个变量,使用 ParameterExpression。 创建变量结点的方法有两种, Expression.Parameter() Expression.Variable() // 另外,[......]继续阅读
表达式树练习实践:入门基础 [TOC] 什么是表达式树 来自微软官方文档的定义: 表达式树以树形数据结构表示代码。 它能干什么呢? 你可以对表达式树中的代码进行编辑和运算。 这样能够动态修改可执行代码、在不同数据库中执行 LINQ 查询以及创建动态查询。 好不好玩? 表达式树还能用于动态语言运行[......] 继续阅读
Expression Tree Practice: Getting Started [TOC] What is an Expression Tree Definition from Microsoft Official Documentation: An expression tree repre[......] 继续阅读
表达式树练习实践:C# 循环 [TOC] C# 提供了以下几种循环类型。 循环类型 描述 while 循环 当给定条件为真时,重复语句或语句组。它会在执行循环主体之前测试条件。 for/foreach 循环 多次执行一个语句序列,简化管理循环变量的代码。 do...while 循环 除了它是在循环主[......] 继续阅读
Expression Tree Practice: C# Loops [TOC] C# provides several types of loops. Loop Type Description while Loop Repeats a statement or group of s[......] 继续阅读
表达式树练习实践:C#判断语句 [TOC] 判断语句 C# 提供了以下类型的判断语句: 语句 描述 if 一个 if 语句 由一个布尔表达式后跟一个或多个语句组成。 if...else 一个 if 语句 后可跟一个可选的 else 语句,else 语句在布尔表达式为假时执行。 嵌套 if 语句 您可[......] 继续阅读
Expression Tree Practice: C# Conditional Statements [TOC] Conditional Statements C# provides the following types of conditional statements: Stateme[......] 继续阅读
表达式树练习实践:C# 运算符 [TOC] 在 C# 中,算术运算符,有以下类型 算术运算符 关系运算符 逻辑运算符 位运算符 赋值运算符 其他运算符 这些运算符根据参数的多少,可以分作一元运算符、二元运算符、三元运算符。本文将围绕这些运算符,演示如何使用表达式树进行操作。 对于一元运算符和二元运[......] 继续阅读
Expression Tree Practice: C# Operators [TOC] In C#, the arithmetic operators can be categorized into the following types: Arithmetic Operators Relati[......] 继续阅读
Expression Tree Practice: Variables, Constants, and Assignments Defining Variables ParameterExpression is used to create variables and variable parame[......] 继续阅读
表达式树练习实践:变量、常量与赋值 定义变量 ParameterExpression 用来创建变量、变量参数表达式。 在 C# 中,变量分为以下几种类型: 值类型(Value types) 引用类型(Reference types) 指针类型(Pointer types) 一般上,只用到值类型和[......] 继续阅读
[TOC] 首先我要说明,我失败了~ 我把我的进度和经验放出来,希望能够帮助别人完成编译工作~ 背景:最近接手一个华为某型号的嵌入式设备,需要在上面搭建 .NET Core 环境。 设备是 Armel 架构的,Linux 内核 3.10;.NET Core ARM 只有 Armhf。 因此编译出来的[......] 继续阅读
[TOC] First of all, I want to state that I have failed~ I am sharing my progress and experience in the hope of helping others complete the compilation[......] 继续阅读
CZGL.Auth 发现有Bug,会导致只能有一个用户登录,无法多个用户同时登录。 哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈。 打算好好优化一下,周六周日修改Bug,做好测试再放出来,哈哈哈哈哈哈哈哈哈哈哈哈哈。 新版本开源地址:https://github.com/whuanle/CZGL.Auth[......] 继续阅读
CZGL.Auth Found a bug that only allows one user to log in at a time, without the ability for multiple users to log in simultaneously. Hahahahahahahaha[......] 继续阅读
[TOC] ① Store API Accessible by Roles/Users For example, Use List<ApiPermission> to store the authorized API list for the role. Optional. Author[......] 继续阅读
[TOC] ① 存储角色/用户所能访问的 API 例如 使用 List<ApiPermission> 存储角色的授权 API 列表。 可有可无。 可以把授权访问的 API 存放到 Token 中,Token 也可以只存放角色信息和用户身份信息。 /// <summary&g[......]继续阅读
ASP.NET Core Implements Distributed Caching Using Redis: Docker, IDistributedCache, StackExchangeRedis Prerequisite: A Linux server with Docker instal[......] 继续阅读
ASP.NET Core 使用 Redis 实现分布式缓存:Docker、IDistributedCache、StackExchangeRedis 前提:一台 Linux 服务器、已安装 Docker。 一,Docker 中运行 Redis 拉取 Redis 镜像 docker pull r[......]继续阅读