Exemplo n.º 1
0
        public DbTSQLDataSource(ConnectionSettings connSett, string name)
            : base(getTypeDB(connSett), name, false)
        {
            _iListenerId      = -1;
            _counterRegistred = -1;
            SetConnectionSettings(connSett);

            _this = this;
        }
Exemplo n.º 2
0
        public static DbTSQLDataSource DataSource()
        {
            DbTSQLDataSource dbInterfaceRes = null;

            if (Equals(_this, null) == false)
            {
                dbInterfaceRes = _this;
            }
            else
            {
                throw new NullReferenceException("DbTSQLDataSource::ctor () - не был вызван...");
            }

            return(dbInterfaceRes);
        }
        public static DbTSQLDataSource DataSource()
        {
            DbTSQLDataSource dbInterfaceRes = null;

            if ((Equals(_this, null) == false) &&
                (!(_currentIdThis == 0)) &&
                (_this.ContainsKey(_currentIdThis) == true))
            {
                dbInterfaceRes = (DbTSQLDataSource)_this[_currentIdThis]._object;
            }
            else
            {
                throw new NullReferenceException("DbTSQLDataSource::ctor () - не был вызван...");
            }

            return(dbInterfaceRes);
        }