Example #1
0
        private Connection NewConnection(Android.Database.ICursor cursor)
        {
            var id = cursor.GetString (0);
            var source =cursor.GetString (1);
            Connection connection = new Connection (id, source);

            return (connection);
        }
Example #2
0
        public long AddConnection(Connection connection)
        {
            var values = new ContentValues ();
            var id = connection.Source [0];
            var source = connection.Source [1];
            Console.WriteLine ("{0} - {1}", id, source);
            values.Put ("ID", id);
            values.Put ("SOURCE", source);

            return connectionHelp.WritableDatabase.Insert ("Connection", null, values);
        }