Esempio n. 1
0
 public Database(Host host, String name, Table table1, Table table2)
 {
     Host = host;
     Name = name;
     Tables.Add(table1);
     Tables.Add(table2);
 }
Esempio n. 2
0
        public BWServer(string host)
        {
            // Boolware definitions
            Host = new Host(host);

            // Company table
            vJaxCompanies = new Table("VJAXCOMPANIES");
            vJaxCompanies.AddColumn(new Column("LOCATIONID", "LOCATIONID", typeof(Int64), Content.Text));
            vJaxCompanies.AddColumn(new Column("VKIID", "Vkiid", typeof(Int64), Content.Text));
            vJaxCompanies.AddColumn(new Column("NAME", "Name", typeof(String), Content.Text));
            vJaxCompanies.AddColumn(new Column("CITYNAME", "Cityname", typeof(String), Content.Text));
            vJaxCompanies.AddColumn(new Column("PHONE", "Phone", typeof(String), Content.Text));

            // Private table
            vJaxPrivates = new Table("VJAXPRIVATES");
            vJaxPrivates.AddColumn(new Column("LOCATIONID", "LOCATIONID", typeof(Int64), Content.Text));
            vJaxPrivates.AddColumn(new Column("VKIID", "Vkiid", typeof(Int64), Content.Text));
            vJaxPrivates.AddColumn(new Column("NAME", "Name", typeof(String), Content.Text));
            vJaxPrivates.AddColumn(new Column("STREETNAME", "Street", typeof(String), Content.Text));
            vJaxPrivates.AddColumn(new Column("CITYNAME", "City", typeof(String), Content.Text));
            vJaxPrivates.AddColumn(new Column("PHONE", "Phone", typeof(String), Content.Text));

            JAX = new Database(Host, "JAX");
            JAX.AddTable(vJaxCompanies);
            JAX.AddTable(vJaxPrivates);
            
            
        }
Esempio n. 3
0
 public Database(Host host, String name)
 {
     Host = host;
     Name = name;
 }