public void Table_CorrectName_IsRetained() { string expected = "TestTableName"; string actual = new Table(expected, "TestSchema", "TestDatabase", GetColumns()).Name; Assert.AreEqual(expected, actual); }
public void CastToString_CorrectName_ReturnsSameAsToString() { Table table = new Table("TestTableName", "TestSchema", "TestDatabase", GetColumns()); string expected = table.ToString(); string actual = table; Assert.AreEqual(expected, actual); }
public FromClause(Table table) { this.Table = Contract.Required(table, "Table"); }
public void ToString_CorrectName_ReturnsName() { string expected = "TestTableName"; string actual = new Table(expected, "TestSchema", "TestDatabase", GetColumns()).ToString(); Assert.AreEqual(expected, actual); }
public QueryBuilder From(Table table) { this.from = new FromClause(Contract.Required(table, "Table")); return this; }
protected internal Table AddTable(Table table) { tables.Add(table); return table; }