SQLite Insert Rows Into DataGridView


Node Information
Inserts rows into the specified DataGridView.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Insert IN RUN MULTIPLE FALSE FALSE
DataGridView IN DataGridView ONE FALSE FALSE
Rows IN List<SQLiteRow> ONE TRUE FALSE

Source
namespace Korduene.KGraph.Nodes.Database.SQLite
{
    [IsNode("Insert Rows Into DataGridView")]
    public class InsertRowsIntoDataGridView : Node
    {
        Port create = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "Insert");
        Port db = new Port(PortType.IN, typeof(object), AcceptsLinks.ONE, "Database");
        Port dgv = new Port(PortType.IN, typeof(System.Windows.Forms.DataGridView), AcceptsLinks.ONE, "DataGridView");
        Port rows = new Port(PortType.IN, typeof(List<korduene.database.sqlite.sqliterow>), AcceptsLinks.ONE, "Rows");
        public InsertRowsIntoDataGridView()
        {
            NodeType = KGraph.NodeType.Method;
            Name = "SQLite Insert Rows Into DataGridView";
            Dependency = DependencyLibraries.SQLITE;
            AddPort(create);
            AddPort(dgv);
            AddPort(rows);
            Information = "Inserts rows into the specified DataGridView.";
        }
        public override string Code()
        {
            return GetValue(db) + ".InsertRowsIntoDataGridView(" + GetValue(rows) + ", " + GetValue(dgv) + "});";
        }
    }
}

</korduene.database.sqlite.sqliterow>