public void SaveAll <TSource>(IEnumerable <TSource> items) { JSONDatabase.SaveAll <TSource>(GenerateDbFile <TSource>(), items); }
public bool Exist <TSource>(Func <TSource, bool> predicate) { return(JSONDatabase.Exist <TSource>(GenerateDbFile <TSource>(), predicate)); }
public int Update <TSource>(Func <TSource, bool> predicate, TSource item) { return(JSONDatabase.Update <TSource>(GenerateDbFile <TSource>(), predicate, item)); }
public void Delete <TSource>(Func <TSource, bool> predicate) { JSONDatabase.Delete <TSource>(GenerateDbFile <TSource>(), predicate); }
public List <TSource> SelectAll <TSource>(Func <TSource, bool> predicate) { return(JSONDatabase.SelectAll <TSource>(GenerateDbFile <TSource>(), predicate)); }
public List <TSource> SelectAll <TSource>() { return(JSONDatabase.SelectAll <TSource>(GenerateDbFile <TSource>())); }
public void Insert <T>(T obj) { JSONDatabase.Insert <T>(GenerateDbFile <T>(), obj); }