WithSettings() public method

Creates a new data source with the indicated changes to the settings.
The new data source will share the same database metadata cache.
public WithSettings ( SQLiteDataSourceSettings settings ) : SQLiteDataSource
settings Tortuga.Chain.SQLite.SQLiteDataSourceSettings The new settings to use.
return SQLiteDataSource
Exemplo n.º 1
0
        static TestBase()
        {
            s_DataSource = new SQLiteDataSource("Data Source=SQLiteTestDatabase.sqlite;");
            s_StrictDataSource = s_DataSource.WithSettings(new SQLiteDataSourceSettings() { StrictMode = true });

        }
Exemplo n.º 2
0
 static TestBase()
 {
     s_DataSource = new SQLiteDataSource(System.Configuration.ConfigurationManager.ConnectionStrings["SQLiteTestDatabase"].ConnectionString);
     s_StrictDataSource = s_DataSource.WithSettings(new SQLiteDataSourceSettings() { StrictMode = true });
 }