示例#1
0
        public override Boolean Equals(object obj)
        {
            if ((obj == null) || (obj.GetType() != this.GetType()))
            {
                return(false);
            }
            SECConnection castObj = (SECConnection)obj;

            return((castObj != null) && (this.Id == castObj.Id));
        }
示例#2
0
        public SECConnection(SECConnection data, Options option) : base(data, option)
        {
            if (option == Options.Light || option == Options.Me || option == Options.All)
            {
                //OptionName.Light
                this.DbType   = data.DbType;
                this.Login    = data.Login;
                this.Password = data.Password;
                this.Service  = data.Service;
                this.DB       = data.DB;
                this.Name     = data.Name;

                if (option == Options.Me || option == Options.All)
                {
                    this.Company = (data.Company != null) ? new SECCompany(data.Company, Options.Light) : null;
                }
            }
        }