SQLite Entry


Node Information
Creates a SQLite Entry.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
ColumnName IN String ONE FALSE FALSE
Type IN DbType ONE FALSE FALSE
Value IN Object ONE FALSE FALSE
Entry OUT SQLiteEntry MULTIPLE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.Database.SQLite
{
    [IsNode("Entry")]
    public class Entry : Node
    {
        Port colname = new Port(PortType.IN, typeof(string), AcceptsLinks.ONE, "ColumnName");
        Port type = new Port(PortType.IN, typeof(System.Data.DbType), AcceptsLinks.ONE, "Type");
        Port val = new Port(PortType.IN, typeof(object), AcceptsLinks.ONE, "Value");
        Port entry = new Port(PortType.OUT, typeof(Korduene.Database.SQLite.SQLiteEntry), AcceptsLinks.MULTIPLE, "Entry");
        public Entry()
        {
            NodeType = KGraph.NodeType.Function;
            ReturnType = typeof(Korduene.Database.SQLite.SQLiteEntry);
            Name = "SQLite Entry";
            Dependency = DependencyLibraries.SQLITE;
            AddPort(colname);
            AddPort(type);
            AddPort(val);
            AddPort(entry);
            Information = "Creates a SQLite Entry.";
        }
        public override string Code()
        {
            return "return new Korduene.Database.SQLite.SQLiteEntry(" + GetValue(colname) + "," + GetValue(type) + "," + GetValue(val) + ");";
        }
    }
}