5 // Copyright (c) 2007-2008 Jiri Moudry, Pascal Craponne
\r
6 // Copyright (c) 2009 Novell, Inc.
\r
8 // Permission is hereby granted, free of charge, to any person obtaining a copy
\r
9 // of this software and associated documentation files (the "Software"), to deal
\r
10 // in the Software without restriction, including without limitation the rights
\r
11 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
\r
12 // copies of the Software, and to permit persons to whom the Software is
\r
13 // furnished to do so, subject to the following conditions:
\r
15 // The above copyright notice and this permission notice shall be included in
\r
16 // all copies or substantial portions of the Software.
\r
18 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
\r
19 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
\r
20 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
\r
21 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
\r
22 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
\r
23 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
\r
30 using System.Data.SQLite;
\r
33 namespace Test_NUnit
\r
35 public abstract partial class TestBase
\r
37 static bool doRecreate = true;
\r
38 public const StringComparison stringComparisonType = StringComparison.InvariantCulture;
\r
40 static partial void CheckRecreateSqlite ()
\r
43 File.Copy ("../src/Northwind.db3", "Northwind.db3", true);
\r
48 public static IDbCommand CreateCommand (string sql, IDbConnection conn)
\r
50 return new SQLiteCommand(sql, (SQLiteConnection) conn);
\r
53 public static IDbConnection CreateConnection (string connectionString)
\r
55 return new SQLiteConnection(connectionString);
\r
58 public DbLinq.Vendor.IVendor CreateVendor()
\r
60 return new DbLinq.Sqlite.SqliteVendor();
\r