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);
- }

Arvind ChourasiyaPosted Jul 22, 2016, 3:03 AM
Suresh MPosted Jul 22, 2016, 12:44 AM