自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

sanpi199274的专栏

轻财足以聚人,律己足以服人,量宽足以得人,身先足以率人。

  • 博客(13)
  • 资源 (5)
  • 问答 (1)
  • 收藏
  • 关注

原创 IIS 开启Gzip压缩功能

IIS 开启Gzip功能,Http请求内容压缩传输

2023-01-11 21:39:00 1445

原创 错误 NETSDK1152

异常描述vs2019升级vs2022 后发布报错错误 找到了多个具有相同相对路径的发布输出文件:错误 NETSDK1152解决方案在csproj 中添加<PropertyGroup> <ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles></PropertyGroup>...

2021-11-16 19:42:18 945

原创 SQL SERVER 慢查询日志以及数据库内存占用情况

SELECT(total_elapsed_time / execution_count)/1000 N'平均时间ms',total_elapsed_time/1000 N'总花费时间ms',total_worker_time/1000 N'所用的CPU总时间ms',total_physical_reads N'物理读取总次数',total_logical_reads/execution_count N'每次逻辑读次数',total_logical_reads N'逻辑读取总次数',total.

2021-05-25 20:18:24 932

原创 Winfrom Devexpress 采坑

1、图表中当值为0是显示提示 ((BarSeriesLabel)agreement.Label).ShowForZeroValues = true;

2020-09-05 22:16:06 91

转载 [转载]Redis常见问题 | 缓存穿透、击穿、雪崩、预热、更新、降级及对应的解决方案

Redis是高性能的分布式内存数据库,对于内存数据库经常会出现下面几种情况,也经常会出现在Redis面试题中:缓存穿透、缓存击穿、缓存雪崩、缓存预热、缓存更新、缓存降级。本文分别介绍这些概念以及对应的解决方案。缓存穿透当查询Redis中没有的数据时,该查询会下沉到数据库层,同时数据库层也没有该数据,当这种情况大量出现或被恶意攻击时,接口的访问全部透过Redis访问数据库,而数据库中也没有这些数据,我们称这种现象为"缓存穿透"。缓存穿透会穿透Redis的保护,提升底层数据库的负载压力,同时这类穿.

2020-07-27 17:31:28 119

原创 以前遇到的一道面试题----学校数据库操作

题目给学校设计一个数据库,库里存着每个学生在每个课程的成绩(均是百分制),可以回想下你大学的时候。写一个查询,找出所有平均分在前10%的学生,并且按照他们的成绩从高到低排名。注意:每个学生参加的课程的数量可能不同,平均分指的是学生成绩总分/参加课程的数量答案数据库设计SET FOREIGN_KEY_CHECKS=0;-- ------------------------------ Table structure for schoolinfo-- -----------------

2020-05-16 15:45:48 304

原创 .Net面试基础

基础知识类修饰符public:访问不受限制。protect:访问限于当前类或派生类private:访问限于包含类(限于当前类里面防问)abstract:抽象类,可以包含抽象方法和实例方法,被继承时子类需要实现抽象方法sealed:封闭类,不能被继承static:静态类,不能实例化抽象类和接口的区别接口:interface接口不能被实例化接口只能包含方法声明接口的成员包括方法、属性、索引器、事件具体派生类必须覆盖基类的抽象方法接口中不能包含常量、字段(域)、构造函数、析构函数

2020-05-16 15:32:15 187

原创 ASP.Net MVC 登录授权验证

