Exemple #1
0
        public void To_String_With_Values()
        {
            IAlias  person = sql.Alias("person");
            IAlias  dept   = sql.Alias("dept");
            IDelete delete = sql.Delete()
                             .Add(person)
                             .Add(dept);

            Assert.Equal("DELETE person, dept", delete.ToString());
        }
Exemple #2
0
        public void To_String()
        {
            IDelete delete = sql.Delete().Top(10);

            Assert.Equal("DELETE TOP(10)", delete.ToString());
        }