Exemple #1
0
        public KVRelationalObject <T> New <T>(T objetToWrap) where T : new()
        {
            var relObject = new KVRelationalObject <T>(GenerateKey <T>(), Schema, Store);

            relObject.Value = objetToWrap;
            return(relObject);
        }
Exemple #2
0
 public void Save <T>(KVRelationalObject <T> obj)
 {
     if (string.IsNullOrEmpty(obj.Key.Value))
     {
         obj.Key = GenerateKey <T>();
     }
     else
     {
         Store.Set(obj.Key.Value, obj.Value);
     }
 }
Exemple #3
0
 public void Remove <T>(KVRelationalObject <T> value)
 {
     Remove <T>(value.Key);
     value.Key = null;
 }