Exemplo 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);
        }
Exemplo 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());
        }
Exemplo 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;
		}
Exemplo 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();
		}