自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(91)
  • 资源 (1)
  • 收藏
  • 关注

原创 .Net调用阿里云无痕验证

【代码】.Net调用阿里云无痕验证。

2023-04-28 13:44:33 483

原创 SQL获取两个日期之间的所有日期

【代码】SQL获取两个日期之间的所有日期。

2023-02-20 11:30:38 1146

原创 Sql获取表中某个字段的重复数据

【代码】Sql获取表中某个字段的重复数据。

2022-12-16 10:09:17 543

原创 Sql循环删除表数据

【代码】Sql循环删除表数据。

2022-11-16 10:51:06 513

原创 Sql批量替换某张表中某个字段的某个数值

【代码】Sql批量替换某张表中某个字段的某个数值。

2022-11-16 10:32:36 704

原创 封装HttpService请求体(Post,Get)

【代码】封装HttpService请求体(Post,Get)

2022-10-25 10:48:55 272

原创 Oracle计算时间差

【代码】Oracle计算时间差。

2022-10-12 16:13:28 6722

原创 .Net验证15位身份证格式

【代码】.Net验证15位身份证格式。

2022-10-12 15:59:45 104

原创 .Net验证18位身份证格式

【代码】.Net验证18位身份证格式。

2022-10-12 15:58:39 144

原创 .Net获取某个数值的长度

【代码】.Net获取某个数值的长度。

2022-09-20 16:51:14 180

原创 .Net获取汉字首字母

【代码】.Net获取汉字首字母。

2022-09-20 16:45:44 404

原创 .Net获取WebConfig配置信息

【代码】.Net获取WebConfig配置信息。

2022-09-02 14:44:42 917

原创 .Net生成随机编号

【代码】.Net生成随机编号。

2022-08-23 15:20:15 246

原创 .Net捕获异常详情

代码】.Net捕获异常详情。

2022-08-15 16:56:59 232

原创 HttpWebRequest 通过get

代码】HttpWebRequest 通过get。

2022-08-03 17:16:48 377

原创 .Net计算某月开始与结束时间

代码】.Net计算某月开始与结束时间。

2022-08-01 14:54:36 179

原创 SqlServer,Mysql 计算时间差

【代码】SqlServer 计算时间差。

2022-07-21 17:22:27 4663 2

原创 .Net获取公司所有员工前一天钉钉考勤记录

代码】.Net获取公司所有员工前一天钉钉考勤记录。

2022-07-15 16:54:51 358

原创 .Net判断当前搜索引擎链接类型是否存在

.Net判断当前搜索引擎链接类型是否存在

2022-06-02 10:15:24 102

原创 .Net获取客户端的操作系统

获取客户端的操作系统

2022-06-02 10:13:21 337

原创 .Net获取客户端上次请求的url的有关信息

.Net获取客户端上次请求的url的有关信息

2022-06-02 10:05:31 241

原创 .Net判断网站登录设备

/// <summary> /// 描述:通过UserAgent判断智能设备(Android,IOS,PC,Mac) /// </summary> /// <returns></returns> protected bool CheckAgent() { bool flag = false; string agent = Req..

2022-05-27 15:41:27 128

原创 The type ‘BM.ERP.Hrm.Rlb.BusinessType‘ and the type ‘BM.ERP.OaSFTempStatistics.Enum.BusinessType‘ bo

The type 'BM.ERP.Hrm.Rlb.BusinessType' and the type 'BM.ERP.OaSFTempStatistics.Enum.BusinessType' both have the same simple name of 'BusinessType' and so cannot be used in the same model. All types in a given model must have unique simple names. Use 'NotMa

2022-05-17 15:01:10 178

原创 消息队列(.Net)

