public static IEnumerable <T> Find <T>(this DB db, LTISnapshot snapshot, byte prefix) where T : class, ISerializable, new() { return(Find(db, snapshot, SliceBuilder.Begin(prefix), (k, v) => v.ToArray().AsSerializable <T>())); }
public static T Get <T>(this DB db, ReadOptions options, byte prefix, ISerializable key) where T : class, ISerializable, new() { return(db.Get(options, SliceBuilder.Begin(prefix).Add(key)).ToArray().AsSerializable <T>()); }
public static void Delete(this WriteBatch batch, byte prefix, ISerializable key) { batch.Delete(SliceBuilder.Begin(prefix).Add(key)); }