public void ExistsMethodDemo() { string userId = "123"; string userName = "admin"; DALDb db = new DALDb(); // sql 语句 PetaPoco.Sql sql = PetaPoco.Sql.Builder.Append("[email protected]", userId); sql.Append("and [email protected]", userName); // 查询 bool result = db.Exists<USER>(sql.SQL, sql.Arguments); }
时间: 2024-11-15 00:07:38