Skip to content
This repository was archived by the owner on Jan 2, 2024. It is now read-only.

Commit 55ea97f

Browse files
committed
Add missing System.Linq.Expressions.dll.
Add more information to the readme. Add simple dll project for the sqlite.cs file in root.
1 parent 29381bb commit 55ea97f

18 files changed

+183
-17
lines changed
91.5 KB
Binary file not shown.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Port of System.Linq.Expressions from Mono by db4o.
2+
https://source.db4o.com/db4o/trunk/db4o.net/Libs/compact-3.5/System.Linq.Expressions/
3+
4+
(C) 2009-2010 Novell, Inc.
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
7+
8+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
9+
10+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

readme.markdown

Lines changed: 41 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,58 @@
11
sqlite-net .Net Compact Framework Port
22
==============
3-
This is a port of sqlite-net http://code.google.com/p/sqlite-net to Microsoft .Net Compact Framework (CF). CF has some limitation for .Net interop so it can not run out of the box on it (in example long or double as return types are not supported). So ive created an special version of the sqlite interop dll from the ADO.Net sqlite dataprovider http://sqlite.phxsoftware.com/. This version adds the missing sqlite3_last_insert_rowid_interop function.
4-
In sqlite-net i only changed the SQLite3 class which simply calls the native sqlite3.dll.
3+
This is a port of sqlite-net http://code.google.com/p/sqlite-net to Microsoft .Net Compact Framework.
54

6-
About sqlite-net
7-
==============
8-
Homepage: http://code.google.com/p/sqlite-net
9-
sqlite-net is an open source, minimal library to allow .NET and Mono applications to store data in SQLite 3 databases. It is written in C# 3.0 and is meant to be simply compiled in with your projects. It was first designed to work with MonoTouch on the iPhone, but should work in any other CLI environment.
5+
Compact Framework has some interop limitations so it can not run sqlite-net out of the box (in example long or double as return types are not supported).
106

11-
sqlite-net was designed as a quick and convenient database layer. Its design follows from these goals:
7+
First Compact Framework has no System.Linq.Expressions. This issue can be solved since db4o has ported the Mono Linq.Expressions to Compact Framework. https://source.db4o.com/db4o/trunk/db4o.net/Libs/compact-3.5/System.Linq.Expressions/
128

13-
* Very easy to integrate with existing projects and with MonoTouch projects.
9+
Second you need a special version of sqlite3.dll which has special interop for Compact Framework. A lot of that code is provided by the SQLite DataProvider from http://sqlite.phxsoftware.com/, but it dose not have the required sqlite3_last_insert_rowid_interop function, so ive created a fork of it here, unter Sqlite3.
1410

15-
* Fast and efficient.
11+
Ive also added a simple dll project which uses the sqlite.cs file from root and creates an assembly from it, for all people which dose not want to include the cs file directly.
1612

17-
* Methods for executing queries safely (using parameters) and for retrieving the results of those query in a strongly typed fashion.
13+
About sqlite-net
14+
==============
15+
Homepage: http://code.google.com/p/sqlite-net
1816

19-
* Linq support so that you don't have to write SQL (see LinqSupport).
17+
sqlite-net is an open source, minimal library to allow .NET and Mono applications to store data in SQLite 3 databases. It is written in C# 3.0 and is meant to be simply compiled in with your projects. It was first designed to work with MonoTouch on the iPhone, but should work in any other CLI environment.
2018

21-
* Works with your data model without forcing you to change your classes. (Contains a small reflection-driven ORM layer.)
19+
sqlite-net was designed as a quick and convenient database layer. Its design follows from these goals:
2220

23-
* It has 0 dependencies aside from a compiled form of the sqlite3 library.
21+
* Very easy to integrate with existing projects and with MonoTouch projects.
22+
* Fast and efficient.
23+
* Methods for executing queries safely (using parameters) and for retrieving the results of those query in a strongly typed fashion.
24+
* Linq support so that you don't have to write SQL (see LinqSupport).
25+
* Works with your data model without forcing you to change your classes. (Contains a small reflection-driven ORM layer.)
26+
* It has 0 dependencies aside from a compiled form of the sqlite3 library.
2427

2528
Non-goals include:
26-
27-
* Not an implementation of IDbConnection and its family. This is not a full SQLite driver. If you need that, go get System.Data.SQLite or csharp-sqlite.
29+
* Not an implementation of IDbConnection and its family. This is not a full SQLite driver. If you need that, go get System.Data.SQLite or csharp-sqlite.
2830

29-
Compiling sqlite_interop
31+
sqlite-net license
32+
============
33+
Copyright (c) 2009-2010 Krueger Systems, Inc.
34+
35+
Permission is hereby granted, free of charge, to any person obtaining a copy
36+
of this software and associated documentation files (the "Software"), to deal
37+
in the Software without restriction, including without limitation the rights
38+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
39+
copies of the Software, and to permit persons to whom the Software is
40+
furnished to do so, subject to the following conditions:
41+
42+
The above copyright notice and this permission notice shall be included in
43+
all copies or substantial portions of the Software.
44+
45+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
46+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
47+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
48+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
49+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
50+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
51+
THE SOFTWARE.
52+
53+
Compiling Sqlite3
3054
============
31-
To compile sqlite_interop you need the Visual Studio 2008 C++ compiler. It dose not contains the sqlite source code. So you have to download the latest source version from http://sqlite.org/download.html and extract it to sqlite_interop/Sources/splitsource.
55+
To compile Sqlite3 you need the Visual Studio 2008 C++ compiler. It dose not contains the sqlite source code. So you have to download the latest source version from http://sqlite.org/download.html and extract it to Sqlite3/Sources/splitsource.
3256

