示例#1
0
文件: CountTest.cs 项目: sGeeK44/Orm
        public void CreateTableCount_WithSpecifiedColumn_ShouldReturnExpectedString()
        {
            var column = new ColumnValue(BookVersionEntityInfo, BookVersion.IdColumnName);

            var select = Aggregable.CreateTableCount(column);

            Assert.AreEqual("SELECT COUNT(*) AS count, [BookVersion].[id] AS BookVersionid", select.SelectStatement());
        }
示例#2
0
文件: CountTest.cs 项目: sGeeK44/Orm
        public void CreateTableCount_ShouldReturnExpectedSqlString()
        {
            var select = Aggregable.CreateTableCount();

            Assert.AreEqual("SELECT COUNT(*) AS count", select.SelectStatement());
        }