集合元素如下: private List<string> dataSource = new List<string>() { "001", "002", "003", "004", "005" }; C# 代码,之前这样写: public void Run_v1() { var index = 0; ...
分类:
其他好文 时间:
2020-07-04 13:21:37
阅读次数:
97
前言 最近刚把个人博客的主要功能模块写完了,想把IdentityServer4引入,准备基于IdentityServer4+EF+Identity来实现一套前后端分离的身份验证授权的管理系统(即使用Vue写登陆页面以及IdentityServer4的相关资源管理页面,然后后端提供IdentitySe ...
分类:
Web程序 时间:
2020-07-04 11:50:30
阅读次数:
184
Install-Package Microsoft.EntityFrameworkCore.SqlServer Install-Package Microsoft.EntityFrameworkCore.Design Install-Package Microsoft.EntityFramework ...
分类:
其他好文 时间:
2020-07-03 19:08:15
阅读次数:
101
常规篇: 首先,用ps查看进程,方法如下: $ ps -ef ……smx 1822 1 0 11:38 ? 00:00:49 gnome-terminalsmx 1823 1822 0 11:38 ? 00:00:00 gnome-pty-helpersmx 1824 1822 0 11:38 pt ...
分类:
系统相关 时间:
2020-07-03 15:26:54
阅读次数:
72
XDocument 说明LINQ处理XML文件的一个类 添加引用 using System.Linq; using System.Xml.Linq; using System.Xml.XPath; 引用xml文件 XDocument xml = XDocument.Load("IOS.xml"); ...
学历代表你的过去,能力代表你的现在,学习代表你的将来。 学无止境,精益求精。 自ASP.NET诞生以来,微软提供了不少控制并发的方法,在了解这些控制并发的方法前,我们先来简单介绍下并发! 并发:同一时间或者同一时刻多个访问者同时访问某一更新操作时,会产生并发! 针对并发的处理,又分为悲观并发处理和乐 ...
分类:
数据库 时间:
2020-07-02 13:32:15
阅读次数:
86
1、使用Sort() 当T是简单类型,int,double之类的可以直接用 var a = new List<int>(); a.Add(1); a.Add(5); a.Add(4); a.Sort();//排序 2、使用LinQ a = a.OrderByDescending(i => i.Nam ...
分类:
编程语言 时间:
2020-07-02 10:41:55
阅读次数:
56
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; using ServiceStack.Redis; namespace te ...
分类:
其他好文 时间:
2020-07-01 09:36:28
阅读次数:
65
报错信息: The Entity Framework provider type 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer' registered in the application c ...
public PageInfo Get(string name, int PageIndex = 1, int PagepSize = 3) { PageInfo pg = new PageInfo(); if (name == null) { name=""; } int count = pg.D ...
分类:
其他好文 时间:
2020-06-30 20:25:06
阅读次数:
48