using System; using Womb; using Tutorial; public class TutorialClass { public static void Main (string [] args) { DB db; // Our connection to the database Employee emp; // An employee atom // Connect to the database. This assumes postgresql server is // running on the local computer and listening on TCP port 5432, // adjust to your own settings. db = new DB (); db.Connect ("localhost", 5432, "WombTutorial", "bob", ""); // We are connected. Create an empty employee. emp = new Employee (db); // Set some data in the employee. emp.surname = "Doe"; emp.name = "John"; emp.birthdate = DateTime.Today; // Write our employee record to the database emp.Write (); db.Disconnect (); return; } }