Database ClassMVC+ (Model-Facade-View-Controller) Framework for ASP.NET
A wrapper class for database connector/adapter.
Inheritance Hierarchy

System Object
  NovaDimension.Data.Client Database

Namespace: NovaDimension.Data.Client
Assembly: NovaDimension.Data.Client (in NovaDimension.Data.Client.dll) Version: 4.0.204.0 (4.0.0204.0)
Syntax

public sealed class Database : IInitializable<DbCfg>, 
	IDestroyable
Examples

This sample shows how to use the Database static class.
See Also: DbConfig, SerializeHelper, DatabaseException
using system;
using NovaDimension.Component;
using NovaDimension.Data;

class TestClass()
{
    static int Main()
    {
        DbConfig config;
        Database database;

        try
        {
            // Initializing UserManager database
            config = (DbConfig)SerializeHelper.Deserialize("\\Config", "DbConfig.config");
            database = new Database();
            database.Initialize(config.UserManager);
            // ...
        }
        catch (ExceptionEx<DatabaseException> ex)
        {
            Console.WriteLine(ex.Message);
        }
        finally
        {
            database.Release();
        }
    }
}
See Also