public Task <int> CreateTableAsync <T>() where T : new() { return(Task <int> .Factory.StartNew( () => { SqliteSession conn = this.GetAsyncConnection(); using (conn.Lock()) { return conn.CreateTable <T>(); } })); }