[8e2213]: System.Data.SQLite / SQLiteConvert.cs  Maximize  Restore  History

Download this file

689 lines (639 with data), 22.2 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
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
/********************************************************
* ADO.NET 2.0 Data Provider for SQLite Version 3.X
* Written by Robert Simpson (robert@blackcastlesoft.com)
*
* Released to the public domain, use at your own risk!
********************************************************/
namespace System.Data.SQLite
{
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using System.ComponentModel;
using System.Globalization;
using System.Text;
#if !PLATFORM_COMPACTFRAMEWORK
using System.ComponentModel.Design;
#endif
/// <summary>
/// This base class provides datatype conversion services for the SQLite provider.
/// </summary>
public abstract class SQLiteConvert
{
/// <summary>
/// An array of ISO8601 datetime formats we support conversion from
/// </summary>
private static string[] _datetimeFormats = new string[] {
"THHmmss",
"THHmm",
"HH:mm:ss",
"HH:mm",
"HH:mm:ss.FFFFFFF",
"yy-MM-dd",
"yyyy-MM-dd",
"yyyy-MM-dd HH:mm:ss.FFFFFFF",
"yyyy-MM-dd HH:mm:ss",
"yyyy-MM-dd HH:mm",
"yyyy-MM-ddTHH:mm:ss.FFFFFFF",
"yyyy-MM-ddTHH:mm",
"yyyy-MM-ddTHH:mm:ss",
"yyyyMMddHHmmss",
"yyyyMMddHHmm",
"yyyyMMddTHHmmssFFFFFFF",
"yyyyMMdd"
};
/// <summary>
/// An UTF-8 Encoding instance, so we can convert strings to and from UTF-8
/// </summary>
private static Encoding _utf8 = new UTF8Encoding();
/// <summary>
/// The default DateTime format for this instance
/// </summary>
internal SQLiteDateFormats _datetimeFormat;
/// <summary>
/// Initializes the conversion class
/// </summary>
/// <param name="fmt">The default date/time format to use for this instance</param>
internal SQLiteConvert(SQLiteDateFormats fmt)
{
_datetimeFormat = fmt;
}
#region UTF-8 Conversion Functions
/// <summary>
/// Converts a string to a UTF-8 encoded byte array sized to include a null-terminating character.
/// </summary>
/// <param name="sourceText">The string to convert to UTF-8</param>
/// <returns>A byte array containing the converted string plus an extra 0 terminating byte at the end of the array.</returns>
public static byte[] ToUTF8(string sourceText)
{
Byte[] byteArray;
int nlen = _utf8.GetByteCount(sourceText) + 1;
byteArray = new byte[nlen];
nlen = _utf8.GetBytes(sourceText, 0, sourceText.Length, byteArray, 0);
byteArray[nlen] = 0;
return byteArray;
}
/// <summary>
/// Convert a DateTime to a UTF-8 encoded, zero-terminated byte array.
/// </summary>
/// <remarks>
/// This function is a convenience function, which first calls ToString() on the DateTime, and then calls ToUTF8() with the
/// string result.
/// </remarks>
/// <param name="dateTimeValue">The DateTime to convert.</param>
/// <returns>The UTF-8 encoded string, including a 0 terminating byte at the end of the array.</returns>
public byte[] ToUTF8(DateTime dateTimeValue)
{
return ToUTF8(ToString(dateTimeValue));
}
/// <summary>
/// Converts a UTF-8 encoded IntPtr of the specified length into a .NET string
/// </summary>
/// <param name="nativestring">The pointer to the memory where the UTF-8 string is encoded</param>
/// <param name="nativestringlen">The number of bytes to decode</param>
/// <returns>A string containing the translated character(s)</returns>
public virtual string ToString(IntPtr nativestring, int nativestringlen)
{
return UTF8ToString(nativestring, nativestringlen);
}
/// <summary>
/// Converts a UTF-8 encoded IntPtr of the specified length into a .NET string
/// </summary>
/// <param name="nativestring">The pointer to the memory where the UTF-8 string is encoded</param>
/// <param name="nativestringlen">The number of bytes to decode</param>
/// <returns>A string containing the translated character(s)</returns>
public static string UTF8ToString(IntPtr nativestring, int nativestringlen)
{
if (nativestringlen == 0 || nativestring == IntPtr.Zero) return "";
if (nativestringlen == -1)
{
do
{
nativestringlen++;
} while (Marshal.ReadByte(nativestring, nativestringlen) != 0);
}
byte[] byteArray = new byte[nativestringlen];
Marshal.Copy(nativestring, byteArray, 0, nativestringlen);
return _utf8.GetString(byteArray, 0, nativestringlen);
}
#endregion
#region DateTime Conversion Functions
/// <summary>
/// Converts a string into a DateTime, using the current DateTimeFormat specified for the connection when it was opened.
/// </summary>
/// <remarks>
/// Acceptable ISO8601 DateTime formats are:
/// yyyy-MM-dd HH:mm:ss
/// yyyyMMddHHmmss
/// yyyyMMddTHHmmssfffffff
/// yyyy-MM-dd
/// yy-MM-dd
/// yyyyMMdd
/// HH:mm:ss
/// THHmmss
/// </remarks>
/// <param name="dateText">The string containing either a Tick value, a JulianDay double, or an ISO8601-format string</param>
/// <returns>A DateTime value</returns>
public DateTime ToDateTime(string dateText)
{
switch (_datetimeFormat)
{
case SQLiteDateFormats.Ticks:
return new DateTime(Convert.ToInt64(dateText, CultureInfo.InvariantCulture));
case SQLiteDateFormats.JulianDay:
return ToDateTime(Convert.ToDouble(dateText, CultureInfo.InvariantCulture));
default:
return DateTime.ParseExact(dateText, _datetimeFormats, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None);
}
}
/// <summary>
/// Converts a julianday value into a DateTime
/// </summary>
/// <param name="julianDay">The value to convert</param>
/// <returns>A .NET DateTime</returns>
public DateTime ToDateTime(double julianDay)
{
return DateTime.FromOADate(julianDay - 2415018.5);
}
/// <summary>
/// Converts a DateTime struct to a JulianDay double
/// </summary>
/// <param name="value">The DateTime to convert</param>
/// <returns>The JulianDay value the Datetime represents</returns>
public double ToJulianDay(DateTime value)
{
return value.ToOADate() + 2415018.5;
}
/// <summary>
/// Converts a DateTime to a string value, using the current DateTimeFormat specified for the connection when it was opened.
/// </summary>
/// <param name="dateValue">The DateTime value to convert</param>
/// <returns>Either a string consisting of the tick count for DateTimeFormat.Ticks, a JulianDay double, or a date/time in ISO8601 format.</returns>
public string ToString(DateTime dateValue)
{
switch (_datetimeFormat)
{
case SQLiteDateFormats.Ticks:
return dateValue.Ticks.ToString(CultureInfo.InvariantCulture);
case SQLiteDateFormats.JulianDay:
return ToJulianDay(dateValue).ToString(CultureInfo.InvariantCulture);
default:
return dateValue.ToString(_datetimeFormats[7], CultureInfo.InvariantCulture);
}
}
/// <summary>
/// Internal function to convert a UTF-8 encoded IntPtr of the specified length to a DateTime.
/// </summary>
/// <remarks>
/// This is a convenience function, which first calls ToString() on the IntPtr to convert it to a string, then calls
/// ToDateTime() on the string to return a DateTime.
/// </remarks>
/// <param name="ptr">A pointer to the UTF-8 encoded string</param>
/// <param name="len">The length in bytes of the string</param>
/// <returns>The parsed DateTime value</returns>
internal DateTime ToDateTime(IntPtr ptr, int len)
{
return ToDateTime(ToString(ptr, len));
}
#endregion
/// <summary>
/// Smart method of splitting a string. Skips quoted elements, removes the quotes.
/// </summary>
/// <remarks>
/// This split function works somewhat like the String.Split() function in that it breaks apart a string into
/// pieces and returns the pieces as an array. The primary differences are:
/// <list type="bullet">
/// <item><description>Only one character can be provided as a separator character</description></item>
/// <item><description>Quoted text inside the string is skipped over when searching for the separator, and the quotes are removed.</description></item>
/// </list>
/// Thus, if splitting the following string looking for a comma:<br/>
/// One,Two, "Three, Four", Five<br/>
/// <br/>
/// The resulting array would contain<br/>
/// [0] One<br/>
/// [1] Two<br/>
/// [2] Three, Four<br/>
/// [3] Five<br/>
/// <br/>
/// Note that the leading and trailing spaces were removed from each item during the split.
/// </remarks>
/// <param name="source">Source string to split apart</param>
/// <param name="separator">Separator character</param>
/// <returns>A string array of the split up elements</returns>
public static string[] Split(string source, char separator)
{
char[] toks = new char[2] { '\"', separator };
char[] quot = new char[1] { '\"' };
int n = 0;
List<string> ls = new List<string>();
string s;
while (source.Length > 0)
{
n = source.IndexOfAny(toks, n);
if (n == -1) break;
if (source[n] == toks[0])
{
//source = source.Remove(n, 1);
n = source.IndexOfAny(quot, n + 1);
if (n == -1)
{
//source = "\"" + source;
break;
}
n++;
//source = source.Remove(n, 1);
}
else
{
s = source.Substring(0, n).Trim();
if (s.Length > 1 && s[0] == quot[0] && s[s.Length - 1] == s[0])
s = s.Substring(1, s.Length - 2);
source = source.Substring(n + 1).Trim();
if (s.Length > 0) ls.Add(s);
n = 0;
}
}
if (source.Length > 0)
{
s = source.Trim();
if (s.Length > 1 && s[0] == quot[0] && s[s.Length - 1] == s[0])
s = s.Substring(1, s.Length - 2);
ls.Add(s);
}
string[] ar = new string[ls.Count];
ls.CopyTo(ar, 0);
return ar;
}
/// <summary>
/// Convert a value to true or false.
/// </summary>
/// <param name="source">A string or number representing true or false</param>
/// <returns></returns>
public static bool ToBoolean(object source)
{
if (source is bool) return (bool)source;
return ToBoolean(source.ToString());
}
/// <summary>
/// Convert a string to true or false.
/// </summary>
/// <param name="source">A string representing true or false</param>
/// <returns></returns>
/// <remarks>
/// "yes", "no", "y", "n", "0", "1", "on", "off" as well as Boolean.FalseString and Boolean.TrueString will all be
/// converted to a proper boolean value.
/// </remarks>
public static bool ToBoolean(string source)
{
if (String.Compare(source, bool.TrueString, StringComparison.OrdinalIgnoreCase) == 0) return true;
else if (String.Compare(source, bool.FalseString, StringComparison.OrdinalIgnoreCase) == 0) return false;
switch(source.ToLower(CultureInfo.InvariantCulture))
{
case "yes":
case "y":
case "1":
case "on":
return true;
case "no":
case "n":
case "0":
case "off":
return false;
default:
throw new ArgumentException("source");
}
}
#region Type Conversions
/// <summary>
/// Determines the data type of a column in a statement
/// </summary>
/// <param name="stmt">The statement to retrieve information for</param>
/// <param name="i">The column to retrieve type information on</param>
/// <param name="typ">The SQLiteType to receive the affinity for the given column</param>
internal static void ColumnToType(SQLiteStatement stmt, int i, SQLiteType typ)
{
typ.Type = TypeNameToDbType(stmt._sql.ColumnType(stmt, i, out typ.Affinity));
}
/// <summary>
/// Converts a SQLiteType to a .NET Type object
/// </summary>
/// <param name="t">The SQLiteType to convert</param>
/// <returns>Returns a .NET Type object</returns>
internal static Type SQLiteTypeToType(SQLiteType t)
{
if (t.Type == DbType.Object)
return _affinitytotype[(int)t.Affinity];
else
return SQLiteConvert.DbTypeToType(t.Type);
}
private static Type[] _affinitytotype = {
typeof(object),
typeof(Int64),
typeof(Double),
typeof(string),
typeof(byte[]),
typeof(object),
typeof(DateTime),
typeof(object)
};
/// <summary>
/// For a given intrinsic type, return a DbType
/// </summary>
/// <param name="typ">The native type to convert</param>
/// <returns>The corresponding (closest match) DbType</returns>
internal static DbType TypeToDbType(Type typ)
{
TypeCode tc = Type.GetTypeCode(typ);
if (tc == TypeCode.Object)
{
if (typ == typeof(byte[])) return DbType.Binary;
if (typ == typeof(Guid)) return DbType.Guid;
return DbType.String;
}
return _typetodbtype[(int)tc];
}
private static DbType[] _typetodbtype = {
DbType.Object,
DbType.Binary,
DbType.Object,
DbType.Boolean,
DbType.SByte,
DbType.SByte,
DbType.Byte,
DbType.Int16, // 7
DbType.UInt16,
DbType.Int32,
DbType.UInt32,
DbType.Int64, // 11
DbType.UInt64,
DbType.Single,
DbType.Double,
DbType.Decimal,
DbType.DateTime,
DbType.Object,
DbType.String,
};
/// <summary>
/// Returns the ColumnSize for the given DbType
/// </summary>
/// <param name="typ">The DbType to get the size of</param>
/// <returns></returns>
internal static int DbTypeToColumnSize(DbType typ)
{
return _dbtypetocolumnsize[(int)typ];
}
private static int[] _dbtypetocolumnsize = {
2147483647, // 0
2147483647, // 1
1, // 2
1, // 3
8, // 4
8, // 5
8, // 6
8, // 7
8, // 8
16, // 9
2,
4,
8,
2147483647,
1,
4,
2147483647,
8,
2,
4,
8,
8,
2147483647,
2147483647,
2147483647,
2147483647, // 25 (Xml)
};
internal static object DbTypeToNumericPrecision(DbType typ)
{
return _dbtypetonumericprecision[(int)typ];
}
private static object[] _dbtypetonumericprecision = {
DBNull.Value, // 0
DBNull.Value, // 1
3,
DBNull.Value,
19,
DBNull.Value, // 5
DBNull.Value, // 6
53,
53,
DBNull.Value,
5,
10,
19,
DBNull.Value,
3,
24,
DBNull.Value,
DBNull.Value,
5,
10,
19,
53,
DBNull.Value,
DBNull.Value,
DBNull.Value
};
internal static object DbTypeToNumericScale(DbType typ)
{
return _dbtypetonumericscale[(int)typ];
}
private static object[] _dbtypetonumericscale = {
DBNull.Value, // 0
DBNull.Value, // 1
0,
DBNull.Value,
4,
DBNull.Value, // 5
DBNull.Value, // 6
DBNull.Value,
DBNull.Value,
DBNull.Value,
0,
0,
0,
DBNull.Value,
0,
DBNull.Value,
DBNull.Value,
DBNull.Value,
0,
0,
0,
0,
DBNull.Value,
DBNull.Value,
DBNull.Value
};
internal static string DbTypeToTypeName(DbType typ)
{
for (int n = 0; n < _dbtypeNames.Length; n++)
{
if (_dbtypeNames[n].dataType == typ)
return _dbtypeNames[n].typeName;
}
return String.Empty;
}
private static SQLiteTypeNames[] _dbtypeNames = {
new SQLiteTypeNames("INTEGER", DbType.Int64),
new SQLiteTypeNames("TINYINT", DbType.Byte),
new SQLiteTypeNames("INT", DbType.Int32),
new SQLiteTypeNames("VARCHAR", DbType.AnsiString),
new SQLiteTypeNames("NVARCHAR", DbType.String),
new SQLiteTypeNames("CHAR", DbType.AnsiStringFixedLength),
new SQLiteTypeNames("NCHAR", DbType.StringFixedLength),
new SQLiteTypeNames("FLOAT", DbType.Double),
new SQLiteTypeNames("REAL", DbType.Single),
new SQLiteTypeNames("BIT", DbType.Boolean),
new SQLiteTypeNames("DECIMAL", DbType.Decimal),
new SQLiteTypeNames("DATETIME", DbType.DateTime),
new SQLiteTypeNames("BLOB", DbType.Binary),
new SQLiteTypeNames("UNIQUEIDENTIFIER", DbType.Guid),
new SQLiteTypeNames("SMALLINT", DbType.Int16),
};
/// <summary>
/// Convert a DbType to a Type
/// </summary>
/// <param name="typ">The DbType to convert from</param>
/// <returns>The closest-match .NET type</returns>
internal static Type DbTypeToType(DbType typ)
{
return _dbtypeToType[(int)typ];
}
private static Type[] _dbtypeToType = {
typeof(string), // 0
typeof(byte[]), // 1
typeof(byte), // 2
typeof(bool), // 3
typeof(decimal), // 4
typeof(DateTime), // 5
typeof(DateTime), // 6
typeof(decimal), // 7
typeof(double), // 8
typeof(Guid), // 9
typeof(Int16),
typeof(Int32),
typeof(Int64),
typeof(object),
typeof(sbyte),
typeof(float),
typeof(string),
typeof(DateTime),
typeof(UInt16),
typeof(UInt32),
typeof(UInt64),
typeof(double),
typeof(string),
typeof(string),
typeof(string),
typeof(string), // 25 (Xml)
};
/// <summary>
/// For a given type, return the closest-match SQLite TypeAffinity, which only understands a very limited subset of types.
/// </summary>
/// <param name="typ">The type to evaluate</param>
/// <returns>The SQLite type affinity for that type.</returns>
internal static TypeAffinity TypeToAffinity(Type typ)
{
TypeCode tc = Type.GetTypeCode(typ);
if (tc == TypeCode.Object)
{
if (typ == typeof(byte[]) || typ == typeof(Guid))
return TypeAffinity.Blob;
else
return TypeAffinity.Text;
}
return _typecodeAffinities[(int)tc];
}
private static TypeAffinity[] _typecodeAffinities = {
TypeAffinity.Null,
TypeAffinity.Blob,
TypeAffinity.Null,
TypeAffinity.Int64,
TypeAffinity.Int64,
TypeAffinity.Int64,
TypeAffinity.Int64,
TypeAffinity.Int64, // 7
TypeAffinity.Int64,
TypeAffinity.Int64,
TypeAffinity.Int64,
TypeAffinity.Int64, // 11
TypeAffinity.Int64,
TypeAffinity.Double,
TypeAffinity.Double,
TypeAffinity.Double,
TypeAffinity.DateTime,
TypeAffinity.Null,
TypeAffinity.Text,
};
/// <summary>
/// For a given type name, return a closest-match .NET type
/// </summary>
/// <param name="Name">The name of the type to match</param>
/// <returns>The .NET DBType the text evaluates to.</returns>
internal static DbType TypeNameToDbType(string Name)
{
if (String.IsNullOrEmpty(Name)) return DbType.Object;
int x = _typeNames.Length;
for (int n = 0; n < x; n++)
{
if (String.Compare(Name, 0, _typeNames[n].typeName, 0, _typeNames[n].typeName.Length, StringComparison.OrdinalIgnoreCase) == 0)
return _typeNames[n].dataType;
}
return DbType.Object;
}
#endregion
private static SQLiteTypeNames[] _typeNames = {
new SQLiteTypeNames("COUNTER", DbType.Int64),
new SQLiteTypeNames("AUTOINCREMENT", DbType.Int64),
new SQLiteTypeNames("IDENTITY", DbType.Int64),
new SQLiteTypeNames("LONGTEXT", DbType.String),
new SQLiteTypeNames("LONGCHAR", DbType.String),
new SQLiteTypeNames("LONGVARCHAR", DbType.String),
new SQLiteTypeNames("LONG", DbType.Int64),
new SQLiteTypeNames("TINYINT", DbType.Byte),
new SQLiteTypeNames("INTEGER", DbType.Int64),
new SQLiteTypeNames("INT", DbType.Int32),
new SQLiteTypeNames("VARCHAR", DbType.String),
new SQLiteTypeNames("NVARCHAR", DbType.String),
new SQLiteTypeNames("CHAR", DbType.String),
new SQLiteTypeNames("NCHAR", DbType.String),
new SQLiteTypeNames("TEXT", DbType.String),
new SQLiteTypeNames("NTEXT", DbType.String),
new SQLiteTypeNames("STRING", DbType.String),
new SQLiteTypeNames("DOUBLE", DbType.Double),
new SQLiteTypeNames("FLOAT", DbType.Double),
new SQLiteTypeNames("REAL", DbType.Single),
new SQLiteTypeNames("BIT", DbType.Boolean),
new SQLiteTypeNames("YESNO", DbType.Boolean),
new SQLiteTypeNames("LOGICAL", DbType.Boolean),
new SQLiteTypeNames("BOOL", DbType.Boolean),
new SQLiteTypeNames("NUMERIC", DbType.Decimal),
new SQLiteTypeNames("DECIMAL", DbType.Decimal),
new SQLiteTypeNames("MONEY", DbType.Decimal),
new SQLiteTypeNames("CURRENCY", DbType.Decimal),
new SQLiteTypeNames("TIME", DbType.DateTime),
new SQLiteTypeNames("DATE", DbType.DateTime),
new SQLiteTypeNames("SMALLDATE", DbType.DateTime),
new SQLiteTypeNames("BLOB", DbType.Binary),
new SQLiteTypeNames("BINARY", DbType.Binary),
new SQLiteTypeNames("VARBINARY", DbType.Binary),
new SQLiteTypeNames("IMAGE", DbType.Binary),
new SQLiteTypeNames("GENERAL", DbType.Binary),
new SQLiteTypeNames("OLEOBJECT", DbType.Binary),
new SQLiteTypeNames("GUID", DbType.Guid),
new SQLiteTypeNames("UNIQUEIDENTIFIER", DbType.Guid),
new SQLiteTypeNames("MEMO", DbType.String),
new SQLiteTypeNames("NOTE", DbType.String),
new SQLiteTypeNames("SMALLINT", DbType.Int16),
new SQLiteTypeNames("BIGINT", DbType.Int64),
};
}
}

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks