Beispiel #1
0
 public static Task <int> CreateTableAsync <T>(this SqliteSessionBase session, bool createIndexes = true) where T : new()
 {
     return(Task <int> .Factory.StartNew(
                () =>
     {
         using (session.Lock())
         {
             return session.CreateTable <T>(createIndexes);
         }
     }));
 }