3357
Issues
3458
============

sqlite-net/Properties/AssemblyInfo.cs

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("sqlite_net")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("Microsoft")]
12+
[assembly: AssemblyProduct("sqlite_net")]
13+
[assembly: AssemblyCopyright("Copyright © Microsoft 2010")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("acd35c56-e60d-4095-b830-543c3a7b0edb")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Revision and Build Numbers
33+
// by using the '*' as shown below:
34+
[assembly: AssemblyVersion("1.0.*")]
35+

sqlite-net/sqlite-net.csproj

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
2+
<PropertyGroup>
3+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
4+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
5+
<ProductVersion>9.0.30729</ProductVersion>
6+
<SchemaVersion>2.0</SchemaVersion>
7+
<ProjectGuid>{455418C6-DC94-4F9F-ABB5-3EECA203CC81}</ProjectGuid>
8+
<OutputType>Library</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>SQLite</RootNamespace>
11+
<AssemblyName>sqlite-net</AssemblyName>
12+
<ProjectTypeGuids>{4D628B5B-2FBC-4AA6-8C16-197242AEB884};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
13+
<PlatformFamilyName>PocketPC</PlatformFamilyName>
14+
<PlatformID>4118C335-430C-497f-BE48-11C3316B135E</PlatformID>
15+
<OSVersion>5.1</OSVersion>
16+
<DeployDirSuffix>sqlite_net</DeployDirSuffix>
17+
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
18+
<NativePlatformName>Windows Mobile 5.0 Pocket PC SDK</NativePlatformName>
19+
<FormFactorID>
20+
</FormFactorID>
21+
</PropertyGroup>
22+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
23+
<DebugSymbols>true</DebugSymbols>
24+
<DebugType>full</DebugType>
25+
<Optimize>false</Optimize>
26+
<OutputPath>bin\Debug\</OutputPath>
27+
<DefineConstants>DEBUG;TRACE;$(PlatformFamilyName)</DefineConstants>
28+
<NoStdLib>true</NoStdLib>
29+
<NoConfig>true</NoConfig>
30+
<ErrorReport>prompt</ErrorReport>
31+
<FileAlignment>512</FileAlignment>
32+
<WarningLevel>4</WarningLevel>
33+
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
34+
</PropertyGroup>
35+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
36+
<DebugType>pdbonly</DebugType>
37+
<Optimize>true</Optimize>
38+
<OutputPath>bin\Release\</OutputPath>
39+
<DefineConstants>TRACE;$(PlatformFamilyName)</DefineConstants>
40+
<NoStdLib>true</NoStdLib>
41+
<NoConfig>true</NoConfig>
42+
<ErrorReport>prompt</ErrorReport>
43+
<FileAlignment>512</FileAlignment>
44+
<WarningLevel>4</WarningLevel>
45+
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
46+
</PropertyGroup>
47+
<ItemGroup>
48+
<Reference Include="mscorlib" />
49+
<Reference Include="System" />
50+
<Reference Include="System.Core" />
51+
<Reference Include="System.Linq.Expressions, Version=7.13.132.14181, Culture=neutral, processorArchitecture=MSIL">
52+
<SpecificVersion>False</SpecificVersion>
53+
<HintPath>..\Dependencys\System.Linq.Expressions.dll</HintPath>
54+
</Reference>
55+
</ItemGroup>
56+
<ItemGroup>
57+
<Compile Include="..\SQLite.cs">
58+
<Link>SQLite.cs</Link>
59+
</Compile>
60+
<Compile Include="Properties\AssemblyInfo.cs" />
61+
</ItemGroup>
62+
<Import Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets" />
63+
<ProjectExtensions>
64+
<VisualStudio>
65+
<FlavorProperties GUID="{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}">
66+
<HostingProcess disable="1" />
67+
</FlavorProperties>
68+
</VisualStudio>
69+
</ProjectExtensions>
70+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
71+
Other similar extension points exist, see Microsoft.Common.targets.
72+
<Target Name="BeforeBuild">
73+
</Target>
74+
<Target Name="AfterBuild">
75+
</Target>
76+
-->
77+
</Project>

sqlite-net/sqlite-net.sln

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 10.00
3+
# Visual Studio 2008
4+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "sqlite-net", "sqlite-net.csproj", "{455418C6-DC94-4F9F-ABB5-3EECA203CC81}"
5+
EndProject
6+
Global
7+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
8+
Debug|Any CPU = Debug|Any CPU
9+
Release|Any CPU = Release|Any CPU
10+
EndGlobalSection
11+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
12+
{455418C6-DC94-4F9F-ABB5-3EECA203CC81}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
13+
{455418C6-DC94-4F9F-ABB5-3EECA203CC81}.Debug|Any CPU.Build.0 = Debug|Any CPU
14+
{455418C6-DC94-4F9F-ABB5-3EECA203CC81}.Release|Any CPU.ActiveCfg = Release|Any CPU
15+
{455418C6-DC94-4F9F-ABB5-3EECA203CC81}.Release|Any CPU.Build.0 = Release|Any CPU
16+
EndGlobalSection
17+
GlobalSection(SolutionProperties) = preSolution
18+
HideSolutionNode = FALSE
19+
EndGlobalSection
20+
EndGlobal

0 commit comments

Comments
 (0)