Пример #1
0
        public override async void ViewDidLoad()
        {
            base.ViewDidLoad();

            client = new EasyMobileServiceClient();
            client.Initialize("http://xamarin-todo-sample.azurewebsites.net");
            client.RegisterTable<ToDo>();
            client.FinalizeSchema();

            dataStore = client.Table<ToDo>();
            await dataStore.Sync();
            items = await dataStore.GetItemsAsync();
        }
Пример #2
0
        public override async void ViewDidLoad()
        {
            base.ViewDidLoad();

            client = new EasyMobileServiceClient();
            client.Initialize("http://xamarin-todo-sample.azurewebsites.net");
            client.RegisterTable <ToDo>();
            client.FinalizeSchema();

            dataStore = client.Table <ToDo>();
            await dataStore.Sync();

            items = await dataStore.GetItemsAsync();
        }