i want to insert multiple record in my SQLite table at a time. See this line of code
var items = await MgoApi.Get("Assignment/GetAssigstudents", param);in this line i'm getting multiple record in items from API, now how can i insert items all record in local database table.
i'm using xamarin android, SQLite database with SQLiteAsyncConnection in VS2013 
how i have tried see
- foreach(var _items in items)
- {
- obj.Amount = _items.Amount;
- obj.Purpose_Of_Spending = _items.Purpose_Of_Spending;
- obj.Type = _items.Type;
- obj.Subject=_items.Subject;
- obj.Rank=_items.Rank
- var RowAffted= Repository_obj.Insert(obj);
- }


Suresh MRank #171 · 14K reputationPosted Jul 21, 2016, 8:44 PM EDT
Arvind ChourasiyaRank #1,658 · 926 reputationPosted Jul 21, 2016, 11:03 PM EDT