Example #1
0
 public void SaveAll <TSource>(IEnumerable <TSource> items)
 {
     JSONDatabase.SaveAll <TSource>(GenerateDbFile <TSource>(), items);
 }
Example #2
0
 public bool Exist <TSource>(Func <TSource, bool> predicate)
 {
     return(JSONDatabase.Exist <TSource>(GenerateDbFile <TSource>(), predicate));
 }
Example #3
0
 public int Update <TSource>(Func <TSource, bool> predicate, TSource item)
 {
     return(JSONDatabase.Update <TSource>(GenerateDbFile <TSource>(), predicate, item));
 }
Example #4
0
 public void Delete <TSource>(Func <TSource, bool> predicate)
 {
     JSONDatabase.Delete <TSource>(GenerateDbFile <TSource>(), predicate);
 }
Example #5
0
 public List <TSource> SelectAll <TSource>(Func <TSource, bool> predicate)
 {
     return(JSONDatabase.SelectAll <TSource>(GenerateDbFile <TSource>(), predicate));
 }
Example #6
0
 public List <TSource> SelectAll <TSource>()
 {
     return(JSONDatabase.SelectAll <TSource>(GenerateDbFile <TSource>()));
 }
Example #7
0
 public void Insert <T>(T obj)
 {
     JSONDatabase.Insert <T>(GenerateDbFile <T>(), obj);
 }