Example #1
0
        public void To_String()
        {
            Person2 person = null;
            IAlias  alias  = sql.Alias(() => person);

            Assert.Equal("Person2 AS person", alias.ToString());
        }
Example #2
0
        public void To_String()
        {
            IAlias <Person> alias = sql.Alias <Person>();

            Assert.Equal("Person AS person", alias.ToString());
        }
Example #3
0
        public void To_String_With_Alias_Name()
        {
            IAlias <Person> alias = sql.Alias <Person>("per");

            Assert.Equal("Person AS per", alias.ToString());
        }
Example #4
0
        public void To_String_With_Alias_Name()
        {
            IAlias alias = sql.Alias("dbo.person", "per");

            Assert.Equal("dbo.person AS per", alias.ToString());
        }
Example #5
0
        public void To_String()
        {
            IAlias alias = sql.Alias("dbo.person");

            Assert.Equal("dbo.person", alias.ToString());
        }
Example #6
0
        public void To_String()
        {
            IAlias alias = sql.Alias("person", "per");

            Assert.Equal("person AS per", alias.ToString());
        }