Skip to content

Commit c7ae363

Browse files
committed
Changed the storeDateTimeAsTicks default to true
1 parent c4946f0 commit c7ae363

File tree

4 files changed

+3347
-7
lines changed

4 files changed

+3347
-7
lines changed

src/SQLite.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,13 @@ public partial class SQLiteConnection : IDisposable
171171
/// </param>
172172
/// <param name="storeDateTimeAsTicks">
173173
/// Specifies whether to store DateTime properties as ticks (true) or strings (false). You
174-
/// absolutely do want to store them as Ticks in all new projects. The default of false is
174+
/// absolutely do want to store them as Ticks in all new projects. The value of false is
175175
/// only here for backwards compatibility. There is a *significant* speed advantage, with no
176176
/// down sides, when setting storeDateTimeAsTicks = true.
177177
/// If you use DateTimeOffset properties, it will be always stored as ticks regardingless
178178
/// the storeDateTimeAsTicks parameter.
179179
/// </param>
180-
public SQLiteConnection (string databasePath, bool storeDateTimeAsTicks = false)
180+
public SQLiteConnection (string databasePath, bool storeDateTimeAsTicks = true)
181181
: this (databasePath, SQLiteOpenFlags.ReadWrite | SQLiteOpenFlags.Create, storeDateTimeAsTicks)
182182
{
183183
}
@@ -190,13 +190,13 @@ public SQLiteConnection (string databasePath, bool storeDateTimeAsTicks = false)
190190
/// </param>
191191
/// <param name="storeDateTimeAsTicks">
192192
/// Specifies whether to store DateTime properties as ticks (true) or strings (false). You
193-
/// absolutely do want to store them as Ticks in all new projects. The default of false is
193+
/// absolutely do want to store them as Ticks in all new projects. The value of false is
194194
/// only here for backwards compatibility. There is a *significant* speed advantage, with no
195195
/// down sides, when setting storeDateTimeAsTicks = true.
196196
/// If you use DateTimeOffset properties, it will be always stored as ticks regardingless
197197
/// the storeDateTimeAsTicks parameter.
198198
/// </param>
199-
public SQLiteConnection (string databasePath, SQLiteOpenFlags openFlags, bool storeDateTimeAsTicks = false)
199+
public SQLiteConnection (string databasePath, SQLiteOpenFlags openFlags, bool storeDateTimeAsTicks = true)
200200
{
201201
if (string.IsNullOrEmpty (databasePath))
202202
throw new ArgumentException ("Must be specified", "databasePath");

0 commit comments

Comments
 (0)