会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
guxingy
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
87
88
89
90
91
92
93
94
95
下一页
2018年8月22日
C# 指定平台编译项目
摘要: 如CefSharp就需要指定平台,项目为Any CPU时,无法编译,总会提示出错。 如: CefSharp.Common contains unmanaged resoures, set your project and solution platform to x86 or x64. 配置方式:
阅读全文
posted @ 2018-08-22 14:32 古兴越
阅读(3995)
评论(0)
推荐(2)
2018年8月20日
C# 线程
摘要: 原地址:http://www.cnblogs.com/Opiece/p/4803836.html
阅读全文
posted @ 2018-08-20 11:34 古兴越
阅读(110)
评论(0)
推荐(0)
2018年8月17日
C# WinForm textbox 全选
摘要: 原地址:忘了 textBox1.KeyPress += anyTextBox_KeyPress; private void anyTextBox_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) { if (e.Key
阅读全文
posted @ 2018-08-17 16:43 古兴越
阅读(1150)
评论(0)
推荐(0)
2018年8月13日
C# 反射获取所有视图
摘要: 原地址:忘了 controller 的 action 加上属性 [System.ComponentModel.Description("菜单列表")] 且 返回值为 System.Web.Mvc.ActionResult 类型,就可以获取到了 [System.ComponentModel.Descr
阅读全文
posted @ 2018-08-13 11:12 古兴越
阅读(269)
评论(0)
推荐(0)
2018年8月10日
EF 查看生成的SQL语句
摘要: 1、数据库监测 2、调试中查看 3、lamada的ToString方法,如:DbContext.Store.AsNoTracking().ToString() 4、linq的ToTraceString()方法 5、DbContext.Database.Log = (c) => { Console.W
阅读全文
posted @ 2018-08-10 09:48 古兴越
阅读(3629)
评论(0)
推荐(0)
2018年8月9日
C# Excel转换为Json
摘要: demo:https://files.cnblogs.com/files/guxingy/Excel%E8%BD%AC%E6%8D%A2%E4%B8%BAJson%E5%AF%B9%E8%B1%A1.rar 不太会用博客 待转换的Excel格式 转换后的JSON格式: Excel转换类: publi
阅读全文
posted @ 2018-08-09 16:07 古兴越
阅读(2252)
评论(0)
推荐(0)
接口 C# 请求数据 模拟多线程下载文件
摘要: 原地址:http://www.cnblogs.com/Opiece/p/4803836.html 客户端 public static string strContent = "";//用于存储时间信息 private void button1_Click(object sender, EventAr
阅读全文
posted @ 2018-08-09 14:23 古兴越
阅读(1102)
评论(0)
推荐(0)
C# 请求数据 模拟多文件上传
摘要: 原地址:http://www.cnblogs.com/greenerycn/archive/2010/05/15/csharp_http_post.html 1、客户端代码 用winform写的 private void button1_Click(object sender, EventArgs
阅读全文
posted @ 2018-08-09 14:19 古兴越
阅读(404)
评论(0)
推荐(0)
2018年8月7日
接口 C# 请求数据 使用post的方式提交raw格式的数据,数据为json格式,多层嵌套
摘要: 原文地址:https://cnodejs.org/topic/539ff8a5c3ee0b5820938d60 raw方式使用的是纯字符串的数据上传方式,所以在POST之前,可能需要手工的把一些JSON格式的数据转换成字符串的(加两单引号) Form-data的方式就是key-value的提交,数据
阅读全文
posted @ 2018-08-07 15:40 古兴越
阅读(3426)
评论(0)
推荐(0)
2018年8月6日
C# 计算接口调用时长
摘要: //获取 接口的数据 Stopwatch sw = new Stopwatch();//计算耗时 sw.Start();fn1();//接口调用方法 sw.Stop();return JsonMsg.OK($"成功,{sw.Elapsed.TotalSeconds}秒", value1);
阅读全文
posted @ 2018-08-06 14:43 古兴越
阅读(653)
评论(0)
推荐(0)
上一页
1
···
87
88
89
90
91
92
93
94
95
下一页
公告