forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCsharpSqliteDriver.cs
53 lines (49 loc) · 1.64 KB
/
CsharpSqliteDriver.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
namespace NHibernate.Driver
{
/// <summary>
/// NHibernate driver for the Community CsharpSqlite data provider.
/// <p>
/// Author: <a href="mailto:nick_tountas@hotmail.com"> Nikolaos Tountas </a>
/// </p>
/// </summary>
/// <remarks>
/// <p>
/// In order to use this Driver you must have the Community.CsharpSqlite.dll and Community.CsharpSqlite.SQLiteClient assemblies referenced.
/// </p>
/// <p>
/// Please check <a href="http://code.google.com/p/csharp-sqlite/"> http://code.google.com/p/csharp-sqlite/ </a> for more information regarding csharp-sqlite.
/// </p>
/// </remarks>
public class CsharpSqliteDriver : ReflectionBasedDriver
{
/// <summary>
/// Initializes a new instance of <see cref="CsharpSqliteDriver"/>.
/// </summary>
/// <exception cref="HibernateException">
/// Thrown when the <c>Community.CsharpSqlite.dll</c> assembly can not be loaded.
/// </exception>
public CsharpSqliteDriver()
: base(
"Community.CsharpSqlite.SQLiteClient",
"Community.CsharpSqlite.SQLiteClient.SqliteConnection",
"Community.CsharpSqlite.SQLiteClient.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; }
}
}
}