示例#1
0
        public static DbConnection CreateConnection()
        {
            DbConnection conn = DALFactory.GetDalInterface().getDbConnection(Config.Instance.ConnectString);

            return(conn);
        }
示例#2
0
        public static DbConnection CreateConnection(string connectstr)
        {
            DbConnection conn = DALFactory.GetDalInterface().getDbConnection(connectstr);

            return(conn);
        }
示例#3
0
 public DALHelper()
 {
     dInterface = DALFactory.GetDalInterface();
     conn       = dInterface.getDbConnection(Config.Instance.ConnectString);
 }