Permalink
Browse files

Add missing System.Linq.Expressions.dll.

Add more information to the readme.
Add simple dll project for the sqlite.cs file in root.
  • Loading branch information...
1 parent 29381bb commit 55ea97f480230d8937cef1df38862b0f9a1a74a4 @lanwin committed Feb 21, 2010
Binary file not shown.
@@ -0,0 +1,10 @@
+Port of System.Linq.Expressions from Mono by db4o.
+https://source.db4o.com/db4o/trunk/db4o.net/Libs/compact-3.5/System.Linq.Expressions/
+
+(C) 2009-2010 Novell, Inc.
+
+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:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+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.
View
@@ -1,34 +1,58 @@
sqlite-net .Net Compact Framework Port
==============
-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.
-In sqlite-net i only changed the SQLite3 class which simply calls the native sqlite3.dll.
+This is a port of sqlite-net http://code.google.com/p/sqlite-net to Microsoft .Net Compact Framework.
-About sqlite-net
-==============
-Homepage: http://code.google.com/p/sqlite-net
-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.
+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).
-sqlite-net was designed as a quick and convenient database layer. Its design follows from these goals:
+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/
- * Very easy to integrate with existing projects and with MonoTouch projects.
+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.
- * Fast and efficient.
+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.
- * Methods for executing queries safely (using parameters) and for retrieving the results of those query in a strongly typed fashion.
+About sqlite-net
+==============
+Homepage: http://code.google.com/p/sqlite-net
- * Linq support so that you don't have to write SQL (see LinqSupport).
+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.
- * Works with your data model without forcing you to change your classes. (Contains a small reflection-driven ORM layer.)
+sqlite-net was designed as a quick and convenient database layer. Its design follows from these goals:
- * It has 0 dependencies aside from a compiled form of the sqlite3 library.
+* Very easy to integrate with existing projects and with MonoTouch projects.
+* Fast and efficient.
+* Methods for executing queries safely (using parameters) and for retrieving the results of those query in a strongly typed fashion.
+* Linq support so that you don't have to write SQL (see LinqSupport).
+* Works with your data model without forcing you to change your classes. (Contains a small reflection-driven ORM layer.)
+* It has 0 dependencies aside from a compiled form of the sqlite3 library.
Non-goals include:
-
- * 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.
+* 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.
-Compiling sqlite_interop
+sqlite-net license
+============
+Copyright (c) 2009-2010 Krueger Systems, Inc.
+
+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:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+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.
+
+Compiling Sqlite3
============
-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.
+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.
Issues
============
@@ -0,0 +1,35 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("sqlite_net")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Microsoft")]
+[assembly: AssemblyProduct("sqlite_net")]
+[assembly: AssemblyCopyright("Copyright © Microsoft 2010")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("acd35c56-e60d-4095-b830-543c3a7b0edb")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers
+// by using the '*' as shown below:
+[assembly: AssemblyVersion("1.0.*")]
+
@@ -0,0 +1,77 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>9.0.30729</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{455418C6-DC94-4F9F-ABB5-3EECA203CC81}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>SQLite</RootNamespace>
+ <AssemblyName>sqlite-net</AssemblyName>
+ <ProjectTypeGuids>{4D628B5B-2FBC-4AA6-8C16-197242AEB884};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+ <PlatformFamilyName>PocketPC</PlatformFamilyName>
+ <PlatformID>4118C335-430C-497f-BE48-11C3316B135E</PlatformID>
+ <OSVersion>5.1</OSVersion>
+ <DeployDirSuffix>sqlite_net</DeployDirSuffix>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <NativePlatformName>Windows Mobile 5.0 Pocket PC SDK</NativePlatformName>
+ <FormFactorID>
+ </FormFactorID>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE;$(PlatformFamilyName)</DefineConstants>
+ <NoStdLib>true</NoStdLib>
+ <NoConfig>true</NoConfig>
+ <ErrorReport>prompt</ErrorReport>
+ <FileAlignment>512</FileAlignment>
+ <WarningLevel>4</WarningLevel>
+ <GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE;$(PlatformFamilyName)</DefineConstants>
+ <NoStdLib>true</NoStdLib>
+ <NoConfig>true</NoConfig>
+ <ErrorReport>prompt</ErrorReport>
+ <FileAlignment>512</FileAlignment>
+ <WarningLevel>4</WarningLevel>
+ <GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="mscorlib" />
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Linq.Expressions, Version=7.13.132.14181, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\Dependencys\System.Linq.Expressions.dll</HintPath>
+ </Reference>
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="..\SQLite.cs">
+ <Link>SQLite.cs</Link>
+ </Compile>
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets" />
+ <ProjectExtensions>
+ <VisualStudio>
+ <FlavorProperties GUID="{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}">
+ <HostingProcess disable="1" />
+ </FlavorProperties>
+ </VisualStudio>
+ </ProjectExtensions>
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
View
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "sqlite-net", "sqlite-net.csproj", "{455418C6-DC94-4F9F-ABB5-3EECA203CC81}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {455418C6-DC94-4F9F-ABB5-3EECA203CC81}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {455418C6-DC94-4F9F-ABB5-3EECA203CC81}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {455418C6-DC94-4F9F-ABB5-3EECA203CC81}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {455418C6-DC94-4F9F-ABB5-3EECA203CC81}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal

0 comments on commit 55ea97f

Please sign in to comment.