上一页 1 ··· 383 384 385 386 387 388 389 390 391 ··· 399 下一页
摘要: 使用sqlite进行时间的插入的时候,使用了 DateTime.ToString("s") //s: 2008-06-15T21:15:07 插入到数据库之后,发现时间被加了8个小时 找了半天资料,才找到原因 This profile defines two ways of handling tim 阅读全文
posted @ 2014-11-18 12:59 ChuckLu 阅读(3916) 评论(0) 推荐(1)
摘要: 最近在使用SQLite的数据库,发现SQLiteConnection类,有一个属性DateTimeKind 去msdn上找了下资料,http://msdn.microsoft.com/en-us/library/shx7s921(v=vs.110).aspx 写了一个demo加深理解,代码已经上传至 阅读全文
posted @ 2014-11-18 10:24 ChuckLu 阅读(7058) 评论(0) 推荐(0)
摘要: 插入时间的sql语句insert into[DataTable]([CollectDateTime],[Channel_1],[Channel_2],[Channel_3],[Channel_4],[Channel_5],[Channel_6],[Channel_7],[Channel_8],[Ch... 阅读全文
posted @ 2014-11-17 20:46 ChuckLu 阅读(1002) 评论(0) 推荐(0)
摘要: Getting started with SQLite in C#http://blog.tigrangasparian.com/2012/02/09/getting-started-with-sqlite-in-c-part-one/ C#与SQLite的操作介绍 下载http://www.cn... 阅读全文
posted @ 2014-11-17 17:56 ChuckLu 阅读(328) 评论(0) 推荐(0)
摘要: 1.简直是作死帝呀。不需要修改dll的名字,否则就坐等悲剧吧如果项目中有x86和x64的dll,可以建两个不同的文件夹分别存放,但是千万不要修改掉默认的dll的名字System.Data.SQLite.dll2.这个dll是区分x86和x64平台的,务必设置项目的目标平台对应到正确的dll3.需要修... 阅读全文
posted @ 2014-11-17 17:38 ChuckLu 阅读(4854) 评论(0) 推荐(1)
摘要: http://msdn.microsoft.com/en-us/library/ms171878.aspx 1.首先创建一张表 2.保存一个xml文件schema.xml 3.再保存另外一个xml文件data.xml 4.打开VS,创建一个控制台应用程序 5.添加dll引用 In the COM t 阅读全文
posted @ 2014-11-17 16:37 ChuckLu 阅读(463) 评论(0) 推荐(0)
摘要: http://msdn.microsoft.com/zh-cn/library/22t547yb(v=vs.110).aspx https://github.com/chucklu/Test/tree/master/DotNet4.5开发指南/并行处理和并发/异步编程模式/APM/使用委托进行异步编 阅读全文
posted @ 2014-11-14 22:34 ChuckLu 阅读(226) 评论(0) 推荐(0)
摘要: 什么是.net的异步机制呢? 解释这个话题之前,先让我们来看看同步执行的程序 https://github.com/chucklu/Test/blob/master/DotNet4.5开发指南/并行处理和并发/异步编程模式/APM/SyncProcedure/Program.cs 执行结果如下图所示 阅读全文
posted @ 2014-11-14 21:03 ChuckLu 阅读(9660) 评论(2) 推荐(0)
摘要: 向DataSet中添加DataTable 会提示datatable已属于另一个dataset 本来的想法是每次都new一个DataTable,但是还是会报错 百度了一下,发现可以调用DataTable.Copy(); 然后将这个Copy出来的东西丢给DataSet.Tables.Add(); 向Da 阅读全文
posted @ 2014-11-14 15:18 ChuckLu 阅读(234) 评论(0) 推荐(0)
摘要: Thread.Start starts a new OS thread to execute the delegate. When the delegate returns, the thread is destroyed. This is quite a heavy-weight operatio... 阅读全文
posted @ 2014-11-13 19:42 ChuckLu 阅读(248) 评论(0) 推荐(0)
上一页 1 ··· 383 384 385 386 387 388 389 390 391 ··· 399 下一页