public void SetUpTable()
 {
     this.engine = new Engine();
     this.database = this.engine.CreateDatabase("Sales");
     this.table = database.CreateTable("Employees");
     this.table.AddColumn(new Column("FirstName"));
     this.table.AddColumn(new Column("LastName"));
     this.table.AddRow(new object[] { "John", "Smith" });
     this.table.AddRow(new object[] { "Adam", "Jones" });
     this.table.AddRow(new object[] { "Alice", "Stuart" });
 }
Exemple #2
0
 public void SetUpTable()
 {
     Engine engine = new Engine();
     Database database = engine.CreateDatabase("Sales");
     this.table = database.CreateTable("Customers");
     this.table.AddColumn(new Column("FirstName"));
     this.table.AddColumn(new Column("LastName"));
 }
Exemple #3
0
        public void SetUpTable()
        {
            Engine engine = new Engine();
            Database database = engine.CreateDatabase("Northwind");
            this.table = database.CreateTable("Employees");

            this.table.AddColumn(new Column("FirstName"));
            this.table.AddColumn(new Column("LastName"));
            this.table.AddColumn(new Column("DepartmentID"));
            this.table.AddColumn(new Column("Address"));

            for (int k = 1; k <= 100; k++)
                this.table.AddRow(new object[] { "John " + k, "Doe " + k, (k%10) + 1, (k%2)==0 ? null : "Address " + k});
        }
Exemple #4
0
 public void SetUp()
 {
     Engine engine = new Engine();
     Database database = engine.CreateDatabase("foo");
     this.schema = database.CreateSchema("bar");
 }
Exemple #5
0
 public void Setup()
 {
     this.engine = new Engine();
     this.database = this.engine.CreateDatabase("foo");
 }
Exemple #6
0
 internal Database(Engine engine, string name)
 {
     this.name = name;
     this.engine = engine;
     this.CreateSchema(Database.DefaultSchemaName);
 }
 public void SetupEngine()
 {
     this.engine = new Engine();
 }