-
Notifications
You must be signed in to change notification settings - Fork 934
/
Copy pathSQLite20Driver.cs
60 lines (54 loc) · 1.51 KB
/
SQLite20Driver.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
using System;
namespace NHibernate.Driver
{
/// <summary>
/// NHibernate driver for the System.Data.SQLite data provider for .NET 2.0.
/// </summary>
/// <remarks>
/// <p>
/// In order to use this driver you must have the System.Data.SQLite.dll assembly available
/// for NHibernate to load. This assembly includes the SQLite.dll or SQLite3.dll libraries.
/// </p>
/// <p>
/// You can get the System.Data.SQLite.dll assembly from http://sourceforge.net/projects/sqlite-dotnet2.
/// </p>
/// <p>
/// Please check <a href="http://www.sqlite.org/">http://www.sqlite.org/</a> for more information regarding SQLite.
/// </p>
/// </remarks>
public class SQLite20Driver : ReflectionBasedDriver
{
/// <summary>
/// Initializes a new instance of <see cref="SQLiteDriver"/>.
/// </summary>
/// <exception cref="HibernateException">
/// Thrown when the <c>SQLite.NET</c> assembly can not be loaded.
/// </exception>
public SQLite20Driver() : base(
"System.Data.SQLite",
"System.Data.SQLite.SQLiteConnection",
"System.Data.SQLite.SQLiteCommand")
{
}
public override bool UseNamedPrefixInSql
{
get { return true; }
}
public override bool UseNamedPrefixInParameter
{
get { return true; }
}
public override string NamedPrefix
{
get { return "@"; }
}
public override bool SupportsMultipleOpenReaders
{
get { return false; }
}
public override bool SupportsMultipleQueries
{
get { return true; }
}
}
}