Using SQL to access one data operation is
SELECT * FROM Table where id=1
Generally simplified by encapsulation to operations similar to the following
Db. Find ("Table", 1);
With the C # Indexer in Iboxdb, operations are simplified to
db["Table", 1];
A simple but complete example of developing Android apps using Xamarin combined with IBOXDB
var db = new db (1, System.Environment.GetFolderPath ( System.Environment.SpecialFolder.Personal));d B. GetConfig (). Ensuretable ("Table", new dictionary<string,object>{{"ID", 0}}); var auto = db. Open (); using (var box = auto. Cube ()) {for (int i = 0; i < i++) {box ["Table]]. Insert (new dictionary<string,object> {"ID", I}, {"Name", "name-" + I}}); Box.commit (). Assert ();} button. Click + = delegate {button. Text = auto ["Table", count++% 100]. ToString ();};
Run
Just a few lines of code combined with indexers, super easy to implement a mobile database application.
Easy access to data in Iboxdb using the C # indexer