MySql.Data.VisualStudio.UDFNode.Edit C# (CSharp) Méthode

Edit() public méthode

public Edit ( ) : void
Résultat void
    public override void Edit()
    {
      UDFEditor editor = new UDFEditor();
      DialogResult result = editor.ShowDialog();
      if (result == DialogResult.Cancel) return;

      string sql = "CREATE {0} FUNCTION {1} RETURNS {2} SONAME '{3}'";
      sql = String.Format(sql, editor.Aggregate ? "AGGREGATE" : "",
          editor.FunctionName, editor.ReturnTypeByName, editor.LibraryName);

      Name = editor.FunctionName;
      ExecuteSQL(sql);
      SaveNode();
    }
  }

Usage Example

Exemple #1
0
 public static void CreateNew(DataViewHierarchyAccessor HierarchyAccessor)
 {
   UDFNode node = new UDFNode(HierarchyAccessor, 0);
   node.Edit();
 }
All Usage Examples Of MySql.Data.VisualStudio.UDFNode::Edit