Exemple #1
0
 public SQLParamName(string name, SQLProcedure procedure, int id, SqlDbType paramType, double maxLength, int precision,
                     int scale, string collation, bool optional)
 {
     Name          = name;
     Parent        = procedure;
     ID            = id;
     ParamType     = paramType;
     MaximumLength = maxLength;
     Precision     = precision;
     Scale         = scale;
     Collation     = collation;
     Optional      = optional;
 }
Exemple #2
0
        public override bool Equals(object obj)
        {
            if (obj == this)
            {
                return(true);
            }
            if (obj == null)
            {
                return(false);
            }
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }

            SQLProcedure newObj = (SQLProcedure)obj;

            if (this.Name == newObj.Name && this.Table == newObj.Table && this.GetAllParamaters() == newObj.GetAllParamaters())
            {
                return(true);
            }
            return(false);
        }