public void BuildAlterColumn(DatabaseColumn column) { try { var txt = _migrationGenerator.AlterColumn(column.Table, column, null); Clipboard.SetText(txt, TextDataFormat.UnicodeText); } catch (Exception exception) { Debug.WriteLine(exception.Message); } }
public string AlterColumn(DatabaseTable databaseTable, DatabaseColumn databaseColumn, DatabaseColumn originalColumn) { return(_migration.AlterColumn(databaseTable, databaseColumn, originalColumn)); }
/// <summary>修改列类型、默认值、是否为NULL等 /// 修改列类型、默认值、是否为NULL等 /// </summary> /// <param name="table"></param> /// <param name="databaseColumn"></param> /// <param name="originalColumn"></param> /// <returns></returns> public string AlterColumn(DatabaseTable table, DatabaseColumn databaseColumn, DatabaseColumn originalColumn) { return(m_migrationGenerator.AlterColumn(table, databaseColumn, originalColumn)); }