Esempio n. 1
0
        public bool CompareTo(ConnectionHolder Con)
        {
            if (this.Name != Con.Name)
            {
                return(false);
            }
            if (this.Host != Con.Host)
            {
                return(false);
            }
            if (this.Port != Con.Port)
            {
                return(false);
            }
            if (this.Username != Con.Username)
            {
                return(false);
            }
            if (this.Password != Con.Password)
            {
                return(false);
            }
            if (this.Database != Con.Database)
            {
                return(false);
            }

            return(true);
        }
Esempio n. 2
0
        public MysqlError Init(ConnectionHolder Holder)
        {
            mServer   = Holder.Host;
            mPort     = Holder.Port;
            mUser     = Holder.Username;
            mPassword = Holder.Password;
            mDatabase = Holder.Database;

            return(Prepare());
        }
Esempio n. 3
0
		public bool CompareTo( ConnectionHolder Con ) {
			if( this.Name != Con.Name )
				return false;
			if( this.Host != Con.Host )
				return false;
			if( this.Port != Con.Port )
				return false;
			if( this.Username != Con.Username )
				return false;
			if( this.Password != Con.Password )
				return false;
			if( this.Database != Con.Database )
				return false;

			return true;
		}
Esempio n. 4
0
		public MysqlError Init( ConnectionHolder Holder ) {
			mServer = Holder.Host;
			mPort = Holder.Port;
			mUser = Holder.Username;
			mPassword = Holder.Password;
			mDatabase = Holder.Database;

			return Prepare();
		}