Example #1
0
        public void RemoveLastAndOr()
        {
            var sql = @"or (positionanme=@314 and deptId=@315) or ";

            StringBuilder sb = new StringBuilder(sql);

            sb = sb.RemoveLastAndOr();

            Assert.AreEqual("or (positionanme=@314 and deptId=@315)  ", sb.ToString());
        }