摘要: 请求服务 来自 HttpContext 的一次 ASP.NET 请求中可用的服务通过 RequestServices 集合公开的。 请求服务将你配置的服务和请求描述为应用程序的一部分。当你的对象指定依赖关系,这些满足要求的对象通过查找 RequestServices 中对应的类型得到,而不是 App 阅读全文
posted @ 2017-10-13 10:07 _York 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 一、安装jre JAVA运行时下载地址: https://www.java.com/zh_CN/download/manual.jsp 安装后设置环境变量,变量值是jre的安装路径 二、安装 red5 Red5流媒体服务器下载地址: http://www.cuplayer.com/player/Pl 阅读全文
posted @ 2017-10-10 15:01 _York 阅读(2230) 评论(0) 推荐(0) 编辑
摘要: VLC 插件代码: js 播放 阅读全文
posted @ 2017-09-30 11:40 _York 阅读(1834) 评论(0) 推荐(0) 编辑
摘要: /// /// 检查是否文件是否图片并保存 /// /// 文件 /// 保存文件的目录(例:/Img/Mark/) /// 重命名后文件的名称 /// 是否成功 private bool SaveImage(HttpPostedFileBase file, string save... 阅读全文
posted @ 2017-09-21 10:25 _York 阅读(375) 评论(0) 推荐(0) 编辑
摘要: using System.Data.Entity.Infrastructure; using System.Threading.Tasks; /// /// EF扩展 /// public static class EFExtensions { /// /// 更新实体根据字段 /// //... 阅读全文
posted @ 2017-09-14 12:51 _York 阅读(529) 评论(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 阅读(595) 评论(0) 推荐(0) 编辑
摘要: WebAPi依赖注入 使用记录 笔记 1.NuGet包安装 2.控制器加入构造函数 3.Global.asax Application_Start 应用程序启动时 using Autofac;using Autofac.Integration.WebApi; 阅读全文
posted @ 2017-07-13 16:21 _York 阅读(4025) 评论(2) 推荐(0) 编辑
摘要: /// /// 导出至PDF /// /// 数据源 /// 文件名 /// 字段表头名对照 public static void Export(DataTable dt, string fileName, Dictionary dicTableHeader) { ... 阅读全文
posted @ 2017-06-06 12:34 _York 阅读(436) 评论(0) 推荐(0) 编辑
摘要: /// /// NPOI导出帮助类 /// public class NPOIHelper { /// /// DataTable导出到Excel的MemoryStream /// /// 源DataTable /// 表头文本 private static M... 阅读全文
posted @ 2017-06-06 12:33 _York 阅读(2076) 评论(5) 推荐(0) 编辑