我开发了一个模块,并将数据存储到 MS Access 数据库(mdb) 中。其中一个字段使用日期时间名称(Date_of_Installation)作为参考。记录被成功存储。当我使用 OleDBDataAdaptor 检索记录以填充 DataSet 时,遇到了一个问题,即日期时间格式在数据库中发生了变化,如何更改数据库中的日期时间格式。 查询示例:
command.CommandText = "Select * from LicenseDetails where
instr(1,"+ArgName+",'" + Value + "') and Date_of_Installation between
#06/08/2009 1:31:10 PM# and #10/09/2009 2:54:57 PM#;
我正在使用2005版的Visual Studio。如何使用Linq?