上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 121 下一页
摘要: 库: using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; namespace BarCodeLibrary { public class Ze 阅读全文
posted @ 2021-05-10 09:54 与f 阅读(343) 评论(0) 推荐(0)
摘要: 今天update access数据库时,使用了参数化的方式,结果不报错,但是数据也没有更新。后来发现access使用参数化时,参数位置必须和赋值顺序相同才行,否则更新时就会出现数据无法更新但是也不报错的怪现象。 例如:update tablename set [a]=@a,[b]=@b where 阅读全文
posted @ 2021-05-08 14:12 与f 阅读(372) 评论(0) 推荐(0)
摘要: Access 的top和order by 的问题 今天用Access做sql查询的时候出现了比较奇怪的问题:用:select top 10 * from [BBSXP_Threads] where IsDel=0 order by views却返回 大于 10 行的记录,根据理论应该是返回 按 vi 阅读全文
posted @ 2021-05-08 10:34 与f 阅读(468) 评论(0) 推荐(0)
摘要: DataTable dt = new DataTable("Datas"); DataColumn dc = null; //dt新增列 dc=dt.Columns.Add("id", Type.GetType("System.Int32")); //课件id dc = dt.Columns.Add 阅读全文
posted @ 2021-04-30 15:05 与f 阅读(2838) 评论(0) 推荐(0)
摘要: /// <summary> /// 时间戳 /// </summary> /// <param name="dateTime"></param> /// <returns></returns> public static Int64 getTimeStamp(DateTime dateTime) { 阅读全文
posted @ 2021-04-30 11:52 与f 阅读(8676) 评论(0) 推荐(0)
摘要: for (int i = 0; i < dataTable.Rows.Count; i++) { for (int j = 0; j < dataTable.Columns.Count; j++) { Console.WriteLine(dataTable.Rows[i][j].ToString() 阅读全文
posted @ 2021-04-30 11:50 与f 阅读(1855) 评论(0) 推荐(0)
摘要: 首先需要获取ChnCharInfo.dll (汉子转拼音就可以了)和ChineseConverter.dll (简繁转化吧) ChnCharInfo.dll官方下载操作如下: 先下载微软Microsoft Visual Studio International Pack 1.0 SR1语言包: Mi 阅读全文
posted @ 2021-04-30 10:15 与f 阅读(777) 评论(0) 推荐(0)
摘要: add方法传入的是一个object对象,利用这点可以传入一个自定义对象,选中时获得的也是一个完整对象。 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System 阅读全文
posted @ 2021-04-29 14:48 与f 阅读(721) 评论(0) 推荐(0)
摘要: this: 用于引用类的当前实例,也包括继承而来的方法,通常可以隐藏this。 MSDN中的小结功能主要包括: (1)限定被相似的名称隐藏的成员 (2)将对象作为参数传递到其他方法 (3)声明索引器 this指代类对象本身,用于访问本类的所有常量、字段、属性和方法成员,而且不管访问元素是任何访问级别 阅读全文
posted @ 2021-04-29 14:46 与f 阅读(272) 评论(0) 推荐(0)
摘要: .Net那点事儿系列:C#操作Xml 什么是Xml? Xml是扩展标记语言的简写,是一种开发的文本格式。关于它的更多情况可以通过w3组织了解http://www.w3.org/TR/1998/REC-xml-19980210。如果你不知道它,那你就out太多了。 .Net是如何处理Xml的? 1.通 阅读全文
posted @ 2021-04-27 22:26 与f 阅读(145) 评论(0) 推荐(0)
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 121 下一页