示例#1
0
 public static Task <int> InsertAsync <T>(this SqliteSessionBase session, T item, ConflictResolution extra)
 {
     return(Task.Factory.StartNew(
                () =>
     {
         using (session.Lock())
         {
             return session.Insert(item, extra);
         }
     }));
 }