SQLite Load Into ListView


Node Information
Loads all entries from the specified table from the specified SQLite database.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Load IN RUN MULTIPLE FALSE FALSE
Database IN Object ONE FALSE FALSE
ListView IN ListView ONE FALSE FALSE
TableName IN String ONE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.Database.SQLite
{
    [IsNode("Load Into ListView")]
    public class LoadIntoListView : Node
    {
        Port create = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "Load");
        Port db = new Port(PortType.IN, typeof(object), AcceptsLinks.ONE, "Database");
        Port lv = new Port(PortType.IN, typeof(Korduene.Designer.Standard.ListView), AcceptsLinks.ONE, "ListView");
        Port tname = new Port(PortType.IN, typeof(string), AcceptsLinks.ONE, "TableName");
        public LoadIntoListView()
        {
            NodeType = KGraph.NodeType.Method;
            Name = "SQLite Load Into ListView";
            Dependency = DependencyLibraries.SQLITE;
            AddPort(create);
            AddPort(db);
            AddPort(lv);
            AddPort(tname);
            Information = "Loads all entries from the specified table from the specified SQLite database.";
        }
        public override string Code()
        {
            return GetValue(db) + ".LoadTableIntoListView(" + GetValue(tname) + ", " + GetValue(lv) + ");";
        }
    }
}