/********************************************************
* 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 System.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
}