|
using System;
namespace DbKeeperNet.Engine.Extensions.DatabaseServices
{
/// <summary>
/// Registration entry point for built-in database services
/// </summary>
/// <remarks>
/// <list type="bullet">
/// <listheader>Registers support for following databases:</listheader>
/// <item><see cref="MsSqlDatabaseService">Microsoft SQL Server</see></item>
/// <item><see cref="MySqlNetConnectorDatabaseService">MySQL</see></item>
/// <item><see cref="OracleDatabaseService">Oracle</see></item>
/// <item><see cref="PgSqlDatabaseService">PostgreSQL</see></item>
/// <item><see cref="SQLiteDatabaseService">SQLite</see></item>
/// <item><see cref="FirebirdDatabaseService">Firebird</see></item>
/// </list>
///
/// All providers implement interface <see cref="IDatabaseService"/>
/// </remarks>
public sealed class DbServicesExtension : IExtension
{
#region IExtension Members
public void Initialize(IUpdateContext context)
{
if (context == null)
throw new ArgumentNullException("context");
context.RegisterDatabaseService(new MsSqlDatabaseService());
context.RegisterDatabaseService(new MySqlNetConnectorDatabaseService());
context.RegisterDatabaseService(new OracleDatabaseService());
context.RegisterDatabaseService(new PgSqlDatabaseService());
context.RegisterDatabaseService(new SQLiteDatabaseService());
context.RegisterDatabaseService(new FirebirdDatabaseService());
}
#endregion
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I'm software developer since 1996. I started with assembler on Intel 8051 CPUs, during years I was interested in C, C++, Sybase PowerBuilder, PHP, Sybase Anywhere Database, MSSQL server and multiplatform development.
Currently I'm developing in C++ and C# (this is my favorit and I spent some time with MCPD achievement). I'm also interested in design patterns.