﻿<?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 - Sqlite</title><link>http://www.intersoftsolutions.com/Community/Tags/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/Tags/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><item><title>Problem Sqlite</title><link>http://www.intersoftsolutions.com/Community/Tags/Sqlite/</link><pubDate>Tue, 25 Aug 2015 20:18:38 GMT</pubDate><dc:creator>gabrielswapi</dc:creator><category>android</category><category>Crosslight</category><category>Sqlite</category><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I am creating a test project, and would like to study more about sqlite, I am unable to import into my project ".Core" the "CrossLith.Data" as could solve this problem and I wonder if Voes has some sample project using sQLite so I can base myself in it.&lt;/p&gt;</description></item><item><title>How-to: Create Crosslight Business Apps with Local Data Storage (SQLite)</title><link>http://www.intersoftsolutions.com/Community/Tags/Sqlite/</link><pubDate>Mon, 16 Mar 2015 05:52:32 GMT</pubDate><dc:creator>martin@intersoftpt.com</dc:creator><category>Crosslight</category><category>Sqlite</category><category>business apps</category><category>local data storage</category><description>&lt;p&gt;This how-to topic will show you in-depth how to create apps that use SQLite as its local data storage using Crosslight Business Template. You will learn how to configure SQLite for the first time, setting up the domain model through Intersoft Entity Designer and add some simple settings and code to enable SQLite.&amp;nbsp;&lt;a href="http://developer.intersoftpt.com/pages/viewpage.action?pageId=16812361" target="_blank"&gt;Learn more&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;You can download the available sample code from our Git server&amp;nbsp;&lt;a href="http://git.intersoftpt.com/projects/CROS-SUPP/repos/sqlite-sample-businesstemplate/browse" target="_blank"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;Regards,&lt;br&gt;Martin Lie&lt;br&gt;Account Manager&lt;/p&gt;</description></item><item><title>How to  obtain the local storage and activator service?</title><link>http://www.intersoftsolutions.com/Community/Tags/Sqlite/</link><pubDate>Wed, 17 Dec 2014 02:39:57 GMT</pubDate><dc:creator>MiseryChen</dc:creator><category>Sqlite</category><description>&lt;p&gt;Hi support:&lt;/p&gt;&lt;p&gt;&amp;nbsp;in &amp;nbsp;project, I want to use local data . I have tried your mothed which is publiced online:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;for the following code:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;ILocalStorageService storageService = this.GetService&amp;lt;ILocalStorageService&amp;gt;();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IActivatorService activatorService = this.GetService&amp;lt;IActivatorService&amp;gt;();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;i&gt;&amp;nbsp;&lt;/i&gt; &amp;nbsp; &amp;nbsp; &lt;span style="text-decoration: underline;"&gt;var factory = activatorService.CreateInstance&amp;lt;System.Func&amp;lt;string, ISQLiteConnection&amp;gt;&amp;gt;()&lt;/span&gt;;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp; &amp;nbsp; the underlined parts is wrong in my project, error info is&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Could not resolve type: activatorService.CreateInstance&amp;lt;global::System.Func&amp;lt;string, global::Intersoft.Crosslight.Data.SQLite.ISQLiteConnection&amp;gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;How to slove this problme?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;&lt;br&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;&lt;br&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Crosslight - Local Data Synchronization</title><link>http://www.intersoftsolutions.com/Community/Tags/Sqlite/</link><pubDate>Tue, 16 Dec 2014 10:29:23 GMT</pubDate><dc:creator>kibork</dc:creator><category>Sqlite</category><category>Local Data</category><category>Enterprise Framework</category><category>Synchronization</category><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;it try to add the Local Data Synchronization to the 'startup Business App' from Crosslight Project Wizard. I can login and so on... When I start the app it synchronizes with the .mdf database. 42 entities will fetch.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Now my current Problem.&lt;/p&gt;&lt;p&gt;When I go in menu to the Inventory (Page3), I get this Error:&lt;/p&gt;&lt;p&gt;"Unable to perform data operation due to an error: Object reference not set to an instance of an object."&lt;/p&gt;&lt;p&gt;Error occurs after this part(ItemListViewModel):&lt;/p&gt;&lt;pre&gt;public DateTime? LastSync {            get {                return _lastSync;            }
            set {
                if (_lastSync != value) {
                    _lastSync = value;
                    OnPropertyChanged("LastUpdate");
                    OnPropertyChanged("UpdatedText");
                }
            }
        }&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Wich object and where? o.O&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(51, 51, 51); font-family: Verdana, sans-serif; font-size: 13px; background-color: rgb(243, 231, 251);"&gt;Best regards&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Using Sqlite in WinRT App</title><link>http://www.intersoftsolutions.com/Community/Tags/Sqlite/</link><pubDate>Tue, 02 Sep 2014 10:13:01 GMT</pubDate><dc:creator>Jeankie</dc:creator><category>Sqlite</category><category>WinRT</category><description>&lt;p&gt;Hi all,&lt;/p&gt;&lt;p&gt;I've recently started a trial of crosslight mobile studio for a proof of concept.&lt;/p&gt;&lt;p&gt;What i'm trying to do is creating a simple Windows 8.1 app with local database access using SQLite. But i'm having some trouble with the SQLite part :)&lt;/p&gt;&lt;p&gt;I have 2 projects, "App.Core" and "App.WinRT".&amp;nbsp;&lt;/p&gt;&lt;p&gt;In the core project I've made a reference with the following assemblies:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;.NET&lt;/li&gt;&lt;li&gt;Intersoft.AppFramework&lt;/li&gt;&lt;li&gt;Intersoft.Crosslight&lt;/li&gt;&lt;li&gt;Intersoft.Crosslight.Data&lt;/li&gt;&lt;li&gt;Intersoft.Crosslight.Data.ComponentModel&lt;/li&gt;&lt;li&gt;Intersoft.Crosslight.Data.SQLite&lt;/li&gt;&lt;li&gt;Several Nuget packages to get this project to build (Some Microsoft Bcl packages.&lt;/li&gt;&lt;/ul&gt;In the WinRT project I've made references to same intersoft assemblies. I also made a reference to the Intersoft.Crosslight.Data.SQLite.WinRT assembly (which is the platform specific assembly) and an SDK extension package called SQLite for Windows Runtime (Windows 8.1)&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;In the AppService class constructor in the Core project I've added some Appsettings and a SQLiteService.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AppSettings settings = new AppSettings();&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: 10pt;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; settings.RequiresInternetConnection = false;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; settings.LocalDatabaseName = "database.db3";&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; settings.LocalDatabaseLocation = LocalFolderKind.Data;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; settings.DataSynchronizationMode = DataSynchronizationMode.LoadPartial;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.GetService&amp;lt;ITypeResolverService&amp;gt;().Register(typeof(CrosslightAppAppService).Assembly);&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Container.Current.RegisterInstance(settings);&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Container.Current.Register&amp;lt;IEntityContainer&amp;gt;("Default", c =&amp;gt; new EntityContainer()).WithLifetimeManager(new ContainerLifetime());&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ServiceProvider.AddService&amp;lt;ISQLiteService, SQLiteService&amp;gt;();&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;In the OnStart method i've added the following lines.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ISQLiteService service = ServiceProvider.GetService&amp;lt;ISQLiteService&amp;gt;();&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ISQLiteAsyncConnection connection = service.OpenConnection("database.db3");&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;These lines throws the following error:&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;System.Exception: The SQLite platform service is not initialized. Please make sure the Intersoft.Crosslight.Data.SQLite.[platform] is referenced in your project.&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;at Intersoft.AppFramework.Services.SQLiteService.OpenConnection(String dbName)&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;at CrosslightApp2.Infrastructure.CrosslightAppAppService.OnStart(StartParameter parameter)&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;at Intersoft.Crosslight.ApplicationServiceBase.Intersoft.Crosslight.IApplicationService.OnStart(StartParameter parameter)&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;at Intersoft.Crosslight.WinRT.Application.&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;I've added a sample solution to this thread. Can someone please tell me what to do in order to create a local SQLite database and access it from the windows RT app.&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;&lt;p&gt;Kind regards,&lt;/p&gt;&lt;p&gt;Jan&lt;/p&gt;&lt;/div&gt;</description></item></channel></rss>