예제 #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            DeleteCommand delCommand = new DeleteCommand("testuser", conStr);
            int           count      = delCommand.LikeWhere(LogicOperator.And, "name", "m", Wildcard.All).Where(LogicOperator.Or, "name", ValueOperator.Equal, "Jack").Delete();

            Tips(count, "按条件");

            //以下使用也可以,即分开调用
            //delCommand.LikeWhere(LogicOperator.And, "name", "x", Wildcard.Back).Where(LogicOperator.Or, "name", ValueOperator.Equal, "f**k");
            //int count = delCommand.Delete();
            //Tips(count, "按条件");
        }