摘要: using System.Data.Entity.Infrastructure; using System.Threading.Tasks; /// /// EF扩展 /// public static class EFExtensions { /// /// 更新实体根据字段 /// //... 阅读全文
posted @ 2017-09-14 12:51 _York 阅读(527) 评论(0) 推荐(0) 编辑
摘要: public static class ModelStateExtensions { /// /// 获取model验证错误信息 /// /// /// public static string ExpendErrors(this System.Web.Mvc.Controller c... 阅读全文
posted @ 2017-09-14 11:42 _York 阅读(575) 评论(0) 推荐(0) 编辑
摘要: using OpenQA.Selenium.Firefox; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; using OpenQA.Selenium; name... 阅读全文
posted @ 2017-07-21 12:23 _York 阅读(591) 评论(0) 推荐(0) 编辑
摘要: WebAPi依赖注入 使用记录 笔记 1.NuGet包安装 2.控制器加入构造函数 3.Global.asax Application_Start 应用程序启动时 using Autofac;using Autofac.Integration.WebApi; 阅读全文
posted @ 2017-07-13 16:21 _York 阅读(4021) 评论(2) 推荐(0) 编辑
摘要: /// /// 导出至PDF /// /// 数据源 /// 文件名 /// 字段表头名对照 public static void Export(DataTable dt, string fileName, Dictionary dicTableHeader) { ... 阅读全文
posted @ 2017-06-06 12:34 _York 阅读(428) 评论(0) 推荐(0) 编辑
摘要: /// /// NPOI导出帮助类 /// public class NPOIHelper { /// /// DataTable导出到Excel的MemoryStream /// /// 源DataTable /// 表头文本 private static M... 阅读全文
posted @ 2017-06-06 12:33 _York 阅读(2070) 评论(5) 推荐(0) 编辑
摘要: /// /// 32位MD5加密 /// /// /// public static string Md5Hash(string input) { MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider()... 阅读全文
posted @ 2017-06-06 12:32 _York 阅读(213) 评论(0) 推荐(0) 编辑
摘要: /// /// 百度翻译 /// public class BaiDuTransHelp { /// /// 密钥 /// private readonly static string TransKey = ConfigurationManager.AppSettings["TransKey"... 阅读全文
posted @ 2017-06-06 12:30 _York 阅读(735) 评论(0) 推荐(0) 编辑
摘要: public class EmailHelp { /// /// Smtp服务器地址 /// private static readonly string SmtpServer = ConfigurationManager.AppSettings["SmtpServer"]; /// ... 阅读全文
posted @ 2017-06-06 12:28 _York 阅读(2071) 评论(1) 推荐(1) 编辑
摘要: 主页面前台代码: 1 2 3 4 5 6 管理系统 7 8 29 30 31 32 33 34 35 36 38 39 ... 阅读全文
posted @ 2015-07-15 20:46 _York 阅读(267) 评论(0) 推荐(0) 编辑