Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Throw an exception if an unsupported object type is detected in the DateTimeFormat property. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
68b19e5f02920fa1a1f2e2a12dd37819 |
User & Date: | mistachkin 2011-12-20 00:05:08.953 |
Context
2011-12-20
| ||
00:07 | Correction to the previous commit. Actually, instead of throwing exceptions directly, always attempt to convert non-null values to the required type and let the converter itself throw an exception if necessary. check-in: 4fbdb092f8 user: mistachkin tags: trunk | |
00:05 | Throw an exception if an unsupported object type is detected in the DateTimeFormat property. check-in: 68b19e5f02 user: mistachkin tags: trunk | |
00:03 | Support the DateTimeKind and BaseSchemaName connection string properties in the SQLiteConnectionStringBuilder class. Also, make getting and setting the DateTimeFormat property slightly more robust. check-in: 20ee87087b user: mistachkin tags: trunk | |
Changes
Changes to System.Data.SQLite/SQLiteConnectionStringBuilder.cs.
︙ | ︙ | |||
403 404 405 406 407 408 409 410 411 412 413 414 415 416 | if (TryGetValue("datetimeformat", out value)) { if (value is SQLiteDateFormats) return (SQLiteDateFormats)value; else if (value is string) return (SQLiteDateFormats)TypeDescriptor.GetConverter( typeof(SQLiteDateFormats)).ConvertFrom(value); } return SQLiteDateFormats.Default; } set { this["datetimeformat"] = value; | > > | 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 | if (TryGetValue("datetimeformat", out value)) { if (value is SQLiteDateFormats) return (SQLiteDateFormats)value; else if (value is string) return (SQLiteDateFormats)TypeDescriptor.GetConverter( typeof(SQLiteDateFormats)).ConvertFrom(value); else throw new NotSupportedException(); } return SQLiteDateFormats.Default; } set { this["datetimeformat"] = value; |
︙ | ︙ |