﻿<?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 - Lounge - Using Sqlite in WinRT App</title><link>http://www.intersoftsolutions.com/Community/Lounge/Using-Sqlite-in-WinRT-App/</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>Using Sqlite in WinRT App</title><link>http://www.intersoftsolutions.com/Community/Lounge/Using-Sqlite-in-WinRT-App/</link><pubDate>Thu, 02 Oct 2014 04:37:27 GMT</pubDate><dc:creator>yudi</dc:creator><category>Sqlite</category><category>WinRT</category><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I didn't experience any difficulty while testing Crosslight 2 Update 5 on the sample provided by Jan Eeckhout. I just simply add the new assembly files (of Crosslight 2 Update 5) into the &lt;em&gt;Packages&lt;/em&gt; folder; clean the solution; and re-build.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Could you please provide me with information about step-by-step guide to reproduce the problem?&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Using Sqlite in WinRT App</title><link>http://www.intersoftsolutions.com/Community/Lounge/Using-Sqlite-in-WinRT-App/</link><pubDate>Wed, 01 Oct 2014 21:31:32 GMT</pubDate><dc:creator>devincroud</dc:creator><category>Sqlite</category><category>WinRT</category><description>&lt;p&gt;Yudi,&lt;/p&gt;&lt;p&gt;I have it working in iOS and Android now but when I try to add the refrences of .95 to Windows Phone I get the following Error:&lt;/p&gt;&lt;p&gt;A reference to a higher version or incompatible assembly cannot be added to the project.&lt;/p&gt;&lt;p&gt;If I add old version, it adds them correctly but does not communicate correctly.&lt;/p&gt;</description></item><item><title>Using Sqlite in WinRT App</title><link>http://www.intersoftsolutions.com/Community/Lounge/Using-Sqlite-in-WinRT-App/</link><pubDate>Mon, 29 Sep 2014 04:07:47 GMT</pubDate><dc:creator>yudi</dc:creator><category>Sqlite</category><category>WinRT</category><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;The hotfix for WinRT SQLite will be included in September hotfix. I have tested the nightly build version using the sample project provided by Jan Eeckhout, CrosslightApp2.zip (attached on his post: September 2, 2014) and found that the reported problem is no longer persist.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;You will need to apply Crosslight 2 Update 5 (which will be released in the next couple of days) and add following line in &lt;strong&gt;InitializeServices&lt;/strong&gt; method of &lt;em&gt;AppInitializer&lt;/em&gt; class from the WinRT project.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;public void InitializeServices(IApplicationHost appHost)
{
    ...
    Application.PreserveAssembly((typeof(Intersoft.Crosslight.Data.SQLite.ServiceInitializer).GetObjectTypeInfo().Assembly));
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Hope this help.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Using Sqlite in WinRT App</title><link>http://www.intersoftsolutions.com/Community/Lounge/Using-Sqlite-in-WinRT-App/</link><pubDate>Fri, 26 Sep 2014 08:16:37 GMT</pubDate><dc:creator>devincroud</dc:creator><category>Sqlite</category><category>WinRT</category><description>Did you ever get an answer?  I'm having the same issue with Android now.</description></item><item><title>Using Sqlite in WinRT App</title><link>http://www.intersoftsolutions.com/Community/Lounge/Using-Sqlite-in-WinRT-App/</link><pubDate>Wed, 03 Sep 2014 02:11:35 GMT</pubDate><dc:creator>yudi</dc:creator><category>Sqlite</category><category>WinRT</category><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Thank you very much for the attached sample solution. It really helps to reproduce the problem in my local end.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;This has been forwarded to Crosslight development team to be investigated further. I will keep this thread updated with any news I heard from the team regarding the reported problem.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Using Sqlite in WinRT App</title><link>http://www.intersoftsolutions.com/Community/Lounge/Using-Sqlite-in-WinRT-App/</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>