TurboDB.NET Managed Provider
TurboDBConnection.DataSource Property
Top 


Indicates the TurboDB data source to connect with.

[C#]
public string DataSource {getset;}

Notes
DataSource holds either the name of a TurboDB database file, which contains all tables of a database (e.g. c:\turbodb\databases\database1.tdbd) or a directory name, in which case the database tables are seperate *.dat files within this directory.

Sample

// This code connects to a TurboDB database file
TurboDBConnection turboDBConnection = new TurboDBConnection();
turboDBConnection.DataSource = @"c:\apps\demoapp\demoapp.tdbd";
turboDBConnection.Open();


// This code connects to a directory containing TurboDB database table files
TurboDBConnection turboDBConnection = new TurboDBConnection();
turboDBConnection.DataSource = @"c:\turbodb\database1";
turboDBConnection.Open();

See also
TurboDBConnection class | TurboDBConnection members | Database connections | Single-file databases and database directories