简体   繁体   English

在C#中使用类型化数据集时如何更改SQLite文件位置

[英]How do I change SQLite file location when using typed dataset in C#

I used vs 2010 wizard in order to connect a SQLite database, and while using the wizard I browsed the db file from specific folder. 我使用vs 2010向导来连接SQLite数据库,并在使用向导时从特定文件夹浏览了db文件。 Now I wish to change the folder but can't find how to do that. 现在,我想更改文件夹,但找不到该怎么做。

I found the path for the file in project's properties -> Settings.settings -> Settings.Designer.cs the attribute global::System.Configuration.DefaultSettingValueAttribute 我在project's properties -> Settings.settings -> Settings.Designer.cs找到了文件的路径,属性为global::System.Configuration.DefaultSettingValueAttribute

just change the value and it works. 只需更改值即可使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在运行时使用C#创建强类型数据集? - How do I create strongly typed dataset during runtime using C#? c#如何从数据集或XML文件创建类型化的数据集? - c# how to create a typed dataset from a dataset or a XML file? 如何使用C#中的类型化数据集激活应用程序角色? - How to activate application roles using typed dataset in C#? 将C#和文本文件转换为类型化的数据集 - C# and Text file into a typed dataset “无法打开数据库文件”。 开发C#控制台应用程序时是否必须放置sqlite数据库的完整物理位置 - “Unable to open the database file”. Do I have to put the full physical location of sqlite database when developing C# Console application 如何在C#中使用带有类型化数据集的事务? - How to use transaction with typed dataset in C#? C#.NET-如何将文件加载到数据集中? - C# .NET - How do I load a file into a DataSet? 如何检查文件是否为C#中的SQLite数据库? - How do I check if a file is a SQLite Database in C#? 如何从c#连接到SQLite db文件? - How do I connect to SQLite db file from c#? 为什么在使用C#驱动程序的类型化方法时会得到有效但不准确的$ nearSphere查询? - Why do I get a valid but inaccurate $nearSphere query when using the typed methods of the C# driver?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM