摘要:
public static string Post(string url, string data, Encoding encoding) { try { HttpWebRequest req = WebRequest.CreateHttp(new Uri(url)); req.ContentTyp 阅读全文
2017年8月1日 #
摘要:
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Threa... 阅读全文
2017年7月28日 #
摘要:
1、先cmd到指定的网站目录, 然后执行 dotnet xxx.dll, 浏览器查看 localhost:5000 确认没有问题之后才去部署到iis 阅读全文
2017年7月10日 #
摘要:
AppContext.BaseDirectory 获取项目的根目录 阅读全文
2017年7月6日 #
2017年7月4日 #
摘要:
贫血模型:是指领域对象里只有get和set方法,或者包含少量的CRUD方法,所有的业务逻辑都不包含在内而是放在Business Logic层。 优点是系统的层次结构清楚,各层之间单向依赖,Client->(Business Facade)->Business Logic->Data Access(A 阅读全文
2017年6月30日 #
摘要:
经过反编译log4net 标准库的代码,原本有的数据库链接AdoNetAppender 在core里面引用的,没有掉了。 可能新版本会有。 阅读全文
2017年6月26日 #
摘要:
1、了解两个服务器的操作系统等的差异性; 2、了解原服务器上网站所需要的环境:iis、net版本、数据库版本、文件夹权限、第三方支持; 3、对比原服务器跟新服务器的软件差异,数据库同版本的就生成备份或者直接拷贝数据库文件,不同版本以数据库脚本为主; 4、迁移前必须做好备份,两个系统同时并行,测试新服 阅读全文
2017年4月29日 #
摘要:
Asp.Net Core MVC的开源地址:https://github.com/aspnet/Mvc Asp.net MVC的开源地址:http://aspnetwebstack.codeplex.com/SourceControl/latest net core 原本叫mvc6 后面才改名为 c 阅读全文