forked from jstedfast/MimeKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Import the Mono.Data.Sqlite project instead of importing the pre-buil…
…t assembly
- Loading branch information
Showing
39 changed files
with
13,091 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
using System; | ||
using System.Reflection; | ||
using System.Runtime.InteropServices; | ||
using System.Security; | ||
|
||
#if !PLATFORM_COMPACTFRAMEWORK | ||
using System.Runtime.ConstrainedExecution; | ||
#endif | ||
|
||
// 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("System.Data.SQLite")] | ||
[assembly: AssemblyDescription("ADO.NET 2.0 Data Provider for SQLite")] | ||
[assembly: AssemblyConfiguration("")] | ||
[assembly: AssemblyCompany("http://sqlite.phxsoftware.com")] | ||
[assembly: AssemblyProduct("System.Data.SQLite")] | ||
[assembly: AssemblyCopyright("Public Domain")] | ||
[assembly: AssemblyTrademark("")] | ||
[assembly: AssemblyCulture("")] | ||
|
||
// Setting ComVisible to false makes the types in this assembly not visible | ||
// to COM componenets. If you need to access a type in this assembly from | ||
// COM, set the ComVisible attribute to true on that type. | ||
[assembly: ComVisible(false)] | ||
[assembly: CLSCompliant(true)] | ||
//[assembly: InternalsVisibleTo("System.Data.SQLite.Linq, PublicKey=002400000480000094000000060200000024000052534131000400000100010005a288de5687c4e1b621ddff5d844727418956997f475eb829429e411aff3e93f97b70de698b972640925bdd44280df0a25a843266973704137cbb0e7441c1fe7cae4e2440ae91ab8cde3933febcb1ac48dd33b40e13c421d8215c18a4349a436dd499e3c385cc683015f886f6c10bd90115eb2bd61b67750839e3a19941dc9c")] | ||
|
||
#if !PLATFORM_COMPACTFRAMEWORK | ||
[assembly: AllowPartiallyTrustedCallers] | ||
[assembly: ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)] | ||
#endif | ||
|
||
// 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("4.0.0.0")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/******************************************************** | ||
* ADO.NET 2.0 Data Provider for SQLite Version 3.X | ||
* Written by Robert Simpson ([email protected]) | ||
* | ||
* Released to the public domain, use at your own risk! | ||
********************************************************/ | ||
|
||
namespace Mono.Data.Sqlite | ||
{ | ||
using System; | ||
using System.Data; | ||
using System.Data.Common; | ||
using System.Collections.Generic; | ||
using System.Globalization; | ||
using System.ComponentModel; | ||
|
||
public sealed partial class SqliteConnection | ||
{ | ||
/// <summary> | ||
/// Returns a SQLiteProviderFactory object. | ||
/// </summary> | ||
protected override DbProviderFactory DbProviderFactory | ||
{ | ||
get { return SqliteFactory.Instance; } | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/******************************************************** | ||
* ADO.NET 2.0 Data Provider for SQLite Version 3.X | ||
* Written by Robert Simpson ([email protected]) | ||
* | ||
* Released to the public domain, use at your own risk! | ||
********************************************************/ | ||
|
||
namespace Mono.Data.Sqlite | ||
{ | ||
using System; | ||
using System.Data.Common; | ||
using System.Reflection; | ||
using System.Security.Permissions; | ||
|
||
/// <summary> | ||
/// SQLite implementation of DbProviderFactory. | ||
/// </summary> | ||
public sealed partial class SqliteFactory : IServiceProvider | ||
{ | ||
private static Type _dbProviderServicesType; | ||
private static object _sqliteServices; | ||
|
||
static SqliteFactory() | ||
{ | ||
_dbProviderServicesType = Type.GetType("System.Data.Common.DbProviderServices, System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", false); | ||
} | ||
|
||
/// <summary> | ||
/// Will provide a DbProviderServices object in .NET 3.5 | ||
/// </summary> | ||
/// <param name="serviceType">The class or interface type to query for</param> | ||
/// <returns></returns> | ||
object IServiceProvider.GetService(Type serviceType) | ||
{ | ||
if (serviceType == typeof(ISQLiteSchemaExtensions) || | ||
(_dbProviderServicesType != null && serviceType == _dbProviderServicesType)) | ||
{ | ||
return GetSQLiteProviderServicesInstance(); | ||
} | ||
return null; | ||
} | ||
|
||
[ReflectionPermission(SecurityAction.Assert, MemberAccess = true)] | ||
private object GetSQLiteProviderServicesInstance() | ||
{ | ||
if (_sqliteServices == null) | ||
{ | ||
Type type = Type.GetType("Mono.Data.Sqlite.SQLiteProviderServices, Mono.Data.Sqlite.Linq, Version=2.0.38.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139", false); | ||
if (type != null) | ||
{ | ||
FieldInfo field = type.GetField("Instance", BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.Instance); | ||
_sqliteServices = field.GetValue(null); | ||
} | ||
} | ||
return _sqliteServices; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProductVersion>10.0.0</ProductVersion> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
<ProjectGuid>{F26434C1-BA3D-41FB-B560-C009CB72B1B6}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<NoWarn>1699</NoWarn> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<NoStdLib>True</NoStdLib> | ||
<NoConfig>True</NoConfig> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<AssemblyName>Mono.Data.Sqlite</AssemblyName> | ||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;SQLITE_STANDARD</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<NoStdLib>false</NoStdLib> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;SQLITE_STANDARD</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<NoStdLib>false</NoStdLib> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Compile Include="Assembly\AssemblyInfo.cs" /> | ||
<Compile Include="LINQ\SQLiteConnection_Linq.cs" /> | ||
<Compile Include="LINQ\SQLiteFactory_Linq.cs" /> | ||
<Compile Include="SQLite3.cs" /> | ||
<Compile Include="SQLite3_UTF16.cs" /> | ||
<Compile Include="SQLiteBase.cs" /> | ||
<Compile Include="SQLiteCommand.cs" /> | ||
<Compile Include="SQLiteCommandBuilder.cs" /> | ||
<Compile Include="SQLiteConnection.cs" /> | ||
<Compile Include="SQLiteConnectionPool.cs" /> | ||
<Compile Include="SQLiteConnectionStringBuilder.cs" /> | ||
<Compile Include="SQLiteConvert.cs" /> | ||
<Compile Include="SQLiteDataAdapter.cs" /> | ||
<Compile Include="SQLiteDataReader.cs" /> | ||
<Compile Include="SqliteDataSourceEnumerator.cs" /> | ||
<Compile Include="SQLiteEnlistment.cs" /> | ||
<Compile Include="SQLiteException.cs" /> | ||
<Compile Include="SQLiteFactory.cs" /> | ||
<Compile Include="SQLiteFunction.cs" /> | ||
<Compile Include="SQLiteFunctionAttribute.cs" /> | ||
<Compile Include="SQLiteKeyReader.cs" /> | ||
<Compile Include="SQLiteMetaDataCollectionNames.cs" /> | ||
<Compile Include="SQLiteParameter.cs" /> | ||
<Compile Include="SQLiteParameterCollection.cs" /> | ||
<Compile Include="SQLiteStatement.cs" /> | ||
<Compile Include="SQLiteTransaction.cs" /> | ||
<Compile Include="UnsafeNativeMethods.cs" /> | ||
<Compile Include="SR.Designer.cs" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
<!-- 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> | ||
--> | ||
<ItemGroup> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Transactions" /> | ||
<Reference Include="System.Xml" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Folder Include="resources\" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="resources\SR.resx" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<EmbeddedResource Include="resources\SR.resources"> | ||
<LogicalName>SR.resources</LogicalName> | ||
</EmbeddedResource> | ||
</ItemGroup> | ||
</Project> |
Oops, something went wrong.