上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: 1. 库类: \Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\System.dll System.Net.HttpListener 2. 代码 2.1 服务端 class Program { static HttpListen 阅读全文
posted @ 2021-03-08 21:38 鑫茂 阅读(3291) 评论(0) 推荐(0) 编辑
摘要: 1. 代码 /// <summary> /// 文件上传下载控制器 /// </summary> public class FileController : ApiController { /// <summary> /// 上传文件 /// </summary> /// http://192.16 阅读全文
posted @ 2021-03-08 21:36 鑫茂 阅读(626) 评论(0) 推荐(0) 编辑
摘要: 库类: Owin.dll Owin.IAppBuilder Microsoft.Owin.dll Microsoft.Owin.OwinContext Microsoft.Owin.Hosting.dll Microsoft.Owin.Hosting.WebApp Microsoft.Owin.Ho 阅读全文
posted @ 2021-03-08 21:34 鑫茂 阅读(573) 评论(0) 推荐(0) 编辑
摘要: helper 类封装 调用 1. 引用的库类 \Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\System.dll System.Net.HttpWebRequest 2代码 helper 类封装 /// <summary> 阅读全文
posted @ 2021-03-08 21:32 鑫茂 阅读(926) 评论(0) 推荐(0) 编辑
摘要: 1. 示例代码 using System; using System.IO; using System.Net.Http; /// <summary> /// 下载文件 /// </summary> /// <param name="serverFileName">服务器上文件名 如 close.p 阅读全文
posted @ 2021-03-08 21:30 鑫茂 阅读(8184) 评论(0) 推荐(0) 编辑
摘要: 1. 需要的库类 \Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.Net.Http.dll System.Net.Http.HttpClient 2. 代码 public class HttpClientHe 阅读全文
posted @ 2021-03-08 21:27 鑫茂 阅读(1225) 评论(0) 推荐(0) 编辑
摘要: 1. 需要的库类 \Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2\System.dll System.Net.WebClient 2. 代码 var wc = new WebClient(); var url = "htt 阅读全文
posted @ 2021-03-08 19:39 鑫茂 阅读(713) 评论(0) 推荐(0) 编辑
摘要: 1. 先在项目的 Settings.settings 新建需要的字段和类型 有需要还可设置初始默认值 2. 启动客户端时,获取 Properties.Settings 的属性值 public void Construct() { if (Properties.Settings.Default.IsR 阅读全文
posted @ 2021-03-08 19:26 鑫茂 阅读(399) 评论(0) 推荐(0) 编辑
摘要: 个人经历的项目主要都是用 Postgresql 或 Oracle 数据库,本文非原创,从他处整理而来。 1. 库类 mysql.data.dll using MySql.Data.MySqlClient; 2. MysqlHelper 粗暴封装 /// <summary> ///MYSQLHelpe 阅读全文
posted @ 2021-03-04 18:55 鑫茂 阅读(425) 评论(0) 推荐(0) 编辑
摘要: 1. 引入库类 Oracle.ManagedDataAccess.dll using Oracle.ManagedDataAccess.Client; 2. 粗暴封装 namespace xx { public class OracleSqlDao { public OracleSqlDao(str 阅读全文
posted @ 2021-03-04 18:52 鑫茂 阅读(470) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 9 下一页