标签: c# database ms-access adox
我正在尝试使用ADOX设置MS Accessa日期/时间列格式。这是我的代码示例:
Column col = new Column(); col.Name = "name"; col.Type = DataTypeEnum.adDate
到目前为止,它正在工作。 我需要做的是将此日期/时间列格式设置为“短日期”。
我尝试过这样的事情:
col.Properties["Format"].Value = "short date";
...但是它不起作用。