DatabaseFactory ClassMVC+ (Model-Facade-View-Controller) Framework for ASP.NET
Factrory Method abstract class for database object.
Inheritance Hierarchy

System Object
  NovaDimension.Data.Client DatabaseFactory

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

public static class DatabaseFactory
Examples

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

class TestClass()
{
    static int Main()
    {
        try
        {
            DbConfig config = (DbConfig)SerializeHelper.Deserialize("\\Config", "DbConfig.config");
            IFactoryable<IConnectionable, DbCfg> factory = DatabaseFactory.CreateFactory(config.UserManager);
            // ...
        }
        catch (ExceptionEx<DatabaseFactoryException> ex)
        {
            Console.WriteLine(ex.Message);
        }
    }
}
See Also