Пример #1
0
 public static Task <T> FindAsync <T>(this SqliteSessionBase session, object pk, params object[] primaryKeys) where T : new()
 {
     return(Task.Factory.StartNew(
                () =>
     {
         using (session.Lock())
         {
             return session.Find <T>(pk, primaryKeys);
         }
     }));
 }