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" }); }
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")); }
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}); }
public void SetUp() { Engine engine = new Engine(); Database database = engine.CreateDatabase("foo"); this.schema = database.CreateSchema("bar"); }
public void Setup() { this.engine = new Engine(); this.database = this.engine.CreateDatabase("foo"); }
internal Database(Engine engine, string name) { this.name = name; this.engine = engine; this.CreateSchema(Database.DefaultSchemaName); }
public void SetupEngine() { this.engine = new Engine(); }