摘要: 引用的DLL MySql.Data.MySqlClient System.Data City实体 public class City { public int ID { get; set; } public string Name { get; set; } public string Countr 阅读全文
posted @ 2020-07-02 23:37 *飞* 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 实体对象数据转结构体 //原始对象 Test test = new Test(); test.Name = "反射"; var props = test.GetType().GetProperties(); StructData structData = new StructData(); Obje 阅读全文
posted @ 2020-07-02 23:12 *飞* 阅读(119) 评论(0) 推荐(0) 编辑
摘要: NnGet using Microsoft.AspNetCore.Hosting; 实现逻辑 private IHostingEnvironment _host; public TestController( IHostingEnvironment host) { this._host = host 阅读全文
posted @ 2020-06-28 08:36 *飞* 阅读(428) 评论(0) 推荐(0) 编辑
摘要: NuGet: Dapper 2.0.35 MySql.Data System.Data 实体(Entity) 1 public class student 2 { 3 public int Id { get; set; } 4 public string RealName { get; set; } 阅读全文
posted @ 2020-05-17 16:37 *飞* 阅读(748) 评论(0) 推荐(0) 编辑
摘要: 给出一个 32 位的有符号整数,你需要将这个整数中每位上的数字进行反转。 注意: 假设我们的环境只能存储得下 32 位的有符号整数,则其数值范围为 [−231, 231 − 1]。请根据这个假设,如果反转后整数溢出那么就返回 0。 来源:力扣(LeetCode)链接:https://leetcode 阅读全文
posted @ 2019-10-09 23:26 *飞* 阅读(132) 评论(0) 推荐(0) 编辑
摘要: http://findicons.com/ http://www.iconfont.cn/ 阅读全文
posted @ 2018-07-16 08:40 *飞* 阅读(208) 评论(0) 推荐(0) 编辑
摘要: winform主窗体退出需要在FormClosing事件里写入程序退出代码,防止程序明明退出了,而程序进程还没杀掉; 阅读全文
posted @ 2018-07-09 17:48 *飞* 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 单表查询 排序 升序 select*from表名 order by字段 asc; 降序 select*from表名 order by字段 desc; 条件查询(包括通配符) where语句 select*from表名where字段=内容; select*from表名where字段>=内容and字段< 阅读全文
posted @ 2018-05-07 21:18 *飞* 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 1 private void txtTestPerson_KeyPress(object sender, KeyPressEventArgs e) 2 { 3 4 if ((e.KeyChar >= 'a' && e.KeyChar = 'A' && e.KeyChar <= 'Z') || e.KeyChar == '\b'... 阅读全文
posted @ 2018-01-29 12:07 *飞* 阅读(545) 评论(0) 推荐(0) 编辑
摘要: 奇进偶不进解释 代码 1 public class IsopsephyNumber 2 { 3 private double value = 0.0; 4 private bool isFlag = false; 5 /// <summary> 6 /// 奇进偶不进 7 /// </summary 阅读全文
posted @ 2018-01-09 11:55 *飞* 阅读(888) 评论(0) 推荐(0) 编辑