示例#1
0
 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);
     }
 }
示例#2
0
 public string AlterColumn(DatabaseTable databaseTable, DatabaseColumn databaseColumn, DatabaseColumn originalColumn)
 {
     return(_migration.AlterColumn(databaseTable, databaseColumn, originalColumn));
 }
示例#3
0
 /// <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));
 }