1、项目从Nuget中添加引用 Microsoft.Extensions.Caching.Redis 2、创建RedisCacheHelper.cs 帮助类,代码如下 using System;using System.Collections.Generic;using System.Text;us ...
分类:
Web程序 时间:
2020-03-09 10:27:10
阅读次数:
75
C# using System; using System.Collections.Generic; using System.Management; namespace ConsoleApp2 { class Win32DiskQuota { private static readonly Man ...
Java 提供了一种对象序列化的机制,该机制中,一个对象可以被表示为一个字节序列,该字节序列包括该对象的数据、有关对象的类型的信息和存储在对象中数据的类型。
分类:
编程语言 时间:
2020-03-08 09:36:27
阅读次数:
63
aa 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 using System.Config ...
分类:
数据库 时间:
2020-03-06 19:46:53
阅读次数:
74
winform应用程序是一种智能客户端技术,可以使用其来帮助我们获得信息或传输信息。 XAML VS中新建窗体应用程序 程序入口 Program.cs using System; using System.Collections.Generic; using System.Linq; using S ...
MVC+EF 理解和实现仓储模式和工作单元模式 原文:Understanding Repository and Unit of Work Pattern and Implementing Generic Repository in ASP.NET MVC using Entity Framework ...
分类:
Web程序 时间:
2020-03-05 20:50:16
阅读次数:
95
说明:一个用C#编写的WebAPI操作类,只写了Get Post 部分。 using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.L ...
以上是代码 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication ...
分类:
编程语言 时间:
2020-03-05 00:49:21
阅读次数:
87
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.SqlClient; using System.Drawing; usi ...
分类:
数据库 时间:
2020-03-04 12:39:32
阅读次数:
108
C#史上最简单读写xml文件方式,创建控制台应用程序赋值代码,就可以运行,需要改动,请自行调整 using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; ...