using Abp.Notifications;using Abp.Runtime.Caching;using System;using System.Collections.Concurrent;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace BM.ERP.Notifications{ public class.

2022-05-13 16:26:23 607

原创 .Net使用依赖注入查询更新

使用依赖注释的好处在于可以直接使用Insert,Update,Delete,Get等方法操作数据库,不需要在另外调用其他方法操作using Abp.Application.Services.Dto;using Abp.Collections.Extensions;using Abp.Domain.Repositories;using Abp.Organizations;using Abp.UI;using BM.ERP.Dto;using BM.ERP.Sys.Organizationdet

2022-05-13 14:09:12 117

原创 .Net调用第三方系统接口

using Abp.Organizations;using MongoDB.Bson;using Newtonsoft.Json;using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Net;using System.Security.Cryptography;using System.Text;using System.Threading.Tasks;.

2022-05-13 13:48:56 1692

原创 Sql获取当前数据库统计详情

use lxxTestgoselect count(*) 用户表 from sysobjects where xtype='u' select count(*) 总表数 from sysobjects where xtype in('u','s')select count(*) 总视图数 from sysobjects where xtype='v'select count(*) 总存储过程数 from sysobjects where xtype='p'select count(

2022-04-28 14:58:17 840

原创 敏感词汇过滤

[HttpPost]public ActionResult SendMsg(string content){content = SensitiveWordsHelper.SensitiveTextFilter(content,);return Json(content);}//敏感词验证类public class SensitiveWordsHelper { protected static readonly Logger _logger = LogManager.

2022-04-06 11:14:14 271

原创 .net记录单个接口的耗时输出

[HttpGet] public IActionResult Get() { // Start the watch var watch = new Stopwatch(); watch.Start(); --这里是逻辑代码块 watch.Stop(); var responseTimeForCompleteRequest = watch.ElapsedMilliseconds; }...

2022-03-19 08:59:09 267

原创 .net简单的登录认证帮助类

using CodeIo.Domain.Entity.Enum;using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;namespace Circulation.Web.Extensions{ [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inher.

2022-01-20 09:03:22 163

原创 .net性能最高的EF分页写法

/// <summary> /// 获取资金流 /// </summary> /// <returns></returns> [HttpGet] public ActionResult GetUserCashFlows(int? pageIndex, int? pageSize, int month, string search) { v..

2022-01-20 08:55:32 163

原创 .net简单的退出登录方法

/// <summary> /// 退出系统 /// </summary> /// <returns></returns> public ActionResult Quit() { Session.Abandon(); //取消Session会话 Session["UserId"] = null; S...

2022-01-20 08:43:09 598

原创 .NET 64位编码转图片

/// <summary> /// .net64位编码转图片 /// </summary> /// <param name="UrlPath">64位编码</param> /// <returns></returns> [HttpPost] public string SaveImage(string UrlPath) {..

2022-01-08 09:21:15 357

原创 .net从项目根目录读取Excel工作簿内容,随机抽取

//交互接口 /// <summary> /// 选择运输方案(批量生成) /// </summary> /// <param name="caseId">案例</param> /// <returns></returns> [HttpPost] public ActionResult BatchAddCaseTransportation

2022-01-05 11:45:17 161

原创 .net下载到本地为excel格式

接口: public ActionResult DemoPostDownLoad() { var caseid = (string)Session["CaseId"]; var companyId = (string)Session["CompanyId"]; var demoPost = new List<DemoPostAndAge>(); IWorkbook workboo

2021-12-22 14:03:57 404

原创 读取Word文档内容

string floder = Server.MapPath("~/Data/Case/"); //word文档项目存放文件夹 //读取word文档 Document doc = new Document(floder + caseName); //路径+文件名 string WithinString = doc.GetText(); //读取

2021-11-05 09:01:12 377

原创 .net获取枚举类中文名称(封装方法)

public static string GetDescription(this Enum obj) { return GetDescription(obj, false); } public static string GetDescription(this Enum obj, bool isTop) { if (obj == null) return st..

2021-09-27 08:14:52 716

原创 Sql去重语句

海量数据(百万以上),其中有些全部字段都相同,有些部分字段相同,怎样高效去除重复?如果要删除手机(mobilePhone),电话(officePhone),邮件(email)同时都相同的数据,以前一直使用这条语句进行去重:delete from 表 where id not in(select max(id) from 表 group by mobilePhone,officePhone,email )ordelete from 表 where id not in(select min(id)

2021-09-06 17:24:32 2873

原创 C#备份数据库到项目中指定的文件夹

[HttpPost] public ActionResult AddBackup(string name) { var result = new ResultDto(); #region SqlServer备份 string path = Server.MapPath("~/Data/Backup/"); if (!Directory.Exists(path)) .

2021-06-26 17:16:45 284

原创 C#读取项目中文件夹下的文件

public ActionResult GetBackUpFile(int? page, int? limit) { ResultDto result = new ResultDto(); --返回状态信息 string path = Server.MapPath("~/Data/Backup/"); --获取项目中存储文件的物理路径 List<BackupDto> ..

2021-06-26 17:15:04 1923

数据库之间互相转换教程

数据库之间互相转换教程

2022-01-21

空空如也

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

TA关注的人

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