2016年9月25日

摘要: 1.更新程序包EntityFramework->6.1.3 2.下载程序包MySql.Data.Entities(Ver:6.8.3) 3.修改config.cs或者web.config,包含以下内容 <configuration> <configSections><connectionString 阅读全文
posted @ 2016-09-25 19:11 毛毛虫 阅读(1381) 评论(1) 推荐(0)
 

2016年8月17日

摘要: host里面添加 127.0.0.1 域名 阅读全文
posted @ 2016-08-17 17:05 毛毛虫 阅读(748) 评论(1) 推荐(0)
 

2016年6月22日

摘要: Controller代码: 在Controller中把要传递的数据通过Tuple.Create封装数据 View代码: 阅读全文
posted @ 2016-06-22 21:02 毛毛虫 阅读(1274) 评论(0) 推荐(0)
 

2016年2月28日

摘要: String urlStr ="https://qyapi.weixin.qq.com/cgi-bin/gettoken?a=a&b=b"; URL url = null; BufferedReader in = null; StringBuffer sb = new StringBuffer(); 阅读全文
posted @ 2016-02-28 11:34 毛毛虫 阅读(221) 评论(0) 推荐(0)
 
摘要: 官方网址: http://json-lib.sourceforge.net/ 需要准备的jar包 1. json-lib-2.4-jdk15.jar 目前最新版, 下载地址 http://sourceforge.net/projects/json-lib/files/ 2. HttpClient 用 阅读全文
posted @ 2016-02-28 11:32 毛毛虫 阅读(3360) 评论(0) 推荐(0)
 
摘要: public class ClassRoom { private int id; private String name; private int grade; public int getId() { return id; } public void setId(int id) { this.id 阅读全文
posted @ 2016-02-28 11:17 毛毛虫 阅读(3082) 评论(0) 推荐(0)
 

2016年2月26日

摘要: 1.评论点赞数量 评论请人来点赞 2.配对+未来 滴滴打车2月14日1314活动 3.抹零 阅读全文
posted @ 2016-02-26 08:27 毛毛虫 阅读(161) 评论(0) 推荐(0)
 

2016年1月21日

摘要: string url = "http://"; //创建HttpClient(注意传入HttpClientHandler) var handler = new HttpClientHandler() { AutomaticDecompression = ... 阅读全文
posted @ 2016-01-21 11:36 毛毛虫 阅读(3169) 评论(0) 推荐(0)
 

2015年12月27日

摘要: 一、定义public class MyItem: IValidatableObject { [Key] public long Id { get; set; }[Range(0, 100, ErrorMessage = "企业客户收入占比必须在0-100之间")]p... 阅读全文
posted @ 2015-12-27 09:48 毛毛虫 阅读(440) 评论(0) 推荐(0)
 

2015年10月25日

摘要: 1.string s="@张三 @李四 ";获取“张三”和“李四”MatchCollection mc = Regex.Matches(s, @"@(?\S+)[ | ]");for (int i = 0; i 李四:say something替换成"张三:say something李四:say s... 阅读全文
posted @ 2015-10-25 09:16 毛毛虫 阅读(213) 评论(0) 推荐(0)