public override string ToString() { var typeStr = new StringBuilder(this.SqlType); if (this.Size > -1) { typeStr.AppendFormat("({0}", this.Size); if (this.Precision > -1) { typeStr.AppendFormat(", {0}", this.Precision); } typeStr.Append(")"); } if (SqlType.Contains("var") && !SqlType.EndsWith(")")) { typeStr.Append("(MAX)"); } return(string.Format("{0} {1} {2}", Name, typeStr, DefaultValue ?? "").Trim()); }