摘要: String[] str = {"aa","kser","bdf","ope","aa"}; String[] str2 = str.Distinct().ToArray(); 阅读全文
posted @ 2020-04-14 22:03 .net&new 阅读(169) 评论(0) 推荐(0) 编辑
摘要: public class Staff { public string Name { get; set; } public int Age { get; set; } public string Gender { get; set; } public string DepartmentName { g 阅读全文
posted @ 2020-04-14 21:56 .net&new 阅读(559) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 获取时间戳 /// </summary> /// <returns></returns> public static string GetTimeStamp() { TimeSpan ts = DateTime.UtcNow - new DateTime(1970 阅读全文
posted @ 2020-04-14 21:49 .net&new 阅读(941) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace Elight.Infrastructure{ publi 阅读全文
posted @ 2020-04-14 21:45 .net&new 阅读(2847) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Net;using System.Net.NetworkInformation;using System.Net.Sockets;using Sy 阅读全文
posted @ 2020-04-14 21:44 .net&new 阅读(937) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections;using System.Collections.Generic;using System.IO;using System.Net;using System.Net.Http;using System.Net.Securit 阅读全文
posted @ 2020-04-14 21:43 .net&new 阅读(512) 评论(0) 推荐(0) 编辑
摘要: using System;using System.IO;using System.Text;using System.Security.Cryptography; namespace Elight.Infrastructure{ /// <summary> /// 字符串加密解密方法扩展类。 // 阅读全文
posted @ 2020-04-14 21:41 .net&new 阅读(266) 评论(0) 推荐(0) 编辑
摘要: CREATE PROCEDURE TransTest(in p1 VARCHAR(20),in p2 VARCHAR(50)) BEGIN declare err int default 0; /*如果出现sql异常,则将err设置为1后继续执行后面的操作 */ declare continue h 阅读全文
posted @ 2020-04-14 21:37 .net&new 阅读(156) 评论(0) 推荐(0) 编辑
摘要: /*--名称:MYSQL版查询分页存储过程 by peace 2013-8-14--输入参数:@fields -- 要查询的字段用逗号隔开--输入参数:@tables -- 要查询的表--输入参数:@where -- 查询条件--输入参数:@orderby -- 排序字段--输出参数:@page - 阅读全文
posted @ 2020-04-14 21:36 .net&new 阅读(124) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 执行多条SQL语句,实现数据库事务。 /// </summary> /// <param name="SQLStringList">多条SQL语句</param> public static int ExecuteSqlTran(List<String> SQLS 阅读全文
posted @ 2020-04-14 21:29 .net&new 阅读(661) 评论(0) 推荐(0) 编辑