コード例 #1
0
        public override bool Open (String path)
        {
            var connectionString = new SqliteConnectionStringBuilder
            {
                DataSource = path,
                Version = 3,
                SyncMode = SynchronizationModes.Full
            };

            var result = true;
            try {
                shouldCommit = false;
                Connection = new SqliteConnection (connectionString.ToString ());
                Connection.Open();
            } catch (Exception ex) {
                Log.E(Tag, "Error opening the Sqlite connection using connection String: {0}".Fmt(connectionString.ToString()), ex);
                result = false;    
            }

            return result;
        }