/* FUNCTION : * DESCRIPTION : * PARAMETERS : * ALTERS : * RETURNS : */ private static void setup() { //first time setup of connection... // use the configuration manager switch (ConfigurationManager.ConnectionStrings["kanban"].ProviderName) { case "System.Data.SqlClient": Dbms.dal = new SqlServerDal( ConfigurationManager.ConnectionStrings["kanban"].ConnectionString); break; default: Dbms.dal = new NullDal(); break; } }
/* FUNCTION : * DESCRIPTION : * PARAMETERS : * ALTERS : * RETURNS : */ public static void Disconnect() { Dbms.dal = null; }