示例#1
0
        public void Table_CorrectName_IsRetained()
        {
            string expected = "TestTableName";
            string actual = new Table(expected, "TestSchema", "TestDatabase", GetColumns()).Name;

            Assert.AreEqual(expected, actual);
        }
示例#2
0
        public void CastToString_CorrectName_ReturnsSameAsToString()
        {
            Table table = new Table("TestTableName", "TestSchema", "TestDatabase", GetColumns());

            string expected = table.ToString();
            string actual = table;

            Assert.AreEqual(expected, actual);
        }
示例#3
0
 public FromClause(Table table)
 {
     this.Table = Contract.Required(table, "Table");
 }
示例#4
0
        public void ToString_CorrectName_ReturnsName()
        {
            string expected = "TestTableName";
            string actual = new Table(expected, "TestSchema", "TestDatabase", GetColumns()).ToString();

            Assert.AreEqual(expected, actual);
        }
示例#5
0
        public QueryBuilder From(Table table)
        {
            this.from = new FromClause(Contract.Required(table, "Table"));

            return this;
        }
示例#6
0
 protected internal Table AddTable(Table table)
 {
     tables.Add(table);
     return table;
 }