コード例 #1
0
        public void InEmptyList()
        {
            ISession     session    = factory.OpenSession();
            InExpression expression = new InExpression("Count", new object[0]);

            CreateObjects(typeof(Simple), session);
            SqlString sql = expression.ToSqlString(criteria, criteriaQuery, new CollectionHelper.EmptyMapClass <string, IFilter>());

            Assert.AreEqual("1=0", sql.ToString());
            session.Close();
        }
コード例 #2
0
        public void InEmptyList()
        {
            ISession     session    = factory.OpenSession();
            InExpression expression = new InExpression("Count", Array.Empty <object>());

            CreateObjects(typeof(Simple), session);
            SqlString sql = expression.ToSqlString(criteria, criteriaQuery);

            Assert.AreEqual("1=0", sql.ToString());
            session.Close();
        }