public override void WriteToStream(IndentStream stream) { stream.Write("ALTER TABLE "); TableName.WriteToStream(stream); stream.Write($" {AlterAction.ToUpper()} "); // ConstraintExpr.WriteToStream(stream); // stream.Write(" "); // DefaultExpr.WriteToStream(stream); // stream.Write(" FOR "); // ForExpr.WriteToStream(stream); OptionList.WriteToStream(stream); }
/// <summary> /// Constructor. /// </summary> /// <param name="alterType"></param> /// <param name="columnname">The column name to be altered.</param> public AlterColumnProperty(AlterAction alterType, string columnname) { this.Name = columnname; this.AlterType = alterType; }