Exemple #1
0
        public bool Delete(IDomain obj)
        {
            string key    = obj.CreateKey();
            bool   result = this.db.HashDelete(key, obj.Id);

            return(result);
        }
Exemple #2
0
        public bool Save(IDomain obj)
        {
            string json   = JsonConvert.SerializeObject(obj);
            string key    = obj.CreateKey();
            bool   result = this.db.HashSet(key, obj.Id, json);

            return(result);
        }