2017年8月31日

Controller中的方法利用ip跨域访问

摘要: 1、首先配置applicationhost.config文件 右击IIS,点击显示所有应用程序即可找到此config文件。 找到<binding protocol="http" bindingInformation="*:60074:localhost" />节点,在下面配置一条,将localhos 阅读全文

posted @ 2017-08-31 13:55 kimi1908 阅读(919) 评论(0) 推荐(0) 编辑

Datatable转成List

摘要: public static List DatatableToList(this DataTable dt) where TResult : class, new() { //创建一个属性的列表 List prlist = new List(); //获取TResult的类型实例 反射的入口 ... 阅读全文

posted @ 2017-08-31 13:32 kimi1908 阅读(177) 评论(0) 推荐(0) 编辑

导航