DbSettings.ConnectionString
DbSettings.ConnectionString property
Gets or sets the connection string.
public string ConnectionString { get; set; }
Examples
Shows how to read a project from a Primavera XML file with multiple projects by using a provider name.
var connectionString = "Data Source=" + DataDir + "\\PPMDBSQLite.db";
// Create Primavera DB Settings using connection string and project id
var settings = new PrimaveraDbSettings(connectionString, 4502);
settings.ProviderInvariantName = "System.Data.SQLite";
Console.WriteLine("Connection String: " + settings.ConnectionString);
Console.WriteLine("Provider Name: " + settings.ProviderInvariantName);
var project = new Project(settings);
project.Save(OutDir + "SupportForSQLiteDatabase_out.mpp", SaveFileFormat.Mpp);
See Also
- class DbSettings
- namespace Aspose.Tasks.Connectivity
- assembly Aspose.Tasks