public class Verify : AuthorizeAttribute { public override void OnAuthorization(AuthorizationContext filterContext) { var user = filterContext.HttpContext.Session["C...

2020-03-31 17:44:19 671

原创 错误MSB4018    “ResolvePackageAssets”任务意外失败的解决方法

昨天系统奔溃了,重装系统后发现,之前写的.netcore项目打开后重新生成报错,错误如下严重性 代码 说明 项目 文件 行 禁止显示状态错误 MSB4018 “ResolvePackageAssets”任务意外失败。NuGet.Packaging.Core.PackagingException: Unable to find fallba...

2019-05-10 12:26:21 9723 6

原创 C#读取XML文件

FtpInfo类#region Ftp信息类 /// <summary> /// Ftp信息类 /// </summary> public class FtpInfo { private string sFtpUriD; private string sFilePathD; pri...

2019-04-19 10:49:08 210

原创 mysql 按照小时去除一段时间内的不同状态数据统计

SELECT HOUR (时间) AS HOUR, COUNT( CASE WHEN orderlist.State = 1 THEN orderlist.State END ) AS suCount, COUNT( CASE WHEN orderlist.St...

2019-04-19 10:47:08 239

原创 无法删除数据库,因为该数据库当前正在使用"问题解决

USE MASTER GO DECLARE @dbname SYSNAME SET @dbname = 'EducationManagementSystem' -- 这个是要删除的数据库库名 DECLARE @s NVARCHAR( 1000) DECLARE tb CURSOR LOCALFOR SELECT s = 'kill ' + CAST( spid...

2019-04-19 10:45:20 2408

原创 C# mysql 事务处理

try            {                using (MySqlConnection conn = new MySqlConnection("Database=pay2017;Data Source=127.0.0.1;User Id=root;Password=123456;pooling=false;CharSet=utf8"))                {   ...

2018-04-08 15:50:49 2404 2

周期【公众号:电子书站】.mobi

电子书 周期,投资理财入门必看

2021-05-25

RabbitMQ.zip

RabbitMQ发送接收小demo

2021-04-16

空间长方体重合体积计算.zip

面试的时候遇到的一道笔试题,三维空间中任意给八个顶点(x,y,z)坐标,组成一个长方体,求空间中五个长方体重合体积。C# 语言开发,供参考

2020-05-16

C#编程思想

第1章 C#简介 1. 1 开始 Start 1. 2 类型 Types 1. 2. 1 预定义类型 Predefined type 1. 2. 2 转换 Conversion 1. 2. 3 数组类型 Array 1. 2. 4 类型系统的统一 Type System Unification 1. 3 变量与参数 Variables And Parameters 1. 4 自动内存管理 Automatic Memory Management 1. 5 表达式 Expressions 1. 6 语句 Statements 1. 7 类 Class 1. 7. 1 常量 Constants 1. 7. 2 域 Fields 1. 7. 3 方法 Methods 1. 7. 4 属性 Properties 1. 7. 5 事件 Event 1. 7. 6 操作符 Operators 1. 7. 7 索引 Index 1. 7. 8 实例构造函数 Instance Constructors 1. 7. 9 析构函数 Destructors 1. 7. 10 静态构造函数 Static Constructors 1. 7. 11 继承 Inheritance 1. 8 结构 Structs 1. 9 接口 Interfaces 1. 10 委托 Delegates 1. 11 枚举 Enums 1. 12 名字空间与汇编 Namespaces And Assemblies 1. 13 版本 Versioning 1. 14 属性 Attributes 第2章 词法结构 2. 1 翻译阶段 Phases of Translation 2. 2 语法符号 Grammar Notation 2. 3 词法分析 Lexical Analysis 2. 3. 1 输入 Input 2. 3. 2 字符输入 Input Characters 2. 3. 3 线终端函数 Line Terminators 2. 3. 4 注释 Comments 2. 3. 5 空格 White Space 2. 4 标识符 Tokens 2. 4. 1 单码字符转义序列 Unicode Character Escape Sequences 2. 4. 2 标识符 Identifiers 2. 4. 3 关键字 Keywords 2. 4. 4 字母 Literals 2. 4. 5 操作符与标点符号 Operators And Punctuators 2. 5 预处理指令 Pre-processing Directive 2. 5. 1 预处理标识符 Pre-processing Identifiers 2. 5. 2 预处理表达式 Preprocessing expressions 2. 5. 3 预处理声明 Pre-processing Declarations 2. 5. 4 #if, #elif, #else, #endif 2. 5. 5 #error和#waring 2. 5. 6 #region和#endregion 2. 5. 7 #lime 第3章 基本概念 3. 1 程序开始 Program Startup 3. 2 程序结束 Progarm Termination 3. 3 声明 Declarations 3. 4 元素 Members 3. 4. 1 名字空间元素 Nanespace Members 3. 4. 2 结构成员 Struct Members 3. 4. 3 枚举成员 Enumeration Members 3. 4. 4 类项 Class Member 3. 4. 5 接口成员 Interface Members 3. 4. 6 数组项 Array Members 3. 4. 7 委托成员 Delegate Members 3. 5 成员访问 Member Access 3. 5. 1 声明的可访问性 Declared Accessibility 3. 5. 2 可访问域 Accessibility Domains 3. 5. 3 访问保护 Protected Access 3. 5. 4 访问约束 Accessibility Constraints 3. 6 签名和重载 Signatures And Overloading 3. 7 范围 Scopes 3. 7. 1 名字的范围 Name Scopes 3. 7. 2 名字隐藏 Name Hiding 3. 8 名字空间和类型名字 Namespace And Type Names 第4章 类型 4. 1 值类型 Value Types 4. 1. 1 默认构造函数 Default Constructors 4. 1. 2 结构类型 Struct Types 4. 1. 3 简单类型 Simple Types 4. 1. 4 整类型 Integral Types 4. 1. 5 浮点数类型 Floating Point Types 4. 1. 6 十进制类型 The Decimal Type 4. 1. 7 布尔类型 The Bool Type 4. 1. 8 枚举类型 Enumeration Types 4. 2 引用类型 Reference Types 4. 2. 1 类类型 Class Types 4. 2. 2 对象类型 The Object Type 4. 2. 3 字符串类型 The string Type 4. 2. 4 接口类型 Interface Types 4. 2. 5 数组类型 Array Type 4. 2. 6 委托类型 Delegate Type 4. 3 封箱和非封箱 Boxing and Unboxing 4. 3. 1 封箱转换 Boxing Conversions 4. 3. 2 非封箱转换 Unboxing Conversions 第5章 变量 5. 1 变量分类 Variable Categories 5. 1. 1 静态变量 Static Variables 5. 1. 2 实例变量 Instance Variables 5. 1. 3 数组成员 Array Elements 5. 1. 4 值参数 Value Parameters 5. 1. 5 引用参数 Referendce Parameters 5. 1. 6 输出参数 Output Parameters 5. 1. 7 局部变量 Local Variables 5. 2 默认值 Default Values 5. 3 明确赋值 Definite Assignment 5. 3. 1 初始赋值变量 Initially Assigned Variables 5. 3. 2 初始末赋值变量 Initially Unassigned Variables 5. 4 变量引用 Variable References 第6章 转换 6. 1 隐式转换 Implicit Conversions 6. 1. 1 一致性转换 Identit Conversion 6. 1. 2 隐式数值转换 Implicit Numeric Conversions 6. 1. 3 隐式枚举转换 Impliclt Enumeration Conversiom 6. 1. 4 隐式参照转换 Implicit Reference Converions 6. 1. 5 封箔转换 Boxing Conversions 6. 1. 6 隐式常量表达式转换 Implicit Constant Expression Conversions 6. 1. 7 用户自定义隐式转换 User-defined Implicit Conversions 6. 2 显式转换 Explicit Conversions 6. 2. 1 显式数值转换 Explicit Numeric Conversions 6. 2. 2 显式枚举转换 Explicit Enum Conversions 6. 2. 3 显式引用转换 Explicit Reference Conversions 6. 2. 4 非封箱转换 Unboxing Convenions 6. 2. 5 用户自定义显式转换 User-Defined Explicit Conversions 6. 3 标准转换 Standard Conversions 6. 3. 1 标准隐式转换 Standard Implicit Conversions 6. 3. 2 标准显式转换 Standard Explicit Conversions 6. 4 用户自定义转换 User-Defined Conversions 6. 4. 1 被允许的用户自定义转换 Permitted User-Defined Conversions 6. 4. 2 用户自定义转换求值 Evalustion of User-Defined Conversions 6. 4. 3 用户自定义隐式转换 User-Defined Implicit Conveersions 6. 4. 4 用户自定义显式转换 User-Defined Explicit Conversions 第7章 表达式 7. 1 表达式分类 Expression Classifications 7. 1. 1 分类 Classifications 7. 1. 2 表达式的值 Values of Expressions 7. 2 操作符 Operators 7. 2. 1 操作符优先与结合性 Operator Precedence And Associativity 7. 2. 2 操作符重载 Operator Overloading 7. 2. 3 一元操作符重载分解 Unary Operator Overload Resolution 7. 2. 4 二进制操作符重载分解 Binary Operator Overload Resolaction 7. 2. 5 候选用户自定义操作符 Candidate User-Defined Operators 7. 2. 6 数提升 Numeric Promotions 7. 3 成员查找 Member Lookup 7. 4 函数成员 Function Members 7. 4. 1 自变量列表 Argument Lists 7. 4. 2 重载分解 Overload Resolution 7. 4. 3 函数成员引用 Function Member Invocation 7. 5 原始表达式 Primary Expressions 7. 5. 1 字母 Literals 7. 5. 2 简化名 Smple Manes 7. 5. 3 括弧表达式 Parenthesized Expressions 7. 5. 4 成员访问 Member Access 7. 5. 5 引用表达式 Invocation Expressions 7. 5. 6 成员访问 Elemet Access 7. 5. 7 This访问 This Access 7. 5. 8 基本访问 Base Access 7. 5. 9 后缀增量和减量操作符 Postfix Increment And Decrement Operators 7. 5. 10 New操作符 New Operator 7. 5. 11 Typeof操作符 Type of Operator 7. 5. 12 检查的和未检查操作符 Checked And Unchecked Operators 7. 6 一元表达式 Unary ExPression 7. 6. 1 一元加操作符 Unary Plus Operator 7. 6. 2 一元减操作符 Unary Minus OPerator 7. 6. 3 逻辑非操作符 Logical Negation Operator 7. 6. 4 按位求补码操作符 Bitwise Complement Operator 7. 6. 5 前缀增量和减量操作符 Prefix Increment And Decrement Operators 7. 6. 6 CAST表达式 Cast Expressions 7. 7 算术运算符 Arithmetic Operators 7. 7. 1 乘法运算操作符 Multiplication Operator 7. 7. 2 除法运算操作符 Division operator 7. 7. 3 求余数操作符 Rermainder Operator 7. 7. 4 加法操作符 Addition Operator 7. 7. 5 减法操作符 Subtraction Operator 7. 8 转换操作符 Shift Operators 7. 9 关系操作符 Relational Operators 7. 9. 1 整数比较操作符 Integer Comparison Operators 7. 9. 2 浮点数比较操作符 Floating-Point Comparison Operators 7. 9. 3 十进制比较操作符 Decimal Comparison Operators 7. 9. 4 布尔等操作符 Boolean Equality Operatprs 7. 9. 5 枚举比较操作符 Enumeration Comparison Operators 7. 9. 6 引用类型相等操作符 Refgence type Equality Operators 7. 9. 7 字符串相等操作符 String Equality Operators 7. 9. 8 委托相等操作符 Delegate Equality Operators 7. 9. 9 is操作符 The is Operator 7. 9. 10 as操作符 The as Operator 7. 10 逻辑操作符 Logical Operators 7. 10. 1 整数逻辑操作符 Inter Logical Operators 7. 10. 2 枚举逻辑操作符 Enumeration Logical Operators 7. 10. 3 布尔逻辑操作符 Boolean Logical Operators 7. 11 附加条件逻辑操作符 Conditional Logical Operators 7. 11. 1 布尔条件逻辑操作符 Boolean Conditional Logical Operators 7. 11. 2 自定义条件逻辑操作符 User-Defined Conditional Logical Operators 7. 12 条件操作符 Conditinal Operator 7. 13 赋值操作符 Assignment Operators 7. 13. 1 简单赋值 Simple Assignment 7. 13. 2 复合赋值 Compound Assignment 7. 14 表达式 Expression 7. 15 常量表达式 Constant Expressions 7. 16 布尔表达式 Boolean Expressions 第8章 语句 8. 1 结束点和可到达性 End Points And Reachability 8. 2 块 Blocks 8. 3 空语句 The Empty Statement 8. 4 标号语句 Labeled Statements 8. 5 声明语句 Declaration Statements 8. 5. 1 局部变量声明 Local Variable Declarations 8. 5. 2 局部常量声明 Local Constant Declarations 8. 6 表达式语句 Expression Statements 8. 7 选择语句 Selection Statements 8. 7. 1 if语句 The If Statement 8. 7. 2 swith语句 The Switch Statement 8. 8 iteration语句 Iteration Statements 8. 8. 1 While语句 The While Statement 8. 8. 2 do语句 The Do Statement 8. 8. 3 for语句 The For Statement 8. 8. 4 for each语句 The For Each Statement 8. 9 jump语句 Jump Statemeots 8. 9. 1 break语句 The Break Statement 8. 9. 2 continue语句 The Continue Statement 8. 9. 3 goto语句 The Goto statement 8. 9. 4 retum语句 The Retum Statement 8. 9. 5 throw语句 The Throw Statement 8. 10 try语句 The Try Statement 8. 11 hecked和unchecked语句 The Checked And Unchecked Statements 8. 12 lock语句 The Lock Statement 8. 13 using语句 The Using Statement 第9章 名字空间 9. 1 编译单元 Compilation Units 9. 2 名字空间声明 Namespace Declarations 9. 3 使用指令 Using Directives 9. 3. 1 别名指令使用 Using Alias Directives 9. 3. 2 名字空间指令使用 Using Nanespace Directives 9. 4 名字空间成员 Namespace Members 9. 5 类型声明 Type Declarations 第10章 类 10. 1 类声明 Class Declaarations 10. 1. 1 类修改函数 Class Modifiers 10. 1. 2 类基本说明 Class Base Specification 10. 1. 3 类主体 Class Body 10. 2 类成员 Class Member 10. 2. 1 继承 Inheritance 10. 2. 2 new修改函数 The New Modifier 10. 2. 3 访问修改函数 Access Modifiers 10. 2. 4 constituent类型 Constituent Types 10. 2. 5 静态和实例成员 Static And Instance Members 10. 3 常量 Cogstants 10. 4 域 Fields 10. 4. 1 静态和实例域 Static And Instance Fields 10. 4. 2 readonly域 Readonly Fields 10. 4. 3 域初始化 Field Initialization 10. 4. 4 变量初始化 Variable Initilizers 10. 5 方法 Methods 10. 5. 1 方法参数 Method Parmeter 10. 5. 2 静态和实例方法 Static And Instance Methods 10. 5. 3 虚拟方法 Virtual Methods 10. 5. 4 重载方法 Override Methods 10. 5. 5 封装方法 Sealed Methods 10. 5. 6 抽象方法 Abstract Methods 10. 5. 7 外部方法 External Methods 10. 5. 8 方法主体 Method Body 10. 5. 9 方法重载 Method Overloading 10. 6 属性 Properties 10. 6. 1 静态属性 Static Properties 10. 6. 2 访问函数 Accessors 10. 6. 3 虚拟. 封装. 重载和抽象访问函数 Virtual, Sealed, overrde And Abstrct Accessors 10. 7 事件 Events 10. 7. 1 事件访问函数 Event Accessors 10. 7. 2 静态事件 Static Events 10. 8 索引 Indexers 10. 9 操作符 Operators 10. 9. 1 一元操作符 Unary Operators 10. 9. 2 二元操作符 Binary Operators 10. 9. 3 转换操作符 Conversion Operators 10. 10 实例构造函数 Instance Constructors 10. 10. 1 构造函数初始化 Constructor Initializers 10. 10. 2 实例变量初始化函数 Inatace Variable Initializers 10. 10. 3 构造函数执行 Constructor Execution 10. 10. 4 默认构造函数 Default Constructors 10. 10. 5 局部构造函数 Private Constructors 10. 10. 6 可选择的构造函数参数 Optional Const 10. 11 态构造函数 Static Constructors 10. 12 析构函数 Destructors 第11章 结构 11. 1 结构声明 Struct Declarations 11. 1. 1 结构修改函数 Struct Modifiers 11. 1. 2 结构接口 Struct Interfaces 11. 1. 3 结构主体 Struct Body 11. 2 结构成员 Struct Members 11. 3 类和结构差异 Class And Struct Differences 11. 3. 1 值语义 Value Semantics 11. 3. 2 继承 Inheritance 11. 3. 3 赋值 Assignment 11. 3. 4 默认值 Default Values 11. 3. 5 封箱和非封箱 Boxing And Unboxing 11. 3. 6 this的意思 Meaning of This 11. 3. 7 域初始化 Field Initializers 11. 3. 8 构造函数 Constructors 11. 3. 9 析构函数 Destructors 11. 4 结构实例 Struct Examples 11. 4. 1 数据库整数类型 Database Integer Type 11. 4. 2 布尔型数据库类型 Database Boolean Type 第12章 数组 12. 1 数组类型 Array Types 12. 2 数组建立 Array Creation 12. 3 数组成员访问 Array Element Access 12. 4 数组成员 Array Members 12. 5 数组方差 Array Covariance 12. 6 数组初始化函数 Array Initializers 第13章 接口 13. 1 接口声明 Interface declarations 13. 1. 1 接口修改函数 Interface Modifiers 13. 1. 2 基本接口 Base Interfaces 13. 1. 3 接口主体 Interface Body 13. 2 接口成员 Interface Members 13. 2. 1 接口方法 Interface Methods 13. 2. 3 接口事件 Interface Events 13. 2. 4 接口索引 Interface Indexers 13. 2. 5 接口成员访问 Interface Member Access 13. 3 全权接口成员名字 Fully Qualified Intenace Member Names 13. 4 接口执行 Interface Implementations 13. 4. 1 显式接口成员执行 Explicit Interface Member Implementations 13. 4. 2 接口映射 Interface Mapping 13. 4. 3 接口执行继承 Interface Implementation Inheritance 13. 4. 4 接口再执行 Interface Re-Implementation 13. 4. 5 抽象类和接口 Abstract Classes And Interfaces 第14章 枚举 14. 1 枚举声明 Enum Declarations 14. 2 枚举修改函数 Enum Modifiers 14. 3 枚举成员 Enum Members 14. 4 Enum值和操作 Enum Values And Operations 第15章 委托 15. 1 委托声明 Delegate Declarations 15. 2 委托实例 Delegate Instantition 15. 3 多cast委托 Multi-Cast Delegates 15. 4 委托引用 Delegate Invocation 第16章 异常 16. 1 异常原因 Causes of Exceptions 16. 2 System. Exception类 The System. Exception Class 16. 3 怎样处理异常 How Exceptions Are Handled 16. 4 常用的异常类 Common Exception Classes 第17章 属性 17. 1 类属性 Attribute Classes 17. 1. 1 AttributeUsage属性 The Attributeusage Attribute 17. 1. 2 位置和命名参数 Positional And Named Parameters 17. 1. 3 属性参数类型 Attribute Parameter Types 17. 2 属性说明 Attribute Specification 17. 3 属性实例 Attribute Instances 17. 3. 1 属性的编译 Compilation of Attribute 17. 3. 2 属性实例的运行期恢复 Run-time Retrieval of An Attribute Instance 17. 4 保留属性 Reserved Attribute 17. 4. 1 AttributeUsage属性 The AttributeUsage Attribute 17. 4. 2 Conditional属性 The Conditional Attribute 17. 4. 3 Obsolete属性 The Obsolete Attribute 附录A 不安全代码 附录B 互操作性

2014-09-30

mfc网络聊天室源代码(含视频)

MFC实现局域网聊天室,里面包含源代码及视频资料,视频详细通俗易懂。

2013-05-01

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除