SQLiteConnection Constructor (String, SQLiteOpenFlags, Boolean) |
Constructs a new SQLiteConnection and opens a SQLite database specified by databasePath.
Namespace:
Unvired.Kernel.SQLite
Assembly:
Unvired.Kernel.UWP (in Unvired.Kernel.UWP.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic SQLiteConnection(
string databasePath,
SQLiteOpenFlags openFlags,
bool storeDateTimeAsTicks = false
)
Public Sub New (
databasePath As String,
openFlags As SQLiteOpenFlags,
Optional storeDateTimeAsTicks As Boolean = false
)
public:
SQLiteConnection(
String^ databasePath,
SQLiteOpenFlags openFlags,
bool storeDateTimeAsTicks = false
)
new :
databasePath : string *
openFlags : SQLiteOpenFlags *
?storeDateTimeAsTicks : bool
(* Defaults:
let _storeDateTimeAsTicks = defaultArg storeDateTimeAsTicks false
*)
-> SQLiteConnectionParameters
- databasePath
- Type: SystemString
Specifies the path to the database file.
- openFlags
- Type: Unvired.Kernel.SQLiteSQLiteOpenFlags
- storeDateTimeAsTicks (Optional)
- Type: SystemBoolean
Specifies whether to store DateTime properties as ticks (true) or strings (false). You
absolutely do want to store them as Ticks in all new projects. The default of false is
only here for backwards compatibility. There is a *significant* speed advantage, with no
down sides, when setting storeDateTimeAsTicks = true.
See Also