Beispiel #1
0
        public void sqlite_test_pagination_strings()
        {
            var    m = new SqliteProvider(Config.SqlServerProviderName);
            string cnt;
            string sel;

            m.MakePaged("select * from test", out sel, out cnt);
            Assert.Equal("select count(*) from test", cnt);
            Assert.Equal(string.Format("select * from test limit @{0},@{1}", PreparePagedStatement.SkipParameterName, PreparePagedStatement.TakeParameterName), sel);
        }