azure移动客户端表批量插入

时间:2016-05-26 16:44:29

标签: android sqlite azure xamarin

// Create a mobile client

MobileServiceClient client = new MobileServiceClient("AppUrl","AppKey");

//get table 

IMobileServiceTable<TodoItem> todoTable = client.GetTable<TodoItem>();

//query table 

MobileServiceTableQuery<TodoItem> query = todoTable
            .Where(todoItem => todoItem.Complete == false)
            .Select(todoItem => todoItem.Text)
            .Skip(0).
            .Take(1000);
List<string> items = await query.ToListAsync();

我有1000行。现在我想在xamarin中将这1000条记录插入移动客户端。如何在我们的sqlite todotable中批量插入这1000行?

0 个答案:

没有答案