static private GetSqliteConnection ( string filename ) : SQLitePCL.sqlite3 | ||
filename | string | |
return | SQLitePCL.sqlite3 |
/// <summary> /// Initializes a new instance of <see cref="MobileServiceSQLiteStore"/> /// </summary> /// <param name="fileName">Name of the local SQLite database file.</param> public MobileServiceSQLiteStore(string fileName) { if (fileName == null) { throw new ArgumentNullException("fileName"); } if (this.connection == null) { this.connection = SQLitePCLRawHelpers.GetSqliteConnection(fileName); } }
/// <summary> /// Initializes a new instance of <see cref="MobileServiceSQLiteStore"/> /// </summary> /// <param name="fileName">Name of the local SQLite database file.</param> public MobileServiceSQLiteStore(string fileName) { if (fileName == null) { throw new ArgumentNullException("fileName"); } if (this.connection == null) { // Fully qualify the path var dbPath = fileName.StartsWith("/") ? fileName : Path.Combine(MobileServiceClient.DefaultDatabasePath, fileName); MobileServiceClient.EnsureFileExists(dbPath); this.connection = SQLitePCLRawHelpers.GetSqliteConnection(dbPath); } }