Пример #1
0
 public static Task <int> InsertAllAsync <T>(this SqliteSessionBase session, IEnumerable <T> items)
 {
     return(Task.Factory.StartNew(
                () =>
     {
         using (session.Lock())
         {
             return session.InsertAll(items);
         }
     }));
 }