Repository navigation
Expand file tree
/
Copy pathProviderName.cs
More file actions
355 lines (346 loc) · 15.1 KB
/
Copy pathProviderName.cs
File metadata and controls
355 lines (346 loc) · 15.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
using JetBrains.Annotations;
using LinqToDB.Internal.DataProvider.Access;
using LinqToDB.Internal.DataProvider.DB2;
using LinqToDB.Internal.DataProvider.Firebird;
using LinqToDB.Internal.DataProvider.Informix;
using LinqToDB.Internal.DataProvider.MySql;
using LinqToDB.Internal.DataProvider.Oracle;
using LinqToDB.Internal.DataProvider.PostgreSQL;
using LinqToDB.Internal.DataProvider.SapHana;
using LinqToDB.Internal.DataProvider.SqlCe;
using LinqToDB.Internal.DataProvider.SQLite;
using LinqToDB.Internal.DataProvider.SqlServer;
using LinqToDB.Internal.DataProvider.Sybase;
namespace LinqToDB
{
// TODO: v6: obsolete/remove all provider-specific entries as it should be used for dialects only
/// <summary>
/// Default names for providers.
/// </summary>
[PublicAPI]
public static class ProviderName
{
/// <summary>
/// Microsoft Access OleDb provider (with JET or ACE detection).
/// Used as configuration name for Access mapping schema <see cref="AccessMappingSchema"/>.
/// </summary>
public const string Access = "Access";
/// <summary>
/// Microsoft Access ODBC provider (with JET or ACE detection).
/// Used as configuration name for Access mapping schema <see cref="AccessMappingSchema"/>.
/// </summary>
public const string AccessOdbc = "Access.Odbc";
/// <summary>
/// Microsoft Access JET OleDb provider.
/// Used as configuration name for Access mapping schema <see cref="AccessMappingSchema"/>.
/// </summary>
public const string AccessJetOleDb = "Access.Jet.OleDb";
/// <summary>
/// Microsoft Access JET ODBC provider.
/// Used as configuration name for Access mapping schema <see cref="AccessMappingSchema"/>.
/// </summary>
public const string AccessJetOdbc = "Access.Jet.Odbc";
/// <summary>
/// Microsoft Access ACE OleDb provider.
/// Used as configuration name for Access mapping schema <see cref="AccessMappingSchema"/>.
/// </summary>
public const string AccessAceOleDb = "Access.Ace.OleDb";
/// <summary>
/// Microsoft Access ACE ODBC provider.
/// Used as configuration name for Access mapping schema <see cref="AccessMappingSchema"/>.
/// </summary>
public const string AccessAceOdbc = "Access.Ace.Odbc";
/// <summary>
/// IBM DB2 default provider (DB2 LUW).
/// Used as configuration name for both DB2 base mapping schema <see cref="DB2MappingSchema"/>.
/// </summary>
public const string DB2 = "DB2";
/// <summary>
/// IBM DB2 LUW provider.
/// Used as configuration name for DB2 LUW mapping schema <see cref="DB2MappingSchema.DB2LUWMappingSchema"/>.
/// </summary>
public const string DB2LUW = "DB2.LUW";
/// <summary>
/// IBM DB2 for z/OS provider.
/// Used as configuration name for DB2 z/OS mapping schema <see cref="DB2MappingSchema.DB2zOSMappingSchema"/>.
/// </summary>
public const string DB2zOS = "DB2.z/OS";
/// <summary>
/// Firebird provider.
/// Used as configuration name for Firebird mapping schema <see cref="FirebirdMappingSchema"/>.
/// </summary>
public const string Firebird = "Firebird";
/// <summary>
/// Firebird 2.5 provider.
/// Used as configuration name for Firebird mapping schema <see cref="FirebirdMappingSchema.Firebird25MappingSchema"/>.
/// </summary>
public const string Firebird25 = "Firebird.2.5";
/// <summary>
/// Firebird 3 provider.
/// Used as configuration name for Firebird mapping schema <see cref="FirebirdMappingSchema.Firebird3MappingSchema"/>.
/// </summary>
public const string Firebird3 = "Firebird.3";
/// <summary>
/// Firebird 4 provider.
/// Used as configuration name for Firebird mapping schema <see cref="FirebirdMappingSchema.Firebird4MappingSchema"/>.
/// </summary>
public const string Firebird4 = "Firebird.4";
/// <summary>
/// Firebird 5 provider.
/// Used as configuration name for Firebird mapping schema <see cref="FirebirdMappingSchema.Firebird5MappingSchema"/>.
/// </summary>
public const string Firebird5 = "Firebird.5";
/// <summary>
/// Informix IBM.Data.Informix provider (including IDS provider).
/// Used as configuration name for Informix mapping schema <see cref="InformixMappingSchema"/>.
/// </summary>
public const string Informix = "Informix";
/// <summary>
/// Informix over IBM.Data.DB2 IDS provider.
/// Used as configuration name for Informix mapping schema <see cref="InformixMappingSchema"/>.
/// </summary>
public const string InformixDB2 = "Informix.DB2";
/// <summary>
/// Microsoft SQL Server default provider (SQL Server 2008).
/// Used as configuration name for SQL Server base mapping schema <see cref="SqlServerMappingSchema"/>.
/// </summary>
public const string SqlServer = "SqlServer";
/// <summary>
/// Microsoft SQL Server 2005 provider.
/// Used as configuration name for SQL Server 2005 mapping schema <see cref="SqlServerMappingSchema.SqlServer2005MappingSchema"/>.
/// </summary>
public const string SqlServer2005 = "SqlServer.2005";
/// <summary>
/// Microsoft SQL Server 2008 provider.
/// Used as configuration name for SQL Server 2008 mapping schema <see cref="SqlServerMappingSchema.SqlServer2008MappingSchema"/>.
/// </summary>
public const string SqlServer2008 = "SqlServer.2008";
/// <summary>
/// Microsoft SQL Server 2012 provider.
/// Used as configuration name for SQL Server 2012 mapping schema <see cref="SqlServerMappingSchema.SqlServer2012MappingSchema"/>.
/// </summary>
public const string SqlServer2012 = "SqlServer.2012";
/// <summary>
/// Microsoft SQL Server 2012 provider.
/// </summary>
public const string SqlServer2014 = "SqlServer.2014";
/// <summary>
/// Microsoft SQL Server 2016 provider.
/// Used as configuration name for SQL Server 2016 mapping schema <see cref="SqlServerMappingSchema.SqlServer2016MappingSchema"/>.
/// </summary>
public const string SqlServer2016 = "SqlServer.2016";
/// <summary>
/// Microsoft SQL Server 2017 provider.
/// Used as configuration name for SQL Server 2017 mapping schema <see cref="SqlServerMappingSchema.SqlServer2017MappingSchema"/>.
/// </summary>
public const string SqlServer2017 = "SqlServer.2017";
/// <summary>
/// Microsoft SQL Server 2019 provider.
/// Used as configuration name for SQL Server 2019 mapping schema <see cref="SqlServerMappingSchema.SqlServer2019MappingSchema"/>.
/// </summary>
public const string SqlServer2019 = "SqlServer.2019";
/// <summary>
/// Microsoft SQL Server 2022 provider.
/// Used as configuration name for SQL Server 2022 mapping schema <see cref="SqlServerMappingSchema.SqlServer2022MappingSchema"/>.
/// </summary>
public const string SqlServer2022 = "SqlServer.2022";
/// <summary>
/// Microsoft SQL Server 2025 provider.
/// Used as configuration name for SQL Server 2025 mapping schema <see cref="SqlServerMappingSchema.SqlServer2025MappingSchema"/>.
/// </summary>
public const string SqlServer2025 = "SqlServer.2025";
/// <summary>
/// MySql provider.
/// Used as configuration name for MySql mapping schema <see cref="MySqlMappingSchema"/>.
/// </summary>
public const string MySql = "MySql";
/// <summary>
/// MySql 5.7.x provider.
/// Used as configuration name for MySql mapping schema <see cref="MySqlMappingSchema.MySql57MappingSchema"/>.
/// </summary>
public const string MySql57 = "MySql.5.7";
/// <summary>
/// MySql 8.x provider.
/// Used as configuration name for MySql mapping schema <see cref="MySqlMappingSchema.MySql80MappingSchema"/>.
/// </summary>
public const string MySql80 = "MySql.8.0";
/// <summary>
/// MariaDB 10+ provider.
/// Used as configuration name for MySql mapping schema <see cref="MySqlMappingSchema.MariaDB10MappingSchema"/>.
/// </summary>
public const string MariaDB10 = "MariaDB.10";
/// <summary>
/// MySql 5.7.x using MySql.Data provider.
/// Used as configuration name for MySql mapping schema <see cref="MySqlMappingSchema.MySqlData57MappingSchema"/>.
/// </summary>
public const string MySql57MySqlData = "MySql.5.7.MySql.Data";
/// <summary>
/// MySql 5.7.x using MySqlConnector provider.
/// Used as configuration name for MySql mapping schema <see cref="MySqlMappingSchema.MySqlConnector57MappingSchema"/>.
/// </summary>
public const string MySql57MySqlConnector = "MySql.5.7.MySqlConnector";
/// <summary>
/// MySql 8+ using MySql.Data provider.
/// Used as configuration name for MySql mapping schema <see cref="MySqlMappingSchema.MySqlData80MappingSchema"/>.
/// </summary>
public const string MySql80MySqlData = "MySql.8.0.MySql.Data";
/// <summary>
/// MySql 8+ using MySqlConnector provider.
/// Used as configuration name for MySql mapping schema <see cref="MySqlMappingSchema.MySqlConnector80MappingSchema"/>.
/// </summary>
public const string MySql80MySqlConnector = "MySql.8.0.MySqlConnector";
/// <summary>
/// MariaDB 10+ using MySql.Data provider.
/// Used as configuration name for MariaDB mapping schema <see cref="MySqlMappingSchema.MySqlDataMariaDB10MappingSchema"/>.
/// </summary>
public const string MariaDB10MySqlData = "MariaDB.10.MySql.Data";
/// <summary>
/// MariaDB 10+ using MySqlConnector provider.
/// Used as configuration name for MariaDB mapping schema <see cref="MySqlMappingSchema.MySqlConnectorMariaDB10MappingSchema"/>.
/// </summary>
public const string MariaDB10MySqlConnector = "MariaDB.10.MySqlConnector";
/// <summary>
/// Oracle ODP.NET autodetected provider (native or managed).
/// Used as configuration name for Oracle base mapping schema <see cref="OracleMappingSchema"/>.
/// </summary>
public const string Oracle = "Oracle";
/// <summary>
/// Oracle (11g dialect) ODP.NET native provider.
/// Used as configuration name for Oracle native provider mapping schema <see cref="OracleMappingSchema.Native11MappingSchema"/>.
/// </summary>
public const string Oracle11Native = "Oracle.11.Native";
/// <summary>
/// Oracle (11g dialect) Devart provider.
/// Used as configuration name for Oracle managed provider mapping schema <see cref="OracleMappingSchema.Devart11MappingSchema"/>.
/// </summary>
public const string Oracle11Devart = "Oracle.11.Devart";
/// <summary>
/// Oracle (11g dialect) ODP.NET managed provider.
/// Used as configuration name for Oracle managed provider mapping schema <see cref="OracleMappingSchema.Managed11MappingSchema"/>.
/// </summary>
public const string Oracle11Managed = "Oracle.11.Managed";
/// <summary>
/// Oracle ODP.NET native provider.
/// Used as configuration name for Oracle native provider mapping schema <see cref="OracleMappingSchema.NativeMappingSchema"/>.
/// </summary>
public const string OracleNative = "Oracle.Native";
/// <summary>
/// Oracle ODP.NET managed provider.
/// Used as configuration name for Oracle managed provider mapping schema <see cref="OracleMappingSchema.ManagedMappingSchema"/>.
/// </summary>
public const string OracleManaged = "Oracle.Managed";
/// <summary>
/// Oracle Devart provider.
/// Used as configuration name for Oracle managed provider mapping schema <see cref="OracleMappingSchema.DevartMappingSchema"/>.
/// </summary>
public const string OracleDevart = "Oracle.Devart";
/// <summary>
/// PostgreSQL 9.2- data provider.
/// Used as configuration name for PostgreSQL mapping schema <see cref="PostgreSQLMappingSchema"/>.
/// </summary>
public const string PostgreSQL = "PostgreSQL";
/// <summary>
/// PostgreSQL 9.2- data provider.
/// </summary>
public const string PostgreSQL92 = "PostgreSQL.9.2";
/// <summary>
/// PostgreSQL 9.3+ data provider.
/// </summary>
public const string PostgreSQL93 = "PostgreSQL.9.3";
/// <summary>
/// PostgreSQL 9.5+ data provider.
/// </summary>
public const string PostgreSQL95 = "PostgreSQL.9.5";
/// <summary>
/// PostgreSQL 11+ data provider.
/// </summary>
public const string PostgreSQL11 = "PostgreSQL.11";
/// <summary>
/// PostgreSQL 12+ data provider.
/// </summary>
public const string PostgreSQL12 = "PostgreSQL.12";
/// <summary>
/// PostgreSQL 13+ data provider.
/// </summary>
public const string PostgreSQL13 = "PostgreSQL.13";
/// <summary>
/// PostgreSQL 15+ data provider.
/// </summary>
public const string PostgreSQL15 = "PostgreSQL.15";
/// <summary>
/// PostgreSQL 18+ data provider.
/// </summary>
public const string PostgreSQL18 = "PostgreSQL.18";
/// <summary>
/// PostgreSQL 19+ data provider.
/// </summary>
public const string PostgreSQL19 = "PostgreSQL.19";
/// <summary>
/// Microsoft SQL Server Compact Edition provider.
/// Used as configuration name for SQL CE mapping schema <see cref="SqlCeMappingSchema"/>.
/// </summary>
public const string SqlCe = "SqlCe";
/// <summary>
/// SQLite provider.
/// Used as configuration name for SQLite mapping schema <see cref="SQLiteMappingSchema"/>.
/// </summary>
public const string SQLite = "SQLite";
/// <summary>
/// System.Data.Sqlite provider.
/// </summary>
public const string SQLiteClassic = "SQLite.Classic";
/// <summary>
/// Microsoft.Data.Sqlite provider.
/// </summary>
public const string SQLiteMS = "SQLite.MS";
/// <summary>
/// Native SAP/Sybase ASE provider.
/// Used as configuration name for Sybase ASE mapping schema <see cref="SybaseMappingSchema.NativeMappingSchema"/>.
/// </summary>
public const string Sybase = "Sybase";
/// <summary>
/// Managed Sybase/SAP ASE provider from <a href="https://github.com/DataAction/AdoNetCore.AseClient">DataAction</a>.
/// Used as configuration name for Sybase ASE mapping schema <see cref="SybaseMappingSchema.ManagedMappingSchema"/>.
/// </summary>
public const string SybaseManaged = "Sybase.Managed";
/// <summary>
/// SAP HANA provider.
/// Used as configuration name for SAP HANA mapping schema <see cref="SapHanaMappingSchema"/>.
/// </summary>
public const string SapHana = "SapHana";
/// <summary>
/// SAP HANA provider.
/// Used as configuration name for SAP HANA mapping schema <see cref="SapHanaMappingSchema.NativeMappingSchema"/>.
/// </summary>
public const string SapHanaNative = "SapHana.Native";
/// <summary>
/// SAP HANA ODBC provider.
/// Used as configuration name for SAP HANA mapping schema <see cref="SapHanaMappingSchema.OdbcMappingSchema"/>.
/// </summary>
public const string SapHanaOdbc = "SapHana.Odbc";
/// <summary>
/// ClickHouse provider base name.
/// </summary>
public const string ClickHouse = "ClickHouse";
/// <summary>
/// ClickHouse provider using Octonica.ClickHouseClient ADO.NET provider.
/// </summary>
public const string ClickHouseOctonica = "ClickHouse.Octonica";
/// <summary>
/// ClickHouse provider using ClickHouse.Driver ADO.NET provider.
/// </summary>
public const string ClickHouseDriver = "ClickHouse.Driver";
/// <summary>
/// ClickHouse provider using MySqlConnector ADO.NET provider.
/// </summary>
public const string ClickHouseMySql = "ClickHouse.MySql";
/// <summary>
/// YDB provider.
/// </summary>
public const string Ydb = "YDB";
/// <summary>
/// DuckDB data provider.
/// </summary>
public const string DuckDB = "DuckDB";
}
}