Beispiel #1
0
        public DbConnection CreateNativeContection()
        {
            DbConnection conn = dbprovider.CreateDbConnection();

            conn.ConnectionString = this.connectionString;
            conn.Open();
            return(conn);
        }
Beispiel #2
0
        private void CreateConnection()
        {
            if (conn.IsNullOrSpace())
            {
                conn = dbprovider.CreateDbConnection();
            }

            if (conn.State != ConnectionState.Open)
            {
                conn.ConnectionString = this.connectionString;
                conn.Open();
            }
        }