public static Task <T> ExecuteScalarAsync <T>(this SqliteSessionBase session, string sql, params object[] args) { return(Task <T> .Factory.StartNew( () => { using (session.Lock()) { return session.ExecuteScalar <T>(sql, args); } })); }
public static Task <T> ExecuteScalarAsync <T>(this SqliteSessionBase session, string sql, params object[] args) { return(Task <T> .Factory.StartNew( () => { using (session.Lock()) { return session.ExecuteScalar <T>(sql, args); } })); }