Launch Xamarin Studio on the Mac.
In this example, we'll be creating an iOS app.
Selected the project template of your choice.
Select Single View App
Provide a name for the sample app.
Provide a unique name for the sample app
Add Nuget Package
Search for AppService.Helpers
Add Azure SQLite Store Nuget Package (ASH depends on this).
Add the following to the AppDelegate FinishedLaunching method.
Now we're reading to initialize ASH and register our models. If you're not yet created your models, you'll want to read through our models and object docs.
var client = new EasyMobileServiceClient(); client.Initialize("YOUR_AZURE_URL_GOES_HERE"); //Register our objects client.RegisterTable<ToDo>(); client.RegisterTable<User>(); client.FinalizeSchema(); var Todos = new ConnectedObservableCollection<ToDo>(client.Table<ToDo>()); var Users = new ConnectedObservableCollection<User>(client.Table<User>());
Updated about 13 hours ago