/********************************************************
* ADO.NET 2.0 Data Provider for SQLite Version 3.X
* Written by Robert Simpson (robert@blackcastlesoft.com)
*
* Released to the public domain, use at your own risk!
********************************************************/
namespace Mono.Data.Sqlite
{
using System;
using System.Data.Common;
#if !PLATFORM_COMPACTFRAMEWORK
///
/// SQLite implementation of DbProviderFactory.
///
public sealed partial class SqliteFactory : DbProviderFactory
{
///
/// Static instance member which returns an instanced SqliteFactory class.
///
public static readonly SqliteFactory Instance = new SqliteFactory();
///
/// Returns a new SqliteCommand object.
///
/// A SqliteCommand object.
public override DbCommand CreateCommand()
{
return new SqliteCommand();
}
///
/// Returns a new SqliteCommandBuilder object.
///
/// A SqliteCommandBuilder object.
public override DbCommandBuilder CreateCommandBuilder()
{
return new SqliteCommandBuilder();
}
///
/// Creates a new SqliteConnection.
///
/// A SqliteConnection object.
public override DbConnection CreateConnection()
{
return new SqliteConnection();
}
///
/// Creates a new SqliteConnectionStringBuilder.
///
/// A SqliteConnectionStringBuilder object.
public override DbConnectionStringBuilder CreateConnectionStringBuilder()
{
return new SqliteConnectionStringBuilder();
}
///
/// Creates a new SqliteDataAdapter.
///
/// A SqliteDataAdapter object.
public override DbDataAdapter CreateDataAdapter()
{
return new SqliteDataAdapter();
}
///
/// Creates a new SqliteParameter.
///
/// A SqliteParameter object.
public override DbParameter CreateParameter()
{
return new SqliteParameter();
}
}
#endif
}