随笔分类 -  后端

摘要://获取本机域账号的几种方式 System.Security.Principal.WindowsIdentity currentUser = System.Security.Principal.WindowsIdentity.GetCurrent(); string strUserName = cu 阅读全文
posted @ 2023-05-05 15:44 妖狐鬼魅 阅读(323) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 新旧分摊数据对比 /// </summary> static void AllocRecordSummaryContrast() { List<AllocRecordSummaryDiff> recordSummaryDiffs = new List<AllocR 阅读全文
posted @ 2022-06-08 09:08 妖狐鬼魅 阅读(186) 评论(0) 推荐(0) 编辑
摘要:var addList = ListA.Where(x => !ListB.Exists(y => y.dic_id == x.dic_id)).ToList(); 阅读全文
posted @ 2021-12-01 09:27 妖狐鬼魅 阅读(547) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 指定pdf模板为其文本域赋值 /// </summary> /// <param name="pdfTemplate">pdf模板路径</param> /// <param name="tempFilePath">pdf导出路径</param> /// <para 阅读全文
posted @ 2020-10-07 11:39 妖狐鬼魅 阅读(933) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// layui参数 /// </summary> /// <typeparam name="T"></typeparam> public class LayUIParameter<T> { /// <summary> /// 当前页 /// </summary> pu 阅读全文
posted @ 2020-09-17 13:39 妖狐鬼魅 阅读(114) 评论(0) 推荐(0) 编辑
摘要:public class BaseController<T> : Controller where T : class, new() { BaseDal<T> baseDal = new BaseDal<T>(); #region 通用基础方法 /// <summary> /// 新增 /// </ 阅读全文
posted @ 2020-09-01 16:30 妖狐鬼魅 阅读(200) 评论(0) 推荐(0) 编辑
摘要:public class BaseApiController<T> : ApiController where T : class { BaseDal<T> baseDal = new BaseDal<T>(); #region 通用Api /// <summary> /// 新增 /// </su 阅读全文
posted @ 2020-09-01 14:06 妖狐鬼魅 阅读(452) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 分页查询获取数据实体 /// </summary> /// <typeparam name="T"></typeparam> public class PageDataView<T> { private int _TotalNum; public PageData 阅读全文
posted @ 2020-09-01 13:57 妖狐鬼魅 阅读(159) 评论(0) 推荐(0) 编辑
摘要:public class BaseDal<T> where T : class { #region 通用方法 /// <summary> /// 新增 /// </summary> /// <param name="model"></param> /// <returns></returns> pu 阅读全文
posted @ 2020-09-01 13:55 妖狐鬼魅 阅读(248) 评论(0) 推荐(0) 编辑
摘要:public class DbHelper { static string connstr = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString; //public static IDbConnec 阅读全文
posted @ 2020-09-01 13:53 妖狐鬼魅 阅读(507) 评论(0) 推荐(0) 编辑
摘要:GlobalConfig config = new GlobalConfig(); SimplePechkin pechkin = new SimplePechkin(config); ObjectConfig objectConfig = new ObjectConfig(); objectCon 阅读全文
posted @ 2020-08-27 10:19 妖狐鬼魅 阅读(854) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// json转换帮助类 /// </summary> public static class JsonHelper { /* 实例: JObject obj = new JObject(); obj.Add("code", "0"); obj.Add("msg", " 阅读全文
posted @ 2020-07-21 14:22 妖狐鬼魅 阅读(159) 评论(0) 推荐(0) 编辑
摘要:public class ExcelHelper { /// <summary> /// Datable导出成Excel /// </summary> /// <param name="dt">导出存放文件夹路径</param> /// <param name="Route">文件夹路径</para 阅读全文
posted @ 2018-06-05 14:59 妖狐鬼魅 阅读(264) 评论(0) 推荐(0) 编辑
摘要:using Microsoft.AspNetCore.Mvc.RazorPages; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; usin 阅读全文
posted @ 2017-02-23 22:41 妖狐鬼魅 阅读(393) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示