public static DbConnection CreateConnection() { DbConnection conn = DALFactory.GetDalInterface().getDbConnection(Config.Instance.ConnectString); return(conn); }
public static DbConnection CreateConnection(string connectstr) { DbConnection conn = DALFactory.GetDalInterface().getDbConnection(connectstr); return(conn); }
public DALHelper() { dInterface = DALFactory.GetDalInterface(); conn = dInterface.getDbConnection(Config.Instance.ConnectString); }