﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - Crosslight - Problem saving object in sqlite</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Problem-saving-object-in-sqlite/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Problem saving object in sqlite</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Problem-saving-object-in-sqlite/</link><pubDate>Thu, 27 Aug 2015 06:59:05 GMT</pubDate><dc:creator>Arief</dc:creator><category>Crosslight</category><category>Sqlite</category><description>&lt;p&gt;Hi Gabriel,&lt;br&gt;&lt;br&gt;Continuation from last thread:&lt;br&gt;&lt;br&gt;If you want to use basic method (without AppFramework) you can refer to this&amp;nbsp;&lt;a href="http://developer.intersoftsolutions.com/display/crosslight/Local+Data+Access and its child articles." target="_blank"&gt;http://developer.intersoftsolutions.com/display/crosslight/Local+Data+Access and its child articles.&lt;/a&gt;&lt;br&gt;&lt;br&gt;Also one thing you must remember is if you want to use Async &amp;amp; Await method you must dowload the Bcl.Async from Nuget (Add NuGet Packages in Xamarin Studio, Manages NuGet Packages for Solutions in Visual Studio).&lt;br&gt;&lt;br&gt;I think the problem with your code is you are not yet initialize your DB, second problem is because you are using task method (toListAsync()), please check the attachment for examples, also don't forget to download the Bcl.Async for this project!&lt;br&gt;&lt;br&gt;Notes: as this is just for practice i put the table exist inside viewmodel, the best practice is by putting it in onstart method in appservice.cs&lt;br&gt;&lt;br&gt;Hope that'll helps!&lt;/p&gt;</description></item><item><title>Problem saving object in sqlite</title><link>http://www.intersoftsolutions.com/Community/Crosslight/Problem-saving-object-in-sqlite/</link><pubDate>Wed, 26 Aug 2015 21:06:36 GMT</pubDate><dc:creator>gabrielswapi</dc:creator><category>Crosslight</category><category>Sqlite</category><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I created a model "PessoaModel," and I tried to save the sqlite, but tou some problems, the first would think that I am unable to save my data in sqlite. The second is that I'm not getting in my "PessoaListViewModel.cs" use "this.SourceItems = conexao.Connection () Table &amp;lt;PessoaModel&amp;gt; () ToListAsync ();.."&lt;/p&gt;</description></item></channel></rss>