代码改变世界

阅读排行榜

SqlDataReader对象是否含有指定列的判断和衍生

2020-06-26 01:26 by hello,逗比, 444 阅读, 收藏,
摘要: 1、首先我们判断是否有列,一般是使用数据表来处理 : DataTable dt = null ; dt.Columns.Contains("columnName"); 2、利用异常处理:IndexOutOfRangeException public static string getSQLDataR 阅读全文

修改数据库插入默认日期

2016-05-13 23:46 by hello,逗比, 416 阅读, 收藏,
摘要: NULLIF()函数使用讲解 2014-06-23 23:16 by zwwhnly, 2992 阅读, 收藏, 编辑 NULLIF()函数接受两个参数。如果它们相等,那么返回空值;否则,返回第一个参数。 等价于下面的表达式: case when expression1=expression2 th 阅读全文

内存流MemoryStream的读入

2020-07-21 12:58 by hello,逗比, 371 阅读, 收藏,
摘要: class Program { static void Main(string[] args) { string str = "hello测试赛测试六节课"; using (MemoryStream ms = new MemoryStream(Encoding.UTF8.GetBytes(str)) 阅读全文

它对框架程序集“Microsoft.VisualBasic.Compatibility, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”有间接依赖关系,而在当前目标框架中未能解析该程序集

2023-07-08 00:04 by hello,逗比, 327 阅读, 收藏,
摘要: 未能解析主引用“NLI.Register, Version=2.3.3.1, Culture=neutral, processorArchitecture=MSIL”,因为它对框架程序集“Microsoft.VisualBasic.Compatibility, Version=8.0.0.0, Cu 阅读全文

接口练习代码

2017-06-25 21:36 by hello,逗比, 325 阅读, 收藏,
摘要: 注意 :索引器前面要加 public,要不 检查代码认为没有实现该接口 阅读全文