摘要: 读取一个json文件,并与实体相对应: static void Main(string[] args) { string json = ""; FileStream fs = new FileStream("cityJson.txt", F... 阅读全文
posted @ 2015-05-11 14:58 如梦不是梦 阅读(1420) 评论(0) 推荐(1) 编辑
摘要: 1、通过NuGet引用Web API Test Client引用玩该DLL会生成如下文件:这里面就是我们的帮助文档界面2、在项目属性中进行如下设置,勾选XMl文档文件,并设置路径3、在项目的App_Data文件夹下创建XmlDocument.xml4、打开\Areas\HelpPage\App_St... 阅读全文
posted @ 2015-05-07 14:51 如梦不是梦 阅读(188) 评论(0) 推荐(0) 编辑
摘要: vs2013 IHttpActionResult NotFund Ok使用ASP.NET Web API构造基于restful风格web services,IHttpActionResult是一个很好的http结果返回接口。然而发现在vs2012开发环境中,System.Web.Http包I中不含有... 阅读全文
posted @ 2015-05-07 09:12 如梦不是梦 阅读(429) 评论(0) 推荐(0) 编辑
摘要: //淘宝IP地址库http://ip.taobao.com/accurancy.php string url = "http://ip.taobao.com/service/getIpInfo.php?ip=122.224.94.210"; string... 阅读全文
posted @ 2015-05-05 11:11 如梦不是梦 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 来自:http://blog.csdn.net/dba_huangzj/article/details/7952403/方法一:使用图形化操作(GUI),打开SSMS(SQL Server Management Studio)步骤1:右键你要降级的数据库,按下图选择:步骤2:在对话框中选择: 步骤3... 阅读全文
posted @ 2015-04-29 16:17 如梦不是梦 阅读(291) 评论(0) 推荐(0) 编辑
摘要: using DataToDeal;using LumenWorks.Framework.IO.Csv;using Microsoft.Win32;using System;using System.Collections.Generic;using System.Data;using System.... 阅读全文
posted @ 2015-04-29 15:57 如梦不是梦 阅读(691) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Data;using System.Data.SqlClient;using System.Linq;using System.Text;using System.Threading... 阅读全文
posted @ 2015-04-29 15:46 如梦不是梦 阅读(255) 评论(0) 推荐(0) 编辑
摘要: private void button1_Click(object sender, EventArgs e) { //指定路径的方式 object obj= AppConfig访问方式.Properties.Settings.Default.... 阅读全文
posted @ 2015-04-28 09:22 如梦不是梦 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 天气预报Web服务,数据来源于中国气象局Endpoint :http://www.webxml.com.cn/WebServices/WeatherWebService.asmxDisco :http://www.webxml.com.cn/WebServices/WeatherWebService... 阅读全文
posted @ 2015-03-13 09:28 如梦不是梦 阅读(2144) 评论(0) 推荐(0) 编辑
摘要: public static string ConvertToPhysicalPath(string path) { if (path == null) throw new ArgumentNullException("path"); ... 阅读全文
posted @ 2014-10-15 13:47 如梦不是梦 阅读(134) 评论(0) 推荐(0) 编辑