摘要: 控制器 /// <summary> /// 上传文件 /// </summary> /// <param name="files"></param> /// <returns></returns> [Route("/updateDevice")] [HttpPost] [ProducesRespon 阅读全文
posted @ 2020-01-10 16:16 ITMrRight 阅读(3642) 评论(0) 推荐(1) 编辑
摘要: 说起IOC和DI,使用过ASP.NET Core的人对这两个概念一定不陌生,早前,自己也有尝试过去了解这两个东西,但是一直觉得有点很难去理解,总觉得对其还是模糊不清,所以,趁着今天有空,就去把两个概念捋清楚,并将学习过程的知识点记录下来。 一、IOC和DI的理解 1.1 什么是IOC? Ioc—In 阅读全文
posted @ 2019-11-14 17:14 ITMrRight 阅读(580) 评论(0) 推荐(0) 编辑
摘要: /// <summary> ///A程序发送数据 /// </summary> /// <param name="args"></param> static void Main(string[] args) { string sendString = null;//要发送的字符串 byte[] se 阅读全文
posted @ 2019-11-04 12:09 ITMrRight 阅读(1168) 评论(0) 推荐(0) 编辑
摘要: /////查询所有存储过程使用这张表名的过程 select name from sysobjects o, syscomments s where o.id = s.id and text like '%表名%' and o.xtype = 'P' 阅读全文
posted @ 2019-07-16 14:14 ITMrRight 阅读(895) 评论(0) 推荐(0) 编辑
摘要: 里主要是将数据库中的常用操作用LAMBDA表达式重新表示了下,用法不多,但相对较常用,等有时间了还会扩展,并将查询语句及LINQ到时也一并重新整理下: 1.select语句:books.Select(p=>new { p.Title, p.UnitPrice, p.Author});//需用匿名方式 阅读全文
posted @ 2019-07-10 09:47 ITMrRight 阅读(301) 评论(0) 推荐(0) 编辑
摘要: VS2015 IIS Express 无法启动Web 解决方案 【亲测已成功】 1、本地电脑搜索计算机管理—事件查看器—Windows日志—应用程序: 详细信息会提示你:【模块 DLL C:\Program Files (x86)\IIS Express\aspnetcore.dll 未能加载。】 阅读全文
posted @ 2019-06-27 16:21 ITMrRight 阅读(436) 评论(0) 推荐(0) 编辑
摘要: public void pro_ShowBook_tw(HttpContext context) { DataTable dt = null; string cacheKey = "GetList"; ///唯一的key值 if (HttpContext.Current.Cache[cacheKey 阅读全文
posted @ 2019-06-14 17:14 ITMrRight 阅读(1437) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc; namespace MCV.Models{ public class custormHandl 阅读全文
posted @ 2019-06-14 17:08 ITMrRight 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 异步变成详解:https://www.cnblogs.com/mingjiatang/p/5267391.html 处理高并发:https://blog.csdn.net/andong154564667/article/details/82153104 阅读全文
posted @ 2019-05-23 16:27 ITMrRight 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 文档地址:https://docs.microsoft.com/zh-cn/iis/extensions/configuring-application-request-routing-arr/http-load-balancing-using-application-request-routing 阅读全文
posted @ 2019-05-10 18:54 ITMrRight 阅读(128) 评论(0) 推荐(0) 编辑