forked from ret-Phoenix/oscript-sql
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathEnumDBType.cs
More file actions
36 lines (31 loc) · 1 KB
/
EnumDBType.cs
File metadata and controls
36 lines (31 loc) · 1 KB
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
using ScriptEngine.Machine.Contexts;
namespace OScriptSql
{
/// <summary>
/// Тип поддерживаемой СУБД
/// </summary>
[ContextClass("ТипСУБД", "DBType")]
public class EnumDBType : AutoContext<EnumDBType>
{
/// <summary>
/// Тип базы данных SQLite
/// </summary>
[ContextProperty("sqlite", "sqlite")]
public int Sqlite => 0;
/// <summary>
/// Тип базы данных MSSQLServer
/// </summary>
[ContextProperty("MSSQLServer", "MSSQLServer")]
public int MSSQLServer => 1;
/// <summary>
/// Тип базы данных MySQL
/// </summary>
[ContextProperty("MySQL", "MySQL")]
public int MySQL => 2;
/// <summary>
/// Тип базы данных PostgreSQL
/// </summary>
[ContextProperty("PostgreSQL", "PostgreSQL")]
public int PostgreSQL => 3;
}
}