SQL Predicate
Inheritance: IPredicate
        public virtual void TestKeySetPredicate()
        {
            _map.Put("key1", "value1");
            _map.Put("key2", "value2");
            _map.Put("key3", "value3");

            var context = Client.NewTransactionContext();
            context.BeginTransaction();
            var txnMap = context.GetMap<object, object>(_name);

            var sqlPredicate = new SqlPredicate("this == value1");
            var keys = txnMap.KeySet(sqlPredicate);

            Assert.AreEqual(1, keys.Count);
            Assert.AreEqual("key1", keys.First());

            var values = txnMap.Values(sqlPredicate);

            Assert.AreEqual(1, values.Count);
            Assert.AreEqual("value1", values.First());

            context.CommitTransaction();
        }
 protected bool Equals(SqlPredicate other)
 {
     return(string.Equals(_sql, other._sql));
 }
 protected bool Equals(SqlPredicate other)
 {
     return string.Equals(_sql, other._sql);
 }