sqlite-net

Xamarin error System.DllNotFoundException: /system/lib/libsqlite.so on Android 7.0

我怕爱的太早我们不能终老 提交于 2019-12-01 06:36:27
I get this exception whenever I try to create a SQLite.Net.SQLiteConnection in android 7.0 any idea how to fix it? I'm using these nuget pacakges: <packages> <package id="ExifLib.PCL" version="1.0.1" targetFramework="monoandroid6" /> <package id="Microsoft.Bcl" version="1.1.10" targetFramework="monoandroid43" /> <package id="Microsoft.Bcl.Build" version="1.0.21" targetFramework="monoandroid43" /> <package id="Newtonsoft.Json" version="7.0.1" targetFramework="monoandroid6" /> <package id="SQLite.Net.Core-PCL" version="3.1.1" targetFramework="monoandroid6" /> <package id="SQLite.Net-PCL" version

Xamarin error System.DllNotFoundException: /system/lib/libsqlite.so on Android 7.0

风流意气都作罢 提交于 2019-12-01 04:06:50
问题 I get this exception whenever I try to create a SQLite.Net.SQLiteConnection in android 7.0 any idea how to fix it? I'm using these nuget pacakges: <packages> <package id="ExifLib.PCL" version="1.0.1" targetFramework="monoandroid6" /> <package id="Microsoft.Bcl" version="1.1.10" targetFramework="monoandroid43" /> <package id="Microsoft.Bcl.Build" version="1.0.21" targetFramework="monoandroid43" /> <package id="Newtonsoft.Json" version="7.0.1" targetFramework="monoandroid6" /> <package id=

Could not find SDK SQLite.UWP.2015 when building UWP application using Hosted TFS pool

此生再无相见时 提交于 2019-11-30 14:56:49
I have build a UWP application using Sqlite. On my local machine I had to install the following SQLite for Universal Windows Platform Visual Studio Extension to get it to build. I followed this blog when using sqlite on UWP I am now trying to implement Continuous integration with Visual Studio Team Services (was Team Foundation Server Online). I am using a Hosted pool to build my application but I get the following message: C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(2049,5): error MSB3774: Could not find SDK "SQLite.UWP.2015, Version=3.12.2". and it breaks

SQLite-Net Extension both one-to-one and one-to-many relationships between two entities

被刻印的时光 ゝ 提交于 2019-11-30 09:30:23
I am using SQLite-Net PCL together with SQLite-Net extensions for the development of an application using Xamarin. In my model I have two entities, let us call them A and B, that are connected by both a one-to-one and a one-to-many relationships. For instance, A has a one-to-one relationship with B, and A has also a one-to-many relationship with B. Is it possible to express such behaviour with SQLite-Net extensions? Yes, but you have to explicitly declare the foreign keys and inverse properties in the relationship attribute, because otherwise the library may get the wrong foreign key for the

Could not find SDK SQLite.UWP.2015 when building UWP application using Hosted TFS pool

牧云@^-^@ 提交于 2019-11-29 21:14:27
问题 I have build a UWP application using Sqlite. On my local machine I had to install the following SQLite for Universal Windows Platform Visual Studio Extension to get it to build. I followed this blog when using sqlite on UWP I am now trying to implement Continuous integration with Visual Studio Team Services (was Team Foundation Server Online). I am using a Hosted pool to build my application but I get the following message: C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common

Exception when using SQLite in WinRT app

谁都会走 提交于 2019-11-29 14:37:37
I'm building a Windows 8 app, and now I want to use SQLite for this app. I installed SQLite for Windows Runtime through the Visual Studio 2013 extension manager, and I added sqlite-net to my project through NuGet. I'm trying to create a database in my app.xaml.cs OnLaunched , but I get this exception when I run the project: Unable to load DLL 'sqlite3': The specified module could not be found. (Exception from HRESULT: 0x8007007E) This is very strange because there is no error during compiling. Anyway, I think it tries to tell me that I need to reference an additional DLL: sqlite3.dll , but

SQLite-Net Extension both one-to-one and one-to-many relationships between two entities

女生的网名这么多〃 提交于 2019-11-29 14:33:01
问题 I am using SQLite-Net PCL together with SQLite-Net extensions for the development of an application using Xamarin. In my model I have two entities, let us call them A and B, that are connected by both a one-to-one and a one-to-many relationships. For instance, A has a one-to-one relationship with B, and A has also a one-to-many relationship with B. Is it possible to express such behaviour with SQLite-Net extensions? 回答1: Yes, but you have to explicitly declare the foreign keys and inverse

Can I use a List of String in a class intended for SQLite?

守給你的承諾、 提交于 2019-11-28 10:58:24
What limitations are there on data types used in a class that will be used by SQLite-net to represent a table? Specifically, can I use this: public List<string> CoconutWaterBrands { get; set; } ...or will I need this: public string[] CoconutWaterBrands { get; set; } ...or something else altogether? ORMs (aka abstraction leak) will have this kind of problem. The fields in the class will correspond to columns in the table. If you use List or arrays then the ORM will either have to somehow combine those values in the list in a single column, for that it will have to choose some kind of separator

Sqlite extension is not working as expected

天涯浪子 提交于 2019-11-28 10:05:38
I am working on an WinRT app. I want to use sqlite-net-extensions to support OneToMany , ManyToMany . using SQLiteNetExtensions.Attributes; using SQLite; [Table("WorkFlow")] public class Workflow { [PrimaryKey, AutoIncrement] public int WorkflowId { get; set; } public string Name { get; set; } public int Revision { get; set; } [OneToMany] public List<Step> Steps { get; set; } } [Table("Step")] public class Step { public string Type { get; set; } public string Description { get; set; } [ManyToOne] public Workflow Workflow { get; set; } } When I try to generate the tables for the database, it

Exception when using SQLite in WinRT app

十年热恋 提交于 2019-11-28 08:22:06
问题 I'm building a Windows 8 app, and now I want to use SQLite for this app. I installed SQLite for Windows Runtime through the Visual Studio 2013 extension manager, and I added sqlite-net to my project through NuGet. I'm trying to create a database in my app.xaml.cs OnLaunched , but I get this exception when I run the project: Unable to load DLL 'sqlite3': The specified module could not be found. (Exception from HRESULT: 0x8007007E) This is very strange because there is no error during compiling